// JavaScript Document

$(document).ready(init);
function init()
{
	$("#tabss UL LI#tab_2").hover(function(){ $(this).children("UL").fadeIn("slow"); }, function(){ $(this).children("UL").hide(); });
	$("#tabss UL LI#tab_2 UL>LI").hover(function(){ $(this).children("UL").fadeIn();}, function(){$(this).children("UL").hide();});
	$("#tabss UL LI#tab_3").hover(function(){ $(this).children("UL").fadeIn("slow"); }, function(){ $(this).children("UL").hide(); });
	$("#tabss UL LI#tab_3 UL>LI").hover(function(){ $(this).children("UL").fadeIn();}, function(){$(this).children("UL").hide();});
	
	
	$("#indexTabs DIV").hover(function(){
		//alert(this.id);
		$("#indexTabs DIV").removeClass("active");
		$("#wrapper .content").removeClass("visible");
		$("#wrapper .content").removeClass("hidden");
		$("#wrapper .content").addClass("hidden");
		$("#wrapper .content .entry").hide();
		if (this.id == 'indexTab1'){
			$("#indexTabs DIV#indexTab1").addClass("active");
			$("#indexTabs").attr("class","tab1");
			$("#wrapper #content1").removeClass("hidden");
			$("#wrapper .content .entry").fadeIn("slow");
		}
		if (this.id == 'indexTab2'){
			$("#indexTabs DIV#indexTab2").addClass("active");
			$("#indexTabs").attr("class","tab2");
			$("#wrapper #content2").removeClass("hidden");
			$("#wrapper .content .entry").fadeIn("slow");
		}
		if (this.id == 'indexTab3'){
			$("#indexTabs DIV#indexTab3").addClass("active");
			$("#indexTabs").attr("class","tab3");
			$("#wrapper #content3").removeClass("hidden");
			$("#wrapper .content .entry").fadeIn("slow");
		}
	},function(){});
}
