// JavaScript Document
function securemail(user,site,domain){
  document.write('<a href=\"mailto:' + user + '@' + site + '.' + domain +'\">');
  document.write(user + '@' + site + '.' + domain + '</a>');
}

function hideDiv(id) {
  if (document.layers) {
    document.layers[''+id+''].visibility = "hide";
  } else if (document.all) {
    document.all[''+id+''].style.visibility = "hidden";
  } else if (document.getElementById) {
    document.getElementById(''+id+'').style.visibility = "hidden";
  }
} 

function toggleDiv(id) {

if (id=="archivebox") {
  otherid = "memberbox";
} else {
  otherid = "archivebox";
}

if (document.getElementById(''+id+'').style.visibility == "visible") {
  flagit = "0";
} else {
  flagit = "1";
}
if (flagit=="1"){
  if (document.layers) {
    document.layers[''+id+''].visibility = "show";
    document.layers[''+otherid+''].visibility = "hide";
    
  } else if (document.all) {
    document.all[''+id+''].style.visibility = "visible";
    document.all[''+otherid+''].style.visibility = "hidden";
    
  } else if (document.getElementById) {
    document.getElementById(''+id+'').style.visibility = "visible";
    document.getElementById(''+otherid+'').style.visibility = "hidden"; 
  }
} else if (flagit=="0") {
  if (document.layers) {
    document.layers[''+id+''].visibility = "hide";
  } else if (document.all) {
    document.all[''+id+''].style.visibility = "hidden";
  } else if (document.getElementById) {
    document.getElementById(''+id+'').style.visibility = "hidden";
  }
}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_openBrWindow1(theURL,winName) { //v2.0
  window.open(theURL,winName);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


