$(window).unload( function () {} ); // clear ff and safari cache

$(document).ready(function(){
    if(true == false){
        $("ul.signin li a").click(function() {
            $(this).parent().find("ul.subnav").slideDown('fast').show();
            $(this).parent().hover(function() {
            }, function(){
                $(this).parent().find("ul.subnav").slideUp('slow');
            });
            }).hover(function() {
                $(this).addClass("subhover");
            }, function(){
                $(this).removeClass("subhover");
        });
    }

    $(".main-banner .submenu a").hover(function() {
        $(this).parent().addClass("hover")}, function(){
        $(this).parent().removeClass("hover")}
    );

});

function displayPrice(el)
{
    if(Shadowbox)
    {
        Shadowbox.open({
        content:    el.href + "?min=true",
        player:     "iframe",
        height:     540,
        width:      950
        });

    }

    return false;
}

function displayGlossary(el)
{
    if(Shadowbox)
    {
        Shadowbox.open({
        content:    el.href,
        player:     "iframe",
        height:     500,
        width:      950
        });
    }
    return false;
}

function displayLessonPlan(el)
{
    if(Shadowbox)
    {
        Shadowbox.open({
        content:    el.href,
        player:     "iframe",
        height:     450,
        width:      500
        });
    }
    return false;
}

function displayEncyclopedia(el)
{
    if(Shadowbox)
    {
        Shadowbox.open({
        content:    el.href,
        player:     "iframe",
        height:     500,
        width:      950
        });
    }
    return false;
}

function displayThesaurus(el)
{
    if(Shadowbox)
    {
        Shadowbox.open({
        content:    el.href,
        player:     "iframe",
        height:     500,
        width:      950
        });
    }
    return false;
}

function displayDictionary(el)
{
    if(Shadowbox)
    {
        Shadowbox.open({
        content:    el.href,
        player:     "iframe",
        height:     500,
        width:      950
        });
    }
    return false;
}
