
function doPopups() {
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup")) {
      links[i].onclick = function() {
        window.open(this.href);
        return false;
      }
    }
    else if (links[i].className.match("pop350")) {
      links[i].onclick = function() {
        window.open(this.href,'newwindow','width=490,height=275,left=420,top=240,menubar=0,resizable=0,status=no,scrollbars=no');
        return false;
      }
    }
	    else if (links[i].className.match("popSSM")) {
      links[i].onclick = function() {
        window.open(this.href,'newwindow','width=806,height=631,left=420,top=240,menubar=0,resizable=0,status=no,scrollbars=no');
        return false;
      }
    }
  }
}
window.onload = doPopups;










function pop(url, name, scroll, width, height){
	var w = width;
	var h = height;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	window.open(url,name,"scrollbars="+scroll+",width="+w+",height="+h+",top="+wint+",left="+winl+",resizable=no,status=no,location=no,toolbar=no,menubar=no");
}









function toggle(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}

function show(menuName) {
var el = document.getElementById(menuName);
el.style.display = 'block';
}

function hide(menuName) {
var el = document.getElementById(menuName);
el.style.display = 'none';
}

