function Activate(v,n)
{
	v.src=n;
}
function DeActivate(v,n)
{
	v.src=n;
}
function deblur(v)
{
	if(v.blur)v.blur()
}
function printShaddow(linkText) 
{
	if (document.getElementById) 
	{
		document.write('<span class="shaddow">' + linkText + '<\/span>');
	}
}

// DropDownMenu
// Erweitert! benötigt x.js!!
// Positionierung der untergeordneten UL auf Breite des Links
// Dazu Brauchen Li's absteigende z-Index
var dropdown = false;
var posIt = false;
function enableDropdownMenuForIE(){
	if (document.all){
	    uls = document.getElementsByTagName('UL');
	    for(i = 0; i < uls.length; i++){
	        if (uls[i].className == 'dropdown'){
	            var lis = uls[i].getElementsByTagName('li');
	            for (j = 0; j < lis.length; j++){
	                if(lis[j].className != "activ" && lis[j].lastChild.tagName == 'UL'){
						//Anpassung: Ermittelt Breite von "A".
					
					
						lis[j].onmouseover = function() {
							if (posIt){
								for (k = 0; k < this.childNodes.length; k ++) {
									if (this.childNodes[k].tagName == "A") {
									
										xpos = xWidth(this.childNodes[k].firstChild);
									}
								}
							} else {
								xpos = 0;
							}
							dropDownMenuShow(this, xpos);
						}
	                    lis[j].onmouseout = function() { dropDownMenuHide(this); }
	                }
	            }
	        }
	    }
	}
}
function dropDownMenuShow(obj, xpos) {
	if (xpos != 0) {
		obj.lastChild.style.left = xpos + 20 + 'px';
	}
	obj.lastChild.style.display = 'block';
}
function dropDownMenuHide(obj) {
	obj.lastChild.style.display = 'none';
}
