function Browser() {
	var b=navigator.appName
	if (b=="Netscape") this.b="ns"
	else if (b=="Microsoft Internet Explorer") this.b="ie"
	else this.b=b
	this.version=navigator.appVersion
	//this.versionNo=parseFloat(navigator.appVersion)//
	this.v=parseInt(this.version)
	this.vNo=parseFloat(navigator.appVersion)//
	this.ns=(this.b=="ns" && this.v>=4)
	this.ns4=(this.b=="ns" && this.v==4)
	this.nsMinor406=(this.b=="ns" && this.vNo<=4.05)//
	//alert(this.nsMinor406)//
	this.ns5=(this.b=="ns" && this.v==5)
	this.ie=(this.b=="ie" && this.v>=4)
	this.ie4=(this.version.indexOf('MSIE 4')>0)
	this.ie5=(this.version.indexOf('MSIE 5')>0)
	this.ie55=(this.version.indexOf('MSIE 5.5')>0)
	this.dom=((document.createRange&&(document.createRange().createContextualFragment) || document.getElementById)?true:false)
	this.min=(this.ns||this.ie)
	var ua=navigator.userAgent.toLowerCase()
	if (ua.indexOf("win")>-1) this.platform="win32"
	else if (ua.indexOf("mac")>-1) this.platform="mac"
	else this.platform = "other"
}
is=new Browser()

var isNav4, isNav6, isIE4;

/*
 * Browser version snooper; determines your browser
 * (Navigator 4, Navigator 6, or Internet Explorer 4/5)
 */
function setBrowser()
{
    if (navigator.appVersion.charAt(0) == "4")
    {
        if (navigator.appName.indexOf("Explorer") >= 0)
        {
            isIE4 = true;
        }
        else
        {
            isNav4 = true;
        }
    }
    else if (navigator.appVersion.charAt(0) > "4")
    {
        isNav6 = true;
    }
}

function setIdProperty( id, property, value )
{
    if (isNav6)
    {
        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }

    }
    else if (isNav4)
    {
        document[id][property] = value;
    }
    else if (isIE4)
    {
         document.all[id].style[property] = value;
    }
}

setBrowser();

if (is.ns4 && !is.nsMinor406){
  document.write('<script language="JavaScript" src="'+gnPath+'js/global_ns.js"></script>');
  document.write('<link rel="stylesheet" href="'+gnPath+'css/styles_ns.css">');	
}
else if(is.ie && is.platform == 'mac') {
  document.write('<script language="JavaScript" src="'+gnPath+'js/global_ie_mac.js"></script>');
  document.write('<link rel="stylesheet" href="'+gnPath+'css/styles_ie_mac.css">');
}
else if(is.ie4) {
  document.write('<script language="JavaScript" src="'+gnPath+'js/global_ie.js"></script>');
  document.write('<link rel="stylesheet" href="'+gnPath+'css/styles_ie.css">');
}
else if(is.ie5 || is.ie55) {
  document.write('<script language="JavaScript" src="'+gnPath+'js/global_dom.js"></script>');
  document.write('<link rel="stylesheet" href="'+gnPath+'css/styles_dom.css">');
}
else if(is.dom) {
  document.write('<script language="JavaScript" src="'+gnPath+'js/global_dom.js"></script>');
  document.write('<link rel="stylesheet" href="'+gnPath+'css/styles_dom.css">');
}
else {
  document.write('<script language="JavaScript" src="'+gnPath+'js/global_others.js"></script>');
}
