﻿var isDOM  = (typeof(document.getElementsByTagName) != 'undefined') ? 1 : 0;
var isIE4  = ((typeof(document.all) != 'undefined') && (parseInt(navigator.appVersion) >= 4)) ? 1 : 0;
var isNS4 = (typeof(document.layers) != 'undefined') ? 1 : 0;
var capable = (isDOM || isIE4 || isNS4) ? 1 : 0;
// Uggly fix for Konqueror and Opera that are not fully DOM compliant
 if (capable && typeof(navigator.userAgent) != 'undefined') {
  var browserName = ' ' + navigator.userAgent.toLowerCase();
   if (browserName.indexOf('opera') > 0) {
     capable = 0;
   }
}

function okno(url, width, height) {
	xx=(screen.availHeight-height)/2-10;
	yy=(screen.availWidth-width)/2;
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',top='+xx+',left='+yy+',resizable=0,scrollbars=yes,menubar=no' );
}

<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>

