jsHover = function() {
    var hEls = document.getElementById("hmenu").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);


function textInInput (inp,Focus) {
	if (Focus) {
		if (inp.value==inp.defaultValue) 
			inp.value="";
	} else {
		if (inp.value=="") 
			inp.value=inp.defaultValue;
	}
}

function showStat() {
	document.getElementById('stat-info').style.display="";
}

function hideStat() {
	document.getElementById('stat-info').style.display="none";
}

function preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function openWindow(theURL,features) {
	var num=Math.round(Math.random())*1000;
	w=window.open(theURL,"win"+num,"toolbar=no,status=yes,resizable=yes,scrollbars=no,menubar=no,top=5,left=5,"+features+"width=980,height=650");
	w.focus();
}

function oWin(theURL,winName,features) {
  window.open(theURL,winName,features);
}

