jQuery(window).bind('load', function() { jQuery('.foreground').toggle('slow'); jQuery("#back-top span#button").hover( function() { jQuery(this).addClass("shift"); }, function() { jQuery(this).removeClass("shift"); }) jQuery(".view-block-services .views-field-view-node .field-content").hover( function() { jQuery(this).addClass("flash"); }, function() { jQuery(this).removeClass("flash"); }) }); jQuery(function() { jQuery('.view-portfolio .views-field-field-portfolio-image a').hide(); }); jQuery(window).bind('load', function() { var i = 1; var imgs = jQuery('.view-portfolio .views-field-field-portfolio-image a').length; var int = setInterval(function() { //console.log(i); check to make sure interval properly stops if(i >= imgs) clearInterval(int); jQuery('.view-portfolio .views-field-field-portfolio-image a:hidden').eq(0).fadeIn(300); i++; }, 300); }); jQuery(function() { jQuery('.views-row .views-field-field-portfolio-image-1').hide(); }); jQuery(window).bind('load', function() { var i = 1; var imgs = jQuery('.views-row .views-field-field-portfolio-image-1').length; var int = setInterval(function() { //console.log(i); check to make sure interval properly stops if(i >= imgs) clearInterval(int); jQuery('.views-row .views-field-field-portfolio-image-1:hidden').eq(0).fadeIn(300); i++; }, 300); }); jQuery(function(){ jQuery('.view-portfolio .views-row .views-field-field-portfolio-image a').hover(function(){ jQuery(this).find('img').stop().animate({opacity:'.4'}) }, function(){ jQuery(this).find('img').stop().animate({opacity:'1'}) }) })