/***************************************************
		TOGGLE JAVASCRIPT
***************************************************/
$(document).ready(function() { 
 $(".desc").hide();  
$("h3.open-close").click(function(){  
  if ($(this).is(".current"))
  {
   $(this).removeClass("current");
   $(this).next(".desc").slideUp(400);
  }
  else
  {
   $(".desc").slideUp(400);
   $("h3.open-close").removeClass("current");
  
   $(this).addClass("current");
   $(this).next(".desc").slideDown(400);
  }
 });
});




/***************************************************
		TOGGLE SLIDESHOW
***************************************************/
$(document).ready(function() {
	$("#slideshow-holder").show();
	$("#close-tab").click(function() {
		$("#slideshow-holder").animate({height: "toggle"}, 400);
	});
});





/***************************************************
	   JQUERYSLIDEMENU EASING - MENU
***************************************************/
jQuery(document).ready(function() {		
		jQuery("h3 a").hover(function() {
			jQuery(this).find("span").stop().animate({ 
				marginLeft: "10" 
			}, 200);
		} , function() { 
			jQuery(this).find("span").stop().animate({
				marginLeft: "0" 
			}, 200);
		});
});

/***************************************************
	ADDITIONAL CODE FOR SLIDING TABS - ANGULOS
***************************************************/
$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$(".tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".tabs li").click(function() {
		$(".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).fadeIn(); //Fade in the active content
		return false;
	});

});
/***************************************************
	ADDITIONAL CODE FOR SLIDING TABS - PTR
***************************************************/
$(document).ready(function() {

	//Default Action
	$(".tab2_content").hide(); //Hide all content
	$(".tabs2 li:first").addClass("active").show(); //Activate first tab
	$(".tab2_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".tabs2 li").click(function() {
		$(".tabs2 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab2_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).fadeIn(); //Fade in the active content
		return false;
	});

});
/***************************************************
	ADDITIONAL CODE FOR SLIDING TABS - VIGAS
***************************************************/
$(document).ready(function() {

	//Default Action
	$(".tab3_content").hide(); //Hide all content
	$(".tabs3 li:first").addClass("active").show(); //Activate first tab
	$(".tab3_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".tabs3 li").click(function() {
		$(".tabs3 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab3_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).fadeIn(); //Fade in the active content
		return false;
	});

});
/***************************************************
	ADDITIONAL CODE FOR SLIDING TABS - PLACAS
***************************************************/
$(document).ready(function() {

	//Default Action
	$(".tab4_content").hide(); //Hide all content
	$(".tabs4 li:first").addClass("active").show(); //Activate first tab
	$(".tab4_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".tabs4 li").click(function() {
		$(".tabs4 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab4_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).fadeIn(); //Fade in the active content
		return false;
	});

});
/***************************************************
	ADDITIONAL CODE FOR SLIDING TABS - PERFILES
***************************************************/
$(document).ready(function() {

	//Default Action
	$(".tab5_content").hide(); //Hide all content
	$(".tabs5 li:first").addClass("active").show(); //Activate first tab
	$(".tab5_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".tabs5 li").click(function() {
		$(".tabs5 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab5_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).fadeIn(); //Fade in the active content
		return false;
	});

});
/***************************************************
	ADDITIONAL CODE FOR SLIDING TABS - LAMINA GALV
***************************************************/
$(document).ready(function() {

	//Default Action
	$(".tab6_content").hide(); //Hide all content
	$(".tabs6 li:first").addClass("active").show(); //Activate first tab
	$(".tab6_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".tabs6 li").click(function() {
		$(".tabs6 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab6_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).fadeIn(); //Fade in the active content
		return false;
	});

});
