arrowOn		= new Image;	arrowOn.src	= "http://www.ironmountain.com/images/nav/arrowOn.gif";
arrowOff	= new Image;	arrowOff.src	= "http://www.ironmountain.com/images/nav/arrowOff.gif";
arrowDown	= new Image;	arrowDown.src	= "http://www.ironmountain.com/images/nav/arrowDown.gif";

// main nav styles
var mainNavBgColor = '000000';
var mainNavColor = 'ffffff';
var mainNavRollover = 'cc6600';

var mainFontSize = '11px';
var subFontSize = '11';

// rollover
var subNavColor = '000000';
var subNavBgColor = 'ededee';
var subNavBgRollover = 'd5d3bf';

// Main Navigation
mainNavs = new Array();
mainNavs[0] = new menuItem('HOME','http://www.ironmountain.com/index.asp');
mainNavs[1] = new menuItem('|&nbsp;&nbsp;SERVICES','http://www.ironmountain.com/services/');
mainNavs[2] = new menuItem('|&nbsp;&nbsp;SOLUTIONS','http://www.ironmountain.com/solutions/');
mainNavs[3] = new menuItem('|&nbsp;&nbsp;KNOWLEDGE CENTER','http://imknowledgecenter.com/default.asp');
mainNavs[4] = new menuItem('|&nbsp;&nbsp;PARTNERS','http://www.ironmountain.com/partners/');
mainNavs[5] = new menuItem('|&nbsp;&nbsp;COMPANY','http://www.ironmountain.com/company/');
mainNavs[6] = new menuItem('|&nbsp;&nbsp;INVESTORS','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-irhome');
mainNavs[7] = new menuItem('|&nbsp;&nbsp;CONTACT US','http://www.ironmountain.com/contact/');
mainNavs[8] = new menuItem('|&nbsp;&nbsp;LOCATIONS','http://www.ironmountain.com/locations/');

// SERVICES MENU
sub1 = new Array();
	sub1[0] = new menuItem('Services Overview','http://www.ironmountain.com/services/');
	sub1[1] = new menuItem('Records Management','http://www.ironmountain.com/records/',1,1);
	sub1[2] = new menuItem("Secure Shredding","http://www.ironmountain.com/records/shred/");
	sub1[3] = new menuItem('Data Protection &amp; Recovery','http://www.ironmountain.com/dataprotection/',1,2);
	sub1[4] = new menuItem('Intellectual Property Management','http://www.ironmountain.com/ipm/',1,3);
	sub1[5] = new menuItem('Digital Services &amp; Software','http://www.ironmountain.com/digital/',1,4);
	sub1[6] = new menuItem("Film &amp; Sound Archiving","http://www.ironmountain.com/filmsound/");
	sub1[7] = new menuItem("Health Information Services","http://www.ironmountain.com/records/his/");
	sub1[8] = new menuItem('Fullfillment Services','http://www.ironmountain.com/fulfillment/',1,5);
	sub1[9] = new menuItem('Video Tours','http://www.ironmountain.com/services/tours/');

// SOLUTIONS MENU
sub2 = new Array();
	sub2[0] = new menuItem('Solutions Overview','http://www.ironmountain.com/solutions/');
	sub2[1] = new menuItem('Business Solutions','http://www.ironmountain.com/solutions/business/',1, 6);
	sub2[2] = new menuItem('Compliant Records Management','http://www.ironmountain.com/crm/');
	sub2[3] = new menuItem('Industry Solutions','http://www.ironmountain.com/solutions/industry/',1, 7);
	sub2[4] = new menuItem('Government Solutions','http://www.ironmountain.com/solutions/gov/',1, 8);
	sub2[5] = new menuItem('Small &amp; Home Office Solutions','http://www.ironmountain.com/solutions/soho/');
	sub2[6] = new menuItem('Small &amp; Medium Business Solutions','http://www.ironmountain.com/solutions/smb/');

// KNOWLEDGE CENTER
sub3 = new Array();
	sub3[0] = new menuItem('Knowledge Center Overview','http://imknowledgecenter.com/default.asp');
	sub3[1] = new menuItem('Records Management & Compliance','http://imknowledgecenter.com/topic.asp?pId=1&hId=');
	sub3[2] = new menuItem('Data Protection & Recovery','http://imknowledgecenter.com/topic.asp?pId=2&hId=');
	sub3[3] = new menuItem('Litigation Readiness','http://imknowledgecenter.com/topic.asp?pId=3&hId=');
	sub3[4] = new menuItem('Privacy & Compliance','http://imknowledgecenter.com/topic.asp?pId=4&hId=');
	sub3[5] = new menuItem('Intellectual Property Protection','http://imknowledgecenter.com/topic.asp?pId=5&hId=');
	sub3[6] = new menuItem('eDiscovery Rules','http://www.ironmountain.com/knowledge/ediscovery/index.asp');
	sub3[7] = new menuItem('Regulations & Standards','http://imknowledgecenter.com/document.asp?cId=33&pId=1&tyId=1');

// PARTNERS
sub4 = new Array();
	sub4[0] = new menuItem('Partner Program','http://www.ironmountain.com/partners/');
	sub4[1] = new menuItem('Our Partners','http://www.ironmountain.com/partners/list.asp');
	sub4[2] = new menuItem('Partner Inquiry','http://www.ironmountain.com/partners/signup.asp');
    sub4[3] = new menuItem('Partner Portal Login','http://www.ironmtnpartners.com/index.php',null,0,0,0,1);

// COMPANY
sub5 = new Array();
	sub5[0] = new menuItem('Overview','http://www.ironmountain.com/company/');
	sub5[1] = new menuItem('Awards','http://www.ironmountain.com/company/awards.asp');
	sub5[2] = new menuItem('News','http://www.ironmountain.com/news/');
	sub5[3] = new menuItem('Careers','http://www.ironmountain.com/careers/');
	sub5[4] = new menuItem('Events Calendar','http://www.ironmountain.com/events/');
	sub5[5] = new menuItem('Newsletters','http://www.ironmountain.com/newsletters/');

// INVESTORS
sub6 = new Array();
	sub6[0] = new menuItem('Investor Overview','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-irhome');
	sub6[1] = new menuItem('Analyst Coverage','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-analysts');
	sub6[2] = new menuItem('Calendar of Events','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-calendar');
	sub6[3] = new menuItem('Presentations','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-presentations');
	sub6[4] = new menuItem('Annual Report','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-reportsannual');
	sub6[5] = new menuItem('SEC Filings','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-sec');
	sub6[6] = new menuItem('Corporate Governance','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-govhighlights');
	sub6[7] = new menuItem('Stock Quote','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-stockquote');
	sub6[8] = new menuItem('Info Request','http://investors.ironmountain.com/phoenix.zhtml?c=91787&p=irol-inforeq_landing');

// CONTACT US
sub7 = new Array();
//	sub7[0] = new menuItem('Pay Your Bill Online','https://payments.ironmountain.com/');
	sub7[0] = new menuItem('Contact Sales','http://www.ironmountain.com/contact/contact_us.asp');
	sub7[1] = new menuItem('Contact Support','http://www.ironmountain.com/support/');
	sub7[2] = new menuItem('General Inquiries','http://www.ironmountain.com/contact/contact_us.asp');
	sub7[3] = new menuItem('Pay Your Bill Online','https://payments.ironmountain.com/');

//HOME
sub0 = new Array();

//LOCATIONS
sub8 = new Array();

// total number of subsub menus
totalSubSubs = 8;

// RECORDS MANAGEMENT SUB MENU
subsub1 = new Array();
	subsub1[0] = new menuItem("Records Management &amp; Storage","http://www.ironmountain.com/records/rms/",0,0,(masterTop +20),500);
	subsub1[1] = new menuItem("Document Management Solutions","http://www.ironmountain.com/records/doc/",0,0,71,500);
	subsub1[2] = new menuItem("Archiving and Discovery","http://www.ironmountain.com/records/erecords/",0,0,71,500);
	subsub1[3] = new menuItem("eDiscovery &amp; Litigation","http://www.ironmountain.com/records/elegal/",0,0,71,500);
	subsub1[4] = new menuItem("Records Management Consulting","http://www.ironmountain.com/records/rmsconsult/",0,0,71,500);
totalSubSubSubs = 0;

// Data Protection &amp; Recovery SUB MENU
subsub2 = new Array();
  subsub2[0] = new menuItem("Offsite Tape Vaulting","http://www.ironmountain.com/dataprotection/vault/",0,0,160,568);
  subsub2[1] = new menuItem("PC Data Protection","http://www.ironmountain.com/dataprotection/pc/",0,0,71,568);
  subsub2[2] = new menuItem("Server Data Protection","http://www.ironmountain.com/dataprotection/server/",0,0,71,568);
  subsub2[3] = new menuItem("DataDefense","http://www.ironmountain.com/dataprotection/defense/",0,0,71,568);
  subsub2[4] = new menuItem("Email Continuity","http://www.ironmountain.com/dataprotection/email/",0,0,71,568);
  subsub2[5] = new menuItem("Disaster Recovery Support Services","http://www.ironmountain.com/dataprotection/disaster/",0,0,71,568);
  subsub2[6] = new menuItem("Data Center Storage Products","http://www.ironmountain.com/dataprotection/products/",0,0,71,568);
totalSubSubSubs = 0;

// Intellectual Property Managment SUB MENU
subsub3 = new Array();
	subsub3[0] = new menuItem("Technology Escrow","http://www.ironmountain.com/ipm/escrow/",0,0,180,568);
	subsub3[1] = new menuItem("Domain Name Management","http://www.ironmountain.com/ipm/dns/",0,0,71,568);
totalSubSubSubs = 0;

// Digital Services &amp; Software SUB MENU
subsub4 = new Array();
  subsub4[0] = new menuItem("Archiving and Discovery","http://www.ironmountain.com/digital/erecords/",0,0,210,568);
  subsub4[1] = new menuItem("PC Data Protection","http://www.ironmountain.com/digital/pc/",0,0,71,568);
  subsub4[2] = new menuItem("Server Data Protection","http://www.ironmountain.com/digital/server/",0,0,71,568);
  subsub4[3] = new menuItem("DataDefense","http://www.ironmountain.com/digital/defense/",0,0,71,568);
  subsub4[4] = new menuItem("Email Management","http://www.ironmountain.com/digital/email/",0,0,71,568);
  subsub4[5] = new menuItem("Protect Small Business","http://backup.ironmountain.com/smallbusiness/index.asp",0,0,71,568);
  subsub4[6] = new menuItem("Protect Home Office","http://backup.ironmountain.com/home/index.asp",0,0,71,568);
totalSubSubSubs = 0;

// COMAC FULFILLMENT SERVICES SUB MENU
subsub5 = new Array();
	subsub5[0] = new menuItem("Welcome","/fulfillment/",0,0,270,568);
	subsub5[1] = new menuItem("About Us","/fulfillment/about.asp",0,0,71,568);
	subsub5[2] = new menuItem("Fulfillment Solutions","/fulfillment/solutions.asp",0,0,71,568);
	subsub5[3] = new menuItem("Technology","/fulfillment/technology.asp",0,0,71,568);
	subsub5[4] = new menuItem("Resources","/fulfillment/resources.asp",0,0,71,568);
	subsub5[5] = new menuItem("Locations/Contacts","/fulfillment/contacts.asp",0,0,71,568);
totalSubSubSubs = 0;

// BUSINESS SOLUTIONS SUB MENU
subsub6 = new Array();
	subsub6[0] = new menuItem("Email Management","http://www.ironmountain.com/solutions/business/email/",0,0,(masterTop +18),700);
	subsub6[1] = new menuItem("Document Management Solutions","http://www.ironmountain.com/solutions/business/doc/",0,0,71,700);
	subsub6[2] = new menuItem("Information Privacy","http://www.ironmountain.com/solutions/business/privacy/",0,0,71,700);
//	subsub6[3] = new menuItem("Records Management Compliance","http://www.ironmountain.com/solutions/business/records/",0,0,71,700);
	subsub6[3] = new menuItem("Remote Office &amp; PC Data Protection","http://www.ironmountain.com/solutions/business/protection/",0,0,71,700);
	subsub6[4] = new menuItem("Retention &amp; Destruction Management","http://www.ironmountain.com/solutions/business/retention/",0,0,71,700);
totalSubSubSubs = 0;

// INDUSTRY SOLUTIONS
subsub7 = new Array();
	subsub7[0] = new menuItem("Energy","http://www.ironmountain.com/solutions/industry/energy/",0,0,(masterTop +63),700);
	subsub7[1] = new menuItem("Entertainment","http://www.ironmountain.com/solutions/industry/entertainment/",0,0,71,700);
	subsub7[2] = new menuItem("Healthcare","http://www.ironmountain.com/solutions/industry/healthcare/",0,0,71,700);
	subsub7[3] = new menuItem("Legal","http://www.ironmountain.com/solutions/industry/legal/",0,0,71,700);
	subsub7[4] = new menuItem("Retail","http://www.ironmountain.com/solutions/industry/retail/",0,0,71,700);
totalSubSubSubs = 0;

// GOVERNMENT SOLUTIONS
subsub8 = new Array();
	subsub8[0] = new menuItem("Government Consulting Services","http://www.ironmountain.com/solutions/gov/gconsult.asp",0,0,(masterTop +83),700);
	subsub8[1] = new menuItem("Records Management","http://www.ironmountain.com/solutions/gov/rm.asp",0,0,71,700);
	subsub8[2] = new menuItem("Data Protection and Recovery","http://www.ironmountain.com/solutions/gov/dpr.asp",0,0,71,700);
	subsub8[3] = new menuItem("Emergency Response and Logistics Support","http://www.ironmountain.com/solutions/gov/emer.asp",0,0,71,700);
	subsub8[4] = new menuItem("Ease of Procurement","http://www.ironmountain.com/solutions/gov/procure.asp",0,0,71,700);
totalSubSubSubs=0;

ns = (document.layers)? true:false
ie = (document.all)? true:false
ns6 = (navigator.appName == "Netscape" && document.getElementById)? true:false
winIE5 = false;
macIE = false;
macNS = false;
var browserString = navigator.appVersion;
if (navigator.userAgent.indexOf("Win") > -1 && navigator.appName == "Microsoft Internet Explorer"){
	if (parseInt(browserString.charAt(22)) < 6){
		winIE5 = true;
	}
}
if (navigator.userAgent.indexOf("Mac") > -1 && navigator.appName == "Microsoft Internet Explorer"){
	macIE = true;
}else if(navigator.userAgent.indexOf("Mac") > -1 && navigator.appName != "Microsoft Internet Explorer"){
	macNS = true;
}

function hide(id){
	try
	{ 
		if (ns) document.layers[id].visibility = "hide"
		if (ns6){
			var obj = eval("document.getElementById('" + id + "')")
			obj.style.visibility = "hidden"
		}
		else if (ie) {
			if (document.all[id] != undefined){
			document.all[id].style.visibility = "hidden";}
			}
	}catch (e){}
}

function show(id){
	try
	{ 
		if (ns) document.layers[id].visibility = "show"
		if (ns6){
			var obj = eval("document.getElementById('" + id + "')")
			obj.style.visibility = "visible"
		}
		else if (ie) {
			if (document.all[id] != undefined){
			document.all[id].style.visibility = "visible";}
			}
	}catch (e){}
}

loaded = false;
function findPosX(obj){
	var curleft = 0;
	if (document.getElementById || document.all){
		while (obj.offsetParent){
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
		return curleft;
	}
}

function findPosY(obj){
	var curtop = 0;
	if (document.getElementById || document.all){
		while (obj.offsetParent){
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
		return curtop;
	}else{
		curtop += obj.y;
		return curtop;
	}
}

function doMainNav(theIndex){
	for(i = 1; i <= (mainNavs.length - 1); i ++){
		if(i == theIndex){
			show("menu" + i);
			show("bigHide");
			show("bigHide2");
			for(m = 1; m <= totalSubSubs; m ++){
				hide("menuSub" + m);
			}

		var obj = eval("document.getElementById('butID" + i + "')")
		obj.style.backgroundColor='000000';

		//Main nav Font rollover color
		obj.style.color = mainNavRollover;
		obj.style.fontSize = mainFontSize;
		}else{
			hide("menu" + i);
			var obj = eval("document.getElementById('butID" + i + "')")
			obj.style.backgroundColor = mainNavBgColor;
			obj.style.fontSize = mainFontSize;

			//Main nav Font base color
			obj.style.color = mainNavColor;
		}
	}
	if(theIndex == 0){
		//home menu
		//Main nav Font rollover color
		var objHome = eval("document.getElementById('butID" + 0 + "')")
		objHome.style.backgroundColor='000000';
		objHome.style.color = mainNavRollover;
		objHome.style.fontSize = mainFontSize;
	}

	if(theIndex == -1){
		for(m = 1; m <= totalSubSubs; m ++){
			hide("menuSub" + m);
		}
		doSubNav(-1, 1, -1, -1);
		for(m = 1; m <= totalSubSubSubs; m ++){
			hide("menuSubSub" + m);
		}
		doSubSubNav(-1, 1, -1, -1);
		hide("bigHide");
		hide("bigHide2");
	}
}

function mainNavOBJ(theWidth, displayText, whichType, theLink){
	this.theWidth		= theWidth;
	this.displayText	= displayText;
	this.whichType		= whichType;
	this.theLink		= theLink;
}

//masterTop = 100;

function writeMainNav(){
	outMainHTML = "";
	outMainHTML += "<table cellpadding=0 cellspacing=0 border=0><tr>"; // width=\"240\"

	if( macIE ){
		//fontTag = "<font style=\"font-size:9px;\">";
		fontTag = "<font style=\"font-size:" + fontSize + ";\">";
		fontTagC = "</font>";
	}else{
		fontTag = "";
		fontTagC = "";
	}

//		outMainHTML += "<td align=\"left\" width=\"150\" class=\"Nav\" id=\"butID" + 0 + "\" nowrap onMouseOver=\"this.style.backgroundColor='#000000';doMainNav(" + 0 + ");;\" onMouseOut=\"this.style.backgroundColor=mainNavBgColor;this.style.color=mainNavColor;\" onClick=\"location='" +
		outMainHTML += "<td  class=\"Nav\" id=\"butID" + 0 + "\" nowrap onMouseOver=\"this.style.backgroundColor='#000000';doMainNav(" + 0 + ");;\" onMouseOut=\"this.style.backgroundColor=mainNavBgColor;this.style.color=mainNavColor;\" onClick=\"top.location='" +
		mainNavs[0].goLink + "';\">" + fontTag +  mainNavs[0].displayText.replace("_","/") + fontTagC + "</td>";

	for(i = 1; i <= (mainNavs.length - 1); i ++){
		if(mainNavs[i].goLink.indexOf("imknowledgecenter.com")>1){
			//open investors menus in new window
			outMainHTML += "<td bgcolor=\"#000000\" width=\"1\"><img id=\"butID" + i + "\" src=\"/images/spacer.gif\" width=1 border=0 height=17 align=\"bottom\"><td class=\"Nav\" id=\"butIDDummy" + i + "\" nowrap onMouseOver=\"this.style.backgroundColor='#000000';doMainNav(" + i + ");\" onClick=\"javascript:window.open('" + mainNavs[i].goLink + "','','');\">" + fontTag +  mainNavs[i].displayText.replace("_","/") + fontTagC + "</td>";
		}else{
			//open all other menus in same window
			outMainHTML += "<td bgcolor=\"#000000\" width=\"1\"><img id=\"butID" + i + "\" src=\"/images/spacer.gif\" width=1 border=0 height=17 align=\"bottom\"><td class=\"Nav\" id=\"butIDDummy" + i + "\" nowrap onMouseOver=\"this.style.backgroundColor='#000000';doMainNav(" + i + ");\" onClick=\"location='" + mainNavs[i].goLink + "';\">" + fontTag +  mainNavs[i].displayText.replace("_","/") + fontTagC + "</td>";
		}
		//outMainHTML +="<td bgcolor=\"#000000\" width=\"1\"><img src=\"/images/spacer.gif\" width=1 border=0 height=17 align=\"bottom\"><td class=\"Nav\" id=\"butID" + i + "\" nowrap onMouseOver=\"this.style.backgroundColor='#000000';doMainNav(" + i + ");\" onClick=\"javascript:window.open('" + mainNavs[i].goLink + "','','');\">" + fontTag +  mainNavs[i].displayText.replace("_","/") + fontTagC + "</td>";
	}
	outMainHTML += "</tr></table>";
	document.write(outMainHTML);
}

function doSubNav(ele, state, subIndex, rowIndex){
	if(state > 0){

		for(m = 1; m < rowCount; m ++){
			if(m == rowIndex){
				if(ns6){
					var obj = eval("document.getElementById('row" + m + "')")
					//Drop down rollover background color for primary drop down
					obj.style.backgroundColor = subNavBgRollover;
					obj.style.color = '196499';
					obj.style.fontSize = subFontSize;
				}else if(ie){
					if(!macIE){
						//Drop down rollover background color for primary drop down
						document.all["row" + m].style.backgroundColor = subNavBgRollover;
						document.all["row" + m].style.fontSize = subFontSize;
//						document.all["row" + m].style.fontWeight = 'bold';
					}
					document.all["row" + m].style.color = '196499';
					document.all["row" + m].style.fontSize = subFontSize;
//					document.all["row" + m].style.fontWeight = 'bold';
				}
			}else{
				if(ns6){
					var obj = eval("document.getElementById('row" + m + "')")

					//firefox initial drop down background color
					obj.style.backgroundColor = 'ededee';
					obj.style.color = '000000';
					obj.style.fontSize = subFontSize;
//					obj.style.fontWeight = 'normal';
				}else if(ie){
					if(!macIE){
						//main background for primary drop down
						document.all["row" + m].style.backgroundColor = subNavBgColor;
						document.all["row" + m].style.fontSize = subFontSize;
//						document.all["row" + m].style.fontWeight = 'normal';
					}
					document.all["row" + m].style.color = subNavColor;
					document.all["row" + m].style.fontSize = subFontSize;
//					document.all["row" + m].style.fontWeight = 'normal';
				}
			}
		}
		for(k = 1; k <= totalSubSubs; k ++){
			if(k == subIndex){
				show("menuSub" + k);
			}else{
				hide("menuSub" + k);
			}
		}
		for(k = 1; k <= totalSubSubSubs; k ++){
			hide("menuSubSub" + k);
		}
	}
}
function doSubSubNav(ele, state, subIndex, rowIndex){
	if(state > 0){
		for(b = 1; b < rowSubCount; b ++){
			if(b == rowIndex){
				if(ns6){
					var obj = eval("document.getElementById('rowSub" + b + "')")
					obj.style.backgroundColor = subNavBgRollover;
					obj.style.color = '196499';
					obj.style.fontSize = subFontSize;
//					obj.style.fontWeight = 'bold';
				}else if(ie){
					if(!macIE){
						//sub nav rollover background color
						document.all["rowSub" + b].style.backgroundColor = subNavBgRollover;
						document.all["rowSub" + b].style.fontSize = subFontSize;
//						document.all["rowSub" + b].style.fontWeight = 'bold';
					}
					document.all["rowSub" + b].style.color = '196499';
					document.all["rowSub" + b].style.fontSize = subFontSize;
//					document.all["rowSub" + b].style.fontWeight = 'bold';
				}
			}else{
				if(ns6){
					var obj = eval("document.getElementById('rowSub" + b + "')")
					obj.style.backgroundColor = 'ededee';
					obj.style.color = '000000';
					obj.style.fontSize = subFontSize;
//					obj.style.fontWeight = 'normal';
				}else if(ie){
					if(!macIE){
						document.all["rowSub" + b].style.backgroundColor = '#ededee';
						document.all["rowSub" + b].style.fontSize = subFontSize;
//						document.all["rowSub" + b].style.fontWeight = 'normal';
					}
					document.all["rowSub" + b].style.color = '000000';
					document.all["rowSub" + b].style.fontSize = subFontSize;
//					document.all["rowSub" + b].style.fontWeight = 'normal';
				}
			}
		}
		for(k = 1; k <= totalSubSubSubs; k ++){
			if(k == subIndex){
				show("menuSubSub" + k);
			}else{
				hide("menuSubSub" + k);
			}
		}
	}
}

function menuItem(displayText,goLink,hasSub,subIndex,topPos,leftPos,openWindow){
	this.displayText = displayText;
	this.goLink = goLink;
	this.hasSub = hasSub;
	this.subIndex = subIndex;
	this.topPos = topPos;
	this.leftPos = leftPos;
	this.openWindow = openWindow;
}

rowCount = 1;
rowSubCount = 1;
function writeLayers(){
	outHTML = "";
	findFirstLeftHandPoint=2000;
	menuWith = 250;//120;

	var tmpObj = null;
	var rightMostPt = 0;
	var alignment = "left";
	var rightMostMenuId = (mainNavs.length - 1);


	if(ie){
	    tmpObj = document.all("butID" + rightMostMenuId);
	}else if(ns6){
	    tmpObj = document.getElementById("butID" + rightMostMenuId);
	}else if(ns){
		tmpObj = document.layers["butID" + rightMostMenuId].pageX;
	}

	rightMostPt = findPosX(tmpObj) + tmpObj.offsetWidth;


	if(ns){
		outHTML += "<div id=\"mud\" style=\"position:absolute;left:0px;top:0px;visibility:hidden;z-index:0;\"></div>"
	}
	for(j = 1; j <= (mainNavs.length - 1); j ++){
		currentMenu = eval("sub" + j);
		theLength = currentMenu.length;
		n = j;
		if(ie){
			anchorX = findPosX(document.all("butID" + n));
			//alert(anchorX);
			anchorY = findPosY(document.all("butID" + n));
		}else if(ns6){
			anchorX = findPosX(document.getElementById("butID" + n));

		}else if(ns){
			anchorX = document.layers["butID" + n].pageX;
		}

		// If anchorX plus the menu size (160px) is greater than the right most point then
		// we need to right align the dropdown.
		// Also make sure that the menu text is also right aligned
		if((anchorX + tmpObj.offsetWidth) > rightMostPt){
			anchorX = rightMostPt - tmpObj.offsetWidth + 10;
			alignment = "right"
		}

		if (anchorX < findFirstLeftHandPoint)
		{
			findFirstLeftHandPoint=anchorX;
			//alert(findFirstLeftHandPoint);
		}

		outHTML += "<div id=\"menu" + j + "\" style=\"position:absolute; top:" + masterTop + "px; left:" + anchorX + "px; visibility:hidden; z-index:100;\">";
		if(theLength > 0){
			outHTML += "<table cellpadding=0 cellspacing=0 border=0 width=160>";
			for(z = 0; z < theLength; z ++){
				if(ns){
					theLink = "<a href=\"" + currentMenu[z].goLink + "\"target=_top>" + currentMenu[z].displayText + "</a>";
					theClass = "subNavNS";
				}else{
					theLink = currentMenu[z].displayText;
					theClass = "subNav";
				}
				if(currentMenu[z].hasSub != null){
					theArrow = "<img src=\"http://www.ironmountain.com/images/nav/arrowNav2.gif\" width=5 height=5>";
				}else{
					theArrow = "<img src=\"http://www.ironmountain.com/images/spacer.gif\" width=5 height=5>";
				}
				if(currentMenu[z].hasSub != null){
					sendSubIndex = currentMenu[z].subIndex;
				}else{
					sendSubIndex = -1;
				}

				if(currentMenu[z].goLink.indexOf("imknowledgecenter.com")>1  || currentMenu[z].openWindow == 1){
					//open investors sub-menus in new window
					outHTML += "<tr class=\"" + theClass + "\" onMouseOver=\"doSubNav(this,1," + sendSubIndex + "," + rowCount + ");\" onMouseOut=\"//doSubNav(this,0);\" id=\"row" + rowCount + "\"><td width=6><img src=\"/images/spacer.gif\" width=6 height=18></td><td align=" + alignment + " onClick=\"javascript:window.open('" + currentMenu[z].goLink + "','','');\">" + theLink + "</td><td width=7>" + theArrow + "</td></tr>";
				}else{
					//open all other sub-menus in same window
					outHTML += "<tr class=\"" + theClass + "\" onMouseOver=\"doSubNav(this,1," + sendSubIndex + "," + rowCount + ");\" onMouseOut=\"//doSubNav(this,0);\" id=\"row" + rowCount + "\"><td width=6><img src=\"/images/spacer.gif\" width=6 height=18></td><td align=" + alignment + " onClick=\"parent.location='" + currentMenu[z].goLink + "';\">" + theLink + "</td><td width=7>" + theArrow + "</td></tr>";
				}

				//outHTML += "<tr class=\"" + theClass + "\" onMouseOver=\"doSubNav(this,1," + sendSubIndex + "," + rowCount + ");\" onMouseOut=\"//doSubNav(this,0);\" id=\"row" + rowCount + "\"><td width=6><img src=\"http://www.ironmountain.ru/images/spacer.gif\" width=6 height=18></td><td onClick=\"top.location='" + currentMenu[z].goLink + "';\">" + theLink + "</td><td width=7>" + theArrow + "</td></tr>";

				if(z < theLength-1){
					outHTML += "<tr><td width=160 bgcolor=\"#ffffff\" colspan=3><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=1 height=1></td></tr>";
				}

				rowCount ++;
			}
			outHTML += "<tr><td width=160 height=10 bgcolor=\"ededee\" colspan=3></td></tr></table>";
		}
		outHTML += "</div>";
	}
	outHTML += "<div id=\"bigHide\" style=\"position:absolute;left:0px;top:" + masterTop + "px;visibility:hidden;z-index:1;\"><a href=\"#\" onMouseOver=\"doMainNav(-1, 'Off')\"><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=766 height=300 border=0></a></div>";

	outHTML += "<div id=\"bigHide2\" style=\"position:absolute;left:0px;top:0px;visibility:hidden;z-index:1;\"><a href=\"#\" onMouseOver=\"doMainNav(-1, 'Off')\"><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=766 height=50 border=0></a></div>";
	writeSubLayers(findFirstLeftHandPoint);

}
function writeSubLayers(anchorX){
	anchorX+=160;

	var bNextRow = false;

	for(a = 1; a <= totalSubSubs; a ++){
		if (a > 5) {
			if (!bNextRow) {
				anchorX+=68;
				bNextRow = true;
			}
		}
		currentMenu = eval("subsub" + a);
		theLength = currentMenu.length;

		outHTML += "<div id=\"menuSub" + a + "\" style=\"position:absolute; top:" + currentMenu[0].topPos + "px; left:" + anchorX + "px; visibility:hidden; z-index:100;\">";
		outHTML += "<table cellpadding=0 cellspacing=0 border=0 width=160>";
		outHTML += "<tr><td width=160 bgcolor=\"#ffffff\" colspan=3><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=1 height=1></td></tr>";
			for(z = 0; z < theLength; z ++){
				if(ns){
					theLink = "<a href=\"" + currentMenu[z].goLink + "\"target=_top>" + currentMenu[z].displayText + "</a>";
					theClass = "subsubNavNS";
				}else{
					theLink = currentMenu[z].displayText;
					theClass = "subsubNav";
				}
				if(currentMenu[z].hasSub != null){
					if(currentMenu[z].hasSub == 1){
						theArrow = "<img src=\"http://www.ironmountain.com/images/nav/arrowNav2.gif\" width=5 height=8>";
					}else{
						theArrow = "<img src=\"http://www.ironmountain.com/images/spacer.gif\" width=5 height=5>";
					}

				}else{
					theArrow = "<img src=\"http://www.ironmountain.com/images/spacer.gif\" width=5 height=5>";
				}
				if(currentMenu[z].hasSub != null){
					sendSubIndex = currentMenu[z].subIndex;
				}else{
					sendSubIndex = -1;
				}
				if(currentMenu[z].goLink.indexOf("www.comac.com")>1){
					//open comac sub-menus in new window
					outHTML += "<tr class=\"" + theClass + "\" onMouseOver=\"doSubSubNav(this,1," + sendSubIndex + "," + rowSubCount + ");\" onMouseOut=\"//doSubSubNav(this,0);\" id=\"rowSub" + rowSubCount + "\"><td width=6 style=\"padding: 8px 2px; \"><!--img src=\"/images/spacer.gif\" width=6 height=6--></td><td onClick=\"javascript:window.open('" + currentMenu[z].goLink + "','','');\" width=122>" + theLink + "</td></tr>";
				}else{
					//open all other sub-menus in same window
					outHTML +=  "<tr class=\"" + theClass + "\" onMouseOver=\"doSubSubNav(this,1," + sendSubIndex + "," + rowSubCount + ");\" onMouseOut=\"//doSubSubNav(this,0);\" id=\"rowSub" + rowSubCount + "\"><td width=6 style=\"padding: 8px 2px; \"><!--img src=\"/images/spacer.gif\" width=6 height=6--></td><td onClick=\"top.location='" + currentMenu[z].goLink + "';\" width=122>" + theLink + "</td></tr>";
				}
				//<td width=7>" + theArrow + "</td></tr>";

				if(z < theLength-1){
					outHTML += "<tr><td width=160 bgcolor=\"#ffffff\" colspan=3><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=1 height=1></td></tr>";
				}

				rowSubCount ++;
			}
			outHTML += "<tr><td width=160 height=10 bgcolor=\"ededee\" colspan=3></td></tr></table>";
		outHTML += "</div>";
	}
	writeSubSubLayers();
}
function writeSubSubLayers(){
	for(a = 1; a <= totalSubSubSubs; a ++){
		currentMenu = eval("subsubsub" + a);
		theLength = currentMenu.length;
		leftPosition = currentMenu[0].leftPos + 200;
		outHTML += "<div id=\"menuSubSub" + a + "\" style=\"position:absolute; top:" + currentMenu[0].topPos + "px; left:" + leftPosition + "px; visibility:hidden; z-index:100;\">";
		outHTML += "<table cellpadding=0 cellspacing=0 border=0 width=160>";
		outHTML += "<tr><td width=160 bgcolor=\"ededee\" colspan=2><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=1 height=1></td></tr>";
			for(z = 0; z < theLength; z ++){
				if(ns){
					theLink = "<a href=\"" + currentMenu[z].goLink + "\"target=_top>" + currentMenu[z].displayText + "</a>";
					theClass = "subsubsubNavNS";
				}else{
					theLink = currentMenu[z].displayText;
					theClass = "subsubsubNav";
				}
				outHTML += "<tr class=\"" + theClass + "\" onMouseOver=\"doLastNav(this,1);\" onMouseOut=\"doLastNav(this,0);\"><td width=6><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=6 height=32></td><td onClick=\"top.location='" + currentMenu[z].goLink + "';\" width=154>" + theLink + "</td></tr>";
				if(z < theLength-1){
					outHTML += "<tr><td width=160 bgcolor=\"#ffffff\" colspan=3><img src=\"http://www.ironmountain.com/images/spacer.gif\" width=1 height=1></td></tr>";
				}
			}
			outHTML += "<tr><td width=160 height=10 bgcolor=\"ededee\" colspan=3></td></tr></table>";
		outHTML += "</div>";
	}
	document.write(outHTML);
	loaded = true;
}
