         var x;
         var y;
         var popPicture;
         var ImageDoc;
         var head;
         var foot;
         var content;
         var path;
         var source;
function closePopPicture(){
  if (!popPicture)          
    return;               
  if (popPicture.closed)   
    return;                
  popPicture.close();
     
  return true;
}         
    function openImagePop(picture,w,h){
         closePopPicture();
         path = "img/full/";
         source = path+picture; 
x = (screen.availWidth/2)-(w/2);
y = (screen.availHeight/2)-(h/2); 
         popPicture = window.open("","displayWindow","height="+h+",width="+w+",left="+x+",top="+y+",menubar=no,toolbar=no,scrollbars=no,resizable=no,status=no,location=no");
         ImageDoc = popPicture.document;
         head = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n";
         head += "<head>\n<title>Chanson de Trash - ElektroRock'n'PunkChanson's aus Berlin</title>\n";
         head += "<meta http-equiv=\"imagetoolbar\" content=\"no\" />\n</head>\n";
         head += "<html>\n<body background='"+source+"' onload=\"this.focus();\">\n";
         foot = "</body></html>";
         content = head+foot;
         ImageDoc.open();
         ImageDoc.write(content);
         ImageDoc.close();
         return true;
} 

