startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		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", "");
				}
			}
		}
	}
}
window.onload=startList;


//POP-UP WINDOW

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//Media Library Navigation//


function toggle(id){
    ul = "ul_" + id;
    a = "a_" + id;
    ulElement = document.getElementById(ul);
    aElement = document.getElementById(a);
    if (ulElement){
	    if (ulElement.className == 'closed'){
		    ulElement.className = "open";
				    aElement.className = "closer";
		    }else{
		    ulElement.className = "closed";
		    aElement.className = "opener";
		    }
	    }

}

//CHECK FORMS

function check_form()
{	if (document.my_form.terms_agree.options[document.my_form.terms_agree.selectedIndex].text == 'yes')
	{
		document.my_form.submit();
	}	else
	{
		alert('You must agree to the terms before you can continue');
	}
	//alert(document.my_form.terms_agree.options[document.my_form.terms_agree.selectedIndex].text);
}


