        <!--

       <!-- contentW=253*(num_works+3);-->
		
function fensterweite()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

function fensterhoehe()
{
 if (window.innerHeight) return window.innerWidth;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}

function neuaufbau()
{
 if (weite != fensterweite() || hoehe != fensterhoehe())
 window.history.go(0);
}


if(!window.weite && window.innerWidth)
  {
   window.onresize = neuaufbau;
   weite = fensterweite();
   hoehe = fensterhoehe();
  }		

function init()
{
startMouseCapture();
rst=false;
HW=contentW-winW;
lastx=mouseX;
leftX=winW*0.40;
rightX=winW*0.60;
bb=253; 
scrollm=-110; 
scrollM=-HW+400; 
px=-HW+700;
opx=0;
vx=+180;
minmove=10;
speed=50;
timeline=false;
oldactive=0; active=0;
lastsign=0;


Showlayer("loading","hidden");

for (i=1; i<=num_works; i++) {
     arbeit=numFormat("work",i);
     Showlayer(arbeit,"visible");
     }
     animate();
}

function animate() {
	if ( (mouseY>=200) && (mouseY<=600) && (!rst) ) timeline=true; else timeline=false;

    	 x=mouseX; dx=x-lastx; lastx=x;
    	 if (dx>0) {
    	 dxsign=-1; if (dx>minmove) lastsign=-1;
    	 }
    	 else if (dx<0){ 
		 dxsign=1; dx=-dx; if (dx>minmove) lastsign=1;
    	 }
    	 else dxsign=0;


     	if ( (x<leftX) && timeline)	{
     	a=(leftX-x)/leftX;
     	if (lastsign==-1) vx*=0.6;
     	else if (lastsign==1) vx=a*speed;
     	}
     	else if ( (x>rightX) && timeline) {
     	a=(x-rightX)/leftX;
     	if (lastsign==1) vx*=0.6;
     	else if (lastsign==-1) vx=-a*speed;
     	}

     	px+=vx; vx*=0.7;
     	px=Math.round(px);


     	if (px>scrollm) px=scrollm;
     	else if (px< scrollM) px=scrollM;

     	if (px!=opx) {
    	if (active) {
    	placeCaption(active);
    	}
    	winS=winW-130;

    	for (i=1; i<=num_works; i++) {
        arbeit=numFormat("work",i);
        tpx=px+(i*bb)-142;
        if ( (tpx>-bb) && (tpx<winS) ) {
        Showlayer(arbeit,'visible');
		Movelayer(arbeit,tpx,200);
        }
        else Showlayer(arbeit,'hidden');
    	}
    }

	opx=px;
	setTimeout('animate()',50);
}

function timeline_rollOn(quelle){
	if (oldactive!=0) Showlayer(numFormat("text",oldactive),'hidden');
	oldactive=active; active=quelle;
	placeCaption(active);
	Showlayer(numFormat("text",active),'visible');
	}

function timeline_rollOut(quelle){
	active=0;
	Showlayer(numFormat("text",quelle),'hidden');
	}

function placeCaption(quelle){
	if (isW3C) cy=335; 
		else cy=350;
   	 if (quelle<num_works){
    	cx=-getlayerWidth(numFormat("text",quelle));
    	Movelayer(numFormat("text",quelle),px+(quelle*bb)-130,cy);
    	}else{
    	lw=getlayerWidth(numFormat("text",quelle));
    	Movelayer(numFormat("text",quelle),px+(quelle*bb)-70-lw,cy);
   	}
}

function numFormat(base,number,dash){
	if (! dash) dash='';
	if (number<10) return(base+dash+"0"+number);
	else return(base+dash+""+number);
	}
	

function statustext(text) { 
  status=text;
  document.returnValue = true;
}
// -->