<!--

/////////////////////////////////////////////////////////////MENU MAKER
var maxbuttons = 10;
var maxparents = 7;
var bgimage;
var temp;

function makeMenu() {
	if (document.getElementById("primary_nav") != -1) {
	var parent = new Array(maxparents);
	for (i=1; i<=maxparents; i++) {
		parent[i] = new Array();
		parent[i].title = new Array();
		parent[i].url = new Array();
		parent[i].child = new Array(maxbuttons);
		var temp = i;
		for (k=1; k<=maxbuttons; k++) {
			parent[temp].child[k + "url"] = new Array();
			parent[temp].child[k + "text"] = new Array();
		}
	}
	
	parent[1].title = "capabilities.";
	parent[2].title = "contact us.";
	parent[3].title = "our promise.";
	parent[4].title = "solution stories.";
	parent[5].title = "spotlight products.";
	parent[6].title = "company profile.";
	parent[7].title = "home.";
	
	parent[1].url = "capabilities_printing.htm";
	parent[2].url = "contact_us.htm";
	parent[3].url = "ourpromise.htm";
	parent[4].url = "solution_home.htm";
	parent[5].url = "solution_home.htm";
	//parent[5].url = "SpotlightIndex.php";
	parent[6].url = "profile_history.htm";
	parent[7].url = "index.htm";
	
	parent[1].child["1text"] =  "printing.";
	parent[1].child["2text"] =  "graphics.";
	parent[1].child["3text"] =  "technology group.";
	parent[2].child["1text"] =  "credit application.";
	parent[2].child["2text"] =  "art specifications.";
	parent[2].child["3text"] =  "employment.";
	parent[6].child["1text"] =  "markets.";
	parent[6].child["2text"] =  "community.";
	
	parent[1].child["1url"] =  "capabilities_printing.htm";
	parent[1].child["2url"] =  "capabilities_prepress.htm";
	parent[1].child["3url"] =  "capabilities_techgroup.htm";
	parent[2].child["1url"] =  "contact_credit.htm";
	parent[2].child["2url"] =  "contact_specs.htm";
	parent[2].child["3url"] =  "contact_employment.htm";
	parent[6].child["1url"] =  "profile_markets.htm";
	parent[6].child["2url"] =  "profile_community.htm";
	
	var total = new Array();
	for (i=1; i<=maxparents; i++) {
		temp = i;
		total[i] = new Array();
		for (k=1; k<=maxbuttons; k++) {
			if (parent[temp].child[k + "text"] != 0) {
				total[temp] = eval(total[temp]) + 1;
			}
		}
	}
	
	
	var parentString = new Array(maxparents);
	for (i=1; i<=maxparents; i++) {
		parentString[i] = new Array();
		parentString[i] = "<span class='menu_parentwrapper'><a id='menu" + i + "_parent' name='" + i + "' class='buttonBlue' onmouseover='over(this)' onmouseout='out(this)' onclick='hitted(this)' href='" + parent[i].url + "'>" + parent[i].title + "</a><div id='hider_" + i + "' class='menu_childwrapper'>";
		var temp = i;
		for (k=1; k<=total[temp]; k++) {
			parentString[temp] = parentString[temp] + "<a id='menu" + temp + "_child" + k + "' class='buttonBlue' onmouseover='over(this)' onmouseout='out(this)' onclick='hitted(this)' href='" + parent[temp].child[k +"url"] + "'>" + parent[temp].child[k +"text"] + "</a>";
		}
		parentString[i] = parentString[i] + "</div></span>";
	}
	var navContent = parentString.toString();
	navContent = navContent + "<span class='iemachack'>&nbsp;</span>"
	var decommify = /,/g;
	document.getElementById("primary_nav").innerHTML = navContent.replace(decommify,"");
	
	
	if (bgimage != null) { 
		for (i=1; i<=maxparents; i++) {
			document.getElementById("menu" + i + "_parent").style.backgroundImage = "url(" + bgimage + ")";
			temp = i;
			for (k=1; k<=total[temp]; k++) {
				document.getElementById("menu" + i + "_child" + k).style.backgroundImage = "url(" + bgimage + ")";
			}
		}
	}
}
}
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////MENU ENGINE
function delay_of_game() {
	document.getElementById("hider_" + activeMenu).style.visibility = "hidden";
}
function init_to() {
	timer = setTimeout("delay_of_game()", 700);
}
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////BUTTON FUNCTIONS
var origin;
var activeMenu;
var timer;

function over(which) {
	if (which.id.indexOf("parent") != -1) {
		activeMenu = which.name;
		for (i=1; i<=maxparents; i++) {
			if (i != activeMenu) {document.getElementById("hider_" + i).style.visibility = "hidden";}
		}
		hider = "hider_" + which.name;
		document.getElementById(hider).style.visibility = "visible";
	}
	if (timer) {clearTimeout(timer);}	
	origin = which.style.backgroundImage;
	which.style.backgroundImage = "url(_images/button_over.gif)";
}
function out(which) {
	which.style.backgroundImage = origin;
	init_to();
}
function hitted(which) {
	which.style.backgroundImage = origin;
	init_to();
}
function gotourl(where, opennew) {
	if (opennew == true) {
		window.open(where, "child");
	}else{
		window.location.href = where;
	}
}
/////////////////////////////////////////////////////////////////////////////


function showlayer(which) {
	document.getElementById(which).style.visibility = "visible";
	document.getElementById(which).style.overflow = "auto";
}
function hidelayer(which) {
	document.getElementById(which).style.visibility = "hidden";
	document.getElementById(which).style.overflow = "hidden";
}




//-->