                                                        
var MainMenu_VisibleId = undefined;
var MainMenu_LastTag = undefined;
var MainMenu_ResetClass = undefined;

startList = function() {
  if (document.all && document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI") {
        node.onmouseover=function() {
          this.className+=" over"; }
        node.onmouseout=function() {
          this.className=this.className.replace(" over", ""); }
      }
    }
  }
}
window.onload=startList;

function MainMenu_Over( index ) {

	if ( MainMenu_VisibleId != undefined ) {
		MainMenu_VisibleId.style.visibility = "hidden";
		MainMenu_VisibleId = undefined;
	}

	MainMenu_VisibleId = document.getElementById("MainMenu_"+index);
	if ( MainMenu_VisibleId != null )
		MainMenu_VisibleId.style.visibility = "visible";
}

function MainMenu_Out( ) {
	MainSubMenu_Out();
	if ( MainMenu_VisibleId != undefined ) {
		MainMenu_VisibleId.style.visibility = "hidden";
		MainMenu_VisibleId = undefined;
	}
}

function MainSubMenu_Over( tag, index ) {

	MainMenu_LastTag = tag;

	if ( index == 0 ) {
		tag.className = 'MainMenu_MenuItemSel';
		MainMenu_ResetClass = 'MainMenu_MenuItem';
	}
	else {
		tag.className = 'MainMenu_SubMenuItemSel';
		MainMenu_ResetClass = 'MainMenu_SubMenuItem';
	}
}

function MainSubMenu_Out( ) {

	if ( MainMenu_LastTag != undefined ) {
		MainMenu_LastTag.className = MainMenu_ResetClass;
		MainMenu_LastTag = undefined;
	}
}

function MainMenu_Click( url ) {

	if ( url != undefined ) {
		var f = document.MainMenu_Form;
		f.action = url;
		if ( url.substring(0,1) != "/" ) {
			f.target="_blank";
		}
		f.submit();
	}
	MainMenu_Out();

	return false;
}


var m_ = "mailto";
function post(name, dom, tl, params, disp, attr)
{
	var s = mail_e(name,dom,tl);
	if (disp.length == 0) disp = s;
	if (attr == null) attr = "";
	if (params.length > 0) s+="?"+params;
	document.write('<a href="'+m_+String.fromCharCode(58)+s+'" '+attr+'>'+disp+'</a>');
}
var tld_ = new Array()
tld_[0] = "de"; tld_[1] = "com"; tld_[2] = 'edu';
function mail_e(name, dom, tl)
{
	if (dom.length == 0 && tl == 0 ) dom='connect-community';
	var s = name+String.fromCharCode(64)+dom;
	if (typeof tl == "number") {
		if (typeof tld_[tl] != 'undefined') s+='.'+tld_[tl]; 
	}
	else s+='.'+tl;
	return s;
}

function button(f,value)
{
  f.value = value;
  f.submit();
  return true;
}

