/*
var on = false;
var gr = "";
var nav_old = "nav1";

flip2norm = function( menu_gr) {
	on = false;
	gr = menu_gr;
	setTimeout("change()", 10);

}
change = function () {
if(on == false) 
	document.images[ gr ].src = "images/default/"+gr+".jpg";
}

flip2direct = function ( menu_gr ) {
	on = true;
	document.images[ nav_old ].src = "images/default/"+nav_old+".jpg";
	nav_old = menu_gr;
	document.images[menu_gr].src = "images/default/"+menu_gr+"_over.jpg";
}
    
flip2group = function ( menu_gr ) {
	on = true;
	document.images[menu_gr].src = "images/default/"+menu_gr+"_group.jpg";	
}
*/

change = function(ID) {
textRows = 5;		// REMEMBER TO ADJUST THIS VALUE WHEN INDEX.HTML CHANGED !!	
	
	for(i=0; i<textRows; i++) {
		chapt = "button"+i;
		node = document.getElementById(chapt);
		node.childNodes[0].className = "npress";
	}
	chapt = "button"+ID;
	node = document.getElementById(chapt);
	node.childNodes[0].className = "pressed";
	
	for(i=0; i<textRows; i++) {
		chapt = "ch"+i;
		node = document.getElementById(chapt);
		node.childNodes[0].className = "hide";
	}
	chapt = "ch"+ID;
	node = document.getElementById(chapt);
	node.childNodes[0].className = "show";
}

startList = function() {

textRows = 5;		// REMEMBER TO ADJUST THIS VALUE WHEN INDEX.HTML CHANGED !!	

	for(i=1; i<textRows; i++) {
		chapt = "ch"+i;
		if(node = document.getElementById(chapt)) {
		node.childNodes[0].className = "hide";
		}
	}
	
	if (document.all&&document.getElementById) {

			navRoot1 = document.getElementById("nav1");
			for (i=0; i<navRoot1.childNodes.length; i++) {
				node = navRoot1.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
      					}

					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
						}
					}
				}

			navRoot2 = document.getElementById("nav2");
			for (i=0; i<navRoot2.childNodes.length; i++) {
				node = navRoot2.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
                	node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
						
					}
				}
			}
			navRoot3 = document.getElementById("nav3");
			for (i=0; i<navRoot3.childNodes.length; i++) {
				node = navRoot3.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
			navRoot4 = document.getElementById("nav4");
			for (i=0; i<navRoot4.childNodes.length; i++) {
				node = navRoot4.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
			
			
		}
	}