// JavaScript Document

var myWidth = 0;
var myHeight = 0;
var blockwidth=100;
		function reportSize() {
		  
		  if( typeof( window.innerWidth ) == 'number' ) {
		    //Non-IE
		    myWidth = window.innerWidth;
		    myHeight = window.innerHeight;
		  } else {
		    if( document.documentElement &&
		        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		      //IE 6+ in 'standards compliant mode'
		      myWidth = document.documentElement.clientWidth;
		      myHeight = document.documentElement.clientHeight;
		    } else {
		      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		        //IE 4 compatible
		        myWidth = document.body.clientWidth;
		        myHeight = document.body.clientHeight;
		      }
		    }
		  }
		}
		
		function doTest(){
			reportSize();
			
			//document.getElementById("leftside").style.width='100px';
//			document.getElementById("rightside").style.width='100px';
			//document.getElementById("currentvalues").innerHTML = "Current inner: "+myWidth+"*"+myHeight;
			//document.getElementById("leftside").style.top = '0px';
//			document.getElementById("rightside").style.top = '0px';
//			document.getElementById("leftside").style.width = '100px';
//			document.getElementById("rightside").style.width = '100px';
			//if(myWidth<1188)
//			{
				//document.getElementById("leftside").style.right ='auto';
//				document.getElementById("leftside").style.left ='0px';
//				document.getElementById("rightside").style.left ='1080px';
//				document.getElementById("rightside").style.right ='auto';
//				document.body.style.left = (((document.body.clientWidth)/2)-1024/2);
//				document.body.style.right='auto';
				
	//		}else{
				//document.getElementById("leftside").style.left = '0px';
//				document.getElementById("leftside").style.right = 'auto';
//				document.getElementById("rightside").style.right = '0px';
//				document.getElementById("rightside").style.left='auto';
				
		//	}
			scrollToWindow();
			
				$("#contentsSmall").height($(document).height());

			
			if(myWidth>=1024)
			{
				document.body.style.overflowX = 'hidden';
				document.body.style.overflowY = 'visible';
				
				
			}else{
				document.body.style.overflowX = 'visible';
				document.body.style.overflowY = 'visible';
				
			}
		}
		function init(){
			window.onresize = doTest;
			doTest();
		}
		
		function scrollToWindow()
		{
		  if(myWidth<1188)
		  {
			  var goto=(1188-myWidth)/2;
			 window.scrollTo(goto,0); 
			 }else{
			  window.scrollTo(0,0);
			  }
		   
		}

		