var isNav, isIE;
if (parseInt(navigator.appVersion) >= 3)
{

	if (navigator.appName == "Netscape")
	{
			if (parseInt(navigator.appVersion) < 5)
			{
			document.write('<link REL="STYLESHEET" HREF="../includes/navstyle.css" TYPE="text/css">')
			isNav = true
			}
			else
			{
			document.write('<link REL="STYLESHEET" HREF="../includes/iestyle.css" TYPE="text/css">')
			}
	
	} 
	else if(navigator.appName.indexOf("Internet Explorer") >= 0){
	isIE = true
	document.write('<link REL="STYLESHEET" HREF="../includes/iestyle.css" TYPE="text/css">')
	}
}

if (!isNav && !isIE)
{
document.write('<link REL="STYLESHEET" HREF="../includes/iestyle.css" TYPE="text/css">')
}

function getlocation()
{
var newlocation
newlocation=document.allregions.region.options[document.allregions.region.selectedIndex].value;
//alert(newlocation)
location.href=(newlocation)
}
//images change 
abouton = new Image();			
abouton.src = "../images/headeraboutchemoil1.gif";

aboutoff = new Image();
aboutoff.src = "../images/headeraboutchemoil.gif";

portson = new Image();
portson.src = "../images/headersupplyports1.gif"; 

portsoff = new Image();
portsoff.src = "../images/headersupplyports.gif";

brokerson = new Image();
brokerson.src = "../images/headerbrokers1.gif";

brokersoff = new Image();
brokersoff.src = "../images/headerbrokers.gif";

saleson = new Image();
saleson.src = "../images/headersales1.gif";

salesoff = new Image();
salesoff.src = "../images/headersales.gif";

newson = new Image();
newson.src = "../images/headernews1.gif";

newsoff = new Image();
newsoff.src = "../images/headernews.gif";

contacton = new Image();
contacton.src = "../images/contactus1.gif";

contactoff = new Image();
contactoff.src = "../images/contactus.gif";



// FUNCTIONS

function img_act(imgName)
{
imgon = eval(imgName + "on.src");
document [imgName].src = imgon;
}

function img_inact(imgName)
{
imgoff = eval(imgName + "off.src");
document [imgName].src = imgoff;
}
// END HIDING FROM OLDER BROWSERS -->

//------left links image mouse over

BN = navigator.appName;
 BV = parseInt(navigator.appVersion);
 V = "n3";
 if (BN == "Netscape" && BV >= 3) V = "n3";
 else if (BN == "Microsoft Internet Explorer" && BV >= 4) V = "n3";
 else V = "n2";
 
 if (V == "n3") {
 arrowon = new Image(9, 9);
 arrowon.src = "../images/icon_aleftlink.gif";
 arrowoff = new Image(9, 9);
 arrowoff.src = "../images/icon_leftlink.gif";
 }
 
 function img_onarrow(imgName) {
 if (V == "n3") {
 arrowOn = arrowon.src;
 document [imgName + "_arrow"].src = arrowOn;         
 }
 }
 function img_offarrow(imgName) {
 if (V == "n3") {
 arrowOff = arrowoff.src;
 document [imgName + "_arrow"].src = arrowOff;           
 }
 }
function winpop(url)
{   
window.open(url,"index","width=800,height=580,resizable=no,scrollbars=yes,toolbar=no directories=no,left=110,top=110");
}
function winpop1(url)
{   
window.open(url,"","width=800,height=580,resizable=no,scrollbars=yes,toolbar=no directories=no,left=110,top=110,");
}
function Portselect()
{
	var Port=document.home.lstsearch.value;
	if(Port=='Los Angeles') {window.location="../Ports/losangeles.asp?lable=losangeles";}
	if(Port=='San Francisco') {window.location="../Ports/sanfrancisco.asp?lable=san";}
	if(Port=='Panama') {window.location="../Ports/panama.asp?lable=panama";}
	if(Port=='Houston') {window.location="../Ports/houston.asp?lable=houston";}
	if(Port=='Singapore') {window.location="../Ports/singapore.asp?lable=singapore";}
	if(Port=='Rotterdam') {window.location="../Ports/rotterdam.asp?lable=rotterdam";}
	if(Port=='New York') {window.location="../Ports/newyork.asp?lable=ny";}
	if(Port=='New Orleans') {window.location="../Ports/neworleans.asp?lable=new";}
	if(Port=='Philadelphia') {window.location="../Ports/philadelphia.asp?lable=phil";}
	if(Port=='select')
	{alert("Please Select a Port");}
}	

function removesearch()
{
	document.home.txtsearch.value="";
	return;
}

