/* Begin Blank Links */
function BlurLinks(){
	// Text- u. Grafik-Links
	lnks=document.getElementsByTagName('a');
		for(i=0;i<lnks.length;i++){
	lnks[i].onfocus=new Function("this.blur()");
	}
	// ImageMaps
	lnks=document.getElementsByTagName('area');
	for(i=0;i<lnks.length;i++){
		lnks[i].onfocus=new Function("this.blur()");
	}
	// Images
	lnks=document.getElementsByTagName('img');
	for(i=0;i<lnks.length;i++){
		lnks[i].onfocus=new Function("this.blur()");
	}
	// Klick-Buttons
	lnks=document.getElementsByName('Verweis');
	for(i=0;i<lnks.length;i++){
		lnks[i].onfocus=new Function("this.blur()");
	}
}
onload=BlurLinks;

/* DynamicMenue */
function setShowAux ( parent, child ) {
  	var p = document.getElementById(parent);
  	var c = document.getElementById(child );
  	var BrowserName = navigator.appName;
	var BrowserVersion = navigator.appVersion;
	var BVersion = parseFloat (BrowserVersion);
 // document.write( '<h1>' + p.offsetParent + '</h1>' );
//document.write( '<h1>' + p.offsetHeigh + '</h1>' );
	if ( BrowserName=="Microsoft Internet Explorer" ) {
		var top  = (c["position"] == "y") ? p.offsetHeight+5 : 0;
  		var left = (c["position"] == "x") ? p.offsetWidth+2 : +1;
		top  += p.offsetTop;
		left += p.offsetLeft;
		for (; p; p = p.offsetParent) {
	    	top  += p.offsetTop;
	    	left += p.offsetLeft;
	  	}
	} else {
		var top  = (c["position"] == "y") ? p.offsetHeight+2 : 0;
  		var left = (c["position"] == "x") ? p.offsetWidth+2 : +1;
		top  += p.offsetTop;
		left += p.offsetLeft;
	} 
	c.style.position   = "absolute";
  	c.style.top        = top +'px';
  	c.style.left       = left+'px';
  	c.style.visibility = "visible";
}
function setShow() {
  	var p = document.getElementById ( this["parent"] );
  	var c = document.getElementById ( this["child" ] );
 	setShowAux(p.id, c.id);
  	clearTimeout(c["timeout"]);
}
function setHide() {
  	var p = document.getElementById ( this["parent"] );
  	var c = document.getElementById ( this["child" ] );
	c["timeout"] = setTimeout("document.getElementById('"+c.id+"').style.visibility = 'hidden'", 333);
}
function setClick() {
  	var p = document.getElementById ( this["parent"] );
  	var c = document.getElementById ( this["child" ] );
	if ( c.style.visibility != "visible" ) 	setShowAux(p.id, c.id); 
	else 									c.style.visibility = "hidden";
  	return false;
}
function setDynamicMenue( parent, child, showtype, position, cursor ){
	var p = document.getElementById ( parent );
	var c = document.getElementById ( child );
	p["parent"]     = p.id;
	c["parent"]     = p.id;
  	p["child"]      = c.id;
  	c["child"]      = c.id;
  	p["position"]   = position;
  	c["position"]   = position;
	c.style.position   = "absolute";
	c.style.visibility = "hidden";
	if ( cursor != undefined ) p.style.cursor = cursor;
	switch ( showtype ) {
	    case "click":
	      	p.onclick     = setClick;
	      	p.onmouseout  = setHide;
	      	c.onmouseover = setShow;
	      	c.onmouseout  = setHide;
      		break;
    	case "hover":
    		p.onmouseover = setShow;
		    p.onmouseout  = setHide;
		    c.onmouseover = setShow;
		    c.onmouseout  = setHide;
		    break;
  	}
}
