// JavaScript Document
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;


/* Show or hide specific elements, by ID, with an A tag */
	function showhide(id) {
		if(document.getElementById) {
			obj = document.getElementById(id);
			if(obj.style.display == "none") {
				obj.style.display = "";
			} else {
				obj.style.display = "none";
			}
		}
	}
	
	function turnbuckle(id) {
		if(document.getElementById) {
			var turnbuckle = document.getElementById(id);
			if(turnbuckle.src == master_logo_path+"/turnbuckle-plus.gif") {
				turnbuckle.src = master_logo_path+"/turnbuckle-minus.gif"
			} else {
				turnbuckle.src = master_logo_path+"/turnbuckle-plus.gif"
			}
		}	
	}
	
	function showhideall (action) 
	{
	
		//show or hideall of the descriptions
		if(document.getElementById) 
		{
		 var divs = document.getElementsByTagName("div");
		 for (var i = 0, n = divs.length; i < n; i ++)
		 { 
		  if (divs[i].className == "sessionDescriptions") 
		  {
		   if (action == "show") divs[i].style.display="";
		   else divs[i].style.display="none";
		  }
		 }
	
		//change all the turnbuckles to + or - depending on whether we just showed all or hid all
		 var imgs = document.images;
		 for (var i = 0; i < imgs.length; i ++)
		 {
			if (action == "show")
			{
				if(imgs[i].src == master_logo_path+"/turnbuckle-plus.gif" && (imgs[i].attributes[1].value != "turnbuckle_master_open" && imgs[i].attributes[1].value != "turnbuckle_master_close") ) 
				{
					imgs[i].src = master_logo_path+"/turnbuckle-minus.gif"
				} 
			}
			else if (action == "hide")
			{
				if(imgs[i].src == master_logo_path+"/turnbuckle-minus.gif"  && (imgs[i].attributes[1].value != "turnbuckle_master_open" && imgs[i].attributes[1].value != "turnbuckle_master_close") )
				{
					imgs[i].src = master_logo_path+"/turnbuckle-plus.gif"
				}
			}
		 }
		}
	}








// The JavaScript Source!! http://javascript.internet.com
// Original:  David Sosnowski (support@codefoot.com)
// Web Site:  http://www.codefoot.com
	function blockError(){return true;}
	window.onerror = blockError;
