$(function() {

		// set opacity to nill on page load

		$("#banner span").css("opacity","0");
		var header_image;

		// on mouse over
		 $("#menu-item-282").hover(function () {
                        header_image = 'url(wp-content/themes/twentyeleven/images/headers/skyheader1.jpg)';
                        $("#banner a.home span").css("background", header_image);
                        // animate opacity to full

                        $("#banner a.home span").stop().animate({

                                opacity: 1

                        }, 'slow');
                },
                function () {
                        // animate opacity to nill
                        $("banner a.home span").stop().animate({
                                opacity: 0
                        }, "slow");
                $("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
                });

		$("#menu-item-283").hover(function () {
			header_image = 'url(wp-content/themes/twentyeleven/images/headers/sunrise1.jpg)';
			$("#banner a.home span").css("background", header_image);
			// animate opacity to full

			$("#banner a.home span").stop().animate({

				opacity: 1

			}, 'slow');
		},
 		function () {
			// animate opacity to nill
			$("banner a.home span").stop().animate({
				opacity: 0
			}, "slow");
		$("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
		});

	$("#menu-item-300").hover(function () {
                        header_image = 'url(wp-content/themes/twentyeleven/images/headers/skyheader2.jpg)';
                        $("#banner a.home span").css("background", header_image);
                        // animate opacity to full

                        $("#banner a.home span").stop().animate({
                                opacity: 1
			}, 'slow');
        },
        function () {
            // animate opacity to nill
            $("banner a.home span").stop().animate({
                opacity: 0
            }, "slow");
        $("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
        });
	$("#menu-item-314").hover(function () {
                        header_image = 'url(wp-content/themes/twentyeleven/images/headers/flowersky.jpg)';
                        $("#banner a.home span").css("background", header_image);
                        // animate opacity to full

                        $("#banner a.home span").stop().animate({
                                opacity: 1
                        }, 'slow');
        },
        function () {
            // animate opacity to nill
            $("banner a.home span").stop().animate({
                opacity: 0
            }, "slow");
        $("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
        });
	$("#menu-item-481").hover(function () {
                        header_image = 'url(wp-content/themes/twentyeleven/images/headers/lighthouse.jpg)';
                        $("#banner a.home span").css("background", header_image);
                        // animate opacity to full

                        $("#banner a.home span").stop().animate({
                                opacity: 1
                        }, 'slow');
        },
        function () {
            // animate opacity to nill
            $("banner a.home span").stop().animate({
                opacity: 0
            }, "slow");
        $("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
        });
	$("#menu-item-323").hover(function () {
                        header_image = 'url(wp-content/themes/twentyeleven/images/headers/sunflowersky.jpg)';
                        $("#banner a.home span").css("background", header_image);
                        // animate opacity to full

                        $("#banner a.home span").stop().animate({
                                opacity: 1
                        }, 'slow');
        },
        function () {
            // animate opacity to nill
            $("banner a.home span").stop().animate({
                opacity: 0
            }, "slow");
        $("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
        });
	$("#menu-item-327").hover(function () {
                        header_image = 'url(wp-content/themes/twentyeleven/images/headers/heavenview.jpg)';
                        $("#banner a.home span").css("background", header_image);
                        // animate opacity to full

                        $("#banner a.home span").stop().animate({
                                opacity: 1
                        }, 'slow');
        },
        function () {
            // animate opacity to nill
            $("banner a.home span").stop().animate({
                opacity: 0
            }, "slow");
        $("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
        });

	$("#menu-item-915").hover(function () {
                        header_image = 'url(wp-content/themes/twentyeleven/images/headers/skyheader3.jpg)';
                        $("#banner a.home span").css("background", header_image);
                        // animate opacity to full

                        $("#banner a.home span").stop().animate({
                                opacity: 1
                        }, 'slow');
        },
        function () {
            // animate opacity to nill
            $("banner a.home span").stop().animate({
                opacity: 0
            }, "slow");
        $("#banner a.home").css("background",header_image);
                $("#banner span").css("opacity","0");
        });

});


