/** BEGIN MODULE
*
* Style module name: PULLDOWNMENUS
* Description: create image links with roll-over effects which represent well to screenreaders.
* Each link must have a unique ID.
*
* Version: 1.0
* Copyright: (c) 2007 Tellart LLC
* Based on article by  Nick Rigby on A List Apart <http://www.alistapart.com/articles/horizdropdowns/>
*
* SEE pulldownmenus.css FOR INSTRUCTIONS
*
*/

startList = function() {
	if (document.all&&document.getElementsByTagName) {
		tags = document.getElementsByTagName("*");
		for (var t1 = 0; t1 < tags.length; t1++) {
			if (tags[t1].className.indexOf("PULLDOWNMENU") > -1) {
				uls = tags[t1].getElementsByTagName("UL");
				for (var t2 = 0; t2 < uls.length; t2++) {
					navRoot = uls[t2];
					for (i=0; i<navRoot.childNodes.length; i++) {
						node = navRoot.childNodes[i];
						if (node.nodeName=="LI") {
							node.onmouseover=function() {
								this.className+=" over";
							}
							node.onmouseout=function() {
								this.className=this.className.replace(" over", "");
							}
						}
					}
				} //for t2
			} //if PULLDOWNMENU
		} //for t1
	} //if gebtn
}
window.onload=startList;
