$(document).ready(function() {
    
var $tabContent = $(".tab_content"),
$tabs = $("ul.tabs li"),
tabId;	
	
$tabContent.hide();
$("ul.tabs li:first").addClass("active").show();
$tabContent.first().show();

$("a.tabsclic").click(function() {
$("ul.tabs li").removeClass("active");
var $this = $(this).attr('href');
$("li > a.tabsclic[href="+$this+"]").parent().addClass("active");
$(".tab_content").addClass("hide").hide();
var activeTab = $($this);

if ($.browser.msie)
{$(activeTab).show();}
else
{$(activeTab).fadeIn();}
return false;});

// Grab the ID of the .tab_content that the hash is referring to
tabId = $(window.location.hash).closest('.tab_content').attr('id');

// Find the anchor element to "click", and click it
$("ul.tabs li").find('a[href=#' + tabId + ']').click();
		
});

    // Validation for forms
    $(".form").validate();

	//Hide (Collapse) the toggle containers on load
	$(".dropdown_container").hide(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$(".dropdown_header").click(function(){
	$(this).toggleClass("active").next().slideToggle("slow");
	});

	//Hide (Collapse) the toggle containers on load
	$(".dropdown_container").hide(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$(".dropdown_link").click(function(){
	$(this).toggleClass("dropdown_link_active").next().slideToggle("slow");
});

    // The Popup functionality for Subscriptions Page 
	var Pricing = {
		showHelpItem: function(featureName) {
			$('.help_container').hide();
	
			$("#help_item_" + featureName).show();
		},
	
		closeHelpItem: function(featureName) {
			$("#help_item_" + featureName).hide();
		}
	}
