
	
function popUpImg(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}


function popUpImg2(img2){
  foto12= new Image();
  foto12.src=(img2);
  Controlla2(img2);
}
function Controlla2(img2){
  if((foto12.width!=0)&&(foto12.height!=0)){
    viewFoto2(img2);
  }
  else{
    funzione2="Controlla2('"+img2+"')";
    intervallo2=setTimeout(funzione2,20);
  }
}
function viewFoto2(img2){
  largh2=1000;
  altez2=foto12.height+20;
  stringa2="width="+largh2+",height="+altez2;
  finestra2=window.open(img2,"",stringa2);
}


//-------------------------------------------------------------------------------
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);
} 


function grbildpopbp(grbildpopp,grbildpoput,grbildpopti,grbildpopte)
{ var undefined;

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

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

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

  grbildpopnw = window.open("","",'resizable=0,1,1,scroll=yes');

  with (grbildpopnw)
  {
    focus();
    document.open();
   document.write('<html><head><title>'+grbildpopti+'</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\"  class=\"picpop\" onload=\"opener.grbildpoprez(1000,document.images[0].height)\" style=\"overflow:scroll;\">')
   document.write('<a href=\"javascript:self.close()\">');
   document.write('<img src=\"'+grbildpopp+'\" border=\"0\" alt=\"'+grbildpopte+'\"></a><br>')
   document.write('<p class=\"picpop\">'+grbildpoput+'</p>')
   document.write('</body></html>')
   document.close();
  }
}

function grbildpoprez(x,y)
{
if (navigator.appName == 'Microsoft Internet Explorer')
{grbildpopnw.resizeTo(1000,y+29+22);}

else
{
   if(navigator.appVersion.substring(0,1) < "5")
      {grbildpopnw.resizeTo(1000,y+22);}
   else
      {grbildpopnw.resizeTo(1000,y+28+22);}
}

grbildpopx=(screen.availWidth/2)-(x/2);
grbildpopy=(screen.availHeight/2)-(y/2);
grbildpopnw.moveTo(grbildpopx,grbildpopy);
} 
