jQuery(document).ready(function($){ //content $("#content").height($("#content").height()); //portfolio thumbnails for(i=0; i<$(".portfolio-thumbs li").length; i++) { $(".portfolio-thumbs li:eq("+i+")").hide().animate({ borderWidth: 0 }, i*100).slideDown(600); } $(".portfolio-thumbs li div") .css({ cursor: "pointer" }) .each(function(){ $(this).data("href", $(this).find("a").attr("href")); }) .mouseover(function(){ $(this).find("img").stop().animate({ opacity: .01, left: 0 }).css({ zIndex: -1 }); $(this).find("span").stop().animate({ left: 0 }, 400); $(this).find("strong").stop().animate({ left: -155 }, 400); }) .mouseout(function(){ $(this).find("img").stop().css({ zIndex: 0 }).animate({ opacity: 1, left: -145 }); $(this).find("span").stop().animate({ left: 155 }, 400); $(this).find("strong").stop().animate({ left: 0 }, 400); }) .click(function(){ document.location = $(this).data("href"); }); });