function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function printcontent (url) {
 fenster = window.open(url, "fenster1", "width=780,height=600,status=yes,scrollbars=yes,resizable=no");
 fenster.focus();
}
function rezeptbestellung (url) {
 fenster = window.open(url, "fenster1", "width=780,height=525,status=yes,scrollbars=no,resizable=no");
 fenster.focus();
}
function empfehlung (url) {
 fenster = window.open(url, "fenster1", "width=500,height=600,status=yes,scrollbars=auto,resizable=no");
 fenster.focus();
}
function externalcontent (url) {
 fenster = window.open(url, "fenster1", "width=830,height=635,status=yes,scrollbars=no,resizable=no");
 fenster.focus();
}
function bildpopbp(bildpopp,bildpoput,bildpopti,bildpopte) 
{ var undefined; 

  if (bildpoput==undefined) 
  {bildpoput='';} 

  if (bildpopte==undefined) 
  {bildpopte='';} 

  if (bildpopti==undefined) 
  {bildpopti='titel';} 

  bildpopnw = window.open("","",'resizable=1,width=110,height=110,scroll=no'); 

  with (bildpopnw) 
  { 
    focus(); 
    document.open(); 
   document.write('<html><head><title>'+bildpopti+'</title>'); 
   document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">'); 
   document.write('<link href=\"/styles.css\" rel=\"stylesheet\" type=\"text/css\"></head>'); 
   document.write('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll=\"no\" class=\"picpop\" onload=\"opener.bildpoprez(document.images[0].width,document.images[0].height)\">') 
   document.write('<a href=\"javascript:self.close()\">'); 
   document.write('<img src=\"'+bildpopp+'\" border=\"0\" alt=\"'+bildpopte+'\"></a><br>') 
   document.write('<p class=\"picpop\">'+bildpoput+'</p>') 
   document.write('</body></html>') 
   document.close(); 
  } 
} 

function bildpoprez(x,y) 
{ 
if (navigator.appName == 'Microsoft Internet Explorer') 
{bildpopnw.resizeTo(x+10,y+29+22);} 

else 
{ 
   if(navigator.appVersion.substring(0,1) < "5") 
      {bildpopnw.resizeTo(x,y+22);} 
   else 
      {bildpopnw.resizeTo(x+8-8,y+28+22);} 
} 

bildpopx=(screen.availWidth/2)-(x/2); 
bildpopy=(screen.availHeight/2)-(y/2); 
bildpopnw.moveTo(bildpopx,bildpopy); 
} 

