function browserProps() 
{
var agent=navigator.userAgent.toLowerCase();
this.version=parseInt(navigator.appVersion);
this.subversion=parseFloat(navigator.appVersion);
this.ns=((agent.indexOf('mozilla')!=-1)&&((agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible') ==-1)));
this.ns4b=(this.ns&&this.subversion<4.04);
this.ns4=(this.ns&&this.version>=4&&this.version<5);
this.ns6=(this.ns&&this.version>=5);
this.ie=(agent.indexOf("msie")!=-1);
this.ie4=(this.ie&&this.version>=4&&this.version<5);
this.ie5=(this.ie&&this.version>=5);
}

function writeInterface(brow)
{
var str='<script language="JavaScript1.2" type="text/javascript" src="scripts/dhtml_';
if (brow.ie){str+='ie'}
if (brow.ns){str+=(brow.ns6) ? 'ns6':'ns'}
str+='.js"></script>';
document.write(str);
}

writeInterface(new browserProps());

