// JavaScript Document

	function getHeight()
	{
		var height = window.innerHeight ;
		
		//height = parseInt(height) ;
		
		if((height == undefined)||(height <= 0))
		{
			height = document.documentElement.clientHeight ;
			height = height /*+20*/ ;
		}
		
		return height ;
	}
	
	function getWidth()
	{
		var width = window.innerWidth ;
		
		//height = parseInt(height) ;
		
		if((width == undefined)||(width <= 0))
		{
			width = document.documentElement.clientWidth ;
		}
		
		return width ;
	}

	function resizeMe()
	{
		var width = getWidth() ;
		var height = getHeight() ;
		var margin = parseInt((height - 720)/2) ;
		var margin2 = parseInt((width - 965)/2) ;
		var pad = parseInt(720 - height )+20 ;
		
		var isMSIE = /*@cc_on!@*/false;

		
		var pad2 = parseInt(965 - width ) ;
		
		//alert(height) ;

		if((height >= 720)&&(width >= 965))
		{
			document.getElementsByTagName('html')[0].style.overflow = "hidden" ;
		}
		
		else
		{
			document.getElementsByTagName('html')[0].style.overflow = "scroll" ;
		}


		if(width >= 965)
		{
			document.getElementById("container").style.marginLeft = (margin2)+"px"  ;
			document.getElementById("container").style.left = 0 ;
			document.getElementById("bg").style.width = "100%" ;
			document.getElementById("bg").style.paddingLeft = 0 ;
		}
		
		else
		{
			document.getElementById("container").style.marginLeft = 0 ;
			document.getElementById("container").style.left = "20px" ;
			document.getElementById("bg").style.left = (pad2)+"px" ;
			document.getElementById("bg").style.width = "995px" ;
			document.getElementById("container").style.padding = 0 ;
		}
		
		if(height >= 720)
		{
			
			if(isMSIE == false)
			{
				document.getElementById("container").style.marginTop = (margin-10)+"px"  ;
			}
			else
			{
				document.getElementById("container").style.marginTop = (margin+0)+"px"  ;
			}
			
			document.getElementById("container").style.top = 0 ;
			document.getElementById("bg").style.paddingTop = 0 ;


			var height = window.innerHeight ;
		
			//height = parseInt(height) ;
			
			if((height != undefined)&&(height > 0))
			{
				document.getElementById("container").style.marginTop = margin+"px" ;
			}

		}
		
		else
		{
			

			var height = window.innerHeight ;
			
			//height = parseInt(height) ;
			
			if((height == undefined)||(height <= 0))
			{
				document.getElementById("container").style.marginTop = "10px" ;
			}
			else
			{
				if(width < 965)
				{
					document.getElementById("container").style.marginTop = "0px" ;
				}
				if(width >= 965)
				{
					document.getElementById("container").style.marginTop = "0px" ;
				}
			}
				document.getElementById("container").style.top = 0 ;
				document.getElementById("bg").style.paddingTop = (pad)+"px" ;
				document.getElementById("container").style.padding = 0 ;
				
				
		}
		
	}

