
/* CUFON FONT REPLACEMENT (Cufon.now(); also required before </body>)
------------------------------------------------------------------------*/
Cufon.replace('#nav-mn > li > a'); // Target top nav main items


$(document).ready(function() { // When DOM is loaded run these funcs

	/* TOP NAVIGATION DROP DOWNS
	--------------------------------------------------------------------*/
/*	$("#nav-mn li ul").css({'opacity':'0'});
		
	$("#nav-mn li").hover(function(){
		// sets dropdown opacity on hover
		$(this).find("ul").stop().fadeTo('fast', 1).show(); 
	},function(){
		// sets dropdown opacity on mouseout
		$(this).find("ul").stop().fadeTo('fast', 0, function() {
				 $(this).hide(); 
		}); 
	}); */
	
	
	
	/* TABBED CONTENT BOX
	--------------------------------------------------------------------*/
	// Default Action
	$(".tab-content-mn").hide(); //Hide all content
	$("ul.box-tabs-mn li:first").addClass("active").show(); //Activate first tab
	$(".tab-content-mn:first").show(); //Show first tab content
	
	// On Click Event
	$("ul.box-tabs-mn li").click(function() {
		$("ul.box-tabs-mn li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab-content-mn").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});



	/* TABLE SORT
	--------------------------------------------------------------------*/
	$("table.tablesort").tablesorter( {sortList: [[0,0], [0,0]] });
	
	
}); // End DOM ready check
