function selectTab(index)
{



/* for the selected index, set the folder tab and the content area to
	visible, and write out the html to the content area */
	document.getElementById(tabs[index]).src = (tabs_image_base + tabs[index] + "_select.gif");
	/* don't rewrite an applet tab */
	if(index != 1) {
		document.getElementById('text_wrapper_' + index).innerHTML = (tab_content[index]);
	}
	
	var selectedTab = document.getElementById(tabs[index] + "_content");
	selectedTab.style.visibility="visible";
	selectedTab.style.marginTop = '-' + index + 'px';

	/* loop through and hide the other divs and tabs */
	for (i = 0; i < numPulldowns; i++) {	
		if (i != index) {
			if(i != 1){
				document.getElementById('text_wrapper_' + i).innerHTML = '';
			}
			var unselectedTab = document.getElementById(tabs[i] + "_content");
			document.getElementById(tabs[i]).src = (tabs_image_base + tabs[i] + ".gif");
			unselectedTab.style.visibility="hidden";
			unselectedTab.style.height = "1px";
			unselectedTab.style.marginTop = "0px";
		}
	}
	
	selectedTab.style.visibility="visible";	
	selectedTab.style.height="auto";
	selectedTab.style.marginTop = '-' + index + 'px';
	
/*	document.getElementById(tabs[index] + "_content").style.visibility="visible";

	/* loop through and hide the other divs and tabs 
	for (i = 0; i < numPulldowns; i++) {	
		if (i != index) {
			if(i != 1){
				document.getElementById('text_wrapper_' + i).innerHTML = '';
			}
			document.getElementById(tabs[i]).src = (tabs_image_base + tabs[i] + ".gif");
			document.getElementById(tabs[i] + "_content").style.visibility="hidden";
			document.getElementById(tabs[i] + "_content").style.height="0px";
		}
	}
	document.getElementById(tabs[index] + "_content").style.visibility="visible";
	document.getElementById(tabs[index] + "_content").style.height="auto";*/


	
	if (document.getElementById(tabs[1] + "_content").style.visibility == "visible")
	{

	}
	
	
	if (index == 3) {
		var standardMenu = document.getElementById("standardOrganization");

	} 
	/*
	switch(index) {
		case 0:
			window.location.hash = ("#Learner");
			break;
		case 1:
			window.location.hash = ("#Activity");
			break;
		case 2:
			window.location.hash = ("#Help");
			break;
		case 3:
			window.location.hash = ("#Instructor");
			break;
	}
	*/
	
}

	// Writes the value of the new standard on the screen

	function changeStandard(index) {
		if (index != "null" && index != "undefined") {
			document.getElementById("standardPlacement").style.display = "block";
			document.getElementById("standardPlacement").innerHTML = standard[index];
		} else {
			document.getElementById("standardPlacement").innerHTML = "<br />";
			var standardDisplay = document.getElementById("standardPlacement").style.display = "none";
		}
	}
	
	function changeTextBook(index) {
		if (index != "null" && index != "undefined") {
			var standardDisplay = document.getElementById("textbookPlacement").style.display = "block";
			document.getElementById("textbookPlacement").innerHTML = textBook[index];
		} else {
			var standardDisplay = document.getElementById("textbookPlacement").style.display = "none";
			document.getElementById("textbookPlacement").innerHTML = "<br />";
		}
	}
	
	function printing() {
	
		if (document.getElementById("divPrinting") != null) {
			var px = document.getElementById("divPrinting");
			
			if (px.style.display == "none") {
				document.getElementById("printText").innerHTML = "";
				px.style.display = "block";
			} else {
				document.getElementById("printText").innerHTML = "<a href=\"#printing\" onClick=\"javascript:printing();\"><img src=\"/ui/interactivate/images/printerInst.jpg\" border=\"0\"></a>";
				px.style.display = "none";
			}
			
		}
	
	}