$(document).ready(function(){
	initResize();
	doResize();
	initHeight();
	doHeight();
	initWidth();
	doWidth();	
});

function initResize(){
	$(window).resize(function(){
		doResize();
	});
}
function doResize(){
	if ( $(window).width() <1252 ){
		$(".contentWelcome").css({
			position:"absolute",
			left:"572px",
			top:"187px"
		});		
				
	}else{
		$(".contentWelcome").css({
			position:"absolute",
			left:"750px",
			top:"187px"
		});	
	}
}


function initHeight(){
	$(window).resize(function(){
		doHeight();
	});
}
function doHeight(){
	if ( $(window).height() <700 ){
		$("#overflow").css('overflow-y', 'scroll');		
	}else{
		$("#overflow").css('overflow-y', 'hidden');	
	}
}

function initWidth(){
	$(window).resize(function(){
		doWidth();
	});
}
function doWidth(){
	if ( $(window).width() <1024 ){
		$("#overflow").css('overflow-x', 'scroll');	
	}else{
		$("#overflow").css('overflow-x', 'hidden');	
	}
}
