function quiet(){
	return true;
}
//window.onerror = quiet;
function printme(){
	window.print();
}
function closeme(){
	window.close();
}
function toggleDiv(id,mode){
	var e = document.getElementById(id);
	if (e){
		mode = (mode==1) ? 1 : 0;
		var d = "none";
		var v = "hidden";
		if (mode==1){
			d = "block";
			v = "visible";
		}else if (mode==2){
			d = "inline";
			v = "visible";
		}
		e.style.display = d;
		e.style.visibility = v;
	}
}
function popwin(url, nam, w, h, resizable, scrollbars, toolbar, locationbar, directories, status, menubar){
	var prop = "";
	if (w != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "width="+w;
	}
	if (h == "" && window.screen.availHeight && window.screen.height){
		if (window.screen.availHeight != window.screen.height){
		  h = (window.screen.availHeight>window.screen.height) ? window.screen.height : ((window.screen.availHeight<window.screen.height) ? window.screen.availHeight : 440);
    }
  }
  if (document.documentElement && document.documentElement.clientWidth){
    h -= 60;
  }
	prop = (prop=="") ? "" : prop+",";
	prop += "height="+h;
	if (resizable != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "resizable="+resizable;
	}
	if (scrollbars != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "scrollbars="+scrollbars;
	}
	if (toolbar != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "toolbar="+toolbar;
	}
	if (locationbar != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "location="+locationbar;
	}
	if (directories != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "directories="+directories;
	}
	if (status != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "status="+status;
		prop = (prop=="") ? "" : prop+",";
		prop += "statusbar="+status;
	}
	if (menubar != ""){
		prop = (prop=="") ? "" : prop+",";
		prop += "menubar="+menubar;
	}
	if (window.screen && w!="" && h!="") {
		var left = (screen.width-w)/2;
		var top = 0;
		prop += ",top="+top+",left="+left;
	}
	var winchild = window.open(url, nam, prop);
	if (winchild){
		winchild.opener = this;
		winchild.focus();
	}
}
function menuOn(){
  toggleDiv(this.id+"on", 1);
  toggleDiv(this.id+"off", 0);
}
function menuOff(){
  toggleDiv(this.id+"on", 0);
  toggleDiv(this.id+"off", 1);
}
function attachRollover(e){
  var ahrefs = e.getElementsByTagName("a");
  for (var i=0; i<ahrefs.length; i++){
    ahrefs[i].onmouseover = menuOn;
    ahrefs[i].onmouseout = menuOff;
  }
}
function menuRoll(){
  var menuArr = ["menu"];
  for (k=0; k<menuArr.length; k++){
    var e = document.getElementById(menuArr[k]);
    if (e) attachRollover(e);
  }
}
function fixFFhscroll(){
  var ifc = document.getElementById("ifcont");
  if (ifc){
    var ua = navigator.userAgent.toLowerCase();
    var fxbn = ua.substr(ua.indexOf("firefox/")+8);
    if (ua.indexOf("gecko/")!=-1 && ua.indexOf("firefox/")!=-1){
      ifc.setAttribute("scrolling","auto");
    }
  }
}
function init(){
  menuRoll();
  fixFFhscroll();
	if (typeof(followup)=="function") followup();
}
var followup = null;
if (typeof(window.onload)=="function"){
	followup = window.onload;
}
window.onload = init;
