function showTrailer(trail) {
   foo = trail.lastIndexOf("_") + 1;
   bar = trail.lastIndexOf(".") - foo;
   size = trail.substr(foo,bar).split("x");
 
   w = size[0];
   h = size[1];
   xpos = (screen.width - w ) / 2;
   ypos = (screen.height - h ) / 2;
 
   file = "http://www.mesta.net/leffat/trailerit/showTrailer.php?file=" + trail + "&w=" + w + "&h=" + h;
 
   faux = window.open(file,"newWin","toolbar=no,statusbar=no,resizable,top=" + ypos + ",left=" + xpos + ",width=" + w + ",height=" + h);
}

function TrailWin(trail) {
   foo = trail.lastIndexOf("_") + 1;
   bar = trail.lastIndexOf(".") - foo;
   size = trail.substr(foo,bar).split("x");

   w = size[0];
   l = size[1];

   file = "http://www.mesta.net/leffat/trailerit/showTrailer.php?file=" + trail + "&w=" + w + "&h=" + l;

   faux = window.open(file,"newWin","toolbar=no,statusbar=no,resizable,top=20,left=20,width=" + w + ",height=" + l);
}

function si(myURL,myWidth,myHeight){
  myLeft = (screen.width - myWidth) / 2;
  myTop = (screen.height - myHeight) / 2;
  window.open("http://www.mesta.net/showImage.phtml?url="+myURL,"imgW","top="+myTop+",left="+myLeft+",width="+myWidth+",height="+myHeight+",toolbar=no,status=no,resizable=no,scrollbars=no");
  return false;
}
