jQuery(document).ready(function () { 
		jQuery('#primenavigation a[href="/"]').mouseenter(function () { 
				if (jQuery('#ext_navigation').css('display') != "block")
				{
					jQuery('#ext_navigation').hide();	
					jQuery('#ext_navigation_about').hide();													
					jQuery('#ext_navigation').fadeTo(300, 1.0);	  
				}
		 });		
		
		jQuery('#primenavigation a[href="/about-corium-21/"]').mouseenter(function () { 
				if (jQuery('#ext_navigation_about').css('display') != "block")
				{
					jQuery('#ext_navigation').hide();
					jQuery('#ext_navigation_about').hide();
					jQuery('#ext_navigation_about').fadeTo(300, 1.0);	  
				}
		 });	
		jQuery('#primenavigation a[href!="/about-corium-21/"][href!="/"]').mouseenter(function () {
				jQuery('#ext_navigation').hide();
				jQuery('#ext_navigation_about').hide();
		});
		
});

/*  Google Analytics - Page Load Times */

// set the starting datestamp;
var plstart = new Date();

window.onload=function() {
	// set the end date stamp
	var plend = new Date();

	// calculate the elapsed time between the start and the end. 
	// This is in milliseconds
	var plload = plend.getTime() - plstart.getTime();
	
	// determine the load thresholds
	
	if(plload<2000) // less than 2 seconds is very fast
		lc = "Very Fast";
	else if (plload<5000) // 5 seconds = fast
		lc = "Fast";
	else if (plload<10000) // 10 seconds medium
		lc = "Medium";
	else if (plload<30000) // 30 seconds - sluggish
		lc = "Sluggish";
	else if (plload<45000) // 45 seconds slow 
		lc = "Slow";
	else
		lc="Very Slow"; // wow more than a minute
	// capture the URL that we are going to record
var fn = document.location.pathname;
	if( document.location.search)
		fn += document.location.search;

 	// track this as a page view in ga.js
	try
	{
		pageTracker._trackPageview("/load times/" + lc + 
		" Loading Pages" + fn); 
		// replace pageTracker with the appropriate 
		// object name (e.g. pageTracker2)

	}
	catch(err)
	{
		
	}
	// or for urchin.js
	try
	{
		var oldUA = _uacct;
		_uacct = "UA-17233314-1"; // new account code
		urchinTracker("/" + lc + " Loading Pages" + fn);
		// set the account code back to the correct one
		_uacct = oldUA; 
	}
	catch(err)
	{
		
	}

}
