$(document).ready(function(){ $('ul.homeactions a:first').css({'height':'150px'}); $('ul.homeactions a').hover(function(){ $('ul.homeactions a').stop().animate({'height':'50px'}) $(this).stop().animate({'height':'150px'}); }); $('#feature ul.left').innerfade({ speed: 1000, timeout: 5000, type: 'sequence', containerheight: '190px' }); $('#feature ul.right').innerfade({ speed: 1000, timeout: 5200, type: 'sequence', containerheight: '190px' }); $(".gallery a").prettyPhoto({ animationSpeed: 'normal', /* fast/slow/normal */ padding: 40, /* padding for each side of the picture */ opacity: 0.35, /* Value betwee 0 and 1 */ showTitle: true, /* true/false */ allowresize: true, /* true/false */ counter_separator_label: ' / ', /* The separator for the gallery counter 1 "of" 2 */ theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square */ }); $("img:not([title])").each(function() { $(this).attr("title", $(this).attr("alt")) }) // $('table.project img[title],img.left[title]').hovertip(); $(".gallery img[title]").wTooltip({ style: { color: "#fff", background: "#6a0000" } }); $(".gallery img").hover(function(){ $(".gallery img").css({'opacity':.4}); $(this).css({'opacity':1}); },function(){ $(".gallery img").css({'opacity':1}); }); });