var isExplorer 			= false;
var isNetscape 			= false;
var isExplorerMSIE5 	= false;
var isSafari			= false;


if(navigator.appName.indexOf("Explorer") > -1){
	isExplorer = true; 

if(navigator.appVersion.indexOf("MSIE 5") > -1)
	isExplorerMSIE5 = true;			
}else if(navigator.appName.indexOf("Netscape") > -1){
	isNetscape = true;
}else{
	isExplorer = true; // Opera,Mac lets see if they work on explorer settings  
}

if(navigator.userAgent.indexOf("Safari") > -1){
	isSafari = true;
}


function msieversion(){
 // return Microsoft Internet Explorer (major)
 // version number, or 0 for others.
 // This function works by finding the "MSIE "
 // string and extracting the version number
 // following the space, up to the decimal point
 // for the minor version, which is ignored.  
 var ua = window.navigator.userAgent;
 var msie = ua.indexOf ( "MSIE " );
 if ( msie > 0 )      // is Microsoft Internet Explorer; return version number
    return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) );
 else
    return 0 ;         // is other browser
}