Hi Oleksiy,
Thanks a lot. With your help I got it to work now.
You where right on the spot, indeed the zoom was ready before the spry region.
I added an observer to the region, so after it finished rendering (updating), i add the zoom class and do the zoom refresh, now it works perfectly. learning all the time, right...? I guess you guys now got your self yet another customer..., me

.
I thank you very much.
Fritz.
ps. for future reference, this is how the page looks now:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="magiczoom.js" type="text/javascript"></script>
<link href="magiczoom.css" rel="stylesheet" type="text/css" media="screen"/>
<script type="text/javascript">
var dsItemimages = new Spry.Data.XMLDataSet("XML/xml_item_images.php?itemID=11", "export/img");
var observer = { onPostUpdate: function(notifier, data) {
Spry.Utils.addClassName('zoomref','MagicZoom');
MagicZoom.refresh(); } };
Spry.Data.Region.addObserver("imgRegion", observer);
</script>
</head>
<body>
<div id="imgRegion" spry:region="dsItemimages">
<a href="prdImages/{dsItemimages::Hires}" title="Flecks" id="zoomref"><img src="prdImages/{dsItemimages::Afbeelding}" alt="Flecks" name="ItemImage" id="ItemImage" border="0" title="Flecks"/></a>
</div>
</body>
</html>