	var maploading = 0;
	function AZHeight(t) {
		$('a-z-container').style.height=$('text'+t).getHeight()+60+'px';
		Effect.BlindDown($('a-z-container'), { duration: 1.0, from: 60 });
	}

	function Produkte(t) {
		var azlink = $$('.azlink');
		
		for(p=0;p < azlink.length ;p++)
		{
			var pid = azlink[p].id;
			
			if($('text'+pid)) {
				
				if(t != pid || !t) Effect.BlindUp($('text'+pid), { duration: 1.0 });
				$('text'+pid).style.position='absolute';
				$('text'+pid).style.backgroundColor='#efefef';
				$('text'+pid).className='azlink oc50';
				$('text'+pid).style.paddingBottom='20px';
				$('text'+pid).style.paddingTop='20px';
				$('text'+pid).style.zIndex='0';
				
			}
			if($(pid)) $(pid).className='azlink';
		}
		if(t) {
			
			if($('text'+t) && $('text'+t).style.display == 'none') Effect.BlindDown($('text'+t), { duration: 1.0 });
			$(t).className='azlink akt';
			$('text'+t).style.marginBottom='20px';
			$('text'+t).className='azlink';
			$('text'+t).style.backgroundColor='#ffffff';
			$('text'+t).style.paddingBottom='20px';
			$('text'+t).style.paddingTop='20px';
			$('text'+t).style.borderBottom='1px solid #ccc';
			$('text'+t).style.borderTop='1px solid #ccc';
			$('text'+t).style.zIndex='1';
			
			AZHeight(t);
			
		}
	}

	function StartProdukte(t) {
		var azlink = $$('.azlink');
		
		for(p=0;p < azlink.length ;p++)
		{
			var pid = azlink[p].id;
			
			if($('text'+pid)) {
				if(t != pid || !t) $('text'+pid).style.display='none';
				$('text'+pid).style.position='absolute';
				$('text'+pid).style.marginBottom='20px';
				$('text'+pid).style.zIndex='0';
			}
			if($(pid)) $(pid).className='azlink';
		}
		if(t) {
			if($('text'+t)) $('text'+t).style.display='block';
			$(t).className='azlink akt';
			$('text'+t).className='azlink';
			$('text'+t).style.backgroundColor='#ffffff';
			$('text'+t).style.paddingBottom='20px';
			$('text'+t).style.paddingTop='20px';
			$('text'+t).style.borderBottom='1px solid #ccc';
			$('text'+t).style.borderTop='1px solid #ccc';
			$('text'+t).style.marginBottom='20px';
			$('text'+t).style.zIndex='1';
			AZHeight(t);
		}
	}

	function MainNav(ele) {
		var eles = $$('.mainsubnav');
		for (i=0;i<eles.length; i++) {
			if(ele) {
				if(eles[i] != ele) eles[i].hide();
			}
			else {
				eles[i].hide();
			}
		}
		if(ele) {
			$(ele).show();
		}
	}

	function SubMenuPos(ele) {
		var naviele=ele+'-li';
		var subnaviele=ele+'-first';
		if($(naviele)) {
			
			var navi_arr = $(naviele).positionedOffset();
			var subnavileft = navi_arr[0];
			var naviele_w = $(naviele).getWidth();
			var subnaviele_w = $(subnaviele).getWidth();
			// alert(subnaviele_w);
			var adder=0;
			if(ele== 'ueberuns') adder=6;
			if($(ele)) $(ele).style.left=(subnavileft+naviele_w-subnaviele_w+adder)+'px';
		}
	}

	function Menu(t, intro) {
		var kategorien = $$('.kat');
		
		for(m=0;m < kategorien.length;m++) {
			var mid = kategorien[m].id;
			
			$('bg'+mid).hide();
			$(mid).className='kat';
		}
		
		var kategorienakt = $$('.katakt');
	
		for(m=0;m < kategorienakt.length;m++) {
			var mid = kategorienakt[m].id;
			$('bg'+mid).hide();
			$(mid).className='kat';
		}
		
		$('bg'+t).show();
		$(t).className='katakt';
		if($('keywords_msg') && $(t+'_msg') && !intro) $('keywords_msg').innerHTML=$(t+'_msg').innerHTML;
		
		if($('mehrhws')) {
			if(t && t == 'werkzeug') {
				$('mehrhws').style.display='';
			}
			else {
				$('mehrhws').style.display='none';
			}
		}
	}

	function SetMenu() {
		var kategorieninhaltlinksfirst = $$('.kat')[0];
		Menu(kategorieninhaltlinksfirst.id,1);
	}

	function MapLoad(ele,cord1, cord2, zoomfactor, sat) {
		
		var maptype=G_NORMAL_MAP;
		if(sat) maptype=G_SATELLITE_MAP;
		if(!zoomfactor) var zoomfactor=14;
		if (GBrowserIsCompatible()) {
			var map = new GMap2($(ele),{mapTypes:[G_HYBRID_MAP,G_SATELLITE_MAP,G_NORMAL_MAP]});
			map.addControl(new GSmallMapControl());
			map.addControl(new GMapTypeControl());
			map.setCenter(new GLatLng(cord1,cord2), zoomfactor);
			map.setMapType(maptype);
	
			var marker = new GMarker(map.getCenter());
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowTabsHtml(infoTabs);
			});

			map.addOverlay(marker);
		}
		/**/
		
	}
	
	
