// JavaScript Document
function allstart(){
if (document.compatMode == "BackCompat") {
  cWidth = document.body.clientWidth;
  cHeight = document.body.clientHeight;
  sWidth = document.body.scrollWidth;
  sHeight = document.body.scrollHeight;
  sLeft = document.body.scrollLeft;
  sTop = document.body.scrollTop;
 }
else { //document.compatMode == "CSS1Compat"
  cWidth = document.documentElement.clientWidth;
  cHeight = document.documentElement.clientHeight;
  sWidth = document.documentElement.scrollWidth;
  sHeight = document.documentElement.scrollHeight;
  sLeft = document.documentElement.scrollLeft == 0 ? document.body.scrollLeft : document.documentElement.scrollLeft;
  sTop = document.documentElement.scrollTop == 0 ? document.body.scrollTop : document.documentElement.scrollTop;
}
allstart2();
}

function allstart2(){
	var adjobj2=document.getElementById("center");
	if (cWidth<=1280){
		
		adjobj2.style.width="1280px";
		adjobj2.style.marginLeft="-640px";
		adjobj2.style.marginRight="-640px";
		if(cWidth<1000){
			adjobj2.style.marginLeft="-"+cWidth/2+"px";
			adjobj2.style.marginTop="-"+sHeight/2+"px";
			adjobj2.style.marginBottom="-"+sHeight/2+"px";
			}
		}
		else{
		adjobj2.style.width=cWidth+"px";
		adjobj2.style.marginLeft="-"+cWidth/2+"px";
		adjobj2.style.marginRight="-"+cWidth/2+"px";
		adjobj2.style.marginTop="-300px";
		adjobj2.style.marginBottom="-300px";
			}

	
	

}

