function Is ()
{ 
	var agt=navigator.userAgent.toLowerCase()
	this.win = (agt.indexOf("win")!=-1) 
    this.mac    = (agt.indexOf("mac")!=-1)
    this.linux = (agt.indexOf("inux")!=-1)
 }
 
 var is;
 is = new Is();
 
if(is.mac){
	var vers=navigator.appVersion.toLowerCase()
	pos = (vers.indexOf("msie"))
	if (pos != -1) {
	pos = pos + 5;
	len = vers.length;
	vers = vers.substring(pos,len);
		
			}
	vers = parseInt(vers)
	if (vers >= 5) {
	 style= '<link rel="stylesheet" href="admin/96.css">';
  		}
  
	 else if (vers < 5) {
		 style= '<link rel="stylesheet" href="admin/72.css">';
  		}

		}				
else	{
 style= '<link rel="stylesheet" href="admin/96.css">';
				}

// Netscape fix resize bug Ns4
function WM_netscapeCssFix() {
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth ||
        document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
     document.location = document.location;
    }
}

function WM_netscapeCssFixCheckIn() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
       document.WM = new Object;
       }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
       document.WM.WM_netscapeCssFix = new Object;
       document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
       document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
       }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn();

// catch all errors...
function stopError() {return true;}
window.onerror=stopError; 
