if (document.images) {
	section01off = new Image (0,0);
	section02off = new Image (0,0);
	section03off = new Image (0,0);
	section04off = new Image (0,0);
	section05off = new Image (0,0);
	section06off = new Image (0,0);
	section07off = new Image (0,0);

	section01on = new Image (0,0);
	section02on = new Image (0,0);
	section03on = new Image (0,0);
	section04on = new Image (0,0);
	section05on = new Image (0,0);
	section06on = new Image (0,0);
	section07on = new Image (0,0);
	
	section01off.src = "images/menuoff_01.gif";
	section02off.src = "images/menuoff_02.gif";
	section03off.src = "images/menuoff_03.gif";
	section04off.src = "images/menuoff_04.gif";
	section05off.src = "images/menuoff_05.gif";
	section06off.src = "images/menuoff_06.gif";
	section07off.src = "images/menuoff_07.gif";

	section01on.src = "images/menuon_01.gif";
	section02on.src = "images/menuon_02.gif";
	section03on.src = "images/menuon_03.gif";
	section04on.src = "images/menuon_04.gif";
	section05on.src = "images/menuon_05.gif";
	section06on.src = "images/menuon_06.gif";
	section07on.src = "images/menuon_07.gif";
	
}

function act(imgName) {

	if (document.images) {
		document[imgName].src = eval(imgName + 'on.src');
	}
   
}

function inact(imgName) {

	if (document.images) {
		document[imgName].src = eval(imgName + 'off.src');
	}
   
}

function openpage(pagename, dimensions) {

	newWindow = window.open(pagename, "", dimensions);

}

function showMenu(object) {
	document.getElementById(object).style.visibility = 'visible';
}

function hideMenu(object) {
	document.getElementById(object).style.visibility = 'hidden';
}

// check browser window sizes

function getBrowserType() {

	var ua = navigator.userAgent.toLowerCase();
	var os,browser,version,data;

	if (detect('konqueror')) {browser = "Konqueror"; os = "Linux";}
	else if (detect('safari')) browser = "Safari";
	else if (detect('omniweb')) browser = "OmniWeb";
	else if (detect('firefox')) browser = "FireFox";
	else if (detect('opera')) browser = "Opera";
	else if (detect('webtv')) browser = "WebTV";
	else if (detect('icab')) browser = "iCab";
	else if (detect('msie')) browser = "IE"; // Internet Explorer
	else if (!detect('compatible')) {browser = "Netscape"; version = ua.charAt(8);} // Netscape Navigator
	else browser = "An unknown browser";

	if (!version) version = ua.charAt(stringposition + data.length);

	function detect(text) {
	   stringposition = ua.indexOf(text) + 1;
	   data = text;
	   return stringposition;
	}

	return browser;

}

function getScreenSize() {
	var wHeight, wWidth, sHeight, sWidth, bitDepth;

	browser = getBrowserType();

	if (browser == "IE") { // document.all
		//alert('IE');
		wHeight = document.body.clientHeight;
		wWidth = document.body.clientWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth;
	} else if (browser == "Netscape") { // document.layers
		//alert('Netscape');
		wHeight = window.innerHeight;
		wWidth = window.innerWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth;
	} else if (browser == "FireFox") {
		//alert('FireFox');
		wHeight = document.body.clientHeight;
		wWidth = document.body.clientWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth;
	} else {
		//alert('unknown');
		wHeight = document.body.clientHeight;
		wWidth = document.body.clientWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth;		
	}
	
	document.getElementById('corporateMenu').style.left = (wWidth - 675) / 2 + 5 + 'px';
	document.getElementById('solutionsMenu').style.left = (wWidth - 675) / 2 + 94 + 'px';
	document.getElementById('industriesMenu').style.left = (wWidth - 675) / 2 + 178 + 'px';
	document.getElementById('servicesMenu').style.left = (wWidth - 675) / 2 + 269 + 'px';
	document.getElementById('trainingMenu').style.left = (wWidth - 675) / 2 + 351 + 'px';
}
