	var interval = setInterval( "slideSwitch()", 5000 );
	
	function slideSwitch() {
    	
    	var $active = $('#slideShow .slide.active');
		
    	if ( $active.length == 0 ) { $active = $('#slideShow .slide:last'); };
    
		var $next =  $active.next().length ? $active.next() : $('#slideShow .slide:first');
		
    	$active.addClass('last-active');

	    $next.css({opacity: 0.0})
    	     .addClass('active')
    	     .animate({opacity: 1.0}, 250, function() {
    	        $active.removeClass('active last-active');
         });
		 
	};

	$(function() {
	    
   		$('#slideShow').mouseover(function(){
      		//alert('over');
    		clearInterval(interval);
    	}).mouseout(function(){
    		//alert('out');
      		interval = setInterval( "slideSwitch()", 5000 );
	    });

	});
	
