﻿
var WeatherBg = new Image();
WeatherBg.src = "Graphics/General/WeatherBg.png";

function GetWeatherForecast() {
    
    var sUrl = "Content.asmx/GetWeatherForecast";
    var sData = "";
    $("#weatherLoader").fadeIn(500);
    
    $.ajax({
        type: "POST",
        url: sUrl,
        data: sData,
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function(msg) {
            //$("#tabLoader").hide();
            // Replace the div's content with the page method's return.
            $("#weatherForecast").html(msg.d);
            $("#weatherLoader").fadeOut(500);
            $("#weatherForecast").fadeIn(500);
        }
    });
}

function CloseWeatherForecast(ID) {
    $("#" + ID).fadeOut(500);
}
