$(document).ready(function(){
	$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);

	var tabContainers = $('div.tabs > div');
	tabContainers.hide().filter(':first').show();

	$('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		$('div.tabs ul.tabNavigation a').removeClass('selected');
		$(this).addClass('selected');
		return false;
	}).filter(':first').click();


	function makeTabs(contId) {
		var tabContainers = $('#'+contId+' div.tabs2 > div');
		tabContainers.hide().filter(':first').show();

		$('#'+contId+' div.tabs2 ul.tabN a').click(function () {
			tabContainers.hide();
			tabContainers.filter(this.hash).show();
			$('#'+contId+' div.tabs2 ul.tabN a').removeClass('selected2');
			$(this).addClass('selected2');
			return false;
		}).filter(':first').click();
	}

	makeTabs('tabs-1');

	$(".droplinebar ul li").hover(
		function () {
			$(this).addClass("hover");
		},
		function () {
			$(this).removeClass("hover");
		}
	);

});