$(document).ready(function(){
	$('.menu>li').hover(
		function(){
			$(this).siblings().children('a').stop().animate({
				 backgroundPosition:'0px 38px'
			});
			$(this).children('a').stop().animate({
				 backgroundPosition:'0px 1px'
			});
		},
		function() {}
	);
	$('.menu>li>a').hover(
		function(){
			var myRel = $(this).attr('rel');
			$('.subnav').hide();
			$('.'+myRel).fadeIn();
		},
		function(){}
		);
	$('.quick_link ul li').hover(
		function(){
			$(this).children('a').stop().animate({
				 backgroundPosition:'186px 10px'
			});
		},
		function() {
			$(this).children('a').stop().animate({
				 backgroundPosition:'176px 10px'
			});
		}
	);
})

$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs li").hover(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).show(); //Fade in the active content
		return false;
	});
	
		//Default Action
	$(".tab1_content").hide(); //Hide all content
	$("ul.tab1s li:first").addClass("active").show(); //Activate first tab
	$(".tab1_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tab1s li").click(function() {
		$("ul.tab1s li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab1_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).show(); //Fade in the active content
		return false;
	});
});
