
 function BlocImage(d, i) {
  if (document.layers) {
   document.write('<ILAYER name="Div1" width="480" height="360"><LAYER name="Div2" width="480" height="360">&nbsp;</LAYER></ILAYER>');
  } else {
   document.writeln('<span id="Div2" style="position:relative;width:480;height:360;overflow:hidden;)">')
   document.writeln('<div style="position:absolute;width:480;height:360;clip:rect(0 480 360 0);left:0;top:0;overflow:auto;";>')
   document.writeln('<div valign="center" id="Div3" style="position:absolute;width:480;left:0;top:0">')
   document.write('&nbsp;');
   document.writeln('</div></div></SPAN>')
  }
  ShowImage(d, i, '480', '360');
 }
 
 function ShowImage(dir,image,width,height) {
  htm = '<IMG border="0" src="'+dir+'/'+image+'"';
  if(width!=='' && height!=='') { htm +=' width="'+width+'" height="'+height+'"'; }
  htm+= '>';
  if (document.getElementById) {
   document.getElementById("Div3").innerHTML = htm;
  } else if (document.all) {
   document.all["Div3"].innerHTML = htm;
  } else if (document.layers) {
   document.Div1.document.Div2.document.open();
   document.Div1.document.Div2.document.write(htm);
   document.Div1.document.Div2.document.close();
  }
 }

 function Flash(dir,file,width,height) {
  htm = "<SCRIPT type=\"text/javascript\">\n";
  htm+= " AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','" + width
  + "','height','" + height + "','src','../medias/" + dir + "/" + file + "','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer', 'movie','../medias/" + dir + "/" + file + "' );\n";
  htm+= "</SCRIPT>\n";
  if (document.getElementById) {
   document.getElementById("Div3").innerHTML = htm;
  } else if (document.all) {
   document.all["Div3"].innerHTML = htm;
  } else if (document.layers) {
   document.Div1.document.Div2.document.open();
   document.Div1.document.Div2.document.write(htm);
   document.Div1.document.Div2.document.close();
  }
 }


 function Pager(folder, file, lang) {
  window.open('print.php?folder='+folder+'&file='+file+'&lang='+lang,"popager","menubar=no, status=no, scrollbars=yes, menubar=no, width=820, height=600");
 }

 function Video(folder, file, lang) {
  window.open('video.php?folder='+folder+'&file='+file+'&lang='+lang,"popvideo","menubar=no, status=no, scrollbars=yes, menubar=no, width=320, height=260");
 }

 function Photo(folder, file, lang) {
  window.open('photo.php?folder='+folder+'&file='+file+'&lang='+lang,"popphoto","menubar=no, status=no, scrollbars=yes, menubar=no, width=820, height=600");
 }

 function Tools(folder, file, lang) {
  window.open('tools.php?folder='+folder+'&file='+file+'&lang='+lang,"popphoto","menubar=no, status=no, scrollbars=yes, menubar=no, width=820, height=600");
 }


