function checkBrowser() {
        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.hrw=(this.version.indexOf('Mac')>-1) ? 'mac': 'pc'
        this.app=(document.all) ? 'ie': 'ns'
		this.dom=(document.getElementById) ? true : false
        this.v = parseInt(this.version)
        this.ns = (this.b=="ns" && this.v>=4)
        this.ns4 = (this.b=="ns" && this.v==4)
        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.ie6 = (this.version.indexOf('MSIE 6')>0)
        this.mac = (this.hrw.indexOf('mac')>-1)
        this.win = (this.ns||this.ie)
}
var bw = new checkBrowser();

if(bw.ns4){ 
	window.location.href = "/bw_err.html";
}

var rectL, rectT, rectR, rectB, cX, cY, curLayer, interval, over=true, up=true;
var stored = null;

	if(bw.ns){
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove = trackPosNS;
	} else
		document.onmousemove = trackPosIE;

function show(layerId){
	if(interval){
		clearInterval(interval);
		interval = setInterval("if(!over){hideLr();};",2500);
	}	
	if(up){
		if(interval) clearInterval(interval);
		up = false;
		if(interval) clearInterval(interval);
		curLayer = (bw.ns)?document.getElementById(layerId):document.all[layerId];
		rectL = parseInt(curLayer.style.left); rectT = parseInt(curLayer.style.top);
		rectR = rectL + parseInt(curLayer.style.width); rectB = rectT + parseInt(curLayer.style.height);
		if (stored != null) stored.style.visibility = "hidden";
			curLayer.style.visibility = "visible"; 
		stored = curLayer;
		interval = setInterval("if(!over){hideLr();};",2500);
	}
} 

function trackPosIE(){
	cX = event.clientX;
	cY = event.clientY;
	with (event) if(clientX > rectL && clientX < rectR && clientY > rectT && clientY < rectB) over = true;
	else if(over){
		hideLr();
		over = false;
	}
}

function trackPosNS(event){
	cX = event.pageX;
	cY = event.pageY;
	with (event) if(pageX > rectL && pageX < rectR && pageY > rectT && pageY < rectB) over = true;
	else if(over){
		hideLr();
		over = false;
	}
}

function hideLr(){
	if(cX < rectL-10 || cX > rectR || cY < rectT || cY > rectB){
		if(stored && curLayer && up) {
			over = false; stored = null;
		    	curLayer.style.visibility = "hidden"; 
		} else {
			if(interval) clearInterval(interval);
			interval = setInterval("if(!over) hideLr();",2500);
		}
	} else {
		if(interval) clearInterval(interval);
		interval = setInterval("if(!over) hideLr();",2500);
	}
}

////////////////////////////////////////////////////////////////////////////
// Functions for email protections

// Function outputs email address: l@rhonda.vl.ru
function geteml(l)
{
    document.write(l+"@"+"rhonda.vl.ru");
}

// Function returns url like: mailto:l@rhonda.vl.ru 
function getemlto(l)
{
    document.location = "mailto:"+l+"@"+"rhonda.vl.ru?subject="+l.toUpperCase()+" // EMAIL FROM RHONDA WEB SITE";
    return;
}

// Function outputs email address: l@rhondasoftware.com
function getemlcom(l)
{
    document.write(l+"@"+"rhondasoftware.com");
}

// Function returns url like: mailto:l@rhondasoftware.com  
function getemltocom(l)
{
    document.location = "mailto:"+l+"@"+"rhondasoftware.com?subject="+l.toUpperCase()+" // EMAIL FROM RHONDA WEB SITE";
    return;
}
