function show_video_popup( width, height, source) {
     var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

    var top_video = myHeight/2-height/2;
    var left_video = myWidth/2-width/2;
    var header_text = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">'+
				'<head><title>MigreLief TV Commercial</title>'+
				'</head><body>';
    var print_text = '<object width="480" height="385"><param name="movie" value="'+source+'?fs=1&amp;hl=ru_RU"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'+source+'?fs=1&amp;hl=ru_RU" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>';
    var footer_text = '</body></html>';
    var video_popup = window.open( "", "MigreLief" ,"menubar=0,resizable=1,width="+width+",height="+height+",top="+top_video+",left="+left_video );
    video_popup.document.writeln( header_text + print_text + footer_text );
    video_popup.document.close();
}




