function mouseover(a) {
	var img = a.getElementsByTagName("img")[0];
	img.src = img.src.replace("_n.","_f.");
}

function mouseout(a) {
	var img = a.getElementsByTagName("img")[0];
	img.src = img.src.replace("_f.","_n.");
}

function myPopup(aTagOrUrl, pWidth, pHeight) {
	var theLink;
	if (aTagOrUrl.tagName != undefined) {
		theLink = aTagOrUrl.href;
	} else {
		theLink = aTagOrUrl;
	}
	if (!pWidth)  pWidth=600; 
	if (!pHeight) pHeight=500;
	if (top.thePopup && !top.thePopup.closed && top.thePopup.close) top.thePopup.close();
	var x = -pWidth/2 + screen.availWidth/2;
	var y = -pHeight/2 + screen.availHeight/2;
	top.thePopup = top.open(theLink, "thePopup", "width="+pWidth+",height="+pHeight+",resizable=1,menubar=0");
	top.thePopup.moveTo(x,y);
	top.thePopup.focus();
	return false;
}

function myZoomPopup(aTagOrUrl, pWidth, pHeight ){
	var theLink;
	if (aTagOrUrl.tagName != undefined) {
		theLink = aTagOrUrl.href;
	} else {
		theLink = aTagOrUrl;
	}
	theLink = "imgpopup.html?img=" + theLink;
	if (!pWidth)  pWidth=600; 
	if (!pHeight) pHeight=500;
	if (top.thePopup && !top.thePopup.closed && top.thePopup.close) top.thePopup.close();
	var x = -pWidth/2 + screen.availWidth/2;
	var y = -pHeight/2 + screen.availHeight/2;
	top.thePopup = top.open(theLink, "thePopup", "width="+pWidth+",height="+pHeight+",resizable,scrollbars,left="+x+",top="+y);
	top.thePopup.moveTo(x,y);
	top.thePopup.focus();
	return false;
}

function rouleer(urlI, urlA, aSource) {
	// active image
	var zoomRouleer = document.getElementById("zoomRouleer");
	var a = zoomRouleer.getElementsByTagName("a")[0];
	var i = zoomRouleer.getElementsByTagName("img")[0];
	a.href = urlA;
	i.src = urlI;
	// navigation
	var zoomNav = document.getElementById("zoomNav");
	var as = zoomNav.getElementsByTagName("a");
	for (var i=0; i<as.length; i++) {
		as[i].className = "";
	}
	aSource.className = "selected";
}
