function switchItems() {
	var $activeLogoItem = jQuery('#logo-rotator #item_thumb div.active');
	var $activeNewsItem = jQuery('#news-rotator #item_thumb div.active');
	
	if($activeLogoItem.length == 0) {
		$activeLogoItem = jQuery('#logo-rotator #item_thumb div.item:last');
	}
	
	if($activeNewsItem.length == 0) {
		$activeNewsItem = jQuery('#news-rotator #item_thumb div.item:last');
	}
	
	var $nextLogoItem = $activeLogoItem.next().length ? $activeLogoItem.next() : jQuery('#logo-rotator #item_thumb div.item:first');
	var $nextNewsItem = $activeNewsItem.next().length ? $activeNewsItem.next() : jQuery('#news-rotator #item_thumb div.item:first');
	
	//Set variables
	var $divLogoItem = $nextLogoItem.html(); //Get HTML of the "block" container
	var $divNewsItem = $nextNewsItem.html();
    
    //Animate the Description
    //$(".main_item .desc").animate({ opacity: 0, marginBottom: -imgDescHeight }, 250,

   	//Show active list-item
    /*$("#main_item").animate({opacity: 0}, 500,
    	function() {
    		$("#main_item").html(div).animate({opacity: 1}, 500)
    	}
    );*/
	jQuery("#logo-rotator #item_thumb div.item").removeClass('active'); //Remove class of 'active' on all list-items
    $nextLogoItem.addClass('active');  //Add class of 'active' on the selected list
    jQuery("#logo-rotator #main_item").html($divLogoItem);
    
    jQuery("#news-rotator #item_thumb div.item").removeClass('active'); //Remove class of 'active' on all list-items
    $nextNewsItem.addClass('active');  //Add class of 'active' on the selected list
    jQuery("#news-rotator #main_item").html($divNewsItem);
    
    return false;
}

jQuery(document).ready(function() {
	//logo-rotator
	jQuery("#logo-rotator #main_item").show(); //Show Banner
	jQuery("#logo-rotator #item_thumb div.item:first").addClass('active'); //Add the active class (highlights the very first list item by default)
	
	//news-rotator
	jQuery("#news-rotator #main_item").show();
	jQuery("#news-rotator #main_item").animate({ opacity: 0.85 });
	jQuery("#news-rotator #item_thumb div.item:first").addClass('active');

	var slideShow = setInterval("switchItems()", 5000);
	
});//close function
