// 1.2.8 | roland | 2007-10-23 | 
function MM_openBrWindow_fixed(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL_fixed() { //v3.0
  var i, args=MM_goToURL_fixed.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_jumpMenu_fixed(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function element_showhide(id) {
	el = document.getElementById(id);
	el.style.display = (el.style.display != 'inline') ? 'inline' : 'none';
}

function menue_showhide(id) {
	var closelast = true;
	if(document.getElementById) {
		el = document.getElementById(id);
		if(el && el.style)	{
			level = id.split("_");
			level = level.length;
			if(lid[level] && closelast) {
				if(lid[level] != id) document.getElementById(lid[level]).style.display = "none";
			}
			lid[level] = id;
			el.style.display = (el.style.display == "none") ? "" : "none";
		}
	}
}

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

function email_output(user, domain, tld, mailto, text) {
	email = user+'@'+domain+'.'+tld;
	if(!text) text = email;
	if(mailto) email = '<a href="mailto:'+email+'">'+text+'</a>';
	document.write(email);
}