/* left-menu expansion*/
if (document.getElementById) { //close all sub menus
  document.write('<style type="text/css">\n');
  document.write('.submenu{display: none;}\n');
  document.write('</style>\n');
}
  
function SwitchMenu(oid) {
  if(document.getElementById) {
      var el = document.getElementById(oid);
      var ar = document.getElementById("masterdiv").getElementsByTagName("ul"); 
      if(el.style.display != "block") { 
        for (var i=0; i<ar.length; i++) {
          if (ar[i].className=="submenu")
            ar[i].style.display = "none";
      }
        el.style.display = "block";
    } else {
        el.style.display = "none";
    }
  }
}
/* email protection (uid and domain fields are required)*/
function mailTo(uid, domain, subject) {
if(!subject){
   window.location="mailto:"+uid+"@"+domain;
   } else {
    window.location="mailto:"+uid+"@"+domain+"?subject="+subject;
   }
}
 /* if we need show the email on mouseover, also add (all fields are required): */
function showEmail(id, uid, domain) {
   document.getElementById(id).title= uid+"@"+domain;
}

function showemail(id, uid, domain) {
   document.getElementById(id).title= uid+"@"+domain;
}