<!--
var cBlack = "#000000";
var cRed = "#ff0000";
var cLightBlue = "#d2f0ff";
var cSkyBlue = "#32d2ff";

var bHeadingLoaded = false;
var externalSite;
var asCommonNames = new Array("Heading.service", "Heading.product", "Heading.search", "Heading.contact", "leftBar.home", "leftBar.download", "leftBar.price", "leftBar.order", "leftBar.trouble");

var asLocations = new Array(5);
asLocations[0] = "Services/services.asp";
asLocations[1] = "Products/products.asp";
asLocations[2] = "Search/search.asp";
asLocations[3] = "Order/contact.asp";

function change4ObjectColor(sObject, sColor){
	var sObjectWithColor = sObject + "='" + sColor + "'";
	for(i=0; i<4; i++){
		eval(asCommonNames[i] + sObjectWithColor);
	}
}

function changeAllMenuToBaseColors(){
	if(bHeadingLoaded){
		//Example: product.style.backgroundColor=cLightBlue;
		change4ObjectColor(".style.backgroundColor", cLightBlue);
		//Example: productFont=cBlack;
		change4ObjectColor("Font", cBlack);
		//Example: productA.style.color=cBlack;
		change4ObjectColor("A.style.color", cBlack);
	}
}

function changeSelectedMenuColor(iPos){
	var sCommonName = asCommonNames[iPos];
	try{
		eval(sCommonName + ".style.backgroundColor='" + cSkyBlue + "'");
		eval(sCommonName + "Font='" + cRed + "'");
		eval(sCommonName + "A.style.color='" + cRed + "'");
	}catch(e){}
}

function changeMenuColors(iPos)
{	
	changeAllMenuToBaseColors();
	changeLeftLinkColorBack();
	if(iPos != ""){
		if(iPos < 4){
			changeSelectedMenuColor(iPos);
		}
		else{
			changeLeftLinkColor(iPos)
		}
	}
}

function showPrice(strText){
	try{
		Main.price.style.visibility = "";
		Main.lblPrice.innerHTML = strText;
	}catch(e){}
}

function hidePrice(){
	try{
		Main.price.style.visibility = "hidden";
		Main.lblPrice.innerHTML = "<font color=blue><b><u>Pricing</u></b></font>";
	}catch(e){}
}

function changeLeftLinkColor(iPos)
{
	//changeAllMenuToBaseColors();
	//changeLeftLinkColorBack()
	try{
		eval(asCommonNames[iPos] + "Color= '" + cLightBlue + "'");
		eval(asCommonNames[iPos] + "A.style.color= '" + cLightBlue + "'");
	}catch(e){}
}

function changeLeftLinkColorBack()
{
	try{
		leftBar.homeA.style.color=cBlack;
		leftBar.downloadA.style.color=cBlack;
		leftBar.troubleA.style.color=cBlack;
		leftBar.priceA.style.color=cBlack;
		leftBar.orderA.style.color=cBlack;
		leftBar.homeColor=cBlack;
		leftBar.downloadColor=cBlack;
		leftBar.troubleColor=cBlack;
		leftBar.priceColor=cBlack;
		leftBar.orderColor=cBlack;
	}catch(e){}
}

function setHeadingLoaded(bValue){
	bHeadingLoaded = bValue;
}

function showContent(ID){
	with(top.content.fContent){
		if(action == "order.aspx"){
			var userWantsToMoveAway = confirm("You are in the process of ordering project(s)/service(s).  If you move away, all your order information will be lost.  Are you sure you want to move away?  Click OK to move away.");
			if(userWantsToMoveAway == false){
				return;
			}else{action = "content.aspx";}
		}
		sectionID.value = ID;
		submit();
	}
}

function showContent2(sectionID, orderID){
	top.content.fContent.sectionID.value = sectionID;
	top.content.fContent.orderID.value = orderID;
	top.content.fContent.submit();
}

function goToExternalSite(externalURL){
	try{
		externalSite.focus();
		if(externalSite.location.href != externalURL){
			externalSite.location.href = externalURL;
		}
	}catch(e){
		externalSite = window.open(externalURL,"_external","location=1, menubar=1, resizable=1, scrollbars=1, status=1, titlebar=1, toolbar=1, top=25");
	}
}
//-->
