// Common functions
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);

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

function popup(l,h) { //v2.0
  newWidth = screen.availWidth;
  newHeight = screen.availHeight;
  if (document.layers) { 
    tmp1 = parent.outerWidth - parent.innerWidth;
    tmp2 = parent.outerHeight - parent.innerHeight; 
    newWidth -= tmp1;
    newHeight -= tmp2;
  } 
  var w = 320;
  //var h = 350;
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable,location=no,status=no,toolbar=no';
  win = window.open(l,'main', winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function switchVisible(id) {
	b = document.getElementById(id);
	b.style.display = (b.style.display == "none")?"block":"none";
}
