/* nivoSlider */ /* cufon font replacement */ Cufon.replace('h1,h2,h3,.navigation a,',{ hover: true }); //remove last border $(document).ready(function() { $('.menu li:last').addClass("lastlink"); $('.footer-links li:last').addClass("lastlink"); $('.homepage-columns li:odd').addClass("home-alternatebox"); $('.homepage-columns li:last').addClass("no-margin"); }); // If the HTML document is ready to be manipulated $(document).ready(function(){ // Add the hover handler to the link $("ul.social-icons li a").hover( function(){ $(this).find("img").animate({top : '-6px'}, 200); }, function(){ $(this).find("img").animate({top : '0px'}, 200); } ); }); $("input.focus:last").focus(); $(document).ready(function(){ $("a[rel^='prettyPhoto']").each(function() { var $image = $(this).contents("img"); $hoverclass = 'hover_video'; if($(this).attr('href').match(/(jpg|gif|jpeg|png|tif)/)) $hoverclass = 'hover_image'; if ($image.length > 0) { var $hoverbg = $("").appendTo($(this)); $(this).bind('mouseenter', function(){ $height = $image.height(); $width = $image.width(); $pos = $image.position(); $hoverbg.css({height:$height, width:$width, top:$pos.top, left:$pos.left}); }); } }); $("a[rel^='prettyPhoto']").contents("img").hover(function() { $(this).stop().animate({"opacity": "0.2"}, 400); },function() { $(this).stop().animate({"opacity": "1"},400); }); });