// JavaScript Document
var currentSection = 1;

function startupSideMenu() {
	if (pararr["section"]) {
		var parnum = pararr["section"];				
		parnum = pararr["section"];
		//tech_1_section_1_link		
		if (parnum > 0) {
			changeSection(ged("section_" + parnum + "_link"));
		}
	}	
}	

function resetMainSection() {	
	var oldel = ged("section_" + currentSection + "_link");
	if (oldel) {
		oldel.className = "subpage_menu_title";
	}	
	var sect = ged("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 changeSection(el) {
		
	if (ged("subpage_text_1")) {
		ged("subpage_text_1").style.display = "none";
		ged("main_image_div_1").style.display = "none";
	}			
		
	var oldel = ged("section_" + currentSection + "_link");
	if (oldel) {
		oldel.className = "subpage_menu_title";
	}
	
	var sect = ged("section_" + currentSection);
	if (sect) {
		sect.style.display = "none";
	}
		
	var id = el.id;

	var tmparr = id.split("_");
	currentSection = tmparr[1];	
		
	var sect = ged("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";	
}
