	  var position=-350;
	  function busmove(){
         document.getElementById("bus1").style.left = position+"px";
         if (position>(screen.width+25))
            {position=-250;}
         else
            {position=position+1;}
         setTimeout("busmove()", "20");
      }
	  function linkon(picid,linkid,pos,col) {
	     if (col==0) {document.getElementById(linkid).style.color="#0000FF";} else {document.getElementById(linkid).style.color="#331100";}
	     document.getElementById(picid).style.background="url('<?echo($folder)?>" + pos + "2.gif')";

	  }
	  function linkoff(picid,linkid,pos,col) {
	     if (col==0) {document.getElementById(linkid).style.color="#FFFFFF";} else {document.getElementById(linkid).style.color="#B69A5F";}
	     document.getElementById(picid).style.background="url('<?echo($folder)?>" + pos + ".gif')";
	  }
	  function taximove(){
         document.getElementById("taxi1").style.left = position+"px";
         if (position>(screen.width+25))
            {position=-200;}
         else
            {position=position+1;}
         setTimeout("taximove()", "25");
      }
	  colors=new Array('#BD7300', '#995500', '#773300', '#551100', '#330000', '#551100', '#773300', '#995500', '#BD7300', '#BD7300', '#BD7300', '#BD7300', '#BD7300', '#BD7300', '#BD7300', '#BD7300', '#BD7300', '#BD7300');
	  right=new Array('3px', '6px', '9px', '12px', '15px', '18px', '21px', '24px', '27px', '30px', '33px', '36px', '39px', '42px', '45px', '48px', '51px', '54px', '57px', '60px', '63px', '66px', '69px', '72px', '75px', '78px', '75px', '72px', '69px', '66px', '63px', '60px', '57px', '54px', '51px', '48px', '45px', '42px', '39px', '36px', '33px', '30px', '27px', '24px', '21px', '18px', '15px', '12px', '9px', '6px');
	  var i = 0;
	  var j = 0;
	  function blink(){
		  document.getElementById('GS4').style.color=colors[i % 18];
		  //document.getElementById('GS4').style.padding='3px ' + right[j % 50] + ' 3px 3px';
		  document.getElementById('GS3').style.color=colors[(i+1) % 18];
		  //document.getElementById('GS3').style.padding='3px ' + right[(j+15) % 50] + ' 3px 3px';
		  document.getElementById('GS2').style.color=colors[(i+2) % 18];
		  //document.getElementById('GS2').style.padding='3px ' + right[(j+30) % 50] + ' 3px 3px';
		  document.getElementById('GS1').style.color=colors[(i+3) % 18];
		  //document.getElementById('GS1').style.padding='3px ' + right[(j+45) % 50] + ' 3px 3px';
		  i++;
		  j++;
		  if (i>17) {i=i-18;}
		  if (j>49) {j=j-50;}
		  setTimeout("blink()", "100");
	  }

	  //Bilder
		var bgAlpha=0;
		var picStatus='null';
		var pic;
		var picWidth;
		var picHeight;
		var divWidth;
		var divHeight;
		function showImg(url){
			divWidth=0;
			divHeight=0;
			picWidth=100;
			picHeight=50;
			pic=new Image();
			bgDiv=document.createElement("div");
			bgDiv.id='_picViewBG';
			bgDiv.name='_picViewBG';
			bgDiv.style.zIndex='104';
			bgDiv.style.position='absolute';
			bgDiv.style.background='#000000';
			bgDiv.style.display='block';
			bgDiv.style.filter = "alpha(opacity:"+bgAlpha+")";
			bgDiv.style.KHTMLOpacity = bgAlpha/100;
			bgDiv.style.MozOpacity = bgAlpha/100;
			bgDiv.style.opacity = bgAlpha/100;
			bgDiv.style.width=document.documentElement.clientWidth+'px';
			bgDiv.style.height=document.documentElement.clientHeight+'px';
			bgDiv.style.top=document.documentElement.scrollTop+'px';
			bgDiv.style.left='0px';
			document.getElementsByTagName('body')[0].appendChild(bgDiv);
			if (document.addEventListener) { document.getElementById('_picViewBG').addEventListener("click", function(e) { picStatus='fadeOut'; fadeOutPic(); }, true); }
			else { document.getElementById('_picViewBG').onclick = function(e) { picStatus='fadeOut'; fadeOutPic(); }; }
			newDiv=document.createElement("div");
			newDiv.id='_picView';
			newDiv.name='_picView';
			newDiv.style.zIndex='105';
			newDiv.style.position='absolute';
			newDiv.style.background='#ffffff';
			newDiv.style.border='1px solid #000000';
			newDiv.style.display='none';
			newDiv.style.textAlign='center';
			document.getElementsByTagName('body')[0].appendChild(newDiv);
			pic.src=url;
			picStatus='fadeIn';
			fadeInPic();
		}
		function fadeInPic(){
			bgAlpha=bgAlpha+5;
			bgDiv=document.getElementById('_picViewBG');
			bgDiv.style.filter = "alpha(opacity:"+bgAlpha+")";
			bgDiv.style.KHTMLOpacity = bgAlpha/100;
			bgDiv.style.MozOpacity = bgAlpha/100;
			bgDiv.style.opacity = bgAlpha/100;
			if(picStatus=='fadeIn' && bgAlpha<80) {
				setTimeout("fadeInPic();",40);
			}
			else if(picStatus=='fadeIn') {
				picStatus='resizePic';
				resizePic();
			}
		}
		function fadeOutPic(){
			bgAlpha=bgAlpha-10;
			bgDiv=document.getElementById('_picViewBG');
			bgDiv.style.filter = "alpha(opacity:"+bgAlpha+")";
			bgDiv.style.KHTMLOpacity = bgAlpha/100;
			bgDiv.style.MozOpacity = bgAlpha/100;
			bgDiv.style.opacity = bgAlpha/100;
			if(picStatus=='fadeOut' && bgAlpha>0) {
				div=document.getElementById('_picView');
				div.style.display='none';
				setTimeout("fadeOutPic();",30);
			}
			else if(picStatus=='fadeOut') {
				document.getElementsByTagName('body')[0].removeChild( document.getElementById('_picViewBG') );
				document.getElementsByTagName('body')[0].removeChild( document.getElementById('_picView') );
			}
		}
		function resizePic(){
			if(pic.width<1 && picStatus=='resizePic') {
				setTimeout("fadeOutPic();",30);
			}
			else if( picStatus=='resizePic' ){
				if(divWidth==0){
					divWidth=Math.min(pic.width,document.documentElement.clientWidth-50);
					divHeight=Math.min(divWidth/pic.width*pic.height,document.documentElement.clientHeight-50);
					divWidth=divHeight/pic.height*pic.width;
				}
				if(picWidth<divWidth) picWidth=Math.min(picWidth+10,divWidth);
				if(picHeight<divHeight) picHeight=Math.min(picHeight+10,divHeight);
				if(picWidth>divWidth) picWidth=Math.max(picWidth-10,divWidth);
				if(picHeight>divHeight) picHeight=Math.max(picHeight-10,divHeight);
				document.getElementById('_picView').style.top=(document.documentElement.clientHeight-picHeight)/2+document.documentElement.scrollTop+'px';
				document.getElementById('_picView').style.left=( (document.documentElement.clientWidth-picWidth)/2 )+'px';
				document.getElementById('_picView').style.height=picHeight+'px';
				document.getElementById('_picView').style.width=picWidth+'px';
				div=document.getElementById('_picView');
				div.style.display='block';
				if( (picWidth!=divWidth) || (picHeight!=divHeight) )
					setTimeout("resizePic();",30);
				else 
					div.innerHTML='<img style="margin:10px;width:'+(divWidth-20)+'px" src="'+pic.src+'" />';
			}
		}
