jsHover = function() {
    	var hEls = document.getElementById("nav").getElementsByTagName("LI");
    	for (var i=0, len=hEls.length; i<len; i++) {
      		hEls[i].onmouseover=function() { this.className+=" jshover"; }
      		hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
    	}
}
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);




/*-----------------------------*/
IE = (document.all);
NC = (document.layers);
Opera = (document.getElementById);

function ShowTab(act, arr) {
	var el_m = "TAB_" + act;
	var el_s = "TAB_" + act + act;
	var el_om, el_os;

	if (Opera) {
		if (act >= 1 && act <= 3) document.getElementById("tableTabs").style.display = "block";
		if (document.getElementById("block_" + act)) document.getElementById("block_" + act).style.display = "block";
		if (document.getElementById("block_" + act + act)) document.getElementById("block_" + act + act).style.display = "block";
		document.getElementById(el_m).className = "z_dom";
		document.getElementById(el_s).className = "z_a";
	}
	if (IE) {
		if (act >= 1 && act <= 3) document.all["tableTabs"].style.display = "block";
		if (document.all["block_" + act]) document.all["block_" + act].style.display = "block";
		if (document.all["block_" + act + act]) document.all["block_" + act + act].style.display = "block";
		document.all[el_m].className = "z_dom";
		document.all[el_s].className = "z_a";
	}
	if(NC) {
		if (act >= 1 && act <= 3) document.layers["tableTabs"].display = "block";
		if (document.layers["block_" + act]) document.layers["block_" + act].display = "block";
		if (document.layers["block_" + act + act]) document.layers["block_" + act + act].display = "block";
		document.layers[el_m].className = "z_dom";
		document.layers[el_s].className = "z_a";
	}
	
	var len = arr.length;
	for (var i=0; i<len; i++) {
		el_om = "TAB_" + arr[i];
		el_os = "TAB_" + arr[i] + arr[i];
		if (Opera) {
			if (document.getElementById("block_" + arr[i]))	document.getElementById("block_" + arr[i]).style.display = "none";
			if (document.getElementById("block_" + arr[i] + arr[i])) document.getElementById("block_" + arr[i] + arr[i]).style.display = "none";
			document.getElementById(el_om).className = "z_domn";
			document.getElementById(el_os).className = "z_na";
		}
		if (IE) {
			if (document.all["block_" + arr[i]]) document.all["block_" + arr[i]].style.display = "none";
			if (document.all["block_" + arr[i] + arr[i]]) document.all["block_" + arr[i] + arr[i]].style.display = "none";
			document.all[el_om].className = "z_domn";
			document.all[el_os].className = "z_na";
		}
		if (NC) {
			if (document.layers["block_" + arr[i]]) document.layers["block_" + arr[i]].display = "none";
			if (document.layers["block_" + arr[i] + arr[i]]) document.layers["block_" + arr[i] + arr[i]].display = "none";
			document.layers[el_om].className = "z_domn";
			document.layers[el_os].className = "z_na";
		}
	}
}

function InitPage() {
	if (Opera) {
		document.getElementById("SUB_EMAIL").value = "Введите свой e-mail";
	}
	if (IE) {
		document.all["SUB_EMAIL"].value = "Введите свой e-mail";
	}
	if (NC) {
		document.layers["SUB_EMAIL"].value = "Введите свой e-mail";
	}
	
}





