var stop = "false";
function getLeft(l)
{
  if (l.offsetParent)
  {
    return (l.offsetLeft + getLeft(l.offsetParent));
  }
  else
  {
  return (l.offsetLeft);
  }
}
function getTop(l)
{
  if (l.offsetParent)
  {
    return (l.offsetTop + getTop(l.offsetParent));
  }
  else
  {
    return (l.offsetTop);
  }
}

function ueber(obj)
{
try
{
var strDiv = "<div id=\"FlashZoom\" name=\"FlashZoom\" style=\"border:0px; z-index:1; position:absolute; left:"+getLeft(obj)+"; top:"+getTop(obj)+"; width:" + obj.width +"; height:" + obj.height +";\"><embed name='zoom' src='/swf/zoom.swf' quality='high' width='" + obj.width +"'  height='"+ obj.height +"'pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' flashvars='BigImg=" + obj.src.replace('_big.jpg','_zoomed.jpg') +"&SmallImg="+ obj.src +"' /></div>";

if(stop == "false")
{



try
{

  if(document.getElementById("BodyTag").insertAdjacentHTML)
{
  document.getElementById("BodyTag").insertAdjacentHTML("AfterBegin", strDiv);
}
else
{

  var element = document.createElement("DIV");

  element.setAttribute("id", "FlashZoom");
  element.setAttribute("name", "FlashZoom");
  element.setAttribute("style", "border:0px; z-index:1; position:absolute; left:"+getLeft(obj)+"; top:"+getTop(obj)+"; width:" + obj.width +"; height:" + obj.height+";");
  element.setAttribute("width", obj.width);
  element.setAttribute("height", obj.height);
  element.innerHTML = "<embed name='zoom' src='/swf/zoom.swf' quality='high' width='" + obj.width +"'  height='"+ obj.height +"'pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' flashvars='BigImg=" + obj.src.replace('_big.jpg','_zoomed.jpg') +"&SmallImg="+ obj.src +"' />";

  document.getElementById("BodyTag").appendChild(element);

}  
  

}catch(e){alert(e.message );}

}

stop = "true";


  //window.document.zoom.SetVariable("BigImg", obj.src.replace('_big.jpg','_zoomed.jpg'))
//  window.document.zoom.SetVariable("SmallImg", obj.src)

  //document.getElementById("FlashZoom").style.top = getTop(obj);
  //document.getElementById("FlashZoom").style.left = getLeft(obj);
  //document.getElementById("FlashZoom").style.display = "block";

  //document.zoom.width = obj.width;
  //document.zoom.height = obj.height;

  window.document.zoom.Play(); //works

//window.document.zoom.TGotoLabel("_level0/","start");

  //alert(document.getElementById("FlashZoom").value);

//alert(text)
//    alert('Links: ' + obj.offsetLeft + '\nOben: ' + obj.offsetTop + '\nH?he: ' + obj.height + '\nBreite: ' + obj.width + '\nBild Src: ' +  obj.src + '\nBild gross: ' + obj.src.replace('/zoom/','/zoom/gross/'))
//alert(text)
}catch(e){}
}

