function removeFirst(){
	$('#logofoot div.fadeitem:first').fadeIn('slow', function() { 
		$(this).animate({marginLeft: 0}, { duration: 5000 }).fadeOut('slow', function() { 
			$(this).insertAfter('#logofoot div.fadeitem:last').hide();
			timeout = setTimeout(removeFirst, 150); 
		});
	});
}
$(document).ready(function() { 
	$('#left ul').superfish({ 
		delay: 1000, 
		speed: 250
	});
	
	jQuery('.toggleBtn').parent().click(function(){
		jQuery(this).next('.contentBody').slideToggle('slow');
	});	
	
	$('#logofoot').children('br').each(function() { $(this).remove(); });    
    var results =[];                
    var elements = $("#logofoot").children();         
    $.map( elements  , function(i, n){                        
	    if( n%6 === 0 ){                                
		    results.push(n);                        
	    }                
    });                
    $.each( results , function(i,v){                        
	    elements.slice(v, v+6).wrapAll('<div class="fadeitem" style="display:none"></div>');                
    });
	var timeout = setTimeout(removeFirst, 1);
	$('#logofoot').css({'visibility' : 'visible'});
});
