function init() {
    //if (document.getElementById("imgSignupCenter")) new LinkButton(document.getElementById("imgSignupCenter"), "images/bttn_signUp_180x32_df.gif", "images/bttn_signUp_180x32_ro.gif", "images/bttn_signUp_180x32_dn.gif");
    //if (document.getElementById("imgTabPromo")) new LinkButton(document.getElementById("imgTabPromo"), "images/hompage/tab_promo_on.gif", "images/hompage/tab_promo_ro.gif", "images/hompage/tab_promo_on.gif");
    //if (document.getElementById("imgTabEvents")) new LinkButton(document.getElementById("imgTabEvents"), "images/hompage/tab_events_off.gif", "images/hompage/tab_events_off.gif", "images/hompage/tab_events_on.gif");
    //if (document.getElementById("imgTabNews")) new LinkButton(document.getElementById("imgTabNews"), "images/hompage/tab_news_off.gif", "images/hompage/tab_news_ro.gif", "images/hompage/tab_news_on.gif");
	
	//if (document.getElementById("imgBtmSignup")) new LinkButton(document.getElementById("imgBtmSignup"), "images/hompage/btm_btn_SignUp_df.gif", "images/hompage/btm_btn_SignUp_ro.gif", "images/hompage/btm_btn_SignUp_ro.gif");
	if (document.getElementById("imgSignupCenterBtn")) new LinkButton(document.getElementById("imgSignupCenterBtn"), "images/hompage/bttn_signUp_156x32_grey_df.gif", "images/hompage/bttn_signUp_156x32_grey_ro.gif", "images/hompage/bttn_signUp_156x32_grey_ro.gif");
	if (document.getElementById("imgSignupBtmBtn")) new LinkButton(document.getElementById("imgSignupBtmBtn"), "images/hompage/bttn_signUp_156x32_black_df.gif", "images/hompage/bttn_signUp_156x32_black_ro.gif", "images/hompage/bttn_signUp_156x32_black_ro.gif");
	
	if (document.getElementById("imgWagerVantage")) new LinkButton(document.getElementById("imgWagerVantage"), "images/hompage/bttn_accord_wv_df.gif", "images/hompage/bttn_accord_wv_ov.gif", "images/hompage/bttn_accord_wv_ov.gif");
	if (document.getElementById("imgHandiTools")) new LinkButton(document.getElementById("imgHandiTools"), "images/hompage/bttn_accord_ht_df.gif", "images/hompage/bttn_accord_ht_ov.gif", "images/hompage/bttn_accord_ht_ov.gif");
	if (document.getElementById("imgWagerPadPro")) new LinkButton(document.getElementById("imgWagerPadPro"), "images/hompage/bttn_accord_wpp_df.gif", "images/hompage/bttn_accord_wpp_ov.gif", "images/hompage/bttn_accord_wpp_ov.gif");
	if (document.getElementById("imgConditionalWagering")) new LinkButton(document.getElementById("imgConditionalWagering"), "images/hompage/bttn_accord_cw_df.gif", "images/hompage/bttn_accord_cw_ov.gif", "images/hompage/bttn_accord_cw_ov.gif");
	if (document.getElementById("imgWagQMore")) new LinkButton(document.getElementById("imgWagQMore"), "images/hompage/bttn_accord_wqp_df.gif", "images/hompage/bttn_accord_wqp_ov.gif", "images/hompage/bttn_accord_wqp_ov.gif");
	if (document.getElementById("imgAdvTools")) new LinkButton(document.getElementById("imgAdvTools"), "images/hompage/bttn_accord_aat_df.gif", "images/hompage/bttn_accord_aat_ov.gif", "images/hompage/bttn_accord_aat_ov.gif");

}

function signUpNow() {
    window.location = HTTPS_APP_ROOT + "account/signupform.asp";
}

var m_oCurrentTab = null;

function tab_unselectTab(oTab) {
    var sContentDivId = oTab.getAttribute("target");
    var oDivContent = document.getElementById(sContentDivId);
	
    oTab.className = "clsTabTableTabs";
    oDivContent.style.display = "none";
    
    if (oTab.getElementsByTagName("IMG")["imgCaptionLogoOn"] &&
        oTab.getElementsByTagName("IMG")["imgCaptionLogoOff"])
    {
        oTab.getElementsByTagName("IMG")["imgCaptionLogoOff"].style.display = "block";
        oTab.getElementsByTagName("IMG")["imgCaptionLogoOn"].style.display = "none";
    }
}

function tab_selectTab(oTab) {
    var sContentDivId = oTab.getAttribute("target");
    var oDivContent = document.getElementById(sContentDivId);
    
    var oParentDiv = document.getElementById("divContentArea");
	
    oTab.className = "clsTabTableTabsOver";
    //ScrollDiv(oDivContent, 79);
	//fadeIn(oParentDiv, 2, 24)
    oDivContent.parentNode.style.display = "block";
    oDivContent.style.display = "block";
    
    if (oTab.getElementsByTagName("IMG")["imgCaptionLogoOn"] &&
        oTab.getElementsByTagName("IMG")["imgCaptionLogoOff"])
    {
        oTab.getElementsByTagName("IMG")["imgCaptionLogoOff"].style.display = "none";
        oTab.getElementsByTagName("IMG")["imgCaptionLogoOn"].style.display = "block";
    }
}

function tab_onMouseOver(oTab) {
    if (null != m_oCurrentTab && m_oCurrentTab != oTab) {
        tab_unselectTab(m_oCurrentTab);
        m_oCurrentTab = null;
    }
    
    tab_selectTab(oTab);
    m_oCurrentTab = oTab;
}

function tab_onMouseOut(oTab) {
    var targetName = oTab.getAttribute("target");
    var target = document.getElementById(targetName);
    //oTab.className = "clsTabTableTabs";
    //target.style.display = "block";
}

function tab_onMouseDown(oTab) {
    var targetName = oTab.getAttribute("target");
    var target = document.getElementById(targetName);
    //oTab.className = "clsTabTableTabs";
    //target.style.display = "none";
}

var sSelectedPromoImgId = "tdPromotionsTab";
function onPromoTabSelected(sPromoTabId, sContentUrl) {
    try {
        if ("undefined" != "" + sSelectedPromoImgId) {
            document.getElementById(sSelectedPromoImgId).className = "clsPromoContentTab_off";
        }
        
        if ("undefined" != "" + sPromoTabId) {
            document.getElementById(sPromoTabId).className = "clsPromoContentTab_on";
            sSelectedPromoImgId = sPromoTabId;
        }
        
        if ("undefined" != "" + sContentUrl) {
            document.getElementById("frmPromoContent").contentWindow.document.location.replace(sContentUrl);
        }
    } catch (e) {
    }
}
