//..the global variables for the active box
var active = null;
//..check if dhtml
var dhtml = (document.getElementById || document.all || document.layers);

//..show the selected box

function showbox(num) {
	if (!dhtml) return
	if (active) {
  mystyle = getStyleObj('box'+active);	
		activebox = eval(mystyle);
		activebox.visibility = "hidden";
	}
 mystyle = getStyleObj('box'+num);	
	newbox = eval(mystyle);
	newbox.visibility = "visible";
	active = num;
}

function shownav(num) {
	if (!dhtml) return
	if (active) {
  mystyle = getStyleObj('nav'+active);	
		activebox = eval(mystyle);
		activebox.visibility = "hidden";
	}
  mystyle = getStyleObj('nav'+num);	
	newbox = eval(mystyle);
	newbox.visibility = "visible";
	active = num;
	if(num > 0) setTimeout("hidenav('" + num + "')", 4000); 
}

function hidenav(num) {
	if (!dhtml) return
  mystyle = getStyleObj('nav'+num);	
	newbox = eval(mystyle);
	newbox.visibility = "hidden";
}