$(document).ready(function(){

	$('.anchors').localScroll();

	//$('#people-list').masonry();
	
	/*Thanks SunriseDesign!
    var westCloudTop = $("#topwestCloud").css("top");

    $("#topwestCloud").hover(
      function() {
        $("#topwestCloud").everyTime(10, function(){
          $("#topwestCloud").animate({"top":"-=3px", "rotate":"1deg"},500,"linear").animate({"top":"+=3px", "rotate":"-1deg"},500,"linear");
        });
      },
      function () {
        $("#topwestCloud").stop(true).stopTime();
        $("#topwestCloud").animate({"top":westCloudTop,"rotate":"0deg"},500,"linear");
      }
    );
    
    $("#topeastCloud").hover(
      function() {
        $("#topeastCloud").everyTime(10, function(){
          $("#topeastCloud").animate({"top":"-=3px", "rotate":"1deg"},500,"linear").animate({"top":"+=3px", "rotate":"-1deg"},500,"linear");
        });
      },
      function () {
        $("#topeastCloud").stop(true).stopTime();
        $("#topeastCloud").animate({"top":westCloudTop,"rotate":"0deg"},500,"linear");
      }
    );
    */
    
    $("#buildings").click(function(){
      	$("#eastCity").animate({bottom: '-=300'});
      	$("#westCity").animate({bottom: '-=300'});
    });
    $("#topwestCloud").click(function(){
    	$("#topwestCloud").animate({top:'-=200'});
    });
    $("#topeastCloud").click(function(){
    	$("#topeastCloud").animate({top: '-=200'});
    });
    
/*
var wbuildings = ["#bromo","#monument","#aquarium"];
var ebuildings = ["#powerplant","#cityhall","#nattyboh"];

$.each(wbuildings,
	function(intIndex, objValue){
		var retVal = $(objValue).css("left");
		$(objValue).hover(
			function(){
				$(objValue).everyTime(10,function(){
					$(objValue).animate({"left":"-=5px", "rotate":"1deg"},500,"linear").animate({"left":"+=5px","rotate":"-1deg"},500,"linear");
				});
			},
			function(){
				$(objValue).stop(true).stopTime();
				$(objValue).animate({"left":retVal,"rotate":"0deg"},500,"linear");
			}
		);
	}
);

$.each(ebuildings,
	function(intIndex, objValue){
		var retVal = $(objValue).css("right");
		$(objValue).hover(
			function(){
				$(objValue).everyTime(10,function(){
					$(objValue).animate({"right":"-=5px", "rotate":"1deg"},500,"linear").animate({"right":"+=5px","rotate":"-1deg"},500,"linear");
				});
			},
			function(){
				$(objValue).stop(true).stopTime();
				$(objValue).animate({"right":retVal,"rotate":"0deg"},500,"linear");
			}
		);
	}
);
*/
    
    
Cufon.replace('.heading', {
	textShadow: '1px 1px rgba(0, 0, 0, 0.3)'
});


});
