function dhtml_class()
{
//initialisieren der klasse
	this.Menue=new Array();
	this.actMenueButton="";
	this.imgpfad="";
	this.praefix="id_";
	this.doc=document;
	if (document.getElementById && document.getElementsByTagName){
		this.init();
	}
	
	

}	
dhtml_class.prototype.init = function()
{
	
}
/* User Agent (Browserkennung) auf einen bestimmten Browsertyp prüfen */  
dhtml_class.prototype.getAgent = function(){
	var agent = navigator.userAgent.toLowerCase();  
	return agent;  
}
/*
*
*
*/

//button off
dhtml_class.prototype.rollover = function(welches)
{
	if(this.doc.getElementsByName(welches)[0] != null){
		var suffix=this.getSuffix(this.doc.getElementsByName(welches)[0].src);
		this.doc.getElementsByName(welches)[0].src=this.imagepfad+welches+'_on.'+suffix;
	}
}

//button off
dhtml_class.prototype.rollout = function(welches)
{
	if(this.actMenueButton != welches){
		if(this.doc.getElementsByName(welches)[0] != null){
			var suffix=this.getSuffix(this.doc.getElementsByName(welches)[0].src);
			this.doc.getElementsByName(welches)[0].src=this.imagepfad+welches+'_off.'+suffix;
		}
	}
}
// datei suffix
dhtml_class.prototype.getSuffix = function(welcher){
  //Datei Suffix
		var reg=/.*\/(.*)\.(\w{3,4})/;
  		var match= reg.exec(welcher);
  		var suffix=match[2];
  		return suffix;
}
//datei
dhtml_class.prototype.getFileName = function(welcher){
	var r=/.*\/(.*)\.(\w{3,4})/;
	var f= r.exec(this.doc.location.href);
	var ref=f[1];
	return ref;
}
//
dhtml_class.prototype.deleteAttribute = function(welches)
{
	var res=this.praefix + welches;
	if(this.doc.getElementById(res) != null){
		this.doc.getElementById(res).setAttribute("onMouseOver","","false");
		this.doc.getElementById(res).setAttribute("onMouseOut","","false");
	}
	if(this.doc.getElementsByName(welches)[0] != null){
		var suffix=this.getSuffix(this.doc.getElementsByName(welches)[0].src);
		this.doc.getElementsByName(welches)[0].src=this.imagepfad+welches+'_on.'+suffix;
	}
}

