<!--

	function incLogin() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (document.getElementById("siteAdminMenu")) return false;
		
		// Create new elements for the login widget
		var newDiv = document.createElement("div");
		var newiFrame = document.createElement("iframe");
		var newSpan = document.createElement("span");
		
		// Setup each element
		newDiv.setAttribute("id","login_div");
		newiFrame.setAttribute("id","iflogin");
		newiFrame.setAttribute("src","/cafe.cfm?act=member.showlogin&spanid=loginform");
		newiFrame.setAttribute("frameborder","0");
		newiFrame.setAttribute("width","0");
		newiFrame.setAttribute("height","0");
		newSpan.setAttribute("id","loginform");
		
		// Setup text nodes
		var theText = document.createTextNode(" ");
		
		// Put together span
		newSpan.appendChild(theText);
		
		// Put together the div
		newDiv.appendChild(newiFrame);
		newDiv.appendChild(newSpan);
		
		// Insert into the document
		document.body.appendChild(newDiv);
	}
	
	if (window.addEventListener) {
		window.addEventListener("load", incLogin, false);
	} else {
		window.attachEvent("onload", incLogin);
	}
	
	
	function incSponsor() {
   var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="150" height="150">';
      str += '<param name="movie" value="/images/assnimg1437/imgs/logos_150/assn_sponsors.swf" />';
      str += '<param name="quality" value="high" />';
      str += '<param name="wmode" value="transparent" />';
      str += '<embed src="/images/assnimg1437/imgs/logos_150/assn_sponsors.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150" wmode="transparent"></embed>';
      str += '</object>';
   
   document.write(str);
}


startList = function() {

	if (document.all&&document.getElementById) {   
			theul = document.getElementById("menu").childNodes[0];
			theul.setAttribute('id','menu_ul');
			navRoot = document.getElementById("menu_ul");
					for (i=0; i<navRoot.childNodes.length; i++) {
						effect(navRoot);
				}
	}   
}

function effect(elementId) {
node = elementId.childNodes[i];
		if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className="over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace("over", "");
				}
		}

}

window.onload=startList;


function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 
{

if (document.all&&document.getElementById) {   
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}
}

if (document.all&&document.getElementById) {   
window.attachEvent("onload", correctPNG);
}
	
//-->