/**
 * Leopard Test uses SWFObject to test if user is on OS X and has a flash player version lower than 9.0.98
 * If so, it outputs an upgrade message. The flash content still shows, but the message let's the user know they may need to upgrade.
 * Unfortunately, there's no way to detect through javascript if the user is actually using Leopard rather than an older version of OS X. 
 * There would be a way if Apple would use versions in their OS X naming, but alas, they don't. :(
 */
 
if (navigator.userAgent && navigator.userAgent.indexOf("Mac OS X") >= 0) { // if user on Mac OS X
	var so = new SWFObject("test.swf", "test", "1", "1", "9.0.98", "#FFFFFF"); // create SWFObject for testing if user's flash player is at or above version 9.0.98
	if (!so.installedVer.versionIsValid(so.getAttribute('version'))) { // if version too low, show message alerting possible Leopard users
		document.write('<div class="flash_notice" id="Flash"><a href="http://www.faceplanting.com/upgrade/" title="Kitty needs an upgrade">&nbsp;Howdy Mac Lover! If you\'re using Leopard, you may need a special upgrade for your flash player.&nbsp;</a></div>');
	}
}
