<!--
var type = "IE";	//Variable used to hold the browser name
var imageHeight = 511; //Image size
var imageWidth = 643;

browserSniffer();

//Detect browser type
function browserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here
}

//Get window size and "center" the image
function getSize() {
	var myWidth = 0, myHeight = 0, newWidth = 0, newHeight = 0;
	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;
	}
	if(imageWidth < myWidth ) // < >
		newWidth = (myWidth - imageWidth)/2;
	else
		newWidth = myWidth*0.1;
		
	if(imageHeight < myHeight )
		newHeight = ((myHeight - imageHeight)/2)*0.5;
	else
		newHeight = myHeight*0.1;
		
	changeWindowSize(newWidth, newHeight);
}

//Correlate the text with the image
function changeWindowSize(myWidth, myHeight)
{
	if (type=="IE"){ 
		eval("document.all.allElements.style.top=" + myHeight + "");
		eval("document.all.allElements.style.left=" + myWidth + "");
	}
	if (type=="NN"){  
		eval("document.allElements.style.top=" + myHeight + "");
		eval("document.allElements.style.left=" + myWidth + "");
	}
	if (type=="MO" || type=="OP"){
		eval("document.getElementById('allElements').style.top=" + myHeight + "");
		eval("document.getElementById('allElements').style.left=" + myWidth + "");
	}
}
//-->
