function w_tabChange(divName, linkObject) {
    var x;
    var tabToShow = 0;
    var arrayLinks = document.getElementById(divName).getElementsByTagName("a");

    // put all the active links as inactive and hide their tab
    for (x = 0; x < arrayLinks.length; x++) {
        arrayLinks[x].className = (arrayLinks[x].className).replace(" active", "");
        if (arrayLinks[x] == linkObject) {
            // put the current link as active and show its tab
            linkObject.className = linkObject.className + " active";
        }
    }
}

function w_showHideTabs(tab_id) {
    if (tab_id != active_tab) {
        $('#w_tab_' + active_tab).animate({ "height": "toggle", "opacity": "toggle" });
        $('#w_tab_' + tab_id).animate({ "height": "toggle", "opacity": "toggle" });
        active_tab = tab_id;
    }
}

function TipFix(title, text) {
    Tip(text, TITLE, title, FOLLOWMOUSE, false)
}
