﻿
$(document).ready(function () {
    mediaViewer();
    $("a.new-window").popupwindow(params);
    $('a').each(function () {
        if ($(this).attr('rel') == "external") this.target = "_blank";
    });
    $("li.drop-down").click(function (evt) {
        evt.stopImmediatePropagation();
        $(this).addClass("expand");
    });
    $("#main-menu > li").mouseover(function () {
        if ($(this).hasClass('expand')) return false;
        else $("li.drop-down").removeClass("expand");
    });
    $('body').click(function () {
        $("li.drop-down").removeClass("expand");
    });
    // IE6 fix for hover psuedo class on a list item
    $("li.drop-down").hover(function () {
        $(this).toggleClass("hover");
    });
});
