
/*
 h.module.js
 18.6.2004
*/

function accept_system_colors(){
 if (document.all) {
  var vers=navigator.appVersion;
  if (vers.substring(0,1)=="4") return 1; else return 0;
 }
}


function SS_open_picture(url,width,height,text){
 if (width>screen.width) width=screen.width-14;
 if (height>screen.height) height=screen.height-60;
 var SS_mywin = window.open('','myimage','width=' + width + ',height=' + height);
 SS_mywin.document.writeln("<html><head><title>Picture " + width + " x " + height +"</title></head><body leftmargin=0 topmargin=0><a href=\"javascript:self.close()\"><img src=\"" + url + "\" border=\"0\" alt=\"Click to close\"></a><br>" + text + "</body></html>");
 SS_mywin.moveTo((screen.width-10-width)/2,(screen.height-50-height)/2);
}

function enlarge(pic) { 
  	   html = "<HTML><HEAD><TITLE>Photo</TITLE>" +
  "</HEAD><BODY LEFTMARGIN=0 " +
  "MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><table border=0 align=left>" +
  "<tr><td><a href=#><IMG SRC='" + pic + "' BORDER=0 NAME=image width=900 height=600" +  "window.moveTo((screen.width-322)/2,(screen.height-250)/2)' + onClick='window.close()'></a></td></tr></table>" +
  "</BODY></HTML>";
 popup=window.open
   ('','image','width=910,height=620,toolbar=0,location=0,   directories=0,menuBar=0,scrollbars=1,resizable=1');
 popup.moveTo((screen.width-322)/2,(screen.height-250)/2);
 popup.document.open();
 popup.document.write(html);
 popup.document.focus();
 popup.document.close()
}

function toggle(elementID){
	if (elementID != 'fac4') document.getElementById('fac4').style.display = 'none';
	if (elementID != 'fac3') document.getElementById('fac3').style.display = 'none';
	if (elementID != 'fac2') document.getElementById('fac2').style.display = 'none';
	if (elementID != 'fac1') document.getElementById('fac1').style.display = 'none';
var target1 = document.getElementById(elementID)
if (target1.style.display == 'none') {
target1.style.display = 'block'
} else {
target1.style.display = 'none'
}
}

function toggle2(elementID){
var target1 = document.getElementById(elementID)
if (target1.style.display == 'none') {
target1.style.display = 'block'
} else {
target1.style.display = 'none'
}
}

