// JavaScript Document

function startList() { //Used to educate IE in ways of mouse overs on li
	if (document.all&&document.getElementById) {
		if(document.getElementById("nav")){
			navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				divNode = navRoot.childNodes[i];
				for (j=0; j<divNode.childNodes.length; j++) {
					node = divNode.childNodes[j];				
					if (node.nodeName=="LI") {
						node.onmouseover=function() {this.className+=" over";}
						node.onmouseout=function() {this.className=this.className.replace(" over", "");}
					}
				}
			}
		}
	}
}

function scroll() { //Makes a dynamic marquee element for scrolling purposes
	var marquee = document.createElement("marquee");
	marquee.setAttribute("direction","up");
	marquee.setAttribute("behavior","scroll");
	marquee.setAttribute("height","254px");	
	marquee.setAttribute("scrollamount","1");		
	marquee.setAttribute("scrolldelay","1");		
	marquee.appendChild(document.getElementById("newsBlock"));
	document.getElementById("newsFlash").appendChild(marquee);
}

loadPage = function(){
	startList();
//	scroll();
}

window.onload=loadPage;