<!-- -*-java-*- -->

google_ad_client = "pub-5511497868554211";
google_alternate_ad_url = "http://therail.com/html/adsense.html";		
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel ="3985897987";
google_color_border = "222222";
google_color_bg = "222222";
google_color_link = "aaffff";
google_color_url = "aaaa77";
google_color_text = "eeeeee";

function adjustWin() {
    var margins=10;
    var minHeight=900;
    var newHeight=xClientHeight()-margins;
    if (newHeight<minHeight)
        newHeight=minHeight;
    xHeight('page',newHeight);
    createCookie('page',newHeight,77);
}
window.onload=function() {
    adjustWin();
    xAddEventListener(window,'resize',adjustWin,false);
    getBanner();
}
function getBanner() {
    new Ajax.Updater('bannerHolder', '/cgi/get_banner?junction', 
    {asynchronous:true, evalScripts:true});
}
function showHelp() {
    var winObj = getElemId('navHelp');
    if (winObj != null)
	winObj.style.display = "block";
    winObj = getElemId('joinBox');
    if (winObj != null)
	winObj.style.display = "none";
}
function hideHelp() {
    var winObj = getElemId('navHelp');
    if (winObj != null)
	winObj.style.display = "none";
    winObj = getElemId('joinBox');
    if (winObj != null)
	winObj.style.display = "block";
}

