var w = screen.width;
var h = screen.height;

halfWidth = (w/2);
halfHeight = (h/2);

widthAdj = halfWidth - 400;
heightAdj = halfHeight - 250;

function positionLaunchPad() {

	var bw = document.body.clientWidth;
	var bh = document.body.clientHeight;
	//alert("bh ="+bh);
	if(bh <= 0) {
	//alert("bh <= 0");
	var	bh = window.innerHeight;
	}
//alert("here are the values " + document.body.clientWidth + "-" + document.body.clientHeight + "-" + window.innerHeight + "-" + document.documentElement.clientHeight+ "-" + bh)	
	if (document.all) {
		divObj1 = document.all.GreyBackground;
		divObj2 = document.all.TopNav;
		divObj3 = document.all.Toplogo;
		divObj4 = document.all.BottomnavTextArea;
		divObj5 = document.all.LinkHome;
		divObj6 = document.all.BottomNav;
		divObj7 = document.all.GrayTopLine;
		
	} else {
		divObj1 = document.getElementById('GreyBackground');
		divObj2 = document.getElementById('TopNav');	
		divObj3 = document.getElementById('Toplogo');	
		divObj4 = document.getElementById('BottomnavTextArea');
		divObj5 = document.getElementById('LinkHome');
		divObj6 = document.getElementById('BottomNav');
		divObj7 = document.getElementById('GrayTopLine');
	}

	divObj1.style.left = bw / 2 - 350; //this controls the centering of the layer and it should be half of it
	divObj1.style.top = bh / 2 - 300;
	divObj1.style.visibility = 'visible';
	divObj2.style.left = bw / 2 - 362; //this controls the top nav and it should be half of it -- add to move left
	divObj2.style.top = bh / 2 - 253; //add to push up
	divObj2.style.visibility = 'visible';
	divObj3.style.left = bw / 2 - 339; //this controls the centering of the top logo and it should be half of it
	divObj3.style.top = bh / 2 - 294;
	divObj3.style.visibility = 'visible';
	divObj4.style.left = bw / 2 - 350; //this controls the centering of the background image and it should be half of it
	divObj4.style.top = bh / 2 - 215;
	divObj4.style.visibility = 'visible';
	//divObj5.style.left = bw / 2 - 335; //this controls the centering of the link home image and it should be half of it
	//divObj5.style.top = bh / 2 - 296;
	//divObj5.style.visibility = 'visible';
	divObj6.style.left = bw / 2 - 335; //this controls the centering of the link home image and it should be half of it
	divObj6.style.top = bh / 2 + 265; //add to push up --subtract to push down
	divObj6.style.visibility = 'visible';
	divObj7.style.left = bw / 2 - 350; //this controls the centering of the gray top line
	divObj7.style.top = bh / 2 - 270; //subtract to push up --add to push down
	divObj7.style.visibility = 'visible';
	//document.BottomnavTextArea.style.left = document.body.clientWidth / 2 - 350; //this controls the BottomnavTextArea
	//document.BottomnavTextArea.style.top = document.body.clientHeight / 2 - 210;


}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
