// JavaScript Document



function getWindowWidthHeight(){

	if (navigator.appName.indexOf("Microsoft")!=-1){

		windowwidth=(document.body.offsetWidth)-16;

		windowheight=document.body.offsetHeight;

		}

	else {

		windowwidth=(window.innerWidth)-20;

		windowheight=window.innerHeight;

		}

	//alert("width is "+windowwidth)

}



function middle_position(){

// get the window's width and height	

	getWindowWidthHeight();



// we set the x position   

	/// THIS MUST BE CHANGED (removed) TO HAVE A STATIC LEFT SIDE MENU BAR

	/*

	currentwidth = parseInt(document.getElementById('middle').style.width);

	mid_pos_x=(windowwidth-currentwidth)/2;

	if (mid_pos_x < 0){

		mid_pos_x = 0;

		}

	document.getElementById('middle').style.left=(mid_pos_x+"px");

	*/



/// now we set the y position

	currentheight = 580;

	mid_pos_y=(windowheight-currentheight)/2;

	if (mid_pos_y < 0){

		mid_pos_y = 0;

		}

//	alert("currentheight "+currentheight+", mid_pos_y= "+mid_pos_y);

	document.getElementById('middle').style.top=(mid_pos_y+"px");

	

	netscapebottom();

}



// the bottom text is put in place for netscape

function netscapebottom(){

	if (navigator.appName=="Netscape"){

		document.getElementById('bottomtext').style.bottom=("5px");

	}

}