strText = "Baumann Hinde & Co, International Cotton Merchants";

var imgArr = new Array ("news","markets","nyf","currency","stocks","weather","liverpool","prof");

for (ac=0;ac<imgArr.length;ac++) {
	eval (imgArr[ac] + "_on = new Image");
	eval (imgArr[ac] + "_off = new Image");
	eval (imgArr[ac] + "_on.src = \"images/menu/"+imgArr[ac]+"_on.gif\"");
	eval (imgArr[ac] + "_off.src = \"images/menu/"+imgArr[ac]+"_off.gif\"");
}

function rollover(thisName, thisStatus) {
		
		window.status=thisStatus;
		eval("document." + thisName + ".src  = " + thisName +  "_on.src");
		return true;
		}

function rolloff(thisName) {
		
		eval("document." + thisName + ".src  = " + thisName + "_off.src");
		window.status = strText;
		return true;
		}

function gotoPage(thisURL) {

		parent.mainFrame.location.href = "pages/" +  thisURL;
		
		}
function gotoHome(thisURL) {

		parent.mainFrame.location.href = thisURL;
	}	

function setPopUpMenu() {
var lk = new Array("Cotton Outlook","www.cotlook.com",
		     "LCA","www.lca.org.uk",
		     "Bremen Cotton","www.baumwollboerse.de",
		     "Gdynia","www.gca.org.pl");

document.write('<table class=\"popup\" cellpadding=\"0\" cellspacing=\"0" width=\"110\">');

for (mc=0;mc<lk.length;mc+=2) {

document.write('<tr>\n<td class=\"menuelement\"><a href=\"http://'+lk[mc+1]+'\" target=\"_blank\">'+lk[mc]+'</a></td>\n</tr>');

}//end for

document.write('</table>');

}//end function

function showMenuStatic(l,t) {
if (document.getElementById) {
//var imgLeft= document.getElementById('prof').offsetWidth;
document.getElementById('popUpMenu').style.top = t;
document.getElementById('popUpMenu').style.left = l;
document.getElementById('popUpMenu').style.visibility='visible';
}//end if

}

function showMenu() {

var imgLeft = event.clientX;

if (document.getElementById) {

document.getElementById('popUpMenu').style.top = 5;
document.getElementById('popUpMenu').style.left = imgLeft - 10;
document.getElementById('popUpMenu').style.visibility='visible';
}//end if

if (document.all) {

document.all['popUpMenu'].style.visibility='visible';

}//end if

}

function hideMenu() {
if (document.getElementById) {
document.getElementById('popUpMenu').style.visibility='hidden';
}//end if
if (document.all) {
document.all['popUpMenu'].style.visibility='hidden';

}//end if
}

