function lib_bwcheck(){ 
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1	
	this.opera = window.opera;	
	if(this.opera)this.ie = 0;
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	
	this.oldopera = window.opera && parseFloat(navigator.userAgent.substring(navigator.userAgent.indexOf('Opera')+6),navigator.userAgent.length) < 7;
	this.oldns = document.layers || (navigator.userAgent.indexOf("Netscape6")!=-1);
	
	return this;
}
var bw=new lib_bwcheck() 

function varning()
{
	var vartxt = "";
	if(bw.oldopera)
		vartxt = '<font color="#ff0000" size="2" >Рекомендуем обновить Вашу версию браузера Opera до версии 7 или выше. <a href="http://www.opera.com" target="_blank">www.opera.com</a></font>';
	if(bw.oldns)
		vartxt = '<font color="#ff0000" size="2" >Рекомендуем обновить Вашу версию браузера Netscape Navigator до версии 7 или выше. <a href="http://www.mozilla.ru" target="_blank">www.mozilla.ru</a></font>';
	return vartxt;
}
