/////////////////////////////////////////////////////////////////////////////////
// Developing+Programming by aClass (www.aclass.de) i n f o @ a c l a s s . d e 
/////////////////////////////////////////////////////////////////////////////////

var imgpath='/img/';

/////////////////////////////////////////////////////////////////////////////////
// HMenu set OVER style
function hm_over(obj) {
}

/////////////////////////////////////////////////////////////////////////////////
// HMenu set OUT style
function hm_out(obj) {
}

/////////////////////////////////////////////////////////////////////////////////
// HMenu Init
function hm_i(name) {
	var table=findObject(name);
	for(var row=0; row<table.rows.length; row++) {
		var nodes=table.rows[row].childNodes;
		for(var col=0; col<nodes.length; col++) {
			if(nodes[col].tagName=='TD') {
				c="hm_over(this);"
		  	if(nodes[col].onmouseover) {
		  		var b=new String(nodes[col].onmouseover);
		  		b=b.substring(b.indexOf('{')+1,b.lastIndexOf('}')-1);
		  		nodes[col].onmouseover=new Function(c+b);
		    } else {
				  nodes[col].onmouseover=new Function(c);
				}			
				c="hm_out(this);"
		  	if(nodes[col].onmouseout) {
		  		var b=new String(nodes[col].onmouseout);
		  		b=b.substring(b.indexOf('{')+1,b.lastIndexOf('}')-1);
		  		nodes[col].onmouseout=new Function(c+b);
		    } else {
				  nodes[col].onmouseout=new Function(c);
				}			
			}
		}
	}
}

/////////////////////////////////////////////////////////////////////////////////
// HMenu Get Table
function hm_gt(obj) {
	if(obj.tagName=='TABLE') return obj;
	return hm_gt(obj.parentNode);
}

