	var FLastHoveredObject = null;
	var FLastHoveredParent = "";
	var FLastHoveredParent2 = "";
	var FLastHoveredTyp = 0;
	
	var FConstHoverBackColorLeft = "#DFDFDF";
	var FConstHoverBackColorRight = "#000000";	
			
	var FConstLinkPrefix = "front_content.php?idcat=";
	var FConstLinkPrefix2 = "/";


	function ClickAndGo(ATyp, AObject, AParentID, AParent2ID, ALinkID)
	{
		
		// Realisierung eines Mover-Effektes für Navigation Links (Typ:1)
		// und Spalte Rechts (Typ:2)
		
		var vCurrentBackgroundColor = "";
		
		// Setzen des original Hintergrundes für das zuvor gehovert Objekt
		if(FLastHoveredObject != null)
		{
			FLastHoveredObject.style.backgroundColor = "";

			if (FLastHoveredParent != "")
				document.getElementById(FLastHoveredParent).style.backgroundColor = "";
				
			if (FLastHoveredParent2 != "")
				document.getElementById(FLastHoveredParent2).style.backgroundColor = "";
				
			if (FLastHoveredTyp == 2)
				FLastHoveredObject.style.color = "";
		}
		
		// Auswahl der Hintergrundfarbe entsprechend des Types.
		switch (ATyp)
		{
			case 1:
				vCurrentBackgroundColor = FConstHoverBackColorLeft;
				break;
			case 2:
				vCurrentBackgroundColor = FConstHoverBackColorRight;
				break;				
		}
		
		// Setzen der neuen Hintergrundfarben für das aktuelle Objekt		
		AObject.style.backgroundColor = vCurrentBackgroundColor;
		
		// Wurde Typ2 übergeben muß die Schriftfarbe geändert werden
		if (ATyp == 2)
			AObject.style.color = "#FFFFFF";
		
		// .. und die Platzhalter-Spalten
		document.getElementById(AParentID).style.backgroundColor = vCurrentBackgroundColor;		
		if (AParent2ID != "")
			document.getElementById(AParent2ID).style.backgroundColor = vCurrentBackgroundColor;
			
		FLastHoveredObject = AObject;
		FLastHoveredParent = AParentID;
		FLastHoveredParent2 = AParent2ID;
		FLastHoveredTyp = ATyp;
		
		// Zum angegebenen Artikel wechseln
		document.location.href = FConstLinkPrefix + ALinkID;
		
	}	
	
	function ClickAndGo2(ATyp, AObject, AParentID, AParent2ID, ALinkID)
	{
		
		// Realisierung eines Mover-Effektes für Navigation Links (Typ:1)
		// und Spalte Rechts (Typ:2)
		
		var vCurrentBackgroundColor = "";
		
		// Setzen des original Hintergrundes für das zuvor gehovert Objekt
		if(FLastHoveredObject != null)
		{
			FLastHoveredObject.style.backgroundColor = "";

			if (FLastHoveredParent != "")
				document.getElementById(FLastHoveredParent).style.backgroundColor = "";
				
			if (FLastHoveredParent2 != "")
				document.getElementById(FLastHoveredParent2).style.backgroundColor = "";
				
			if (FLastHoveredTyp == 2)
				FLastHoveredObject.style.color = "";
		}
		
		// Auswahl der Hintergrundfarbe entsprechend des Types.
		switch (ATyp)
		{
			case 1:
				vCurrentBackgroundColor = FConstHoverBackColorLeft;
				break;
			case 2:
				vCurrentBackgroundColor = FConstHoverBackColorRight;
				break;				
		}
		
		// Setzen der neuen Hintergrundfarben für das aktuelle Objekt		
		AObject.style.backgroundColor = vCurrentBackgroundColor;
		
		// Wurde Typ2 übergeben muß die Schriftfarbe geändert werden
		if (ATyp == 2)
			AObject.style.color = "#FFFFFF";
		
		// .. und die Platzhalter-Spalten
		document.getElementById(AParentID).style.backgroundColor = vCurrentBackgroundColor;		
		if (AParent2ID != "")
			document.getElementById(AParent2ID).style.backgroundColor = vCurrentBackgroundColor;
			
		FLastHoveredObject = AObject;
		FLastHoveredParent = AParentID;
		FLastHoveredParent2 = AParent2ID;
		FLastHoveredTyp = ATyp;
		
		// Zum angegebenen Artikel wechseln
		parent.location.href = FConstLinkPrefix2 + ALinkID + "/";
		
	}	
	
	function HoverIn(ATyp, AObject, AParentID, AParent2ID)
	{
		var vCurrentBackgroundColor = "";

		// Auswahl der Hintergrundfarbe entsprechend des Types.
		switch (ATyp)
		{
			case 1:
				vCurrentBackgroundColor = FConstHoverBackColorLeft;
				break;
			case 2:
				vCurrentBackgroundColor = FConstHoverBackColorRight;
				break;				
		}
		
		// Setzen der neuen Hintergrundfarben für das aktuelle Objekt		
		AObject.style.backgroundColor = vCurrentBackgroundColor;
		
		// Wurde Typ2 übergeben muß die Schriftfarbe geändert werden
		if (ATyp == 2)
			AObject.style.color = "#FFFFFF";
		
		// .. und die Platzhalter-Spalten
		document.getElementById(AParentID).style.backgroundColor = vCurrentBackgroundColor;		
		if (AParent2ID != "")
			document.getElementById(AParent2ID).style.backgroundColor = vCurrentBackgroundColor;
		
	}
	
	function HoverOut(ATyp, AObject, AParentID, AParent2ID)
	{	

		// Nur ursprünglichen Zustand herstellen, wenn Objekt nicht gerade
		// aktiv durch klicken.
		
		if (FLastHoveredObject != AObject)
		{
		
			// Setzen der neuen Hintergrundfarben für das aktuelle Objekt		
			AObject.style.backgroundColor = "";
			
			// Wurde Typ2 übergeben muß die Schriftfarbe geändert werden
			if (ATyp == 2)
				AObject.style.color = "";
			
			// .. und die Platzhalter-Spalten
			document.getElementById(AParentID).style.backgroundColor = "";		
			if (AParent2ID != "")
				document.getElementById(AParent2ID).style.backgroundColor = "";
			
		}
			
	}