var ns = (document.layers);
    var ie = (document.all);
    var mac= (navigator.appVersion.indexOf("Mac") != -1);
	var n6 =( (navigator.appName == "Netscape") && (navigator.appVersion.indexOf("5.") != -1) );
	if (n6) { if (document.getElementsByTagName("*")) { document.all = document.getElementsByTagName("*"); } }
	var minisize=0;
	var moving = false;
	var stopmoving = false;
	var win= null;
	
if(document.layers){
 	window.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
 	window.onmousedown=mausNS;
 	window.onmouseup=mausNS;
	
	function mausNS(e){
 	if(e.which==2|e.which==3){alert("Copyright GAG-Güther");return false;}
 	else{return true;}}}
 
	if(document.all){
 	document.onmousedown=mausie;
	function mausie(){
 	if(event.button==2|event.button==3){alert("Copyright GAG-Güther");}}}

function centerWin(mypage,myname,w,h,scroll)
{
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no'
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}	

function smove(direction) {
if (direction=="left") { scleft(); }
if (direction=="right") { sright(); }
if (direction=="null") { scrollstop(); }
}


function scleft() {
if (ie) { 
			if (document.all['pictures'].style.pixelLeft >= -4700) {
			document.all['pictures'].style.pixelLeft = (document.all['pictures'].style.pixelLeft - 10); }
		}
if (ns) { 
			if (document.layers['pictures'].left >= -1500) {
		    document.layers['pictures'].left = (document.layers['pictures'].left - 10); }
		}
if (n6) {
			if (parseInt(document.all['pictures'].style.left) >= -1500) {
			document.all['pictures'].style.left = parseInt(document.all['pictures'].style.left) - 10; }
		}

			if (stopmoving==false) { setTimeout("scleft()",100); }
			if (stopmoving==true) { stopmoving = false; }
}

function sright() {
if(ie) { 
			if (document.all['pictures'].style.pixelLeft <= -2) {
			document.all['pictures'].style.pixelLeft = (document.all['pictures'].style.pixelLeft + 10); }
		}
if(ns) { 
			if (document.layers['pictures'].left <= -2) {
			document.layers['pictures'].left = (document.layers['pictures'].left + 10);  }
		}
if (n6) {
			if (parseInt(document.all['pictures'].style.left) <= -2) {
			document.all['pictures'].style.left = parseInt(document.all['pictures'].style.left) +10; }
		}
			if (stopmoving==false) { setTimeout("sright()",100); }
			if (stopmoving==true) { stopmoving = false; }
}

function scrollstop() {
 stopmoving=true;
}
