function plaatjeover() {
	var p = document.getElementById("hondjerondje");
	p.src = hondplaatje;
}

function plaatjeuit() {
	var p = document.getElementById("hondjerondje");
	p.src = huidigplaatje;
}

function loadplaatje() {
	var p = document.getElementById("hondjerondje");
	huidigplaatje = p.src;
	var offsetWidth = 760 - 120;
	var aantalPlaatjes = 7;
	var ml = Math.round((huidigepositie / (aantalPlaatjes - 1)) * offsetWidth);
	// welk plaatje?
	var gi = ((aantalPlaatjes - 1) - huidigepositie) * 30;
	hondplaatje = "/images/rondje/hondje" + gi + ".gif";
	p.style.marginLeft = ml + "px";
	p.onmouseover = plaatjeover;
	p.onmouseout = plaatjeuit;
}

var huidigepositie = null;
var huidigplaatje = null;
var hondplaatje = null;

