/*
 * jQuery Headerslide
 *
*/

function slideSwitch() {
    var $active = $('#action div.active');

	if ( $active.hasClass("last") ) {
		//var $next =  $('#action div.first');
		clearInterval(action);
	} else {
		var $next =  $active.next();
		
    
    $active.animate({marginLeft : "-825px"}, 800, "easeInOutQuad", function() {
            $active.removeClass('active').css({marginLeft : "825px"});
        });
        
    $next.animate({marginLeft : "0"}, 800, "easeInOutQuad", function() {
            $next.addClass('active');
        });
        
   }
}


