//xDHTMLObj: simple and compact DHTML API by Darran Jones
function xDHTMLObj(elementName){
  //DOM 1 IE5+, NS6+
  if (document.getElementById){
  	this.element = document.getElementById(elementName);
	this.style = document.getElementById(elementName).style;
 	this.isSupported = true;
  }
  else if (document.all){
	//IE4
	this.element = document.all[elementName];
	this.style = document.all[elementName].style;
	this.isSupported = true;
  }
  else if (document.layers){
   	//NS4
   	this.element = document.layers[elementName];
   	this.style = document.layers[elementName];
	this.isSupported = false;
  }
}
