// JavaScript Document
// Anti-Spam Email - instructions in 2nd script
function ase(userID,domain,ltext,subject,enclose) {
	var link = "<a href='mailto:" + userID + "@" + domain
	link += subject != "" ? "?subject=" + subject : ""
	link += "'>"
	link += ltext != "" ? ltext : userID + "@" + domain
	link += "</a>"
	link = (enclose != 0) ? "&lt;" + link + "&gt;" : link
	document.write(link)
}

var gAutoPrint = true; // Tells whether to automatically call the print function

function printSpecial()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';

if (document.getElementsByTagName != null)
{
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;
}

html += '\n</HE>\n<BODY>\n';

var printReadyElem = document.getElementById("content");

if (printReadyElem != null)
	{
	html += printReadyElem.innerHTML;
	}
else
	{
	alert("Could not find the printReady function");
	return;
	}

html += '\n</BO>\n</HT>';

var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
	printWin.print();
	}
else
	{
	alert("The print ready feature is only available if you are using an browser. Please update your browswer.");
	}
}

activateMenu = function(nav) {

/* currentStyle restricts the Javascript to IE only */
	if (document.all &&
 document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */

        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {   
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */

    /* remove one, when only using one menu */
    activateMenu('vertnav'); 
}