$(window).load(function(){var tPane = document.getElementById("dnn_TopPane");
    var cPane = document.getElementById("dnn_ContentPane");
    var bPane = document.getElementById("dnn_BottomPane");
    var cm = document.getElementById("content-middle");
    var h = (cPane == null ? 0 : cPane.clientHeight)
        + (bPane == null ? 0 : bPane.clientHeight) + (tPane == null ? 0 : tPane.clientHeight);
    if (cm != null)
        cm.style.height = h + "px";
    var sc = document.getElementById("side-content");
    if (sc != null) {
        var mc = document.getElementById("main-content");
        var br = document.getElementById("breadcrumb");
        h = sc.clientHeight + (br == null ? 0 : br.clientHeight);
        if (mc.clientHeight < h) {
            mc.style.height = (h - 15) + "px";
        }
    }
});
$(document).ready(function() {
    if (isIE6()) {
        var sfEls = document.getElementById("nav").getElementsByTagName("LI");
        for (var i = 0; i < sfEls.length; i++) {
            sfEls[i].onmouseover = function() {
                this.className += " sfhover";
            }
            sfEls[i].onmouseout = function() { this.className = this.className.replace(new RegExp(" sfhover\\b"), ""); }
        }
    }
});
$(document).ready(function() {
    $("#nav li a[@href='" + location.href + "']").each(function() {
        $(this).addClass('active');
        $(this).parent().parent().parent().addClass("active")
    });
});
$(document).ready(function() {
    if (!window.topGame) window.topGame = {};
    topGame.timeId = 0;
    topGame.index = -1;
    topGame.anchors = $('#top-game-container > a');
    topGame.navs = $('#top-game-nav > li > span');
    topGame.count = topGame.anchors.length;
    topGame.rotate = function() {
        topGame.index = ((topGame.index + 1) % topGame.count);
        topGame.clear();
        topGame.setActive(topGame.index);
        topGame.timeId = setTimeout('topGame.rotate()', 5000);

    }
    topGame.init = function() {
        for (var i = 0; i < topGame.count; i++) {
            topGame.navs[i].onmouseover = topGame.mouseover;
            topGame.navs[i].onmouseout = topGame.mouseout;
            topGame.navs[i].index = i;
            topGame.navs[i].onclick = topGame.click;
        }
        topGame.rotate();
    }
    topGame.clear = function() {
        for (var i = 0; i < topGame.count; i++) {
            topGame.navs[i].className = "block";
            topGame.anchors[i].style.display = 'none';
        }
    }
    topGame.setActive = function(i) {
        topGame.anchors[i].style.display = "inline";
        topGame.navs[i].className = "top-game-hover";
    }
    topGame.mouseover = function() {
        window.clearTimeout(topGame.timeId);
        topGame.timeId = 0;
        topGame.clear();
        topGame.anchors[this.index].style.display = "inline";
        this.style.display = "block";
        this.className = "top-game-hover";
    }
    topGame.mouseout = function() {
        topGame.rotate();
    }
    topGame.click = function() {
        location.href = topGame.anchors[this.index].href;
    }
    if (topGame.count > 0)
        topGame.init();
});
function isIE6() { return false/*@cc_on || @_jscript_version < 5.7@*/; }
function isIE() { return /*@cc_on!@*/false; }