/*
----------------------------------------------------------------------
Milonic, or any other dhtml menus, cannot ensure the menu will position
on top of flash or applets in Safari, so we're disabling the dropdowns
for those users.

This function detects if a user is on Safari.
----------------------------------------------------------------------
*/

function checkSafari() {
	
   var ua = navigator.userAgent.toLowerCase(); 
   this.isSafari = (ua.indexOf('safari') != - 1);

}

/*
----------------------------------------------------------------------
Run the checkSafari function
----------------------------------------------------------------------
*/

checkSafari();

/*
----------------------------------------------------------------------
These functions are called from the navigation to inact the rollover
and dropdown menus. We need to check if the user is on Safari and
only run the popup and popdown functions for non-Safari users.
----------------------------------------------------------------------
*/

function onNav(sMenu,sId) {
	
	// if not a safari user
	if(!(this.isSafari)){
	popMilonic(sMenu,sId);
	}
}

function offNav() {
	
	// if not a safari user
	if(!(this.isSafari)){
	popdown();
	}
}

