$(document).ready(function(){  
  
    //When mouse rolls over  
    $("#navigation .sel").mouseover(function(){  
        $(this).stop().animate({width:'150'},{queue:false, duration:600, easing: 'easeOutBounce'}) 
        
    });  
  
    //When mouse is removed  
    $("#navigation .sel").mouseout(function(){  
        $(this).stop().animate({width:'190'},{queue:false, duration:600, easing: 'easeOutBounce'})  
    });  
  
});  


$(function(){$.fn.scrollToTop=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="0"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="0"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:0},"slow")})}});

$(function() {
$("#toTop").scrollToTop();
});


//stick the footer at the bottom of the page if we're on an iPad/iPhone due to viewport/page bugs in mobile webkit
$(function() {
if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
{
     $("#toTop").css("position", "static");};
});

//zoom
 $(document).ready(function(){
       $('#coverzoom').width(130);
       $('#coverzoom').mouseover(function()
       {
          $(this).css("cursor","pointer");
          $(this).animate({width: "720px"}, 'slow');
       });
    
    $('#coverzoom').mouseout(function()
      {   
          $(this).animate({width: "130px"}, 'slow');
       });
   });
