// JavaScript Document $(document).ready(function(){ $('.children').each(function(){ $(this).parent().eq(0).hover(function(){ $('.children:eq(0)',this).show(); },function(){ $('.children:eq(0)',this).hide(); }); }); }); $(document).ready(function(){ $('#access li a:first').css('background','none'); $('.bottom-blurb-half:last').css('margin','0'); $('#maps li.map-section:last').css('background','none'); }); var $j = jQuery.noConflict(); function slideSwitch() { var $active = $j('#slideshow IMG.active'); if ( $active.length == 0 ) $active = $j('#slideshow IMG:last'); var $next = $active.next().length ? $active.next() : $j('#slideshow IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } $j(document).ready(function() { setInterval( "slideSwitch()", 2500 ); });