
// plugin detect module for macromedia flash 
// bigjolt@bigjolt.com
// http://www.bigjolt.com

// platformcheck.js

<!-- detect browser and platform -->

var userPlatform ;
var browserVersion ;

function platformDetect () {

var toSearch = (navigator.appVersion);
var msieSearch = toSearch.search(/MSIE/);

<!-- detect platform -->
if ( navigator.platform  && navigator.platform.indexOf("Mac") >= 0 ) {
	userPlatform = "MAC" ;
} else if (navigator.userAgent && navigator.userAgent.indexOf("Win") >= 0 ) {
	userPlatform = "WIN" ;
} 

<!-- detect browser -->
if ( navigator.appName   && navigator.appName.indexOf("Netscape")  >= 0 ) {
	browser = "NS";
	browserVersion = parseInt(navigator.appVersion );
} else if ( navigator.userAgent && navigator.userAgent.indexOf("MSIE")    >= 0 ) {
	browser = "IE";
	browserVersion = toSearch.charAt(msieSearch+5) ;
} else if ( navigator.userAgent && navigator.userAgent.indexOf("MSIE 5")  >= 0 ) {
	browser = "IE5" ;
	browserVersion = toSearch.charAt(msieSearch+5) ;
}

}

//

