// JavaScript Document

var currentPanel = 'description';
function toggleTabs (newPanel) {
	if (newPanel == currentPanel) return false;
	if (tmpObj = document.getElementById(currentPanel + '_tab')) tmpObj.className =  'property-tab-off';
	if (tmpObj = document.getElementById(currentPanel + '_tab_left')) tmpObj.className =  'property-tab-left-off';
	if (tmpObj = document.getElementById(currentPanel + '_tab_right')) tmpObj.className =  'property-tab-right-off';
	if (tmpObj = document.getElementById(newPanel + '_tab')) tmpObj.className =  'property-tab-on';
	if (tmpObj = document.getElementById(newPanel + '_tab_left')) tmpObj.className =  'property-tab-left-on';
	if (tmpObj = document.getElementById(newPanel + '_tab_right')) tmpObj.className =  'property-tab-right-on';
	//if (tmpObj = document.getElementById(currentPanel + '_tab')) tmpObj.style.color =  '#666666';
	//if (tmpObj = document.getElementById(newPanel + '_tab')) tmpObj.style.color =  '#000000';
	if (tmpObj = document.getElementById(currentPanel + '_panel')) tmpObj.className =  'property-panel-off';
	if (tmpObj = document.getElementById(newPanel + '_panel')) tmpObj.className =  'property-panel-on';
	currentPanel = newPanel;
} 
