<!--//--><![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() {
		  //window.setTimeout('this.className=this.className.replace(new RegExp(" sfhover\\b"), "")', 100);
		  this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent)
  window.attachEvent("onload", sfHover);
  
  
sfHoverPrivate = function() {
	var sfEls = document.getElementById("nav_private").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhoverprivate";
		}
		sfEls[i].onmouseout=function() {
		  //window.setTimeout('this.className=this.className.replace(new RegExp(" sfHoverPrivate\\b"), "")', 100);
		  this.className=this.className.replace(new RegExp(" sfhoverprivate\\b"), "");
		}
	}
}
if (window.attachEvent)
  window.attachEvent("onload", sfHoverPrivate);
  
/*
* numeric input only
*/
function numerics(e) {
  var isIE = document.all?true:false;
  var key = (isIE) ? window.event.keyCode : e.which;
  var obj = (isIE) ? event.srcElement : e.target;
  var isNum = (key > 47 && key < 58) ? true:false;
  var dotOK = (key==46 && ((obj.value.indexOf(".")<0 && obj.value.indexOf(",")<0) || obj.value.length==0)) ? true:false;
  var dotOK = (dotOK || (key==44 && ((obj.value.indexOf(".")<0 && obj.value.indexOf(",")<0) || obj.value.length==0))) ? true:false;
  if(key < 32)
     return true;

  if (isNum || dotOK)
    return true;
  else {
    alert('Uveďte cenu ako číselný údaj prosím. Napríklad: 105250,50');
    return false;
  }
}

//--><!]]>
