//Needed for cascading menu to work properly in IE

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

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 openNewWindow() {

<!-- Replace the following line with ID of the div section that you want printed in -->
<!-- txt= document.getElementById(<replac>).innerHTML; -->
txt= document.getElementById('mainContent').innerHTML;
newwindow=window.open();

newdocument=newwindow.document;
<!-- may need to add Head and title sections if you want to use custom style sheets on -->.

newdocument.write('<html><body>');
newdocument.write(txt);
newdocument.write('</body></html>');
newdocument.close();
}