
//
// ref = 
//
function wral_insert_video_player_6890581 (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="_6890581"'
                    + ' 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\/business\/2010\/01\/26\/6890581\/102587-wifi-400x300.jpg\',\'scaling\':\'fit\'},{\'live\':false,\'headline\':\'Cary firm provides Wi-Fi at Super Bowl\',\'provider\':\'rtmp\',\'netConnectionUrl\':\'rtmp:\/\/media.wral.com\/vod\',\'url\':\'wral\/asset\/business\/2010\/01\/26\/6890581\/102587-wifi-576x324-15-768\',\'channel\':\'Business\',\'subChannel\':\'Business : Main\',\'id_asset\':\'6890581\',\'scaling\':\'fit\',\'mainVideoUrl\':\'http:\/\/www.wral.com\/business\/video\/6890581\/\',\'bufferLength\':5,\'embed_overrides\':{\'config_url\':\'http:\/\/www.wral.com\/business\/video\/6890581\/?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.business\/main;roadblock2=2;id_asset=6890581;asset_type=video;ip_block=38.107.191;tile=0;sz=432x324;ord=2998584490?\'},\'player\':{\'fadeInSpeed\':4000,\'fadeOutSpeed\':4000,\'scaling\':\'fit\'}}]}}}}" /' + '>'
                    + '<' + '/object>');
}
