﻿$(function() {
    $("#logintext").load("/AjaxHelper.aspx?action=LOGIN_STATE&r=" + Math.random())
    if ($.browser.version = '6.0' && $.browser.msie) {
        $("#nav").children().each(function(i) { $(this).mouseover(function() { $("ul", $(this)).addClass("hover").css("left", $(this).position().left + "px").css("top", $(this).position().top+28 + "px"); }).mouseout(function() { $("ul", $(this)).removeClass("hover") }) });
    }

});
function onbg(tabName) {
    $('#prep').attr("class", "dtab");
    //$('#para').attr("class", "dtab");
    $('#acce').attr("class", "dtab");
    $('#down').attr("class", "dtab");
    $('#prod').attr("class", "dtab");

    document.getElementById('prepCon').className = "displayN";
    //document.getElementById('paraCon').className = "displayN";
    document.getElementById('acceCon').className = "displayN";
    document.getElementById('downCon').className = "displayN";
    document.getElementById('prodCon').className = "displayN";

    document.getElementById(tabName).className = "selectedDTab";
    document.getElementById(tabName + "Con").className = "displayB";
}

function outbg(tabName) {

    document.getElementById(tabName).className = "dtab";
}
function onPic(btName) {
    var imgName = document.getElementById(btName).src;
    document.getElementById(btName).src = imgName.replace(".gif", "_on.gif");
}
function outPic(btName) {
    var imgName = document.getElementById(btName).src;
    document.getElementById(btName).src = imgName.replace("_on.gif", ".gif");
}
var moverhandler;
function imgbarMove(v) {
    var dvmb = document.getElementById('dvImagesBar'); if (!dvmb) return;
    if (moverhandler) window.clearInterval(moverhandler);
    if (v == 0) return;
    moverhandler = window.setInterval(function() { dvmb.scrollTop += v; }, 20);
}
