
	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/images/0/2/4320/orig_18x16.gif';
		arImageURL[1]['width'] = '5';
		arImageURL[1]['height'] = '5';
		arImageURL[2] = new Array();
		arImageURL[2]['url'] = '/city_data/images/2/7/17172/orig_12x13.gif';
		arImageURL[2]['width'] = '5';
		arImageURL[2]['height'] = '5';
		arImageURL[3] = new Array();
		arImageURL[3]['url'] = '/city_data/images/2/7/17172/orig_12x13.gif';
		arImageURL[3]['width'] = '5';
		arImageURL[3]['height'] = '5';
		arImageURL[4] = new Array();
		arImageURL[4]['url'] = '/city_data/images/4/2/4324/orig_60x43.gif';
		arImageURL[4]['width'] = '20';
		arImageURL[4]['height'] = '14';
		arImageURL[5] = new Array();
		arImageURL[5]['url'] = '/city_data/images/0/2/4320/orig_18x16.gif';
		arImageURL[5]['width'] = '5';
		arImageURL[5]['height'] = '5';
		arImageURL[6] = new Array();
		arImageURL[6]['url'] = '/city_data/images/3/7/17173/orig_12x14.gif';
		arImageURL[6]['width'] = '12';
		arImageURL[6]['height'] = '14';
		arImageURL[7] = new Array();
		arImageURL[7]['url'] = '/city_data/images/3/7/17173/orig_12x14.gif';
		arImageURL[7]['width'] = '12';
		arImageURL[7]['height'] = '14';
		arImageURL[8] = new Array();
		arImageURL[8]['url'] = '/city_data/images/3/7/17173/orig_12x14.gif';
		arImageURL[8]['width'] = '12';
		arImageURL[8]['height'] = '14';
		arImageURL[9] = new Array();
		arImageURL[9]['url'] = '/city_data/images/3/7/17173/orig_12x14.gif';
		arImageURL[9]['width'] = '12';
		arImageURL[9]['height'] = '14';
		
	var linkTarget = new Array();linkTarget['1'] = '_self';linkTarget['2'] = '_blank';linkTarget['3'] = '_top';linkTarget['488'] = 'frame_1';linkTarget['489'] = 'frame_2';linkTarget['490'] = 'frame_3';linkTarget['491'] = 'frame_4';
	
	/*
		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_992(objSource,iLeft,iRight,iExtra,iRootID) {
		var iExpandStatus;

		var iLevel = GetObject_992('mainspan_' + iRight).iLevel;
		var objTable = GetObject_992('subtag_' + iRight);
		var objIcon1 = GetObject_992('img_' + iRight + '_1');
		var objIcon2 = GetObject_992('img_' + iRight );

			if(objTable.className != 'hidden') {
				// zuklappen
				objTable.className = 'hidden';
			} else {
				// aufklappen
					CloseAllUnder_992(iLeft,iRight);
				
				if(iLeft + 1 != iRight)
					objTable.className = '';
				else
					objTable.className = 'hidden';
				}

				
			if(iLeft + 1 == iRight)
				CloseAllUnder_992(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_992(objSource,iLeft,iRight,iRootID) {
		Icon_ClickAction_992(objSource,iLeft,iRight,0,iRootID);
		return false;
	}
	
	/*
		returns a object by name
	*/
	function GetObject_992(szName) {
		return document.getElementById(szName + '_992');
	}

	/*
		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_992(objSource,iLeft,iRight) {

				if(3 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=11058&modul_id=5','frame_3');
				}
				if(5 == iLeft) {
					clLink('/city_info/display/bs/vorgang/default.cfm?region_id=209&az=all&design_id=3260&EpS=20','frame_3');
				}
				if(7 == iLeft) {
					clLink('/city_info/display/boerse/default.cfm?region_id=209&design_id=4443&keyword=0&az=all&EpS=20','frame_3');
				}
				if(9 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=28217&modul_id=5','frame_3');
				}
				if(11 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10091&modul_id=5','frame_3');
				}
				if(13 == iLeft) {
					clLink('http://www.gemeinde-schlangen.de/kontakt/kontakt.html','frame_3');
				}
				if(15 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=68962&modul_id=5','_self');
				}
				if(2 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10235&modul_id=5','frame_3');
				}
				if(19 == iLeft) {
					clLink('http://kreis-lippe.pendlernetz.de/title.php','_blank');
				}
				if(18 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=19849&modul_id=5','frame_3');
				}
				if(23 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10095&modul_id=5','frame_3');
				}
				if(25 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10136&modul_id=5','frame_3');
				}
				if(27 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10202&modul_id=5','frame_3');
				}
				if(29 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10203&modul_id=5','frame_3');
				}
				if(31 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10206&modul_id=5','frame_3');
				}
				if(33 == iLeft) {
					clLink('http://www.internetstadtplan.com/Schlangen/schlangen.html','_blank');
				}
				if(22 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10182&modul_id=5','frame_3');
				}
				if(38 == iLeft) {
					clLink('/city_info/display/bs/amt/tree.cfm?region_id=209&design_id=3254&EpS=20','frame_3');
				}
				if(40 == iLeft) {
					clLink('/city_info/display/bs/vorgang/default.cfm?region_id=209&az=all&design_id=3260&EpS=20','frame_3');
				}
				if(42 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10091&modul_id=5','frame_3');
				}
				if(44 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10527&modul_id=5','frame_3');
				}
				if(46 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10467&modul_id=5','frame_3');
				}
				if(50 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10108&modul_id=5','frame_3');
				}
				if(52 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10028&modul_id=5','frame_3');
				}
				if(54 == iLeft) {
					clLink('/city_info/display/v_kalender/default.cfm?region_id=209&design_id=3277&keyword=1042&EpS=20','frame_3');
				}
				if(56 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10271&modul_id=5','frame_3');
				}
				if(58 == iLeft) {
					clLink("","frame_3");
				}
				if(49 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=7130&modul_id=5','frame_3');
				}
				if(64 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=30143&modul_id=5','frame_3');
				}
				if(66 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=30142&modul_id=5','frame_3');
				}
				if(68 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=30155&modul_id=5','frame_3');
				}
				if(70 == iLeft) {
					clLink('/city_info/display/show.cfm?region_id=209&gallery=101&modul_id=103&design_id=6677','frame_3');
				}
				if(72 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=30461&modul_id=5','frame_3');
				}
				if(74 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=30468&modul_id=5','frame_3');
				}
				if(77 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=16176&modul_id=5','frame_3');
				}
				if(82 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=19885&modul_id=5','frame_3');
				}
				if(84 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=21824&modul_id=5','frame_3');
				}
				if(86 == iLeft) {
					clLink('/city_info/display/dokument/show.cfm?region_id=209&id=334809&design_id=4474&type_id=0','frame_4');
				}
				if(89 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=16326&modul_id=5','frame_3');
				}
				if(62 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=28746&modul_id=5','frame_3');
				}
				if(93 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=19185&modul_id=5','frame_3');
				}
				if(95 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10495&modul_id=5','frame_3');
				}
				if(97 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10547&modul_id=5','frame_3');
				}
				if(99 == iLeft) {
					clLink('http://www.vhs-detmold.de/pages/contentdelivery;jsessionid=28484F1D241351BACEB9DD91AA8822E3?CID=16775&JOB_NAME=DisplayPage&&sText=&sKategorie=&sTitel=&sDozent=&sDozentId=&sVerOrt=&sBeginn=&s=&r=&page=','_blank');
				}
				if(101 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=19210&modul_id=5','frame_3');
				}
				if(103 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=19211&modul_id=5','frame_3');
				}
				if(107 == iLeft) {
					clLink('http://www.feuerwehr-schlangen.de','_blank');
				}
				if(109 == iLeft) {
					clLink('http://www.jugendarbeitschlangen.de','_blank');
				}
				if(111 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=60441&modul_id=5','frame_3');
				}
				if(113 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=20516&modul_id=5','frame_3');
				}
				if(115 == iLeft) {
					clLink('/city_info/anzeige/news/aktuelles/show.cfm?region_id=209&id=36129&modul_id=33','frame_3');
				}
				if(117 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10232&modul_id=5','frame_3');
				}
				if(119 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=60457&modul_id=5','frame_3');
				}
				if(106 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10230&modul_id=5','frame_3');
				}
				if(123 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=11479&modul_id=5','frame_3');
				}
				if(125 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=11480&modul_id=5','frame_3');
				}
				if(129 == iLeft) {
					clLink('/city_info/display/bb/rubrik/baum.cfm?region_id=209&design_id=3266&EpS=20','frame_3');
				}
				if(122 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=10385&modul_id=5','frame_3');
				}
				if(135 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=61632&modul_id=5','frame_3');
				}
				if(132 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=61630&modul_id=5','frame_3');
				}
				if(142 == iLeft) {
					clLink('http://www.gemeindewerke-schlangen.de','_blank');
				}
				if(145 == iLeft) {
					clLink('http://schlangen.active-city.net/wahlen/EUWahl2009/index.html','_blank');
				}
				if(147 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=51853&modul_id=5','frame_3');
				}
				if(149 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=51860&modul_id=5','frame_3');
				}
				if(151 == iLeft) {
					clLink('/city_info/anzeige/redaktionssystem/main/show.cfm?region_id=209&lang_id=1&id=51870&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_992(objSource,iLeft,iRight) {

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


