﻿$(document).ready(function() {


    $(".bChangeEmail").click(function() {


        $('.divEmail').css("display", "none");
        $('.divEmail').css("visibility", "hidden");

        $('.txtEmail').css("visibility", "visible");
        $('.txtEmail').css("display", "block");
        
        
        return false;
    });
    
    $("#chkTerms").click(function() {

        if ($(this).is(':checked'))
            $(".btnContinue").attr("disabled", false).attr("src", "/Resources/Images/_efund_/_classic_/en-us/freekit/continueBtn.gif");
        else
            $(".btnContinue").attr("disabled", true).attr("src", "/Resources/Images/_efund_/_classic_/en-us/freekit/continueBtn_grey.gif");

    });




    $(".selected").each(function(index) {
        $(this).prev(".menuliner").html("");
        $(this).next().find(".menuliner").html("");

    });

    $('.topNav a').mouseover(function() {
        $(this).prev(".menuliner").html("");
        $(this).parent().next().find(".menuliner").html("");

    });

    $('.topNav a').mouseout(function() {

        if ($(this).parent().hasClass("selected") == false) {
            if ($(this).parent().prev().hasClass("selected") == false) {
                $(this).prev(".menuliner").html("|");
            }
            $(this).parent().next().find(".menuliner").html("|")
        }
    });

    //See more in home content control
    $('.homeMore').click(function() {
        if ($(this).attr("isopen") == "0") {
            $(this).parent().parent().parent().parent().find(".slider").show('slow', function() { });
            $(this).attr("isopen", "1")
            $(this).html("Close >");
        }
        else {
            $(this).parent().parent().parent().parent().find(".slider").hide('slow', function() { });
            $(this).attr("isopen", "0")
            $(this).html("More >");
        }
        return false;
    });

    $('.print').click(function() {
        window.print();

        return false;
    });

    $('.seeAll').click(function() {

        $(".tooltip").hide();
        $(this).parent().parent().find(".tooltip").show('slow', function() { });

        return false;
    });

    $('.thumbUp').mouseover(function() {

        $(".thumbUpSquare").hide();
        $(this).parent().find(".thumbUpSquare").show();

        return false;
    });

    $('.thumbUpSquare').mouseleave(function() {
        $(this).hide();
    });

    $('.tooltip').mouseleave(function() {
        $(this).hide();
    });

});
        
 
