var INTERNET_EXPLORER = isSelectBrowser( 'internet explorer' , true );
var NETSCAPE = isSelectBrowser( 'netscape' , true );
var MOZILLA = isSelectBrowser( 'mozilla' , true );
var GECKO = isSelectBrowser( 'gecko' , false );
var SAFARI = isSelectBrowser( 'safari' , false );
var FRAMES = canFrames( );
var MACINTOSH = isMac( );
var WINDOWS = isWindows( );

function canFrames( ){
	if( document.frames )
		return true;
	
	return false;
	}
		
function isWindows( ){
	var osName = window.navigator.platform.toLowerCase();
	if( osName == 'win32' )
		return true;
		
	return false;
	}
	
function isMac( ){
	var osName = window.navigator.platform.toLowerCase();
	if( osName == 'win32' )
		return false;
		
	return true;
	}
	
function isSelectBrowser( browserName, useAppName ){
	var us = '';
	
	if( useAppName )
		ua = navigator.appName.toLowerCase()
	else
		ua = navigator.userAgent.toLowerCase();
		
	if( ua.indexOf( browserName ) > -1 )
		return true;
	
	return false;
	}