
//
// ref = 
//
function wral_insert_video_player_4597739 (w, h, bgcolor)
{
    if (!w) w = 576;
    if (!h) h = 324 * (w / 576);  // scale proportionally
    if (!bgcolor)  bgcolor = "#ffffff";

    document.write ('<' + 'object width="' + w + '" height="' + h + '"'
                    + ' id="_4597739"'
                    + ' data="http://wwwcache.wral.com/presentation/v2/flash/video/vp-wral.swf"'
                    + ' type="application/x-shockwave-flash"' + '>'
                    + '<' + 'param name="movie" value="http://wwwcache.wral.com/presentation/v2/flash/video/vp-wral.swf" /' + '>'
                    + '<' + 'param name="allowfullscreen" value="true" /' + '>'
                    + '<' + 'param name="allowscriptaccess" value="always" /' + '>'
                    + '<' + 'param name="index" value="-1" /' + '>'
                    + '<' + 'param name="flashvars" value="config={\'playlist\':[{\'url\':\'http:\/\/wwwcache.wral.com\/asset\/5oys\/2009\/02\/24\/4597739\/49880-newinterview-400x300.jpg\',\'scaling\':\'fit\'},{\'live\':false,\'headline\':\'Advice to ace a job interview\',\'provider\':\'rtmp\',\'netConnectionUrl\':\'rtmp:\/\/media.wral.com\/vod\',\'url\':\'wral\/asset\/5oys\/2009\/02\/24\/4597739\/49880-newinterview-576x324-15-512\',\'channel\':\'5 On Your Side\',\'subChannel\':\'5 On Your Side : Main\',\'id_asset\':\'4597739\',\'scaling\':\'fit\',\'mainVideoUrl\':\'http:\/\/www.wral.com\/5onyourside\/video\/4597739\/\',\'bufferLength\':5,\'embed_overrides\':{\'config_url\':\'http:\/\/www.wral.com\/5onyourside\/video\/4597739\/?version=fpconfig\'}}],\'plugins\':{\'overlay_video_status\':{},\'openAdStreamer\':{\'autoPlay\':false,\'pauseIfNoPreroll\':true,\'ads\':{\'displayCompanions\':false,\'pauseOnClickThrough\':true,\'schedule\':[{\'position\':\'pre-roll\',\'server\':{\'type\':\'DART\',\'tag\':\'http:\/\/ad.doubleclick.net\/pfadx\/wral.5oys\/main;roadblock2=2;id_asset=4597739;asset_type=video;ip_block=38.107.191;tile=0;sz=432x324;ord=5669168923?\'},\'player\':{\'fadeInSpeed\':4000,\'fadeOutSpeed\':4000,\'scaling\':\'fit\'}}]}}}}" /' + '>'
                    + '<' + '/object>');
}
