// When the document loads do everything inside here ...  
    $(document).ready(function(){ 
    
        $("ul.sf-menu").superfish({ 
            pathClass:  'current',
            speed:       'normal',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        }); 
        
    	//When page loads, hide the appropriate popular article tabs in the right bar
		$(".tab_content").hide(); //Hide all content
	
		$("#rightmenu ul.tabs li:first").addClass("active").show(); //Activate first tab
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab of bottom article tabs
		$("#rightmenu .tab_content:first").show(); //Show first tab content
		$(".tab_content:first").show(); //Show first tab content of bottom article tabs

		//On Click Event
		$("#maincontent ul.tabs li").click(function() {

			$("#maincontent ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$("#maincontent .tab_content").hide(); //Hide all tab content

			var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active ID content
			return false;
		});
	
		//On Click Event
		$("#rightmenu ul.tabs li").click(function() {

			$("#rightmenu ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$("#rightmenu .tab_content").hide(); //Hide all tab content

			var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active ID content
			return false;
		});
	
	});
