<!--

function popup(pfad,wi,he)
	{
	show = window.open(pfad, "Bildershow", "width="+wi+",height="+he+",left="+(screen.width-wi-12)/2+",top="+(screen.height-he-60)/2+",location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no");
	}

function scrollpopup(pfad,wi,he)
	{
	show = window.open(pfad, "Bildershow", "width="+wi+",height="+he+",left="+(screen.width-wi-12)/2+",top="+(screen.height-he-60)/2+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
	}
	
function autopopup(img)
	{
	foto= new Image();
	foto.src=(img);
	Check(img);
	}

function Check(img){
  if((foto.width!=0)&&(foto.height!=0)){
    viewFoto(img);
  }
  else{
    funktion="Check('"+img+"')";
    intervall=setTimeout(funktion,20);
  }
}

function viewFoto(img){

	bwi = foto.width + 20;
	bhe = foto.height + 20;
	swi = screen.width - 30;
	she = screen.height - 60;
	scr = "no";
	
	if (bwi > swi) { breit = swi; scr = "yes"; }
	else { breit = bwi;};
	
	if (bhe > she) { hoch = she; scr = "yes"; }
	else { hoch = bhe; };

  string="width="+breit+",height="+hoch+",left="+(screen.width-breit-12)/2+", top="+(screen.height-hoch-60)/2;
  fenster=window.open(img,"",string);
}

//-->
