	
/***********************************************************************************************************/
/* HauptNavigation Highlighting */
/***********************************************************************************************************/

	function NavigationHover( oObject , sImage) {
		
		if ( oObject != null && sImage != null )
		{
			oObject.src = sImage;
			
		}
	
	}
	
	
	
	
	
	
/***********************************************************************************************************/
/* BildFader Funktion */
/***********************************************************************************************************/



	function tryFadeImages(strImageID1, strImageID2, strArrName, preloadImageName, intLoadThisImg) {
		
		if(arguments.length == 6)
		{
			strTextID = arguments[5];
		}else{
			strTextID = 'no';
		}
		
		//alert(arguments[5]);
		//alert(arguments.length+' - '+strTextID);
		
		//  falls funktion fadeImages bereits vorhanden/geladen
		if (window.fadeImages){
			fadeImages(strImageID1, strImageID2, strArrName, preloadImageName, intLoadThisImg, strTextID);
		}

		//  falls funktion noch nicht geladen, prüfe in 1 Sekunde nochmal
		else{
			setTimeout("tryFadeImages('"+strImageID1+"', '"+strImageID2+"', '"+strArrName+"', '"+preloadImageName+"', "+intLoadThisImg+", '"+strTextID+"')", intLoadThisImg);
		}
	}


/***********************************************************************************************************/
/* Popup  */
/***********************************************************************************************************/


	function hald_openwin(myfile,width,height){
		if( !width ) width = 400;
		if( !height ) height = 400;
		var now=new Date()
		winname="a" + now.getTime()
		params = "width="+width+",height="+height+",resizable=1,status=1,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0 ";
		newwin = window.open( myfile, winname , params)
		if( window.focus ) newwin.focus();
	}
	
	function hald_openwinfix(myfile,width,height){
		if( !width ) width = 400;
		if( !height ) height = 400;
		var now=new Date()
		winname="a" + now.getTime()
		params = "width="+width+",height="+height+",resizable=0,status=1,scrollbars=0,toolbar=0,location=0,directories=0,menubar=0 ";
		newwin = window.open( myfile, winname , params)
		if( window.focus ) newwin.focus();
	}
	
	
	
	
	
//************************************************************
/* show div */

	function showdiv(sIDshow, sIDhide) {
	
		if ( sIDshow != '') {
			document.getElementById(sIDshow).style.display = "block";
		}
		
		if ( sIDhide != '') {
			document.getElementById(sIDhide).style.display = "none";
		}
	
	}
	
	
//***********************************************************
/* Switch Element */
	
	function switchElement(sID) {
	
		if ( sID != null)
		{
			if ( document.getElementById(sID).style.display == "none" )
			{
				document.getElementById(sID).style.display = "block"	
			}else
			{
				document.getElementById(sID).style.display = "none"	
			}
		}
	
	}
	
//***********************************************************
/* Expand Lexikon Element */
	
	function ExpandLexikonElement( oElement , sID ) {
	
		if ( sID != null)
		{
			if ( document.getElementById(sID).style.display == "none" )
			{
				oElement.className = 'DoubleJumperDown';
				document.getElementById(sID).style.display = "block"	
			}else
			{
				oElement.className = 'DoubleJumper';
				document.getElementById(sID).style.display = "none"	
			}
		}
	
	}
	
//***********************************************************	



