// Drop down menu from Suckerfish (http://www.htmldog.com)
// Take note of the id you give for your drop down
sfHover = function() {
	var sfEls = document.getElementById("navi").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','');	
			});
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','none');	
			});
		}
	}
}
sfHoverCountry = function() {
	var sfElsCountry = document.getElementById("coun").getElementsByTagName("LI");
	for (var i=0; i<sfElsCountry.length; i++) {
		sfElsCountry[i].onmouseover=function() {
			this.className+=" sfhover";
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','');	
			});
		}
		sfElsCountry[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','none');	
			});
		}
	}
}
sfHoverLang = function() {
	var sfElsLang = document.getElementById("lang").getElementsByTagName("LI");
	for (var i=0; i<sfElsLang.length; i++) {
		sfElsLang[i].onmouseover=function() {
			this.className+=" sfhover";
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','');	
			});
		}
		sfElsLang[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','none');	
			});
		}
	}
}

sfHoverPartner = function() {
	var sfElsPartner = document.getElementById("utility_nav").getElementsByTagName("LI");
	
	for (var i=0; i<sfElsPartner.length; i++) {
		sfElsPartner[i].onmouseover=function() {
			this.className+=" sfhover";
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','');	
			});
		}
		sfElsPartner[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			$(this).getElements('ul').each(function(el){
				el.setStyle('display','none');	
			});
		}
	}	
}

window.addEvent('load',function(){
								sfHover();
								sfHoverCountry();
								sfHoverLang();
								sfHoverPartner();	
								});
/*
if (window.attachEvent) {
	window.attachEvent("onload", sfHover);
	window.attachEvent("onload", sfHoverCountry);
	window.attachEvent("onload", sfHoverLang);
}
*/


// Keyword search
function of(){
if($('searchKeyword').value=="Keyword search"){
	$('searchKeyword').value="";
	}
}
function ob(){
	if($('searchKeyword').value==""){
		$('searchKeyword').value="Keyword search";
	}
}