$(document).ready(function() {
	$('#head-slideshow img:first').fadeIn(6000, function() {
		$('#head-slideshow').cycle({
			fx: 'fade', speed: 6000, timeout:30000
		});
	});
});


$(document).ready(function() {
	$("#current-weather").load("common/php/weather_current.php");
   	refreshId = setInterval(function() {
   	$("#current-weather").load("common/php/weather_current.php");
    }, 60000);
});

$(document).ready(function(){
	$("#open-weather-forecast").click(function(){
		$("#weather-forecast-box").show("fast", function(){
            $("#full-shadow").show();
            $("#weather-forecast-box")
            .animate({opacity: "0.4", left: "-=835", top: "-=450", height: "100", width: "100"}, "slow")
            .animate({opacity: "1",  height: "570", width: "939"}, "slow");
            $("#weather-forecast-box").load("common/php/weather_forecast.php");
        });
    });
    return false;
});



//Loads the initial page
$(document).ready(function(){
    $("#loader").show();
    $("#content").load("common/pages/main-page.php", function(){
        $("#loader").hide();
        $("#content").show(400);
    });
    return false;
});


$(document).ready(function(){
    $("#main-page").click(function(){
        $("#loader").show();
        $("#content").hide(400, function(){
            $("#content").load("common/pages/main-page.php", function(){
                $("#loader").hide();
                $("#content").show(400);
            });
        });
    });
    return false;
});



$(document).ready(function(){
    $("#about-lisa").click(function(){
        $("#loader").show();
        $("#content").hide(400, function(){
            $("#content").load("common/pages/about-lisa.php", function(){
                $("#loader").hide();
                $("#content").show(400);
            });
        });
    });
    return false;
});

$(document).ready(function(){
    $("#featured-properties").click(function(){
        $("#loader").show();
        $("#content").hide(400, function(){
            $("#content").load("common/pages/featured-properties.php", function(){
                $("#loader").hide();
                $("#content").show(400);
            });
        });
    });
    return false;
});

$(document).ready(function(){
    $("#contact-lisa").click(function(){
        $("#loader").show();
        $("#content").hide(400, function(){
            $("#content").load("common/pages/contact-lisa.php", function(){
                $("#loader").hide();
                $("#content").show(400);
            });
        });
    });
    return false;
});







