

jQuery(document).ready(function() {
	
		jQuery(".tab").click(function(){
			if (paneltype == 'opacity') {     			jQuery("#memberArea").animate({opacity: "toggle"}, 600);  			}		
  			if (paneltype == 'width') {     			jQuery("#memberArea").animate({width: "toggle"}, 600);  			}
  			if (paneltype == 'height') {     			jQuery("#memberArea").animate({height: "toggle"}, 600);  			}
  			
		jQuery("a#closePanel").toggleClass("active");
		jQuery("a#openPanel").toggleClass("active");
		return false;
	});

// Right Accordion Script
jQuery(document).ready(function(){jQuery('.moduletable-slide h3').each(function(index){var $this=jQuery(this);var $checkElement=$this.next('.jbslideContent');var $modID=$checkElement.attr('id');if(jQuery.cookie($modID)=='close'){jQuery($checkElement).hide();$this.addClass('close')}else{$this.addClass('open')}$this.click(function(){checkCookie($checkElement,$this,$modID)})});jQuery('button').click(function(){jQuery.cookie('menuCookie','',{expires:-1});jQuery('.panelMenu > li ul').hide();showCookie()})});function checkCookie($checkElement,$this,$modID){if($checkElement.is(':hidden')){$checkElement.slideDown("fast");$this.removeClass('close');$this.addClass('open');cookieValue='open';jQuery.cookie($modID,cookieValue)}else{$checkElement.slideUp();cookieValue='close';$this.removeClass('open');$this.addClass('close');jQuery.cookie($modID,cookieValue)}}
	
	
	//Default Action
	jQuery(".tab_content").hide(); //Hide all content
	jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
	jQuery(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	jQuery("ul.tabs li").click(function() {
		jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		jQuery(".tab_content").hide(); //Hide all tab content
		var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		jQuery(activeTab).fadeIn(1000); //Fade in the active content
		return false;
	});
	
});

