var richtung=1;
var scroll_step=10;
//var scroll_max=1300-600;
var scroll_timeout=30;
//var scroll_max=0;


function dummy() {}

function scrollen(trichtung,tscroll_max){
	richtung=trichtung;
	scroll_max=tscroll_max;

	scrolllauf(richtung,scroll_max);
	if (richtung != 3) {
		setTimeout('scrollen(richtung,scroll_max);',scroll_timeout)
	}
}

function scrolllauf(trichtung,tscroll_max){


	if (document.layers){
		inhaltObj=document.layers["l_fenster"].layers["l_gallerie"];
	}
	else{
		inhaltObj=document.getElementById("gallerie").style;
	}

	position = parseInt(inhaltObj.left);

	if (richtung==0){
	        if (position<0){
			inhaltObj.left=Math.min(position+scroll_step,0);
	        }
	}

	if (richtung==1){
	        if (position>-scroll_max){
			inhaltObj.left=Math.max(position-scroll_step,-scroll_max);
        	}
	}
}

function stop() {
	richtung=3;
}


