function getObj(name) {
	if (document.getElementById) {
		return document.getElementById(name);
	} else if (document.all) {
		return document.all[name];
	} else if (document.layers) {
		return document.layers[name];
	}
	else return false;
}


var def_search_value = "Keresés...";

function init_search() {
	obj = getObj("input_search")
	if (obj) {
		obj.value = def_search_value;	
	}
}
window.onload = init_search();


function sh_sect (oid) {
	if ( o = getObj(oid) ) {
		if (o.style.display == 'none') {
			o.style.display = 'block';
		} else {
			o.style.display = 'none';
		}
	}
}



function cls2id (cls, oid) {
	if (o = getObj(oid)) {
		o.className = cls;	
	}	
}


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