
var stepSize=3; // Verschieben um 3 Px je Schritt
platformDetect();

	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
	}
	MM_reloadPage(true);



	function newWindow(url)
	{
		Anzeigefenster = open(url,"Detail","width=450,height=400,screenX=0,screenY=0,resizable=yes,scrollbars=no");
		Anzeigefenster.focus();
	}
	
	
		function newWindow_galeria(url)
	{
		Anzeigefenster = open(url,"Detail","width=500,height=400,screenX=0,screenY=0,resizable=yes,scrollbars=no");
		Anzeigefenster.focus();
	}
	
	
	function MachAuf(theURL,winName,features) { //v2.0
		//alert("MachAuf: Parameter: url: "+theURL+", winName: "+winName);
		window.open(theURL,winName,features).focus();
	}
	
	
	
	function windowStatus()
	{
		window.defaultStatus="art supplies - the art of internet";
	}
	
	

	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	

	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}



	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}


	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	
	
	function YY_StopLayerfx(){ //v3.09
	//copyright (c)1998-2000 Yaromat.com
	  var args = YY_StopLayerfx.arguments;var yydiv;
	  for (var i=0; i<args.length; i++){
		yydiv=MM_findObj(args[i]);
		if (yydiv&&(document.layers||document.all||document.getElementById)){
		  if(yydiv.yyto!=null)clearTimeout(yydiv.yyto);
		  if(yydiv.tmtScrollo!=null)clearTimeout(yydiv.tmtScrollo);
		}
	  }
	}
	
	function YY_LS(das, ex, ey, dly, sx, loop, dx, dy){//v4.08
	//copyright (c)2000,2001 Yaromat.com
		var s=MM_findObj(das),d=document,c,t,l,ct,cb,cl,cr,ncl,nct,ncr,ncb,doto,sy=sx,yx,yy,st;
		if(!s.ot){s.ot=(d.layers)?s.top:s.style.top;s.ol=(d.layers)?s.left:s.style.left;}
		with(Math)if(d.layers){
			ct=s.clip.top;cb=s.clip.bottom;cl=s.clip.left;cr=s.clip.right;t=s.top;l=s.left;
			yy=abs(round((ct-ey)/sy));dy=round((ey-ct)/yy);
			yx=abs(round((cl-ex)/sx));dx=round((ex-cl)/yx);
			if(yx<1){dx=0}else{yx--};if(yy<1){dy=0}else{yy--};
			s.clip.top=ct+dy; s.clip.bottom=cb+dy;s.top=t-dy;s.clip.left=cl+dx;s.clip.right=cr+dx;s.left=l-dx;
		}else if ((d.all||d.getElementById)&&s.style.clip){
		  st=s.style;
			l=parseInt((d.getElementById)?st.left:st.pixelLeft);t=parseInt((d.getElementById)?st.top:st.pixelTop);
			c=st.clip.match(/rect.(\d+)[a-z,A-Z,\s]+(\d+)[a-z,A-Z,\s]+(\d+)[a-z,A-Z,\s]+(\d+).*/);
			ct=c[1]/1;cr=c[2]/1;cb=c[3]/1;cl=c[4]/1;
			yy=abs(round((ct-ey)/sy));yx=abs(round((cl-ex)/sx));
			dx=(yx<1)?0:round(-(cl-ex)/yx);dy=(yy<1)?0:round(-(ct-ey)/yy);
			ncl=cl+dx;nct=ct+dy;ncr=cr+dx;ncb=cb+dy;
			st.pixelTop=t-dy;st.pixelLeft=l-dx;st.left=l-dx;st.top=t-dy;
			eval("st.clip='rect('+nct+' '+ncr+' '+ncb+' '+ncl+')'");yy--;yx--;
		}
		if(s.yyto)clearTimeout(s.yyto);
		if(yy>0||yx>0){doto=true;}else if(dly>-1&&loop==true){
			if(d.layers){s.left=s.ol;s.clip.left=0;s.clip.right=cr-cl;s.top=s.ot;s.clip.top=0;s.clip.bottom=cb-ct;
			}else{eval("st.clip='rect('+0+' '+(cr-cl)+' '+(cb-ct)+' '+0+')'");st.top=s.ot;st.left=s.ol;}
			doto=true;
		}
		if(doto==true)s.yyto=setTimeout("YY_LS(\""+das+"\","+ex+","+ey+","+dly+","+sx+","+loop+","+dx+","+dy+")",dly);
	}
	
	function nachRechts(){
		MM_swapImage('forward','','../images/content_images/forward_on.gif',1);
		YY_LS('refscroll','2372','1',20,stepSize,false);
	}
	
	function nachLinks(){
		MM_swapImage('reward','','../images/content_images/reward_on.gif',1);
		YY_LS('refscroll','1','1',20,stepSize,false);
	}
	
	function stopScroll(){
		MM_swapImgRestore();
		YY_StopLayerfx('refscroll');
	}



   function zeigText(ziel) 
   { 
	  if (document.all) 
	  { 
		 document.all[ziel].style.visibility = 'visible'; 
	  } 
	  else if (document.layers) 
	  { 
		 document.layers[ziel].visibility = 'show'; 
	  } 
	  else if (document.getElementById) 
	  { 
		 document.getElementById(ziel).style.visibility = 'visible'; 
	  } 
   } 
	
	
   function textWeg(ziel) 
   { 
	  if (document.all) 
	  { 
		 document.all[ziel].style.visibility = 'hidden'; 
	  } 
	  else if (document.layers) 
	  { 
		 document.layers[ziel].visibility = 'hide'; 
	  } 
	  else if (document.getElementById) 
	  { 
		 document.getElementById(ziel).style.visibility = 'hidden'; 
	  } 
   } 

	function platformDetect()
	{
	  if(navigator.appVersion.indexOf("Win") != -1)
	  {
		// Windose
		stepSize=3;
	  }
	  else if(navigator.appVersion.indexOf("Mac") != -1)
	  {
		// MAC
		stepSize=10;
	  }
	  else stepSize=3;
	}
