function browse_check() {
this.ver=navigator.appVersion; this.agent=navigator.userAgent; this.dom=document.getElementById?1:0;
this.opera5=(window.opera&&this.dom)?1:0; this.opera6=(this.opera5&&window.print)?1:0; this.opera7=(this.opera5&&document.readyState)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera5)?1:0;
this.ie4=(document.all&&!this.dom&&!this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6; this.mac=this.agent.indexOf("Mac")>-1;
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.opera6||this.opera7); return this; }
bw=new browse_check();

function findPoss(obj){
	this.x=0; this.y=0; var el,temp; el=obj;
	if (el.offsetParent) { temp=el;
		while (temp.offsetParent) { temp=temp.offsetParent; this.x+=temp.offsetLeft; this.y+=temp.offsetTop; }
	}
	this.x+=el.offsetLeft; this.y+=el.offsetTop;
	return this;
}

var flag=""; var tID;

function sMmain() {
	omenu=document.getElementById("descr").getElementsByTagName("la");
	for (i=0;i<omenu.length;i++) {
		if (omenu[i].parentNode.className!="on"&&omenu[i].parentNode.className!="sm") {
			omenu[i].onmouseover=function() {
				this.parentNode.className="on";
				if (document.getElementById("n"+this.id)) {
					note=document.getElementById("n"+this.id);
					pos=new findPoss(this);
					px=bw.ie?"":"px";
					if (flag!=note&&flag!=""&&flag.style.visibility=="visible") { flag.style.visibility="hidden"; clearTimeout(tID); }
					else if (flag==note&&flag!=""&&flag.style.visibility=="visible") { clearTimeout(tID); flag=note; }
					if (note) { note.style.left=pos.x+25+px; note.style.top=pos.y+16+px; note.style.visibility="visible"; flag=note; }
				}
			}
			omenu[i].onmouseout=function() {
				this.parentNode.className="off";
				if (document.getElementById("n"+this.id)) {
					note=document.getElementById("n"+this.id);
					if (note) { tID=setTimeout("note.style.visibility='hidden';flag='';",500); }
				}
			}
		}
	}
}

function sM() {
	omenu=document.getElementById("descr").getElementsByTagName("a");
	for (i=0;i<omenu.length;i++) {
		if (omenu[i].parentNode.className!="on"&&omenu[i].parentNode.className!="sm") {
			omenu[i].onmouseover=function() { this.parentNode.className="on"; }
			omenu[i].onmouseout=function() { this.parentNode.className="off"; }
		}
	}
}


// Позиционирование цветного блока (слева)
function findPos(o) {
	this.x=0; this.y=0; this.h; var el,temp;
	el=document.getElementById(o);
	this.h=el.offsetHeight;
	if (el.offsetParent) { temp=el;
		while(temp.offsetParent) { temp=temp.offsetParent; this.x+=temp.offsetLeft; this.y+=temp.offsetTop; }
	}
	this.x+=el.offsetLeft; this.y+=el.offsetTop;
	return this;
}

function fPos(pDiv,box,x,h,y,w) {
	x?null:x=0; h?null:h=0; y?null:y=0; w?null:w=0;
	pos=new findPos(box);
	sDiv=document.getElementById(pDiv);
	sDiv.style.left=0+x+"px"; sDiv.style.top=0+"px";
	sDiv.style.height=pos.h+pos.y+h+"px"; sDiv.style.width=pos.x+w+"px";
	sDiv.style.visibility="visible";
}


function OpenWin(pageUrl,nameWin,widthWin,heightWin,sbar) {
	hScreen=screen.availHeight; wScreen=screen.availWidth;
	if (widthWin||heightWin) { (widthWin>wScreen)?widthWin=wScreen-200:null; (heightWin>hScreen)?heightWin=hScreen-100:null; }
if (nameWin=="modal") {
	(widthWin)?null:widthWin=wScreen-200; (heightWin)?null:heightWin=hScreen-100;
		pWin="dialogWidth:"+widthWin+"px; "+"dialogHeight:"+heightWin+"px; center:1;help:0;scroll:0;status:0;"
	null_p=window.showModalDialog(pageUrl,"",pWin);
} else {
	(widthWin)?null:widthWin=wScreen-160; (heightWin)?null:heightWin=hScreen-200;
	xPos=(wScreen-widthWin)/2; yPos=(hScreen-heightWin)/2;
	(sbar)?null:sbar=0; (nameWin)?null:nameWin="wintxt";
	pWin="left=200,top=250,width="+widthWin+",height="+heightWin+",scrollbars="+sbar;
	window.open(pageUrl,nameWin,pWin); } }






























































