var DHTML = (document.getElementById || document.all || document.layers);

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 switchImage(whichid) {
	if (!DHTML) return;
	imagesrc = document.images[whichid].src;
	if (imagesrc.indexOf("Open")!=-1) {
		document.images[whichid].src = imagePath + "roundButtonClosed.gif";
	} else {
		document.images[whichid].src = imagePath + "roundButtonOpen.gif";
	}
}

function hidestyle(whichid, justhide) {
if (!DHTML) return;
mainobject = new getObj(whichid);
lineobject = new getObj(whichid + '_line');
	if (mainobject.style.display=='none' && justhide!=1){
		mainobject.style.display='';
		lineobject.style.display='';
	} else {
		mainobject.style.display='none';
		lineobject.style.display='none';
	}
}

function hideAll() {

}

