$j(document).ready(function() {

	//When page loads...
	$j(".tab_content").hide(); //Hide all content
	$j("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$j(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$j("ul.tabs li").click(function() {

		$j("ul.tabs li").removeClass("active"); //Remove any "active" class
		$j(this).addClass("active"); //Add "active" class to selected tab
		$j(".tab_content").hide(); //Hide all tab content

		var activeTab = $j(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$j(activeTab).show(); //Fade in the active ID content
		return false;
	});
	
	// Values tabs
	//When page loads...
	$j(".valuestab_content").hide(); //Hide all content
	$j("map area:first").addClass("active").show(); //Activate first tab
	$j(".valuestab_content:first").show(); //Show first tab content

	//On Click Event
	$j("map area").click(function() {

		$j("map area").removeClass("active"); //Remove any "active" class
		$j(this).addClass("active"); //Add "active" class to selected tab
		$j(".valuestab_content").hide(); //Hide all tab content

		var activevaluesTab = $j(this).attr("href"); //Find the href attribute value to identify the active tab + content
		$j(activevaluesTab).show(); //Fade in the active ID content
		return false;
	});

$j(function(){
	$j('a[rel=external]').click(function(e){
		open(this.href);
		e.preventDefault();
	});
});


});
