var toggle

function tab_hide(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}
function tab_show(id) {
	//safe function to show an element with a specified id	  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

function tab_toggle(id) {
	if (toggle[id])
	{
		tab_show(id);
		toggle[id] = false;
	}
	else
	{
		tab_hide(id);
		toggle[id] = true;
	}
}

function tab_reset(){
}
function tab_tech(){
	tab_hide("less_reviews");
	tab_hide("more_reviews");
	tab_tech2();
}
function tab_desc(){
	tab_hide("more_reviews");
	tab_show("less_reviews");
	tab_show("reviews_display_more");
	tab_desc2();
}
function tab_tech2(){
	tab_hide("tab_desc_on");
	tab_show("tab_desc_off");
	tab_hide("tab_tech_off");
	tab_show("tab_tech_on");
	tab_hide("p_desc");
	tab_show("p_tech");
}
function tab_desc2(){
	tab_hide("tab_desc_off");
	tab_show("tab_desc_on");
	tab_hide("tab_tech_on");
	tab_show("tab_tech_off");
	tab_hide("p_tech");
	tab_show("p_desc");
}
function more_reviews(){
	tab_hide("reviews_display_more");
	tab_show("more_reviews");
}
function less_reviews(){
	tab_show("reviews_display_more");
	tab_hide("more_reviews");
}

