//global Javascipt-Funktionen
var zaehler = 50;
function Fotozoom(mfotoAS, i, mbreiteAS, mhoeheAS) 
{ 
 var hoehe=mhoeheAS; 
 var positionX=((screen.availWidth / 2) - mbreiteAS / 2); 
 var positionY=((screen.availHeight / 2) - mhoeheAS / 2);	
 var url='../php/fotozoom.php?foto='+mfotoAS;
 pop=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,fullscreen=1,width=0,height=0,top=0,left=0'); 
 pop.moveTo(positionX,positionY); 
  pop.location=url;
 while (i < mbreiteAS)
 {
	// zoom(i,mhoeheAS,pop);
	setTimeout("zoom(url, i, mhoeheAS)",10000); 
	i=i+1;
 }
}

function zoom(pbreiteAS, phoeheAS, ppopupAS)
{


 pop.resizeTo(pbreiteAS,phoeheAS);
 pop.refresh;
}
 
 //----------------------------------------------------------------
var zaehler = 50;
function aufmachen(breite,ID) {
 if (zaehler < breite) {
  document.getElementById(ID).style.display="inline";
  document.getElementById(ID).style.width=zaehler+"px";
  zaehler += 10; 
  window.setTimeout("aufmachen("+breite+",'"+ID+"')",100);
 }
 else {
  document.getElementById(ID).style.display="block";
 }
}

function zumachen(ID) {
 document.getElementById(ID).style.display="none";
 document.getElementById(ID).style.display="none";
 zaehler = 50;
}


