function load_iframe(includedir,whichhtml) {
	resource_dir = includedir;
	window.frames['theiframe'].location = resource_dir + whichhtml;
}

function nav_to_tab(includedir,whichtab) {	
	load_iframe(includedir, whichtab + "a.html");
	indicate_tab(whichtab);

}

function indicate_tab(whichtab) {
	for (i = 1; i <= 5; i++) {
	
		theanchor = document.getElementById('tab'+i);
		if (i == whichtab) {
		
			theanchor.setAttribute("class", "active_tab");
			theanchor.setAttribute("className", "active_tab");
			
			//alert(theanchor.getAttribute("class"));
		}
		else {
			theanchor.setAttribute("class", "inactive_tab");
			theanchor.setAttribute("className", "inactive_tab");
		}
		
	} 
	
return;
}


function alter_iframe(newheight) {
	iframe = document.getElementById('theiframe');
	if (iframe.height != newheight + ie_sizing) {
		//alert(newheight + ie_sizing);
		iframe.height = newheight + ie_sizing;
	}
	
	return;
}
var bname = navigator.appName;
var ie_sizing = 0;
if (bname == "Microsoft Internet Explorer")
   {
   ie_sizing = 50;
}

