// image swapper
function changeImages() 
{
  if (document.getElementById) {
    for (var i = 0; i < changeImages.arguments.length; i += 2) { 
  		document.getElementById(changeImages.arguments[i]).src = eval(changeImages.arguments[i + 1] + ".src"); 
	}
  }
}

// preload level 1 buttons
var aBtn = new Array();
aBtn = ["company","business-sectors","integrated-solutions","careers"];
for (i = 0; i < aBtn.length; i++) {
	eval("menu" + i + "on = new Image();");	eval("menu" + i + "off = new Image();");
	eval("menu" + (i) + "on.src = \"" + folderDepth + "/img/btns/l1_" + aBtn[i] + "_r.gif\";");
	eval("menu" + (i) + "off.src = \"" + folderDepth + "/img/btns/l1_" + aBtn[i] + "_0.gif\";");
}

/* This function should be used for non-navigational image rollover effects */

function changeImage(imageName,newImageSource) {
	if (document.images) {
		document.images[imageName].src = newImageSource;
	}
}

// opens centered window
function popUp(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 3;
var wint = (screen.height - h) / 3;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

