var myWidth = 0, myHeight = 0;
function centerMe(me){
	if (document.all){ // msie browsers
		elm = document.all[me];
	} else if (document.layers){
		elm = document.layers[me];
	} else if (document.getElementById){
		elm = document.getElementById(me);
	}
	eW=950;
	eH=700;
	  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;
	  }
	
	//calculate positions:
	xPos = Math.max(myWidth/2-eW/2,0);
	yPos = Math.max(myHeight/2-eH/2,0);
	//xPos=(xPos>0) ? xPos : 0;
	//yPos=(yPos>0) ? yPos : 0;
	
	//move layers to the above positions:
	if (document.layers){ // Netscape 4
		elm.left = xPos;
		elm.top = yPos;
	} else if (document.all){ // MSIE
		elm.style.pixelLeft = xPos;
		elm.style.pixelTop = yPos;
	} else if (document.getElementById){ //NS6
		elm.style.left = xPos + "px";
		elm.style.top = yPos + "px";
	}

}