$(document).ready( function(){
	
	
	var win = { w: $(document).width(), h: $(document).height() };
	var box = $('#welcomebox');
	box.hide();
	
	var resize = function(e)
	{
		win = { w: $(document).width(), h: $(document).height() };
		place(false);
	};
	
	$(window).resize(resize);
	
	var place = function(fade)
	{
		
		if( fade )
			box.hide();
		
		var boxs = { w: box.width(), h: box.height() };
		
		boxs.top = (win.h/2) - (boxs.h/2);
		boxs.left = (win.w/2) - (boxs.w/2);
		
		box.css(
			{
				left: boxs.left + "px",
				top: boxs.top + "px"
			}		
		);
		
		if( fade )
			box.fadeIn(1500);
	}
	
	var timer = function()
	{
		place(true);
	}
	
	setTimeout(timer, 250);
	

})