
//*********************************************
// Tree Menu Copyright Simon Rycroft
// For more scripts go to:
// http://www.d-zineworx.co.uk
//*********************************************

// opens menu section - do not alter
function openMenu(cat) {
this.cat = cat;
document.write('<span class = "level1">');
if (cat == 'Inside the Company'){
document.write('<a href = "../inside/index.html?page=about" target="_top" class="sideheadie">');
}
else if (cat == 'Investor Relations'){
document.write('<a href = "../ir/index.html?page=inv" target="_top" class="sideheadie">');
}
else if (cat == 'Press Room'){
document.write('<a href = "../pressroom/index.html?page=press" target="_top" class="sideheadie">');
}
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1OpName +'" width="' + lev1OpWidth + '" height="' + lev1OpHeight + '"border="0">');
}
document.write(cat + '</a><span><br>');
for (x=0;x<thisMenu.length;x++){
 document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 document.write('<a href="' + thisMenu[x].linkb + '" class="sidesubie">' + thisMenu[x].name + '</a><span><br>');
}
}

// closes menu section - do not alter
function closeMenu(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('<span class = "level1">');
if (cat == 'Inside the Company'){
document.write('<a href = "../inside/index.html?page='+pass+'" target="_top" class="sideheadie">');
}
else if (cat == 'Investor Relations'){
document.write('<a href = "../ir/index.html?page='+pass+'" target="_top" class="sideheadie">');
}
else if (cat == 'Press Room'){
document.write('<a href = "../pressroom/index.html?page='+pass+'" target="_top" class="sideheadie">');
}
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');
}
document.write(cat + '</a><span><br>');
}


function printLink(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('<span class = "level1">');
document.write('<a href = "' + pass+'" class="sideheadie" target="_top">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');
}
document.write(cat + '</a><span><br>');
}

function popLink(cat,pass) {
this.cat = cat;
this.pass = pass;
	var w = 400;
	var h = 350;
	var leftpos = (screen.width - w) / 2;
	var toppos = (screen.height - h) / 2;
	var param = "top=" + toppos+ " ,left=" + leftpos + " ,height=" + h + ", width=" + w + ",resizable=yes,scrollbars=yes";
	var popup = "popup";
	document.write('<span class = "level1">');
	document.write('<a href ="javascript:void(0);" onClick="window.open(\'' + pass + '\',\'' + popup + '\',\'' + param +'\')" class="sideheadie" target="_top">');
	if (lev1img=='yes') {
		document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');
	}
		document.write(cat + '</a><span><br>');
	}
