﻿var shadowed = new Array();
$(document).ready(function() {
    $(".mainHeaderLink").mouseover(function() {
        //$(this).children("div").children("a").css("color", "#008439");
        $(this).css("background-image", "url(/images/redesign/mainLinkBack.jpg)");
        $(this).children("div").children("div").show();
        $(this).children("div").show();
        var arLen = shadowed.length;
        var isIn = false;
        for (var i = 0, len = arLen; i < len; ++i) {
            if (shadowed[i] == this)
                isIn = true;
        }
        if (isIn != true) {
            shadowed.push(this);

            $(this).children("div").children("div").dropShadow();
            $(this).children("div").children("div").show();
        }
    });

    $(".mainHeaderLink").mouseleave(function() {
        //$(this).children("div").children("a").css("color", "white");
        $(this).css("background-image", "none");
        $(this).children("div").children("div").hide();
    });

    //$(".subHeaderMenu").dropShadow();

    //$(".dropShadow").hide();
    //$(".subHeaderMenu").hide();



});
