﻿// JavaScript Document

sfHover = function() {
    var sfEls = document.getElementById("main-menu").getElementsByTagName("LI");
    for (var i = 0; i < sfEls.length; i++) {
        sfEls[i].onmouseover = function() {
            this.className += " sfHover";
        }
        sfEls[i].onmouseout = function() {
            $(this).removeClass("sfHover");
        }
    }
}


function dimBg() {
    $('div#page').animate({ opacity: 0.5 }, "fast");
    if ($.browser.msie) {
        $('#header').addClass('opacity');
        $('select').hide();
    }
}
function increaseBg() {
    $('#page').animate({ opacity: 1.0 }, "fast");
    if ($.browser.msie) {
        $('#header').removeClass('opacity');
        $('select').show();
    }
}

$(document).ready(function() {
    /*menu buttons*/
    sfHover();

    /*dim background*/
    //$("#menu").hover(dimBg, increaseBg);

    //Page Links

    //external link
    $("a.newwindow").click(function() {
        this.target = "_blank";
    });

});	



