<!--

if (document.images) {
  navAboutGulf_on = new Image();
  navAboutGulf_on.src = "images/navAboutGulf_on.gif";  
  navAboutGulf = new Image();
  navAboutGulf.src = "images/navAboutGulf.gif";
  navSpentCatalystRecycling_on = new Image();
  navSpentCatalystRecycling_on.src = "images/navSpentCatalystRecycling_on.gif";  
  navSpentCatalystRecycling = new Image();
  navSpentCatalystRecycling.src = "images/navSpentCatalystRecycling.gif";  
  navFinishedProducts_on = new Image();
  navFinishedProducts_on.src = "images/navFinishedProducts_on.gif";  
  navFinishedProducts = new Image();
  navFinishedProducts.src = "images/navFinishedProducts.gif";  
  navSustainableDevelopment_on = new Image();
  navSustainableDevelopment_on.src = "images/navSustainableDevelopment_on.gif";  
  navSustainableDevelopment = new Image();
  navSustainableDevelopment.src = "images/navSustainableDevelopment.gif";  
  navOurFacilities_on = new Image();
  navOurFacilities_on.src = "images/navOurFacilities_on.gif";  
  navOurFacilities = new Image();
  navOurFacilities.src = "images/navOurFacilities.gif";
  navNewsPublications_on = new Image();
  navNewsPublications_on.src = "images/navNewsPublications_on.gif";  
  navNewsPublications = new Image();
  navNewsPublications.src = "images/navNewsPublications.gif";
  
  navForms_on = new Image();
  navForms_on.src = "images/navForms_on.gif";  
  navForms = new Image();
  navForms.src = "images/navForms.gif";  
  navContact_on = new Image();
  navContact_on.src = "images/navContact_on.gif";  
  navContact = new Image();
  navContact.src = "images/navContact.gif";  
  navHome_on = new Image();
  navHome_on.src = "images/navHome_on.gif";  
  navHome = new Image();
  navHome.src = "images/navHome.gif";
  
  navLogin_on = new Image();
  navLogin_on.src = "images/navLogin_on.gif";  
  navLogin = new Image();
  navLogin.src = "images/navLogin.gif";
  navCustomers_on = new Image();
  navCustomers_on.src = "images/navCustomers_on.gif";  
  navCustomers = new Image();
  navCustomers.src = "images/navCustomers.gif";
  navEmployees_on = new Image();
  navEmployees_on.src = "images/navEmployees_on.gif";  
  navEmployees = new Image();
  navEmployees.src = "images/navEmployees.gif";
}

var agt=navigator.userAgent.toLowerCase(); 
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers
var intLeftCheck
var secondaryState

var menu=new Array()
menu[0]="<table bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' border='0'><tr>"
menu[0]+="<td height='16' colspan='4'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr><tr>"
menu[0]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[0]+="<td>"
menu[0]+="<table cellpadding='0' cellspacing='0' border='0'>"
menu[0]+="<tr><td height='5' colspan='5'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[0]+="<tr><td><a href='aboutGulf_companyProfile.asp'><img name='navAboutGulf_companyProfile' src='images/navAboutGulf_companyProfile.gif' width='93' height='14' alt='Company Profile' border='0'></a></td></tr>"
menu[0]+="<tr><td height='7'><img src='../images/pixelTrans.gif' width='1' height='5' alt='' border='0'></td></tr>"
menu[0]+="<tr><td><a href='aboutGulf_managementTeam.asp'><img name='navAboutGulf_managementTeam' src='images/navAboutGulf_managementTeam.gif' width='107' height='13' alt='Management Team' border='0'></a></td></tr>"
menu[0]+="<tr><td height='8'><img src='../images/pixelTrans.gif' width='1' height='8' alt='' border='0'></td></tr>"
menu[0]+="<tr><td><a href='aboutGulf_careersAtGulf.asp'><img name='navAboutGulf_careersAtGulf' src='images/navAboutGulf_careersAtGulf.gif' width='88' height='10' alt='Careers at Gulf' border='0'></a></td></tr>"
menu[0]+="</table>"
menu[0]+="</td>"
menu[0]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[0]+="</tr><tr><td height='16'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[0]+="</tr>"
menu[0]+="</table>"

menu[1]="<table bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' border='0'><tr>"
menu[1]+="<td height='16' colspan='4'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr><tr>"
menu[1]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[1]+="<td>"
menu[1]+="<table cellpadding='0' cellspacing='0' border='0'>"
menu[1]+="<tr><td height='5' colspan='5'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[1]+="<tr><td><a href='spentCatalystRecycling_spentCatalystRecyclingProcess.asp'><img name='navSpentCatalystRecycling_spentCatalystRecyclingProcess' src='images/navSpentCatalystRecycling_spentCatalystRecyclingProcess.gif' width='105' height='29' alt='Spent Catalyst Recycling Process' border='0'></a></td></tr>"
menu[1]+="<tr><td height='8'><img src='../images/pixelTrans.gif' width='1' height='5' alt='' border='0'></td></tr>"
menu[1]+="<tr><td><a href='spentCatalystRecycling_processDiagram.asp'><img name='navSpentCatalystRecycling_processDiagram' src='images/navSpentCatalystRecycling_processDiagram.gif' width='97' height='13' alt='Process Diagram' border='0'></a></td></tr>"
menu[1]+="<tr><td height='7'><img src='../images/pixelTrans.gif' width='1' height='8' alt='' border='0'></td></tr>"
menu[1]+="<tr><td><a href='forms.asp'><img name='navSpentCatalystRecycling_forms' src='images/navSpentCatalystRecycling_forms.gif' width='35' height='10' alt='Forms' border='0'></a></td></tr>"
menu[1]+="</table>"
menu[1]+="</td>"
menu[1]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[1]+="</tr><tr><td height='16'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[1]+="</tr>"
menu[1]+="</table>"

menu[2]="<table bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' border='0'><tr>"
menu[2]+="<td height='16' colspan='4'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr><tr>"
menu[2]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[2]+="<td>"
menu[2]+="<table cellpadding='0' cellspacing='0' border='0'>"
menu[2]+="<tr><td height='5' colspan='5'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[2]+="<tr><td><a href='finishedProducts_ferrovanadium.asp'><img name='navFinishedProducts_ferrovanadium' src='images/navFinishedProducts_ferrovanadium.gif' width='82' height='10' alt='Ferrovanadium' border='0'></a></td></tr>"
menu[2]+="<tr><td height='12'><img src='../images/pixelTrans.gif' width='1' height='5' alt='' border='0'></td></tr>"
menu[2]+="<tr><td><a href='finishedProducts_molybdicOxide.asp'><img name='navFinishedProducts_molybdicOxide' src='images/navFinishedProducts_molybdicOxide.gif' width='88' height='14' alt='Molybdic Oxide' border='0'></a></td></tr>"
menu[2]+="<tr><td height='7'><img src='../images/pixelTrans.gif' width='1' height='8' alt='' border='0'></td></tr>"
menu[2]+="<tr><td><a href='finishedProducts_pyrometallurgicalProducts.asp'><img name='navFinishedProducts_pyrometallurgicalProducts' src='images/navFinishedProducts_pyrometallurgicalProducts.gif' width='96' height='25' alt='Pyrometallurgical Products' border='0'></a></td></tr>"
menu[2]+="</table>"
menu[2]+="</td>"
menu[2]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[2]+="</tr><tr><td height='16'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[2]+="</tr>"
menu[2]+="</table>"

menu[3]="<table bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' border='0'><tr>"
menu[3]+="<td height='16' colspan='4'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr><tr>"
menu[3]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[3]+="<td>"
menu[3]+="<table cellpadding='0' cellspacing='0' border='0'>"
menu[3]+="<tr><td height='5' colspan='5'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[3]+="<tr><td><a href='sustainableDevelopment_environmentalResponsibility.asp'><img name='navSustainableDevelopment_environmentalResponsibility' src='images/navSustainableDevelopment_environmentalResponsibility.gif' width='79' height='29' alt='Environmental Responsibility' border='0'></a></td></tr>"
menu[3]+="<tr><td height='7'><img src='../images/pixelTrans.gif' width='1' height='5' alt='' border='0'></td></tr>"
menu[3]+="<tr><td><a href='sustainableDevelopment_economicGrowth.asp'><img name='navSustainableDevelopment_economicGrowth' src='images/navSustainableDevelopment_economicGrowth.gif' width='102' height='10' alt='Economic Growth' border='0'></a></td></tr>"
menu[3]+="<tr><td height='11'><img src='../images/pixelTrans.gif' width='1' height='8' alt='' border='0'></td></tr>"
menu[3]+="<tr><td><a href='sustainableDevelopment_communityDevelopment.asp'><img name='navSustainableDevelopment_communityDevelopment' src='images/navSustainableDevelopment_communityDevelopment.gif' width='142' height='14' alt='Community Development' border='0'></a></td></tr>"
menu[3]+="<tr><td height='7'><img src='../images/pixelTrans.gif' width='1' height='8' alt='' border='0'></td></tr>"
menu[3]+="<tr><td><a href='sustainableDevelopment_selfGovernmentalCompliance.asp'><img name='navSustainableDevelopment_selfGovernmentalCompliance' src='images/navSustainableDevelopment_selfGovernmentalCompliance.gif' width='129' height='28' alt='Self and Governmental Compliance' border='0'></a></td></tr>"
menu[3]+="<tr><td height='8'><img src='../images/pixelTrans.gif' width='1' height='8' alt='' border='0'></td></tr>"
menu[3]+="<tr><td><a href='sustainableDevelopment_employeeHealthSafety.asp'><img name='navSustainableDevelopment_employeeHealthSafety' src='images/navSustainableDevelopment_employeeHealthSafety.gif' width='95' height='29' alt='Employee Health & Safety' border='0'></a></td></tr>"
menu[3]+="</table>"
menu[3]+="</td>"
menu[3]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[3]+="</tr><tr><td height='16'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[3]+="</tr>"
menu[3]+="</table>"

menu[4]="<table bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' border='0'><tr>"
menu[4]+="<td height='16' colspan='4'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr><tr>"
menu[4]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[4]+="<td>"
menu[4]+="<table cellpadding='0' cellspacing='0' border='0'>"
menu[4]+="<tr><td height='5' colspan='5'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[4]+="<tr><td><a href='ourFacilities_freeportTexas.asp'><img name='navOurFacilities_freeportTexas' src='images/navOurFacilities_freeportTexas.gif' width='87' height='13' alt='Freeport, Texas' border='0'></a></td></tr>"
menu[4]+="<tr><td height='8'><img src='../images/pixelTrans.gif' width='1' height='5' alt='' border='0'></td></tr>"
menu[4]+="<tr><td><a href='ourFacilities_fortSaskatchewan.asp'><img name='navOurFacilities_fortSaskatchewan' src='images/navOurFacilities_fortSaskatchewan.gif' width='108' height='10' alt='Fort Saskatchewan' border='0'></a></td></tr>"
menu[4]+="<tr><td height='11'><img src='../images/pixelTrans.gif' width='1' height='8' alt='' border='0'></td></tr>"
menu[4]+="<tr><td><a href='ourFacilities_bearMetallurgical.asp'><img name='navOurFacilities_bearMetallurgical' src='images/navOurFacilities_bearMetallurgical.gif' width='102' height='13' alt='Bear Metallurgical' border='0'></a></td></tr>"
menu[4]+="</table>"
menu[4]+="</td>"
menu[4]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[4]+="</tr><tr><td height='16'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[4]+="</tr>"
menu[4]+="</table>"

menu[5]="<table bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' border='0'><tr>"
menu[5]+="<td height='16' colspan='4'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr><tr>"
menu[5]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[5]+="<td>"
menu[5]+="<table cellpadding='0' cellspacing='0' border='0'>"
menu[5]+="<tr><td height='5' colspan='5'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[5]+="<tr><td><a href='newsPublications_pressReleases.asp'><img name='navNewsPublications_pressReleases' src='images/navNewsPublications_pressReleases.gif' width='87' height='10' alt='Press Releases' border='0'></a></td></tr>"
menu[5]+="<tr><td height='11'><img src='../images/pixelTrans.gif' width='1' height='5' alt='' border='0'></td></tr>"
menu[5]+="<tr><td><a href='newsPublications_newsletters.asp'><img name='navNewsPublications_newsletters' src='images/navNewsPublications_newsletters.gif' width='67' height='10' alt='Newsletters' border='0'></a></td></tr>"
menu[5]+="</table>"
menu[5]+="</td>"
menu[5]+="<td width='16' rowspan='2'><img src='images/pixelTrans.gif' width='16' height='1' alt='' border='0'></td>"
menu[5]+="</tr><tr><td height='16'><img src='images/pixelTrans.gif' width='1' height='1' alt='' border='0'></td></tr>"
menu[5]+="</tr>"
menu[5]+="</table>"

function secondaryShow(intStage,snum) {
	if (intStage==0) {
		if (ie4||ns6) {
			document.getElementById(eval(["secondary"+snum])).style.visibility="visible"
			secondaryState=1			
		} else {
			document.popmenu.document.gui.document.eval(["secondary"+snum]).visibility="show"
			secondaryState=1			
		}
	} else {
		if (ie4||ns6) {
			document.getElementById(eval(["secondary"+snum])).style.visibility="hidden"
			secondaryState=0
		} else {
			document.popmenu.document.gui.document.eval(["secondary"+snum]).visibility="hide"
			secondaryState=0
		}
	}
}

var imageState
var strPrevious
		
function showmenu(e,which,iLeft,iTop){
	if (document.images) {
		for (var i=0; i<showmenu.arguments.length; i+=5) {
			if (strPrevious) { 
			} else { 
				strPrevious = showmenu.arguments[4]; 
			}
			imageState = showmenu.arguments[4];
			if (ns4) {
				if (imageState!=strPrevious) { 
					document.images[strPrevious].src = eval(strPrevious + ".src");
					strPrevious = imageState;
					document.images[showmenu.arguments[4]].src = eval(showmenu.arguments[4] + "_on.src");
				} else {
					document.images[showmenu.arguments[4]].src = eval(showmenu.arguments[4] + "_on.src");
				}			
			} else {
				if (strPrevious) { 
					document[strPrevious].src = eval(strPrevious + ".src"); 
				}
				document[showmenu.arguments[4]].src = eval(showmenu.arguments[4] + "_on.src");
			}
			strPrevious = showmenu.arguments[4]			
		}
	}
	if (which=="menu[0]") {
		secondaryState=1
	}
	menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
	if (!document.all&&!document.getElementById&&!document.layers)
		return
	clearhidemenu()

	menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
	menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj
	
	if (ie4||ns6) 
		menuobj.innerHTML=which
	else{
		menuobj.document.write('<layer name=gui width=125 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
		menuobj.document.close()
	}

	if (ie4||ns6) {
	    if (ie4) {
	        if (navigator.appVersion.toLowerCase().indexOf("mac")!=-1) {
	            intLeftCheck=document.getElementById('menu').offsetLeft + parseFloat(eval(iLeft))+25	
            } else {
		    intLeftCheck=document.getElementById('menu').offsetLeft + parseFloat(eval(iLeft))	
		    }
		} else {
		    intLeftCheck=document.getElementById('menu').offsetLeft + parseFloat(eval(iLeft))
        }
		document.getElementById('popmenu').style.left=intLeftCheck
		document.getElementById('popmenu').style.top=iTop
	} else {
		intLeftCheck=document.layers.menu.pageX + parseFloat(eval(iLeft))	
		document.layers.popmenu.left=intLeftCheck
		document.layers.popmenu.top=parseFloat(iTop)
	}
	
	menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
	menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
	
	eventX=ie4? event.clientX : ns6? e.clientX : e.x
	eventY=ie4? event.clientY : ns6? e.clientY : e.y

	menuobj.thestyle.visibility="visible"
	return false
}

function contains_ns6(a, b) {
	while (b.parentNode)
		if ((b = b.parentNode) == a)
			return true;
		return false;
}

function clrM(){
	if (secondaryState==1) {
		if (document.getElementById('secondary1')) {
			if (document.getElementById('secondary1').style.visibility="visible") {
				document.getElementById('secondary1').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary2')) {
			if (document.getElementById('secondary2').style.visibility="visible") {
				document.getElementById('secondary2').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary3')) {
			if (document.getElementById('secondary3').style.visibility="visible") {
				document.getElementById('secondary3').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary4')) {
			if (document.getElementById('secondary4').style.visibility="visible") {
				document.getElementById('secondary4').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary5')) {
			if (document.getElementById('secondary5').style.visibility="visible") {
				document.getElementById('secondary5').style.visibility="hidden"
			}
		}
	}
}

function hidemenu(){
	if (secondaryState==1) {
		if (document.getElementById('secondary1')) {
			if (document.getElementById('secondary1').style.visibility="visible") {
				document.getElementById('secondary1').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary2')) {
			if (document.getElementById('secondary2').style.visibility="visible") {
				document.getElementById('secondary2').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary3')) {
			if (document.getElementById('secondary3').style.visibility="visible") {
				document.getElementById('secondary3').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary4')) {
			if (document.getElementById('secondary4').style.visibility="visible") {
				document.getElementById('secondary4').style.visibility="hidden"
			}
		}
		if (document.getElementById('secondary5')) {
			if (document.getElementById('secondary5').style.visibility="visible") {
				document.getElementById('secondary5').style.visibility="hidden"
			}
		}
	}

	if (document.images) {
			if (ns4) {
				if(imageState) {
				document.images[imageState].src = eval(imageState + ".src");
				}
			} else {
				if(imageState) {
				document[imageState].src = eval(imageState + ".src");
				}
			}
	}	
	
	if (window.menuobj)
		menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){

	if (ie4&&!menuobj.contains(e.toElement))
		hidemenu()
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
		hidemenu()
}

function delayhidemenu(){
	if (ie4||ns6||ns4)
		delayhide=setTimeout("hidemenu()",900)
}

function clearhidemenu(){
	if (window.delayhide)
		clearTimeout(delayhide)
}

function highlightmenu(e,state){
	if (document.all)
		source_el=event.srcElement
	else if (document.getElementById)
		source_el=e.target
	if (source_el.className=="menuitems"){
		source_el.id=(state=="on")? "mouseoverstyle" : ""
	}
	else{
		while(source_el.id!="popmenu"){
			source_el=document.getElementById? source_el.parentNode : source_el.parentElement
			if (source_el.className=="menuitems"){
				source_el.id=(state=="on")? "mouseoverstyle" : ""
			}
		}
	}
}

//if (ie4||ns6)
//document.onclick=hidemenu

var win = (navigator.platform.toLowerCase().indexOf("win") != -1);
var mac = (navigator.platform.toLowerCase().indexOf("mac") != -1);

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=4) {
			if (changeImages.arguments[i]) {
				if (ns4) {
					if (changeImages.arguments[2]==1) {
						document.images[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
					} else {
						window.menuobj.document.gui.document.images[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
					}
				} else {
					document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
				}
			}
		}
	}
}

function cImg() {
  if (document.images) {
    for (var i=0; i<cImg.arguments.length; i+=2) {
      document[cImg.arguments[i]].src = eval(cImg.arguments[i+1] + ".src");
    }
  }
}

// -->