var eventHost = "event.on24.com";
//var eventHost = "dev01.on24.com";
//var eventHost = "maheshk.on24.com:5001";
//var eventHost = "localhost.on24.com:5001";
var eventRegHost = "localhost.on24.com:5001";
var userRegHost = "userreg.on24.com";
var searchHost = "search.on24.com";
var vuwinHost = "vuwin.on24.com";
var affiliateHost = "vuwin.on24.com";
var channelHost = "channels.on24.com";
var wwwHost = "www.on24.com";
var staticHost="localhost.on24.com";
var shortstaticHost="localhost.on24.com";
var incHost = "www.on24inc.com";
var newsHost = "news.on24.com";
var marketplaceHost = "marketplace.on24.com";
var weblogic_ok = true;

//---- You don't need to change anything below this line. ---------//;


function LocalURL(hostName, pathName)
{
    this.hostname = hostName;
    this.pathname = pathName;
}

LocalURL.prototype.href = function() { return "http://" + this.hostname + this.pathname; };

userSubscribeURL = new LocalURL(userRegHost, "/userRegistration/subscribe.jsp");
userAcctMenuURL = new LocalURL(userRegHost, "/userRegistration/MenuServlet");
userLogoutURL = new LocalURL(userRegHost, "/userRegistration/LogoutServlet");
userLoginOrSubscribeURL = new LocalURL(userRegHost, "/userRegistration/LoginOrSubscribeServlet");

simpleSearchURL = new LocalURL(searchHost, "/search/search");
advSearchURL = new LocalURL(searchHost, "/search/advSearch.jsp");

pcastUserAcctMenuURL = userAcctMenuURL;

companyProfileURL = new LocalURL("lada.zacks.com", "/engine/profile.php3");
earningsEstimateURL = new LocalURL(vuwinHost, "/personalcast/scripts/earnings.asp");
earningsSummaryURL = new LocalURL(vuwinHost, "/personalcast/scripts/calendar.asp");
analystRatingsURL = new LocalURL(vuwinHost, "/personalcast/scripts/events.asp");
researchReportsURL = new LocalURL(vuwinHost, "/personalcast/scripts/reports.asp");
channelsURL = new LocalURL(vuwinHost, "/personalcast/scripts/allchannels.asp");
emailToURL = new LocalURL(vuwinHost, "/vuwindow/scripts/emailURLform.asp");

goldCompanyProfileURL = companyProfileURL;
goldEarningsEstimateURL = earningsEstimateURL;
goldEarningsSummaryURL = earningsSummaryURL;
goldAnalystRatingsURL = analystRatingsURL;
goldResearchReportsURL = researchReportsURL;
goldChannelsURL = channelsURL;
goldUserAcctMenuURL = userAcctMenuURL;
goldEmailToURL = emailToURL;

affiliateURL=new LocalURL(affiliateHost, "/affiliates/login.htm");
vuwinURL = new LocalURL(vuwinHost, "/vuwindow/scripts/vuwin.asp");
mainURL = new LocalURL(wwwHost, "/");
disclaimerURL = new LocalURL(wwwHost, "/disclaimer.html");
ON24MarketplaceURL = new LocalURL(marketplaceHost, "/marketplace/index.html");

function setLinkURL(link, url)
{
    link.href = "http://" + url.hostname + url.pathname + link.search;
    return true;
}

function setLinkURLadv(link, pathname, hostName)
{
//	alert(link);
    link.href = "http://" + hostName + pathname + link.search;
    return true;
}

function setFormAction(form, url)
{
    form.action = "http://" + url.hostname + url.pathname;

    // The following is used if any HTTP:GET params to the URL need to specified.
    if (arguments.length > 2) 
    {      
        form.action += "?" + arguments[2];
    }

    form.submit();
}
