﻿$(document).ready(function () {
   
    $(".parent").hover(function () {
        $(".child").slideUp(1);
        $(this).find(".child").css({ "z-index": "9999" }).slideDown(20);
    }, function () {
        $(this).find(".child").slideUp(20);
    });

    $("[watermarktext]").each(function () {

        $(this).val($(this).attr("watermarktext"));
        $(this).focus(function () {
            if ($(this).val() == $(this).attr("watermarktext")) {
                $(this).val("");
              
            }
        }).blur(function () {
            if ($(this).val() == "") {
                $(this).val($(this).attr("watermarktext"));
            
            }
        });
    });
    var width = 0;
    $(".num").each(function () {
        width = width + 37;
        $(".navnumbers").css({ "width": width / 2 + "px" });
    });



    $('.Leftbanner').cycle({
        fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    });

    $("#dialog-loading").dialog({
        modal: true,
        autoOpen: false,
        width: 200,
        height: 100,
        shadow: true,
        collapsible: false,
        draggable: false,
        resizable: false,
        closable: false
    });


    $("#dialog-loading").ajaxStart(function () {
        $(this).dialog('open');
    });

    $("#dialog-loading").ajaxStop(function () {
        $(this).dialog('close');
    });

});
