<!--
/*
  copyright
*/

var Imagepath="images/article/";
var Imagezoom="shop/detailzoom.htm";

function displayInfobox(Element,Infotext){
  var b=document.getElementById("infobox");
  var t=document.getElementById("infotxt");
  var x=y=0;
  if(document.all){
    x=window.event.clientX-window.event.offsetX+Element.offsetWidth+8+document.body.scrollLeft;
    y=window.event.clientY+document.body.scrollTop-window.event.offsetY;
  }
  if(typeof(Infotext)!="undefined")
    t.innerHTML=Infotext;
  else
    t.innerHTML="";
  if(b.style.display=="block")
    b.style.display="none";
  else{
    b.style.left=x+"px";
    b.style.top=y+"px";
    b.style.display="block";
  }
}

function displayLoading(Path){
  if(Path=="undefined")
		Path="";
  if(document.getElementById){
    var d=document.getElementById("linking");
    if(d)
      d.style.display="none";
    d=document.getElementById("loading");
    if(d){
	if(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)>3)
	  d.innerHTML='Bitte etwas Geduld. Daten werden geladen &nbsp;<img name="load" src="'+Path+'shop/images/loading.gif" width="231" height="11" alt="Daten werden geladen" border="0" />';
      d.style.display="block";
    }
  }
  window.scrollTo(0,0);
}

function showImage(Path,Name){
  var s =Path+Imagezoom+'?pic=\'<img src="'+Imagepath+Name+'" />\'';
  var picWin=window.open(s,"TBPicture","top=50,left=50,width=320,height=440,resizable=1,scrollbars=1");
  if(picWin&&parseInt(navigator.appVersion)>=4)
    picWin.focus();
  return false;
}

function setCookie(Name,Value,Expires){
  if(typeof(Name)=="string"&&Name!="")
    if(typeof(Value)=="string"){
      if(typeof(Expires)=="string")
        Expires=parseInt(Expires);
      if(typeof(Expires)=="number"){
        var d=new Date();
        d.setTime (d.getTime()+Expires);
        document.cookie=Name+"="+Value+"; path=/; expires="+d.toGMTString()+";";
      }
    }
}

function traceVisit(){
  var l=document.location;setCookie("trace",l.pathname+l.search,24*60*60*1000);
  if(document.getElementById){
    var d=document.getElementById("linking");
    if(d)
      d.style.display="block";
    d=document.getElementById("loading");
    if(d)
      d.style.display="none";
  }
}

//-->