mainoff = new Image;
mainoff.src = "/assets/images/Animation2.gif";

howon = new Image;
howon.src="/assets/MouseOverImages/ROHowtobegin.gif";

clienton = new Image;
clienton.src="/assets/MouseOverImages/ROLeadExchange.gif";

tradeon = new Image;
tradeon.src="/assets/MouseOverImages/ROTradingRoomFloor.gif";

signon = new Image;
signon.src="/assets/MouseOverImages/ROSignUpNow.gif";

abouton = new Image;
abouton.src="/assets/MouseOverImages/ROAboutUs2.gif";


function RollOn(imgName) {

    mainOn=eval(imgName + "on.src");

    document.main.src=mainOn;
}



function RollOff() {
    document.main.src=mainoff.src;
}

function mail_popup() {

    mailWin = window.open('/html/Mailing_List.html', 'Mail', 'toolbar=no,width=376,height=500,status=no,scrollbars=yes,resizable=no');
    mailWin.focus();
}


function advert_popup() {
    
    CE_add = window.open('/html/LeadExchange_Ad.html', 'CE_add', 'toolbar=no,width=360,height=270,status=no,scrollbars=no,resizable=no');
    CE_add.focus();
}

function gotoPage(theForm, comboBox, pageLocation, badVal) {
    
    comboValue = eval("theForm." + comboBox + "[theForm." + comboBox + ".selectedIndex].value");

    if(comboValue != badVal) {
	self.top.location = pageLocation + comboValue;
    }

}


function trade_leads_nav()
{
    if (document.cookie.length > 0) {
	if (document.cookie.indexOf("MEMBER=") != -1) { // if cookie exists
	    self.location="./members/";
	    return;
	}
    }
    self.top.location="./html/Inside_LeadExchange.html";
    return true;
}
