
$(function() {
	if($(".latestFade .news-latest-container").length >1) {
		$(".slidetabs").tabs(".latestFade > div", {
			// enable "cross-fading" effect
			effect: 'fade',
			fadeOutSpeed: 1500,
			fadeInSpeed: 1500,
			// start from the beginning after the last tab
			rotate: true
		}).slideshow({
			interval: 7000,
			clickable: false
		});
	}else {
		$(".latestFade .news-latest-container").css("display","block");
	}
});

//jQuery.noConflict();
$(document).ready(function() {

	if($(".latestFade div.news-latest-container").length >1) {
		$(".latestFade > div.news-latest-container").each(function(){
			var link = $(this).find("a:first").attr("href");
			$(this).click(function(){
				window.location.href = link;
			});
		});
		$(".slidetabs").data("slideshow").play();
	}
});
