<!-- Minus AutoDato -->
<!-- door beeld rennende kat -->
<!-- <body onLoad="clearTimeout(timer);verplaatsenInstellen()"> -->
<!-- en op de hoogte waar hij moet rennen aanroep: black_cat_runs (); -->

timer="";
bcr_hh=35;bcr_ww=85;bcr_gif='black_cat_runs.gif';bcr_stap=7;bcr_hhc=8;

function no_cat(altpic) {switch(altpic){
	case "holbewoners":
		bcr_hh=143;bcr_ww=130;bcr_gif='2 holbewoners.gif';bcr_stap=2;bcr_hhc=13;
		break;
	case "verhuizer":
		bcr_hh=120;bcr_ww=92;bcr_gif='verhuizer.gif';bcr_stap=-2;bcr_hhc=8;
		break;
	case "voetballer":
		bcr_hh=90;bcr_ww=95;bcr_gif='voetballer.gif';bcr_stap=5;bcr_hhc=16;
		break;
	case "feest":
		bcr_hh=69;bcr_ww=107;bcr_gif='t79.gif';bcr_stap=-1;bcr_hhc=8;
		break;
	default:
		bcr_stap=0;
	}
}

function findPosY(obj){
	objtop = 0
	if (obj.offsetParent){
		while (obj.offsetParent){
			objtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		objtop += obj.y;
}

function verplaatsenInstellen(){
	if(bcr_stap==0) return;
	var winW = 630, winH = 460;
		<!-- zie http://www.javascripter.net/faq/browserw.htm -->
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape"||navigator.userAgent.indexOf("Opera")!=-1) {
	  winW = window.innerWidth-16;
	  winH = window.innerHeight-16;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.body.offsetWidth-20;
	  winH = document.body.offsetHeight-20;
	 }
	}
	winrechts = winW-bcr_ww-1; <!-- schermbreedte - afbeeldings breedte - bescherming -->
	winlinks=-200;
	if(bcr_stap>0)	{horpositie=winlinks;}
	else		{horpositie=winrechts;}
	obj=document.getElementById('afbeelding')
	findPosY(obj);
	vertpositie=objtop-bcr_hh+bcr_hhc;
	document.getElementById('catwalk').style.top=vertpositie +'px';
	document.getElementById('catwalk').style.left=horpositie +'px';
	document.getElementById('catwalk').style.visibility='visible';
	herstart=
	verplaatsLaag();
}

function verplaatsLaag(){
	horpositie=horpositie+bcr_stap;
	if(horpositie > winrechts){
		horpositie = winrechts;
	}
	document.getElementById('catwalk').style.left=horpositie + 'px';
	if(horpositie==winrechts||horpositie<=winlinks){
		clearTimeout(timer);
		timer=setTimeout('verplaatsenInstellen()',250)
	}
	else{	timer=setTimeout("verplaatsLaag()",55)
	}
}

function black_cat_runs () {
	if (typeof diepte == 'undefined') {diepte=""};
	document.write('<div id="catwalk" style="position:absolute; z-index:1; left: 0px; top: 200px; visibility: hidden; width: '+bcr_ww+'px; height: '+bcr_hh+'px;"><img src="'+diepte+'afbeeldingen/'+bcr_gif+'" width="'+bcr_ww+'" height="'+bcr_hh+'" border="0"></div><div id="afbeelding"></div>');
}
