// Showroom requires jquery library
$(document).ready(hideall);

//Create an array 
var allPageTags = new Array();

function hideall() {
	//Populate the array with all the page tags  
	var allPageTags=document.getElementsByTagName("div");  
	
	//Cycle through the tags using a for loop  
	for (i=0; i<allPageTags.length; i++) {  
		//Pick out the tags with our class name  
		if (allPageTags[i].className=='hiddenDiv') {  
		//Manipulate this in whatever way you want  
		allPageTags[i].style.display='none';  
		}  
	} 
}

function showdiv(i) {
	hideall();
	document.getElementById(i).style.display='block';
	document.getElementById('layer1').style.display='none';
}	

function GoToBack(){	
	hideall();
	document.getElementById('layer1').style.display='block';
}

function showOptionValue(oSelect) {
	status = oSelect[oSelect.selectedIndex].text; //gets displayed text, shows in status line
	status += ' : ';
	status += oSelect[oSelect.selectedIndex].value; //gets value
}

function resetSelect(oSelect) {
	for (var i=0; i<oSelect.options.length; ++i) //loop through select options
	if (oSelect.options[i].defaultSelected) //this option's defaultSelected property is set to true (from HTML: selected="selected")
	oSelect.options[i].selected = true; //so, set its selected property to true, selecting it
	showOptionValue(oSelect); //reset status
}	
