var countrySelsArray = new Array();
var mHover = function() {
	var sfEls = document.getElementById("mm")
   if(sfEls) sfEls=sfEls.getElementsByTagName("LI");
   else return;
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" mhover";
			if(this.className.indexOf('hideCountry') >= 0){
				for(var i=0; i<countrySelsArray.length; ++i){
					countrysel = document.getElementById(countrySelsArray[i][0]);
					if(countrysel != undefined && countrysel != null){
						countrysel.style.visibility='hidden';
						fakeCountrySel = document.getElementById(countrySelsArray[i][1]);
						fakeCountrySel.innerHTML = '<div>'+countrysel.options[countrysel.selectedIndex].text+'</div>';
						fakeCountrySel.style.display='block';
					}
				}
			}
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" mhover\\b"), "");
			if(this.className.indexOf('hideCountry') >= 0){
				for(var i=0; i<countrySelsArray.length; ++i){
					if(document.getElementById(countrySelsArray[i][0]) != undefined &&
						document.getElementById(countrySelsArray[i][0]) != null)
						document.getElementById(countrySelsArray[i][0]).style.visibility='visible';
					if(document.getElementById(countrySelsArray[i][1]) != undefined &&
						document.getElementById(countrySelsArray[i][1]) != null)
						document.getElementById(countrySelsArray[i][1]).style.display='none';
				}
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", mHover);
