//Popup für reine Bildanzeige ohne Text

//timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

var tmpimg;

function loadImage(url)
{

tmpimg = new Image();
tmpimg.src = url;
tmpimg.onload = openWindow();
}



// Die Größe wird automatisch bestimmt

function openWindow()
{
    var wWidth, wHeight;

//alert(tmpimg);

      wWidth = tmpimg.width+22;
      wHeight = tmpimg.height+24;

    var wdimension;
    wdimension = "width="+wWidth+",height="+wHeight+",resizable=no";
alert(wdimension);
    var myURL = tmpimg.src; 
    popupWin = window.open(myURL, "_new3", wdimension);
}


// STandardpopup für Bild und Text
var newwin;
function flashworker_popup(url,name,eigenschaften)
    {
    newwin = window.open(url,name,eigenschaften);
    newwin.focus();
        }


// nachträgliches Ändern der Fenstergröße
function resizeWindow() {
   // if (document.images) {

   //     if (windowHandle.document.images.length == 1) {



windowHandle.resizeTo(windowHandle.document.images[0].width+45,windowHandle.document.images[0].height+60) 
  //      }
 //       else
  //          setTimeout('resizeWindow()',1000);
  //  }
}
