function setDivVideoSize(w,h)
{
  //alert( Window.ModalBox + "   " + parent.ModalBox + "  ");
  //window.ModalBox.resize( 500,400 );
  //alert( "SET DIV VIDEO SIZE OK "  +w +"  " + h + "  " +$('MB_wrapper').style.width + "  " + $('MB_wrapper').style.height+ $('MB_wrapper').style.left  ) ;
  var newLeft = parseInt($('MB_wrapper').style.left) +  (parseInt(parseInt($('MB_wrapper').style.width) - parseInt(w))/2) ;
  $('MB_wrapper').style.left =  parseInt(newLeft) +"px";
  
  scalewidth = 100 * (parseInt(w) + 50) / parseInt($('MB_wrapper').style.width);  
  scaleheight = ( 100 * (parseInt(h) + 50) / parseInt($('MB_wrapper').style.height) ) ;
  
  new Effect.Scale('MB_window', scalewidth,{ duration: .5,scaleY:false, scaleContent:false});
  new Effect.Scale('MB_window', scaleheight,{ duration: .5,scaleX:false, scaleContent:false});
 
  $('MB_wrapper').style.width = w  +"px";
  $('MB_wrapper').style.height = h +"px";
  
  $('video').style.width = w+"px";
  $('video').style.height = h+"px";
    
  //alert( "SET DIV VIDEO SIZE OK "  +w +"  " + h + "  " +$('MB_wrapper').style.width + "  " + $('MB_wrapper').style.height + $('MB_wrapper').style.left ) ;
}