// JavaScript Document
var currentSection = 1;

function startupGuide() {
	if (pararr["section"]) {
		var parnum = pararr["section"];				
		parnum = pararr["section"];
		//tech_1_section_1_link		
		if (parnum > 0) {
			changeSiteinvSection(ged("siteinv1_section_" + parnum + "_link"));
		}
	}	
}

function resetSiteInv() {
	
	var oldel = ged("siteinv1_section_" + currentSection + "_link");
	if (oldel) {
		oldel.className = "subpage_menu_title";
	}	
	var sect = ged("siteinv1_section_" + currentSection);
	if (sect) {
		sect.style.display = "none";
	}
	
	if (ged("subpage_text_1")) {
		ged("subpage_text_1").style.display = "";
		ged("main_image_div_1").style.display = "";
	}		
}

function changeSiteinvSection(el) {
	//		  	0		1      2   3 
	//el has siteinv1_section_1_link
	//find siteinv1_section_1
		
	if (ged("subpage_text_1")) {
		ged("subpage_text_1").style.display = "none";
		ged("main_image_div_1").style.display = "none";
	}	
		
		
	var oldel = ged("siteinv1_section_" + currentSection + "_link");
	if (oldel) {
		oldel.className = "subpage_menu_title";
	}
	
	var sect = ged("siteinv1_section_" + currentSection);
	if (sect) {
		sect.style.display = "none";
	}
		
	var id = el.id;

	var tmparr = id.split("_");
	currentSection = tmparr[2];	
		
	var sect = ged("siteinv1_section_" + currentSection);	
	sect.style.display = "";
	
	el.className = "subpage_menu_title_sel";
}

function unHighlightSection(el) {
	el.style.textDecoration = "";		
}

function highlightSection(el) {
	el.onmouseout = function(){unHighlightSection(el)};		
	el.style.textDecoration = "underline";	
}
