﻿//var vho = $("#third-content").height();

$(document).ready(function() {
    $("#master-modal").dialog({
        autoOpen: false,
        height: 110,
        width: 240,
        modal: true,
        resizable: false,
        overlay: {
            opacity: 0,
            background: "#fefefe"
        }
    }).show();
    //show dialog on ajax calls
    //if you dont want to show the dialog on an ajax call, set global: false
    $(document).ajaxStart(function(event) {
        $("#master-modal").dialog("open");
    }).ajaxStop(function() {
        $("#master-modal").dialog("close");
    }).ajaxError(function() {
        $("#master-modal").dialog("close");
    });
    $(".txtSearch").attr("original", $(".txtSearch").val());
    $(".txtSearch").focus(function() {
        if ($(this).attr("original") == $(this).val()) {
            $(this).val("");
        }
    }).blur(function() {
        if ($(this).val() == "") {
            $(this).val($(this).attr("original"));
        }
    });
    $("#footer li[class!=copyright][class!=last]").append("&nbsp;&nbsp;&nbsp;&nbsp;|");
    if ($("#third-content") != undefined) { $("#third-content").parent().addClass("third") };
    $("#slider1").css("visibility", "hidden");    
    

    
});