	var timer = new Array("","","","","","");
	var activeDiv;
	var gid;
	
	var browser;
	
	var height;
	var width;
	var maxheight;
	
	var spacer = new Image();
	spacer.src = 'images/spacer.gif';
	
	
	//BROWSERWEICHE
	if (navigator.appName.indexOf("Netscape") != -1){
			browser = "ff";
	}
	if (navigator.appName.indexOf("Explorer") != -1){
			browser = "ie";	
	}
	
	function begin()
	{
		//Navigationb platzieren

		if(browser=="ie")
		{
			div1.style.top="101px";
			div2.style.top="152px";
			div3.style.top="203px";
			div4.style.top="254px";
			div5.style.top="305px";	
			
			div1.style.overflow="hidden";		
			div2.style.overflow="hidden";
			div3.style.overflow="hidden";
			div4.style.overflow="hidden";
			div5.style.overflow="hidden";
		}
		else
		{
			div1.style.top="101px";
			div2.style.top="154px";
			div3.style.top="207px";
			div4.style.top="260px";
			div5.style.top="313px";		
		}

	}
	
	function stop()
	{
		//clearInterval(timer[id]);
		if(document.getElementById('div'+gid))
	 	{
			document.getElementById(activeDiv).style.height = "50";
			document.getElementById(activeDiv).style.width = "20";
			document.getElementById('nav'+gid).src = spacer.src;
			width=20;
			gid=0;
		}
	}

	function start(id)
	{	 
	 	if(gid==id) 
		{
			stop();	
			return;
		}
		if(gid!=id) stop();
	 	 	
		gid=id;
		activeDiv = "div"+id;
		 	
		//maximale Höhe festlegen
		switch (id)
		{
			case "1":
				maxheight = 118;
			break;
			case "2":
				maxheight = 133;
			break;
			case "3":
				maxheight = 78;
			break;
			case "4":
				maxheight = 78;
			break;
			case "5":
				maxheight = 63;
			break;
		}
		 	
		 	//Pfeil durch den Spacer ersetzten
		document.getElementById('nav'+id).src = spacer.src;
		
		height = parseInt(document.getElementById(activeDiv).offsetHeight);
		width = parseInt(document.getElementById(activeDiv).offsetWidth);
			
		timer[id] = setInterval(mousein,1);	
	}
	
	function mousein()
	{
		if(width < 400)
		{
			width = width + 40;
			document.getElementById(activeDiv).style.width = width;		
		}	
		else
		{
			if(height < maxheight)
			{
				height = height + 10;
				if(height > maxheight) height=maxheight;
				document.getElementById(activeDiv).style.height = height;						
			}
						
			if(width > 399 && height > maxheight-1) 
			{
				clearInterval(timer[gid]);
				var img = new Image();
				img.src = 'images/nav_'+gid+'.gif';
				document.getElementById('nav'+gid).src = img.src;
			}
		}
	}
