$(document).ready(function(){
	
	// this code corrects for the positioning issue when browser window will not fit the entire 1200px wide swf - this will offset the content to the left to center it
	
	resizeHandler();
	
 	$(window).bind("resize", resizeHandler);
	
	function resizeHandler(){
		var winWidth = parseFloat($(window).width());
		//might want to add more precise logic to adjust based on actual window size or try using swffit
		
		if(winWidth < 1200){ 
			$('#outerWrapper').css('margin','0px 0px 0px -95px');
			$('#games').css('margin','0px 0px 0px -250px');
		}else{
			$('#outerWrapper').css('margin','0 auto 0 auto;');
			$('#games').css('margin','0px 0px 0px -310px');
		}
	}

});
