	// <![CDATA[


	if(-1 != navigator.userAgent.indexOf("MSIE")) {
		var speed = 20;
	    var timeout = 2;
    }
    else {
		var speed = 20;
	    var timeout = 10;
    }
	
	var movid;
	
	function move_pos(nr){
		container = MM_findObj("divContainer");
		ebene = MM_findObj("divContent");
		conthohe = (parseInt(container.offsetWidth));
		maxhohe = ((parseInt(ebene.offsetWidth)-conthohe))*(-1);
		
		aktpos = maxhohe/100*(nr*5);
		npos = aktpos.toString()+"px";
		ebene.style.left = npos;
		
		for(i=1;i<=20;i++){
			img ="sld_"+i;
			var bild = MM_findObj(img);
			if(i<=nr){
				MM_swapImage(img,1,"./images/slide_aktiv.gif");
			}
			else{
				MM_swapImage(img,1,"./images/slide_blank.gif");
			}
		}
		
	}
	
	function move_to(richtung){
		container = MM_findObj("divContainer");
		ebene = MM_findObj("divContent");
		aktpos = parseInt(ebene.offsetLeft);
		aktpos = aktpos - (speed*richtung);
		
		conthohe = (parseInt(container.offsetWidth));
		maxhohe = ((parseInt(ebene.offsetWidth)-conthohe))*(-1);
		
		if(aktpos < maxhohe && richtung==1)aktpos = maxhohe;
		if(aktpos>0 && richtung==-1) aktpos = 0;
		
		npos = aktpos.toString()+"px";
		ebene.style.left = npos;
		
		var prozent = Math.round(100/maxhohe*aktpos);
		var imgnr = Math.round(prozent/5)
		
		if(imgnr>0){
			img ="sld_"+imgnr;
			var bild = MM_findObj(img);
			MM_swapImage(img,1,"./images/slide_aktiv.gif");
		}
		
		if(imgnr<20){
			img ="sld_"+(imgnr+1);
			MM_swapImage(img,1,"./images/slide_blank.gif");
		}
	}
	
	function stopmov(){
		window.clearInterval(movid);
		movid=false;
		window.setTimeout("move_to(0)",100);
	}
	
	
	function sc_nachlinks(){
		if(!movid) movid=window.setInterval("move_to(-1)", timeout);
	}
	
	function sc_nachrechts(){
		if(!movid) movid=window.setInterval("move_to(1)", timeout);
	}
	
	function select_image(image){
		var zoomimg = window.open("img_vorschau.php?"+image,"zoomimg","width=100,height=100,resizable=no,status=yes,dependent=yes");		
		zoomimg.focus();
	}
	//]]>

