/***************************************************************************************************************
* initialize all onload functions
****************************************************************************************************************/
addEvent(window, 'load', offsiteLinkIndicator);

window.onload=function(){
    initFunctions();
}

function initFunctions(){
    backToTop();
    /* 
             * initHeight() function is now disabled, column re-adjustment should now be dealed with CSS
             *
             *  initHeights();
             */
}



/***************************************************************************************************************
* site specific functions
****************************************************************************************************************/

//BoardIQ specific navigation rollovers
var parentBG;
var childBorderTop;
var childBorderBottom;
function mainLinkRO(thisParent,thisChild,ROstate){
    if(ROstate == "navRO" || ROstate == "secondRO"){
        parentBGimage = cascadedstyle(thisParent, 'backgroundImage', 'background-image');
        childBorderTop = cascadedstyle(thisChild[0], 'borderTopStyle', 'border-top-style') + " " + cascadedstyle(thisChild[0], 'borderTopWidth', 'border-top-width') + " " + cascadedstyle(thisChild[0], 'borderTopColor', 'border-top-color');
        childBorderBottom = cascadedstyle(thisChild[0], 'borderBottomStyle', 'border-bottom-style') + " " + cascadedstyle(thisChild[0], 'borderBottomWidth', 'border-bottom-width') + " " + cascadedstyle(thisChild[0], 'borderBottomColor', 'border-bottom-color');
        thisParent.style.backgroundImage = cascadedstyle(document.getElementById(ROstate), 'backgroundImage', 'background-image');
        thisParent.style.backgroundRepeat = cascadedstyle(document.getElementById(ROstate), 'backgroundRepeat', 'background-repeat');
        thisChild[0].style.borderTop = cascadedstyle(document.getElementById(ROstate), 'borderTopStyle', 'border-top-style') + " " + cascadedstyle(document.getElementById(ROstate), 'borderTopWidth', 'border-top-width') + " " + cascadedstyle(document.getElementById(ROstate), 'borderTopColor', 'border-top-color');
        thisChild[0].style.borderBottom = cascadedstyle(document.getElementById(ROstate), 'borderBottomStyle', 'border-bottom-style') + " " + cascadedstyle(document.getElementById(ROstate), 'borderBottomWidth', 'border-bottom-width') + " " + cascadedstyle(document.getElementById(ROstate), 'borderBottomColor', 'border-bottom-color');
    }
    else{
        thisParent.style.backgroundImage = parentBGimage;
        thisChild[0].style.borderTop = childBorderTop;
        thisChild[0].style.borderBottom = childBorderBottom;
    }
}