﻿// JavaScript Document

<!-- DOCUMENT CONTAINING USEFUL GLOBAL UTILITIES -->

<!-- toggle function -->
function cietoggle(el)
{
	myEl = document.getElementById(el);
	myEl.style.display = (myEl.style.display == 'block') ? 'none' : 'block';
}

document.write("<style type=text/css>");
document.write(".cietoggle {display:none; color:#444;}");
document.write("a.cietoggle {color:#555; text-decoration:none; display:none;}");
document.write("a.cietoggle:visited {color:#555;}");
document.write("a.cietoggle:hover {color:#bb2322; display:none;}");
document.write("div.cietoggle {padding-top:3px}");
document.write("</style>");

var origWidth, origHeight;
if (document.layers) {
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
  onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight) location.reload(); }
}
else if (document.all) onresize = function() { window.location.reload();
}

<!--
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);
//-->

