function ieHover()
{
	var nav = document.getElementById("nav");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i=0; i<nodes.length; i++)
		{
			nodes[i].onmouseover = function() 
			{
				this.className += " hover";
			}
			nodes[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}

function enhancePageTitles() {
    var h1Tags = document.getElementsByTagName("h1");
    if( h1Tags.length > 0 ) {
        var echoTitle = document.createElement('div');
        echoTitle.className = 'bigger-text';
        var echoTitleText = document.createTextNode(h1Tags[0].firstChild.nodeValue);

        echoTitle.appendChild(echoTitleText);
        h1Tags[0].parentNode.insertBefore(echoTitle,h1Tags[0]);
    }
}

function showContact(x){ 
	Origin=self; 
	slidewindow=window.open("/theAssociation/contactfrm.aspx?id=" + x, "ATM", "toolbar=0,location=0,directories=0,status=0,menubar=0,width=475,height=550");
	slidewindow.focus();
	if (slidewindow!=null){ if (slidewindow.opener == null) { slidewindow.opener=Origin;} }
}
        
//Attach the IE6 specific CSS sheet
if (window.attachEvent && !window.opera){
	window.attachEvent("onload", ieHover);
}


//Attach another script to run on to the window.onload
if (window.addEventListener) //DOM method for binding an event
    window.addEventListener("load", enhancePageTitles, false);
else if (window.attachEvent) //IE exclusive method for binding an event
    window.attachEvent("onload", enhancePageTitles);
//else if (document.getElementById) //support older modern browsers
    //window.onload=dothis;