var initialTab = 1;

/* All Jquery code has to be wrapped in a (document).ready function() */
$(document).ready(function(){
	var href;
	
	$("div#articleImg").show();
	
	$("li.tab"+initialTab).addClass("current");	
	$("div.divtab"+initialTab).show();
	$("ul li a.tabLinkMod").click(function(){			
		href = $(this).attr("href");
		hideAllExcept(href);
		$(this).parent().parent().addClass("current");
		return false;		
	});	
	
	/* function hides all divs except the one with the ID that's declared in the href */
	function hideAllExcept(el) { 			
		$("ul.anchors li").removeClass("current");
		$('div.fragment').hide();
		$('div.fragment-silver').hide();
		$(el).show();						    
	}
});