var dom = document.getElementById? 1 : 0;
var ie  = document.all? 1 : 0;
var ns  = document.layers? 1 : 0;

function showObject(objList){var a = objList.split(',');for(var i = 0; i < a.length; i++){show(a[i]);}}
function hideObject(objList){var a = objList.split(',');for(var i = 0; i < a.length; i++){hide(a[i]);}}
function show(obj){ hide('hvac'); hide('misc'); hide('plumbing'); hide('electrical'); hide('striping'); obj = findObj(obj);if(!obj) return;if (dom || ie){obj.style.visibility = "visible";obj.style.display = "";}else if (ns){if(document.layers[obj]){obj.visibility = "show";obj.display = "";}}}
function hide(obj){obj = findObj(obj);if(!obj) return;if (dom || ie){obj.style.visibility = "hidden";obj.style.display = "none";}else if (ns){if(document.layers[obj]){obj.visibility = "hide";obj.display = "none";}}}
function findObj(obj){var p, i, found, doc;doc = document;if(!(found = doc[obj]) && ie){found = doc.all[obj];}for (i=0; !found && i < doc.forms.length; i++){found = doc.forms[i][obj];}for(i=0; !found && ns && i < doc.layers.length; i++){found = find(obj,doc.layers[i].document);}if(!found && dom){found = document.getElementById(obj);}return found;}

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function isDHTML()
{
	var DHTML = (document.getElementById || document.all || document.layers);
	return DHTML;
}


function showHide(obj_id)
{
	if (!isDHTML()) return;
	var x = new getObj(obj_id);
	var x2="show"+obj_id;
	var x3="hide"+obj_id;
	vis = x.style.display;
	if (vis == "") 
	{
		hide(obj_id);
		hide(x3);
		show(x2);
	}
	else
	{
		show(obj_id);
		show(x2);
		hide(x3);
	}
}
function HideSection(obj_id)
{
	if (!isDHTML()) return;
	var x2="show"+obj_id;
	hide(obj_id);	
	show(x2);
}
function ShowSection(obj_id)
{
	if (!isDHTML()) return;	
	var x2="show"+obj_id;
	show(obj_id);
	hide(x2);	
}