rndNum = Math.round(Math.random()*4)


fbHomeArray = new Array(
	["feature_benefit/nih.html","images/fb_nih1.gif","Feature Benefit: NIH"],
	["feature_benefit/pentagon.html","images/fb_pentagon1.gif","Feature Benefit: Pentagon"],
	["feature_benefit/pia.html","images/fb_pia1.gif","Feature Benefit: Pittsburgh International Airport"],
	["feature_benefit/manufacturing.html","images/fb_manufacturing1.gif","Feature Benefit: Manufacturer"],
	["feature_benefit/sprint.html","images/fb_sprint1.gif","Feature Benefit: Sprint"]
)

fbSubArray = new Array(
	["../feature_benefit/nih.html","../images/fb_sub_nih1.gif","Feature Benefit: NIH"],
	["../feature_benefit/pentagon.html","../images/fb_sub_pentagon1.gif","Feature Benefit: Pentagon"],
	["../feature_benefit/pia.html","../images/fb_sub_pia1.gif","Feature Benefit: Pittsburgh International Airport"],
	["../feature_benefit/manufacturing.html","../images/fb_sub_manufacturing1.gif","Feature Benefit: Manufacturer"],
	["../feature_benefit/sprint.html","../images/fb_sub_sprint1.gif","Feature Benefit: Sprint"]
)

fbHome = '<a href="javascript:openFeature(\'' + fbHomeArray[rndNum][0] + '\')" onmouseover="status=\'' + fbHomeArray[rndNum][2] + '\';return true;" onmouseout="status=\'\'"><img src="' + fbHomeArray[rndNum][1] + '" alt="' + fbHomeArray[rndNum][2] + '" width=557 height=149 border=0></a>';
fbSub = '<a href="javascript:openFeature(\'' + fbSubArray[rndNum][0] + '\')" onmouseover="status=\'' + fbSubArray[rndNum][2] + '\';return true;" onmouseout="status=\'\'"><img src="' + fbSubArray[rndNum][1] + '" alt="' + fbSubArray[rndNum][2] + '" width=171 height=154 border=0></a>';

function openFeature(file) {
	newFeature = window.open(file,"popWindow","width=500,height=420,scrollbars=yes,status=yes,menubar=yes,toolbar=no,directories=no,resizable=yes")
	newFeature.focus()
}


function preloadImages(theArray) {
	eval("useArray = " + theArray + "ImageArray");
	for (x=0;x<useArray.length;x++) {
		eval(useArray[x] + 'off = new Image()');
		eval(useArray[x] + 'off.src = "../images/" + theArray + "_" + useArray[x] + ".gif"');
		eval(useArray[x] + 'on = new Image()');
		eval(useArray[x] + 'on.src = "../images/" + theArray + "_" + useArray[x] + "_over.gif"');
	}
}

function turnon(i,whichLayer) {
	if (document.layers && whichLayer) {
		eval('document["' + whichLayer + '"].document[i].src = ' + i + 'on.src');
	} else {
		document[i].src = eval(i + "on.src");
	}
}

function turnoff(i,whichLayer) {
	if (i != currentSection) {
		if (document.layers && whichLayer) {
			eval('document["' + whichLayer + '"].document[i].src = ' + i + 'off.src');
		} else {
			document[i].src = eval(i + "off.src");
		}
	}
}

function turnonrh(i) {
	if (document.layers) {
		eval('document["rh"].document["rhimage"].src = ' + i + 'on.src');
	} else {
		document['rhimage'].src = eval(i + "on.src");
	}
}

function turnoffrh(i) {
	if (document.layers) {
		eval('document["rh"].document["rhimage"].src = rhimageoff.src');
	} else {
		document['rhimage'].src = rhimageoff.src;
	}
}

navaImageArray = new Array("corpprofile","services","projectsum","partners","bestinclass","qna","clients","strategicsectors");
navbImageArray = new Array("contacts","careers","hireus","home");

menuVposition = new Array (68,88,108,128,148,168,188,208)
menuHposition = new Array (152,152,152,152,152,152,152,152)
