var ns4=0;
if (navigator.appName=="Netscape")
{
   s=navigator.appVersion.substr(0,1);
   test="1234";
   if (test.indexOf(s)>-1) ns4=1;
}

var detPicFile="su_pic_det.php";
function showDetPic(ASource,ADir,AWidth,AHeight)
{
var s=window.location.pathname;
i=s.lastIndexOf("/");
if (i>-1) s=s.substr(0,i);
F1 = open('/'+detPicFile+"?src="+s+"/"+ASource,"F1","width="+AWidth+",height="+AHeight+",screenX=0,screenY=0,resizable=no");
F1.focus();
}


function play(AFile,AKomp,AWerk)
{
   if (AFile.substr(0,1)=="/") sDir="";
   else {
      sDir=window.location.pathname;
      i=sDir.lastIndexOf("/");
      if (i>-1) sDir=sDir.substr(0,i);
   }

   i=AFile.lastIndexOf(".");
   if (i>0)
   {
      s=AFile.substr(i);
      if (s==".mp3")
      {
         x=screen.width;
         y=screen.height;
         b=242;
         h=50;
         f = window.open("/flashaudioplayer.php?file="+sDir+'/'+AFile+"&komp="+AKomp+"&werk="+AWerk, "xxx", "width="+b+",height="+h+",left="+(x-b)/2+",top="+(y-h)/2)-15;
         //f.focus();
      }
      else f = window.open(sDir+'/'+AFile, "xxx");
   }
}
