var show = new Array();
show[0] = 'information';
show[1] = 'techdata';
show[2] = 'options';

function zeige(id){
	if(isNotVisible(id))
		showAllElements(id);
	else
		hideElement(id);
}

function isNotVisible(id){
	return document.getElementById(id).style.display == "none";
}

function showAllElements(id){
	for(i = 0; i < show.length; i++)
		showSubElement(i);
	showElement(id);
}

function subSubElements(){
	for(i = 0; i < show.length; i++)
		showSubElement(i);
}

function showSubElement(i){
	zeiger = 'active-' + show[i];
	document.getElementById(show[i]).style.display = "none";
	document.getElementById(zeiger).style.background = "#3e4b53";
	document.getElementById(zeiger).style.color = "#FFFFFF";
}

function showElement(id){
	document.getElementById(id).style.display = "block";
	zeiger = 'active-'+id;
	document.getElementById(zeiger).style.background = "#000000";
	document.getElementById(zeiger).style.color = "#FEED01";
}

function hideElement(id){
	document.getElementById(id).style.display = "none";
}
