
	var arImageURL = new Array();
	var arImageOBJ = new Array();
	var arAllNodes = new Array();
	
	/*
		checks if the given property exists
	*/
	function IsDefined(pProperty)
	{
		if(pProperty + '' == 'undefined')
			return false;
		if(pProperty == null)
			return false;
		return true;
	}
arImageURL[1] = new Array();
		arImageURL[1]['url'] = '/city_data/image/4320/orig_18x16.gif';
		arImageURL[1]['width'] = '0';
		arImageURL[1]['height'] = '0';
		arImageURL[2] = new Array();
		arImageURL[2]['url'] = '/city_data/image/4322/orig_18x16.gif';
		arImageURL[2]['width'] = '0';
		arImageURL[2]['height'] = '0';
		arImageURL[3] = new Array();
		arImageURL[3]['url'] = '/city_data/image/4323/orig_18x16.gif';
		arImageURL[3]['width'] = '0';
		arImageURL[3]['height'] = '0';
		arImageURL[4] = new Array();
		arImageURL[4]['url'] = '/city_info/images/blank.gif';
		arImageURL[4]['width'] = '0';
		arImageURL[4]['height'] = '0';
		arImageURL[5] = new Array();
		arImageURL[5]['url'] = '/city_data/image/4326/orig_18x16.gif';
		arImageURL[5]['width'] = '0';
		arImageURL[5]['height'] = '0';
		arImageURL[6] = new Array();
		arImageURL[6]['url'] = '/city_data/image/4327/orig_18x16.gif';
		arImageURL[6]['width'] = '0';
		arImageURL[6]['height'] = '0';
		arImageURL[7] = new Array();
		arImageURL[7]['url'] = '/city_data/image/4328/orig_18x16.gif';
		arImageURL[7]['width'] = '0';
		arImageURL[7]['height'] = '0';
		arImageURL[8] = new Array();
		arImageURL[8]['url'] = '/city_data/image/4329/orig_18x16.gif';
		arImageURL[8]['width'] = '0';
		arImageURL[8]['height'] = '0';
		arImageURL[9] = new Array();
		arImageURL[9]['url'] = '/city_data/image/4330/orig_18x16.gif';
		arImageURL[9]['width'] = '0';
		arImageURL[9]['height'] = '0';
		
	var linkTarget = new Array();linkTarget['1'] = '_self';linkTarget['2'] = '_blank';linkTarget['3'] = '_top';linkTarget['726'] = 'frame_3';
	
	/*
		executes the given link id with the given target
		
		parameter:
			iLinkID - the link id
			szTarget - the target name
	*/
	function clLink(szLink,szTarget) {
		window.open(szLink,szTarget);
	}
	
	/*
		called if a user clicks on the prefix image
		
		parameter:
			objSource - the source from where the event is emitted
			iLeft - the left value
			iRight - the right value
			iExtra - the extra value
	*/
	function Icon_ClickAction_153(objSource,iLeft,iRight,iExtra,iRootID) {
		var iExpandStatus;

		var iLevel = GetObject_153('mainspan_' + iRight).iLevel;
		var objTable = GetObject_153('subtag_' + iRight);
		var objIcon1 = GetObject_153('img_' + iRight + '_1');
		var objIcon2 = GetObject_153('img_' + iRight );
	
			if(objTable.className != 'hidden') {
				// zuklappen
				objTable.className = 'hidden';
			} else {
				// aufklappen
				
				
				if(iLeft + 1 != iRight)
					objTable.className = '';
				else
					objTable.className = 'hidden';
				}

				
			if(iLeft + 1 == iRight)
				CloseAllUnder_153(iLeft,iRight);
	

			if(objIcon1 != null && objIcon2 != null)
			{
				if(objIcon1.className == 'hidden') {
					objIcon2.className = 'hidden';
					objIcon1.className = '';
				} else {	
					objIcon1.className = 'hidden';	
					objIcon2.className = '';
				}
			}
			
		return false;	
	}
	
	/*
		shows the given submenu always
	*/
	function Icon_ClickAction_Show_153(objSource,iLeft,iRight,iRootID) {
		Icon_ClickAction_153(objSource,iLeft,iRight,0,iRootID);
		return false;	
	}
	
	/*
		returns a object by name
	*/	
	function GetObject_153(szName) {
		return document.getElementById(szName + '_153');
	}

	/*
		called if a user click on text or the normal image
		
		parameter:
			objSource - the source from where the event is emitted
			iLeft - the left value
			iRight - the right value
	*/	
	function Menu_ClickAction_153(objSource,iLeft,iRight) {

				if(3 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3515&modul_id=5','frame_3');
				}
				if(5 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3516&modul_id=5','frame_3');
				}
				if(27 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3522&modul_id=5','frame_3');
				}
				if(25 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3521&modul_id=5','frame_3');
				}
				if(23 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3531&modul_id=5','frame_3');
				}
				if(11 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=5374&modul_id=5','frame_3');
				}
				if(13 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=5375&modul_id=5','frame_3');
				}
				if(19 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3520&modul_id=5','frame_3');
				}
				if(31 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3646&modul_id=5','frame_3');
				}
				if(33 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=3647&modul_id=5','frame_3');
				}
				if(9 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4325&modul_id=5','frame_3');
				}
				if(36 == iLeft) {	
					clLink('/city_info/display/tp/unterkunft/default.cfm?region_id=99&design_id=3377&keyword=0&az=all&EpS=20','frame_3');
				}
				if(37 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4556&modul_id=5','frame_3');
				}
				if(39 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4559&modul_id=5','frame_3');
				}
				if(41 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4560&modul_id=5','frame_3');
				}
				if(43 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4561&modul_id=5','frame_3');
				}
				if(45 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4562&modul_id=5','frame_3');
				}
				if(49 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4557&modul_id=5','frame_3');
				}
				if(51 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4563&modul_id=5','frame_3');
				}
				if(15 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=4923&modul_id=5','frame_3');
				}
				if(17 == iLeft) {	
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=99&lang_id=2&id=5496&modul_id=5','frame_3');
				}

	}
	
	/*
		called if a user moves text or the normal image
		
		parameter:
			objSource - the source from where the event is emitted
			iLeft - the left value
			iRight - the right value
	*/	
	function Menu_OverAction_153(objSource,iLeft,iRight) {

	}
	
	function Menu_OutAction_153(objSource,iLeft,iRight) {
		window.status = '';
	}
	
	/*
		creates a list of all men root nodes
	*/
	function Init_153(iMaxRight) {
		for(var iIndex = 0; iIndex < iMaxRight; iIndex++)
		{
			if(GetObject_153('mainspan_' + iIndex) != null) 
			{
				arAllNodes[arAllNodes.length] = new Array();
				arAllNodes[arAllNodes.length - 1]['objTable'] = GetObject_153('subtag_' + iIndex);
				arAllNodes[arAllNodes.length - 1]['objIcon'] = GetObject_153('img_' + iIndex);
				arAllNodes[arAllNodes.length - 1]['objIcon_1'] = GetObject_153('img_' + iIndex + '_1');
				arAllNodes[arAllNodes.length - 1]['iRightID'] = iIndex;
				arAllNodes[arAllNodes.length - 1]['iLeftID'] = GetObject_153('mainspan_' + iIndex).getAttribute('iLeft');
				arAllNodes[arAllNodes.length - 1]['iLevel'] = GetObject_153('mainspan_' + iIndex).getAttribute('iLevel');
			}		
		}
	}
	
	/**
	 * closes all items between the given iLeftID and iRightID expect the item with the right id iRightNotToClose
	 */
	function CloseAllUnder_153(iRightNotToClose,iLeftNotToClose) 
	{
		for(var iIndex = 0; iIndex < arAllNodes.length; iIndex++)
		{

			// fehler dektion
			
			if(isNaN(arAllNodes[iIndex]['iRightID']))
				alert('Fehler in Node ' + iIndex + ':' + arAllNodes[iIndex]['iRightID']);
			if(isNaN(arAllNodes[iIndex]['iLeftID']))
				alert('Fehler in Node ' + iIndex + ':' + arAllNodes[iIndex]['iLeftID']);
		
			// richtige abfragen
	
			if(((iRightNotToClose < arAllNodes[iIndex]['iRightID']) && 
			    (iRightNotToClose < arAllNodes[iIndex]['iLeftID'])) ||
			   ((iLeftNotToClose > arAllNodes[iIndex]['iRightID']) && 
			    (iLeftNotToClose > arAllNodes[iIndex]['iLeftID'])))
			{
				// zuklappen
				arAllNodes[iIndex]['objTable'].className = 'hidden';
				if(IsDefined(arAllNodes[iIndex]['objIcon']) && 
				   IsDefined(arAllNodes[iIndex]['objIcon_1']))
				{
					arAllNodes[iIndex]['objIcon'].className = 'hidden';
					arAllNodes[iIndex]['objIcon_1'].className = '';			
				}
			}
		}
	}
	
	//-->

