
var oldcolor="white";

/***********************************************************************************************

***********************************************************************************************/
function showPicture(url,aWidth,aHeight) {
/* 
//s'il faut générer une variable en fonction de la langue...
switch(langue_en_cours) {
 case "de": 
 break;
case "es": 
 break;
case "gb": 
 break;
case "it": 
 break;
case "po": 
 break;
default:
 break;
}
*/
src= "<img src='" + url + "' title='' alt='picture' width='" + aWidth + "' height='" + aHeight + "'>";
$("outerBox").style.height=(aHeight+10)+"px";
$("outerBox").style.width=(aWidth+10)+"px";
$("innerBox").innerHTML=src;
$("textBox").innerHTML="FIBD/DA";
$("outerBox").show();

return false;
}


/***********************************************************************************************

***********************************************************************************************/
function showVideo(filepath) {
 var url="/video/viewvideo.php";

 params= {
  fn: filepath,
  thewidth:320,
  theheight:240
 }

transport=new Ajax.Request( url,
 {
  method:'post',
  parameters: params,
   onComplete:function(e) {
   $("textBox").innerHTML="Video";
   $("outerBox").style.width=(params.thewidth+15)+"px";
   $("outerBox").style.height=(params.theheight+5)+"px";
   rep=String(e.responseText).html_entity_decode();
   $("innerBox").innerHTML="<div align='center'>" + rep + "</div>";
   if (!$("outerBox").visible()) $("outerBox").show();
   return;
  }
 }
);
return false;
} // function


/***********************************************************************************************

***********************************************************************************************/
function highlight(idDiv) {
oldcolor=document.getElementById(idDiv).style.borderColor;
document.getElementById(idDiv).style.borderColor="#FF0000";
return false;
}

/***********************************************************************************************

***********************************************************************************************/
function shutoff(idDiv) {
document.getElementById(idDiv).style.borderColor=oldcolor;
return false;
}


