$(document).ready(function() {

	$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'dark_square'})                        

    $("ul.sf-menu").superfish();
    
    for (var i = 0; i< $(".carousel-item").length; i++) {
	    createPagerLi();
    };
		
    function createPagerLi()
    {
        var pagerLi = document.createElement("li");
        pagerLi.innerHTML = "<a href='#'>slide asset<\/a>";
        document.getElementById("pager").appendChild(pagerLi);
    }
       
    //center feature navigation through math 
     var pw = $('#pager').width();
     var pl = (990 - pw) / 2  + "px";
     //alert(pl);
     
     //set feature nav center
      $('#pager').css('left', pl);
      
      $("#zip").focus(function () {if($(this).val() == "Zip Code"){$(this).val("");}});//these just toggle the word 'zip code' when you edit the field
    $("#zip").blur(function () {if($(this).val() == ""){$(this).val("Zip Code");}});
  
    $('.boxgrid').hover(function(){
	$(".cover", this).stop().animate({top:'80px'},{queue:false,duration:300});
       }, function() {
       $(".cover", this).stop().animate({top:'150px'},{queue:false,duration:300});
     });
	
	
    $('.boxgrid').hover(function(){
	$(".cover2", this).stop().animate({top:'80px'},{queue:false,duration:300});
       }, function() {
       $(".cover2", this).stop().animate({top:'170px'},{queue:false,duration:300});
     }); 				
  
});


