	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	}
	function MM_changeProp(objName,x,theProp,theValue) { //v6.0
	  var obj = MM_findObj(objName);
	  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
		if (theValue == true || theValue == false)
		  eval("obj."+theProp+"="+theValue);
		else eval("obj."+theProp+"='"+theValue+"'");
	  }
	}
	//popup
	var popupWin = null;
	function popdown() {
	  if (popupWin && !popupWin.closed) popupWin.close();
	}
	function popup(obj,w,h) {
	  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
	  if (!url) return true;
	  w = (w) ? w += 20 : 810; 
	  h = (h) ? h += 25 : 600;
	  var args = 'width='+w+',height='+h+',scrollbars,resizable, status';
	  popdown();
	  popupWin = window.open(url,'popup',args);
	  if(popupWin)
		popupWin.focus();
	  return (popupWin) ? false : true;
	}
	function popunder(theURL, theName, features, ispopunder) {
		if (!theURL || !theName)
			return;
		if (!features)
			features = '';
		var win=window.open(theURL, theName, features)
		if(ispopunder) {
			win.blur()
			window.focus()
		}
	}
	function changeImage(filename, imagename){
		eval("document."+imagename+".src = filename");
	}
	function setElememtHTML(value, targetElement) {
		//if IE 4+
		if (document.all) {
			eval(targetElement+'.innerHTML = value;');
		//else if NS 4
		} else if (document.layers) {
			eval('document.'+targetElement+'.document.write(value);');
			eval('document.'+targetElement+'.document.close();');
		}
		//else if NS 6 (supports new DOM)
		else if (document.getElementById) {
			rng = document.createRange();
			el = document.getElementById(targetElement);
			rng.setStartBefore(el);
			htmlFrag = rng.createContextualFragment(value);
			while (el.hasChildNodes())
				el.removeChild(el.lastChild);
			el.appendChild(htmlFrag);
		}
	}
    var popUpWin=0;
	function popUpWindow(URLStr, left, top, width, height){  
	if(popUpWin)  {    
		if(!popUpWin.closed) popUpWin.close();  
	}  
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	}
	/***********************************************************************************************************************************************************/
	/* New common functions do not delete */
	/***********************************************************************************************************************************************************/
	//on load function 
	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
			if (oldonload) {
				oldonload();
			}
				func();
			}
		}
	}

	//delivers json OBJ array size (lenght()) doesnt work here
	function getLen(array_value){
		var i = 0;
		for (key in array_value){
			i++;
		}
	return (i);
	}
	
	//array key exists json OBJ
	function keyExists(array_value, search_key){
		for (key in array_value){
			if(search_key == key)
			return true;
		}
	return false;
	}	
	
	//search an array value
	function valueExists(array_value, search_value){
		for (i = 0; i < array_value.length; i++){
			if(search_value == array_value[i])
			return true;
		}
	return false;
	}
	/***********************************************************************************************************************************************************/
	/*	 	AJAX BUILD FUNCTIONS /FLYOUT FUNCTIONS	*/
	/*		USE GLOBAL FLY OUT						*/
	/***********************************************************************************************************************************************************/
	/*var xmlHttp 		= null;
	var loadingscreen 	= '<img src="/images/startseitenpanel/loading.gif" alt="Laden..." />';
	var currentFlyOut 	= '';
	
	//show and place the flyout
	function showFlyOut(name, width){
		
		setElementProperty(loadingscreen, 'flyOutCt');
		
		var eventShow = true;
		if((name == currentFlyOut || currentFlyOut == '') && document.getElementById('panelFlyOut').style.display == 'block' && doClose){
			//alert(currentFlyOut+"<>"+name);
			closeFlyOut();
			eventShow =  false;
			//name = '';
		}
		else{
			//alert('3 DISPLAY: '+document.getElementById('panelFlyOut').style.display+' CLOSE: '+doClose+' FLYOUT: '+currentFlyOut+' NAME: '+name);
			document.getElementById('panelFlyOut').style.width = width.toString()+'px'; 
			document.getElementById('panelFlyOut').style.display = 'block';	
			doClose = true;
			//name = '';
		}
		
		document.getElementById('iehackwrap').onclick = function(){}

		currentFlyOut = name;
		
		return eventShow;
	}*/

	//return requested element
	function getEt(id){
		return (document.getElementById(id));	
	}

	//getElementposition from target Element
	function getElementPosition(targetElement) {
		var offsetTrail = document.getElementById(targetElement);
		var offsetLeft = 0;
		var offsetTop = 0;
		var offsetarray = new Array();
		while (offsetTrail) {
			offsetLeft += offsetTrail.offsetLeft;
			offsetTop += offsetTrail.offsetTop;
			offsetTrail = offsetTrail.offsetParent;
		}
		if (navigator.userAgent.indexOf("Mac") != -1 && 
			typeof document.body.leftMargin != "undefined") {
			offsetLeft += document.body.leftMargin;
			offsetTop += document.body.topMargin;
		}
		offsetarray = Array(offsetLeft, offsetTop);
	
	return offsetarray;
	}
	
	//define position for target;
	function setElementPosition(targetElement, showElement, left, top, offsetElement){
		offsetarrayForm = new Array();
		offsetarray 	= getElementPosition(targetElement);
		
		if(typeof(offsetElement)=='string' && document.getElementById(offsetElement)) {
			offsetarrayForm = getElementPosition(offsetElement);
		}		
		leftposition = offsetarray[0]+left-offsetarrayForm[0];
		topposition = offsetarray[1]+top;
		document.getElementById(showElement).style.left = leftposition.toString()+'px';
		document.getElementById(showElement).style.top = topposition.toString()+'px';	
	}
	
	//sets Element property 
	function setElementProperty(value, targetElement) {
		//if IE 4+
		if (document.all) {
			eval(targetElement+'.innerHTML = value;');
		//else if NS 4
		} else if (document.layers) {
			eval('document.'+targetElement+'.document.write(value);');
			eval('document.'+targetElement+'.document.close();');
		}
		//else if NS 6 (supports new DOM)
		else if (document.getElementById) {
			rng = document.createRange();
			el = document.getElementById(targetElement);
			rng.setStartBefore(el);
			htmlFrag = rng.createContextualFragment(value);
			while (el.hasChildNodes())
				el.removeChild(el.lastChild);
			el.appendChild(htmlFrag);
		}
	} 
	
	//-----------------------------------------------------------------------------------------------------------------------//
    // A-X-send function //POST
	function writeAjax(fileElement, targetElement, requestUri){
		if (window.ActiveXObject){
			// Internet Explorer
			try {
				xmlHttp = new ActiveXObject("Msxm12.XMLHTTP");
			}
			catch (e){
				try {
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e) {}
			}
		}
		else if (window.XMLHttpRequest){
			// Opera, Firefox
			try {
				xmlHttp = new XMLHttpRequest();
			}
			catch (e) {}
		}
		if (xmlHttp){
			xmlHttp.open("POST", fileElement, true);
			xmlHttp.onreadystatechange = function(evt) { 
				if (xmlHttp.readyState == 4){
					setElementProperty(xmlHttp.responseText, targetElement);
				}}	
			xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
			xmlHttp.send(requestUri);
		}
		else {
			setTimeout("writeAjax('"+fileElement+"','"+targetElement+"')",500);
		}
	return(true);
	}