
var videoCatController=function()
{var catID=0;function setCatID(n){catID=n;}
var doc="";var i=0;var tmpI=null;var slotCount=$$("#summaryList0 .summaryBlock").length;var ajaxUpdate=false;function setI(n){i=n;}
function setTmpI(n){tmpI=n;}
function setSlotCount(n){slotCount=n;}
function setAjaxUpdate(b){ajaxUpdate=b;}
function dhtml(newList)
{$("section_AllCatVids").insertBefore(newList,$("summaryList_"+catID));var origSlotCount=10;if(origSlotCount>slotCount)
{var diff=origSlotCount-slotCount;var divs=$("summaryList_"+i).getElementsByTagName("div");while(diff>0)
{try{$("summaryList_"+i).removeChild(divs[divs.length-3]);}catch(err){}
diff--;}}
$("summaryList_"+tmpI).hide();new Effect.Opacity("summaryList_"+i,{from:1,to:1,duration:0});$("summaryList_"+i).show();setAjaxUpdate(false);}
function parseDoc()
{var videos=doc.getElementsByTagName("video");var newList=$("summaryList_"+catID).cloneNode(true);newList.innerHTML='<div class="clearFloat"></div>';var lastDiv=newList.getElementsByTagName("div")[newList.getElementsByTagName("div").length-1];var difference=10;for(var x=0;x<difference;x++)
{var newBlock=document.createElement("div");newBlock.className="summaryBlock";newBlock.innerHTML='<a href=""><img class="img02paddingL" align="left" height="49" width="88" border="0" alt="" src=""></a><div class="cnnHeadline"><a href=""><img border="0" alt="PLAY" class="vicon" height="15" width="30" src="http://i.cdn.turner.com/money/.element/img/2.0/buttons/video/play.enabled.gif"></a><a href="">&nbsp;</a><span class="cnnDuration">00:00</span><span class="cnnDateStamp">&nbsp;</span></div><p class="cnnBlurbTxt">&nbsp;</p>';newList.insertBefore(newBlock,lastDiv);}
var images=newList.getElementsByTagName("img");var desc=newList.getElementsByTagName("p");var dur=newList.getElementsByTagName("span");var title=newList.getElementsByTagName("a");setSlotCount(10);if(videos.length<slotCount){setSlotCount(videos.length);}
var todaysDate=new Date();todaysDate=todaysDate.getTime();for(var c=0;c<slotCount;c++)
{var url="/"+videos[c].getElementsByTagName("id")[0].firstChild.nodeValue;try{images[c*2].setAttribute("src",videos[c].getElementsByTagName("thumbnail_url")[0].firstChild.nodeValue.replace(/124x70/,'88x49'));}catch(e){}
try{title[c*3+2].firstChild.nodeValue=videos[c].getElementsByTagName("headline")[0].firstChild.nodeValue;}catch(e){}
try{title[c*3].setAttribute("href",url);}catch(e){}
try{title[c*3+1].setAttribute("href",url);}catch(e){}
try{title[c*3+2].setAttribute("href",url);}catch(e){}
try{dur[c*2].innerHTML='('+videos[c].getElementsByTagName("duration")[0].firstChild.nodeValue+')';}catch(e){}
try
{var timestamp=videos[c].getElementsByTagName("timestamp")[0].firstChild.nodeValue;var theDate=new Date(timestamp*1000);var publishDate=theDate.getTime();if(((todaysDate-publishDate)/86400000)>1)
{var d=theDate.toLocaleDateString().split(",");d=d[1].substring(1).split(" ");if(d[1].indexOf('0')==0)d[1]=d[1].substring(1);dur[c*2+1].innerHTML=d[0].substring(0,3)+" "+d[1];}
else
{var t=theDate.toLocaleTimeString().split(":");var t2=t[2].split(" ");dur[c*2+1].innerHTML=t[0]+":"+t[1]+t2[1].toLowerCase();}}
catch(e){}
try{desc[c].innerHTML=videos[c].getElementsByTagName("description")[0].firstChild.nodeValue;}catch(e){}}
newList.setAttribute("id","summaryList_"+i);dhtml(newList);}
function setAjaxResponse(event)
{var location='/.element/ssi/auto/4.0/video/xml/'+i.replace(/_/,"/")+'.xml';new Ajax.Request(location,{method:'get',onSuccess:function(response){doc=Try.these(function(){return new DOMParser().parseFromString(response.responseText,'text/xml');},function(){var xmldom=new ActiveXObject('Microsoft.XMLDOM');xmldom.loadXML(response.responseText);return xmldom;});parseDoc();},onFailure:function(){new Effect.Opacity("summaryList_"+tmpI,{from:1,to:1,duration:0});setI(tmpI);setAjaxUpdate(false);},onException:function(req,ex){}});return this;}
function control(event)
{if(ajaxUpdate==true)return;try
{if($(Event.element(event).id).parentNode.getAttribute("id")!=null&&$(Event.element(event).id).parentNode.getAttribute("id")!='')
{var newClass=Event.element(event).parentNode.getAttribute("id").substring(8);}
else
{var newClass=Event.element(event).parentNode.parentNode.parentNode.getAttribute("id").substring(8);}
$('section_vidsByCat').className='cnnvnav_'+newClass;}catch(e){}
try
{$$('#section_vidsByCat .cnnSelected').each(function(value,index){value.className='';});Event.element(event).className="cnnSelected";}catch(e){}
try
{if($("summaryList_"+Event.element(event).id)!=null)
{$("summaryList_"+i).hide();setI(Event.element(event).id);new Effect.Opacity("summaryList_"+i,{from:1,to:1,duration:0});$('catHeading').innerHTML="All "+$(i).innerHTML+" Videos";$("summaryList_"+i).show();}
else
{setAjaxUpdate(true);setTmpI(i);new Effect.Opacity("summaryList_"+i,{from:.5,to:.5,duration:0});setI(Event.element(event).id);setAjaxResponse(event);}
if(i.indexOf('branding')>-1)
{$('catHeading').innerHTML=Event.element(event).innerHTML+" Videos";$$('#section_AllCatVids .moreStoriesLink')[0].innerHTML='<a href="'+Event.element(event).getAttribute("href")+'"> See All Episodes of '+Event.element(event).innerHTML;}
else
{$('catHeading').innerHTML="All "+Event.element(event).innerHTML+" Videos";$$('#section_AllCatVids .moreStoriesLink')[0].innerHTML='<a href="'+Event.element(event).getAttribute("href")+'"> See All '+Event.element(event).innerHTML+' Videos';}}
catch(e){}
return false;}
this.init=function()
{setCatID(100);setI(100);var newID='summaryList_100';$('summaryList0').setAttribute("id",newID);$$('#section_vidsByCat a').each(function(value,index){if(index!=0)
Event.observe(value,'click',function(event){control(event);Event.stop(event);});}.bind(this));};return this;}
try
{if($('section_vidsByCat')){var videoCats=new videoCatController().init();}}
catch(e){}

var popularVidsController=function()
{var currentIndex=0;var slider=null;var pageItems=[];var pageHeight=0;var tmpPageHeight=0;var mainRowHeight=0;var loaded=0;var processing=0;function setPageHeight(n){pageHeight=n;}
function setTmpPageHeight(n){tmpPageHeight=n;}
function setCurrentIndex(n){currentIndex=n;}
function setMainRowHeight(n){mainRowHeight=n;}
function setProcessing(n){processing=n;}
function setPages()
{var subIndex=0;setTmpPageHeight(0);pageItems=new Array();$$('#section_moreVids li').each(function(obj,i)
{$('section_moreVids').getElementsByTagName('li')[i].style.display="block";setTmpPageHeight(tmpPageHeight+$$('#section_moreVids li')[i].getHeight());if(parseInt(tmpPageHeight)>=parseInt(pageHeight))
{pageItems.push({index1:subIndex,index2:i-1});subIndex=i;setTmpPageHeight($$('#section_moreVids li')[i].getHeight());}
$('section_moreVids').getElementsByTagName('li')[i].style.display="none";});pageItems.push({index1:subIndex,index2:$$('#section_moreVids li').length-1});return pageItems.length;}
function equalizeHeights(tall,short1,margin,short2)
{var offset=0;if(typeof(margin)!="undefined"){offset=margin;}
if(typeof(short2)!="undefined"){offset+=$(short2).getHeight();}
$(short1).style.height=$(tall).getHeight()-offset+"px";}
function popularDHTML()
{if((currentIndex>=0)&&(currentIndex<pageItems.length))
{$('section_moreVids').getElementsByTagName('ul')[0].style.display="none";$$('#section_moreVids li').each(function(obj,i)
{if((i>=pageItems[currentIndex].index1)&&(i<=pageItems[currentIndex].index2)){$('section_moreVids').getElementsByTagName('li')[i].style.display="block";}
else{$('section_moreVids').getElementsByTagName('li')[i].style.display="none";}
Effect.Appear($('section_moreVids').getElementsByTagName('ul')[0],{delay:0,duration:.1});});}}
function wheel(event)
{var delta=0;if(!event)event=window.event;if(event.wheelDelta)
{delta=event.wheelDelta/120;if(window.opera)delta=-delta;}
else if(event.detail)
{delta=-event.detail/3;}
if((delta<0)&&(currentIndex!=(pageItems.length-1))){handle(-1);}
else if((delta>0)&&(currentIndex!=0)){handle(1);}
if(event.preventDefault)event.preventDefault();event.returnValue=false;}
function handle(delta){slider.setValueBy(-delta);}
this.setHeight=function()
{setMainRowHeight($('cnnVidPanel').getHeight());return this;};this.init=function()
{var diff=mainRowHeight-$('cnnVidPanel').getHeight();if(((loaded==0)||(diff>1)||(diff<-1))&&(processing==0))
{setCurrentIndex(0);setProcessing(1);setMainRowHeight($('cnnVidPanel').getHeight());loaded++;if(ie)
{}
else
{}
setPageHeight($('cnnCtrls_prog').getHeight()+56);setPages();$('cnnCtrls_progHandle').style.height=$('cnnCtrls_prog').getHeight()/pageItems.length+"px";popularDHTML();var values=new Array();for(var i=0;i<pageItems.length;i++)
{values.push(i);}
slider=new Control.Slider('cnnCtrls_progHandle','cnnCtrls_progbar',{axis:'vertical',range:$R(0,pageItems.length-1),values:values,onSlide:function(v){try{}catch(err){}},onChange:function(v){try{setCurrentIndex(v);popularDHTML();}catch(err){}}});Event.observe('section_moreVids','DOMMouseScroll',wheel);try{Event.stopObserving('section_moreVids','mousewheel',wheel);}catch(e){}
Event.observe('section_moreVids','mousewheel',wheel);$('cnnCtrls_up').onclick=function(){if(currentIndex!=0)handle(1);};$('cnnCtrls_down').onclick=function(){if(currentIndex!=(pageItems.length-1))handle(-1);};setProcessing(0);}
return this;};return this;}
var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(data)
{for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;}
else if(dataProp)
return data[i].identity;}},searchVersion:function(dataString)
{var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();var ie=BrowserDetect.browser=='Explorer';try
{if($('section_moreVids'))
{var popularVids=new popularVidsController().setHeight();}}
catch(e){}

var cnnVideoStorage=null;function initVideoStorage()
{try{cnnVideoStorage=StorageManager.getInstance().getStorage();cnnVideoStorage.setOnload(videoStorageLoaded);cnnVideoStorage.load();}
catch(e){}}
function videoStorageLoaded()
{var volume=null;try{if(document.cookie.length>0)
{var c_name='videovolume';var c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;var c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;volume=unescape(document.cookie.substring(c_start,c_end));expireCookie(volume);}}}
catch(e){}
if(volume==null)
{volume=getVolumeCookie();}
storeVolume(volume);}
function storeVolume(volume)
{if(cnnVideoStorage){try{var expirationDate=new Date();expirationDate.setDate(expirationDate.getDate()+356);cnnVideoStorage.put('moneyvidvolume',volume.toString(),expirationDate);cnnVideoStorage.save();}
catch(e){}}}
function storeVolumeCookie(val)
{if(document.cookies)
{expireCookie(val);}
storeVolume(val);}
function expireCookie(volume)
{var expirationDate=new Date();expirationDate.setDate(expirationDate.getDate()-1);document.cookie='videovolume='+volume+";expires="+expirationDate.toGMTString()+';path=/';}
function writeStorageInformation(){document.getElementById('containerD').innerHTML='';str="Storage Type: "+cnnVideoStorage.name;var dataSize=0;var storeText='';if(cnnVideoStorage.name=='IEStorage'){storeText=cnnVideoStorage.dataHook.document.getElementById('dataNode').getAttribute('data');if(storeText!=null){dataSize=storeText.length;}else{dataSize=0;}}
else if(cnnVideoStorage.name=='DOMStorage'){storeText=(''+window.globalStorage[document.domain].storage);dataSize+=storeText.length;}
else if(cnnVideoStorage.name=='CookieStorage'){storeText=document.cookie;dataSize+=storeText.length;}
str+="<br>Data Size: "+dataSize;str+="<br>Storage Text: <i> "+storeText+"</i>";document.getElementById('containerD').innerHTML=str;}
function getVolumeCookie()
{var volume=.45;if(cnnVideoStorage){try
{if(cnnVideoStorage.contains('moneyvidvolume'))
{volume=cnnVideoStorage.get('moneyvidvolume');if(volume>1)
{volume=volume*.01;}}
else
{volume=.45;}}
catch(e)
{volume=.45;}}
return volume;}
function can_autostart()
{function _disableWeekendAutoplay()
{return((_isWeekend()==true)&&(_isHomepage()==true))};function _isHomepage()
{try{if(location.pathname.match('homepage.player.html')){return true;}}
catch(e){}
return false;}
function _isWeekend()
{var val=false;try{if(cnnCurrDay.toLowerCase()=='sat'||cnnCurrDay.toLowerCase()=='sun'){val=true;}}catch(e){}
return val;}
var RB=0;var firstvisit=0;if(_cvpSettings.useTurnerRB==true){if(location.hostname.match('turner.com')){RB=1;}}
if(typeof top.adHeight!='undefined'){if(top.adHeight==90){RB=1;}}
if(location.pathname.match('markets.player.html')){RB=0;}
if(document.cookie.match("cnnmoneyvideo")){firstvisit=0;}
else{document.cookie="cnnmoneyvideo=autoplay";firstvisit=1;}
if(RB==0&&firstvisit==1&&_disableWeekendAutoplay()==false)
{return true;}
return false;}
function load_house_sync_ad()
{try
{var compSize=_cvpSettings.sync_ad_width+'x'+_cvpSettings.sync_ad_height;var adTag=_cvpSettings.house_sync_ad;top.document.getElementById(_cvpSettings.sync_ad_div_id).innerHTML='<iframe src="'+adTag+'" id="companion'+compSize+'" width="'+_cvpSettings.sync_ad_width+'" height="'+_cvpSettings.sync_ad_height+'" '+'marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>';}
catch(e){}}
function load_sync_ad()
{try
{var compSize=_cvpSettings.sync_ad_width+'x'+_cvpSettings.sync_ad_height;var adTag=document.getElementById(_cvpSettings.id).getCompanionAd(compSize);top.document.getElementById(_cvpSettings.sync_ad_div_id).innerHTML='<iframe src="'+adTag+'" id="companion'+compSize+'" width="'+_cvpSettings.sync_ad_width+'" height="'+_cvpSettings.sync_ad_height+'" '+'marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>';}
catch(e){}}
function playVideo(id)
{var index=_cvpPlaylist.getIndex(id);if(index==null)
{return;}
player.emptyQueue();player.play(id);_cvpPlaylist.pointer=index;_cvpPlaylist.queueVideos(index+1);if(typeof(updatePlaylist)=="function")
{updatePlaylist(id);}}
function log(s)
{try
{var logOutput=top.document.getElementById('logger');logOutput.innerHTML=s+'<br/>'+logOutput.innerHTML;}
catch(e){}}
function getSectionVideos(xmlURI,callback,async)
{var conn=getXMLHTTPRequest();if(conn==null){return;}
if(async==false)
{conn.open("GET",xmlURI,async);conn.send(null);callback(conn.responseText,conn.status);}
else
{conn.onreadystatechange=function(){if(conn.readyState==4){callback(conn.responseText,conn.status);}};conn.open("GET",xmlURI,async);conn.send(null);}}
function getSectionVideosLoaded(responseText)
{if(_cvpSettings.videoList.length>=_cvpSettings.maxVideos)
{return;}
var XML_content=getDocRoot(responseText);var XML_top_node=XML_content.getElementsByTagName("video");var numCount=_cvpSettings.videoList.length;for(var i=0;i<XML_top_node.length;i++)
{try
{var videoId=XML_top_node[i].getElementsByTagName("id")[0].childNodes[0].nodeValue;var headline=XML_top_node[i].getElementsByTagName("headline")[0].childNodes[0].nodeValue;if(videoId!=''&&headline!='')
{_cvpSettings.videoList.push({'id':videoId,'headline':headline});}}
catch(e){}}}
function getDocRoot(text_string)
{var doc=null;if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(text_string);}
else{var parser=new DOMParser();doc=parser.parseFromString(text_string,"text/xml");}
return doc;}
function getXMLHTTPRequest()
{var _http=null;try{_http=new XMLHttpRequest();}
catch(e){try{_http=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{_http=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){}}}
return _http;}
function content_error_handler(error_message,video_id)
{if(_cvpPlaylist.list.length>_cvpPlaylist.pointer)
{player.play(_cvpPlaylist.list[_cvpPlaylist.pointer+1].id);_cvpPlaylist.queueVideos(_cvpPlaylist.pointer+2);}}
function no_flash_error()
{var noFlashImage='';switch(_cvpSettings.width)
{case 576:noFlashImage='http://i2.cdn.turner.com/money/.element/img/4.0/video/576x324_no_flash.gif';break;case 384:noFlashImage='http://i2.cdn.turner.com/money/.element/img/4.0/video/384x216_no_flash.gif';break;case 300:noFlashImage='http://i2.cdn.turner.com/money/.element/img/4.0/video/300x168_no_flash.gif';break;default:break;}
var s='<a href="http://get.adobe.com/flashplayer/" target="_blank"><img src="'+noFlashImage+'" width="'+_cvpSettings.width+'" height="'+_cvpSettings.height+'" alt="" border="0"></a>';$(_cvpSettings.div_id).parentNode.innerHTML=s;}
function is_flash_compliant()
{if(typeof CVP.swfobject=='object'&&!(CVP.swfobject.hasFlashPlayerVersion("9.0")))
{return false;}
return true;}
function ingest_old_video_format()
{var videoList=[];for(var i=0;i<vidConfig.videoArray.length;i++)
{if(typeof(vidConfig.videoArray[i])!="object")
{var video_json=vidConfig.videoArray[i];if(video_json.indexOf(".json")>0)
{video_json=video_json.replace('/video/','video/');video_json=video_json.replace('.json','');videoList.push({'id':video_json});}}}
if(videoList.length>0)
{vidConfig.videoArray=videoList;}}
function override_omniture_fields(video_id,o)
{cnnOmniture_prop17='';cnnOmniture_prop14='';cnnOmniture_prop24='';if(video_id.match('fsb')||video_id.match('smallbusiness'))
{cnnOmniture_prop17='Video: '+o.headline;}
if(o.source=='CNNMoney')
{cnnOmniture_prop14='CNN';}
else if(o.source=='Fortune')
{cnnOmniture_prop14='FORT';}
if(location.pathname.match("smallbusiness.homepage.player.html"))
{cnnOmniture_prop24='smallbusiness homepage';}
else if(location.pathname.match("homepage.player.html"))
{cnnOmniture_prop24='cnnmoney homepage';}
else if(location.pathname.match("smallbusiness.makeover.player.html"))
{cnnOmniture_prop24='smallbusiness makeover';}
else if(location.pathname.match("fortune.player.html"))
{cnnOmniture_prop24='fortune homepage';}
else if(top.location.pathname.match("data/premarket"))
{cnnOmniture_prop24='premarkets';}
else if(top.location.pathname.match("data/afterhours"))
{cnnOmniture_prop24='afterhours';}
else if(location.pathname.match("story.player.html"))
{cnnOmniture_prop24='story player';}
else if(location.pathname.match("news/specials/assignment_detroit"))
{cnnOmniture_prop24='detroit homepage';}
else
{cnnOmniture_prop24='videoclip';}}

var _cvpPlaylist={list:[],pointer:0,getIndex:function(id)
{for(var i=0;i<this.list.length;i++)
{if(this.list[i].id==id)
{return i;}}
return null;},load:function(list)
{var playlist=[];if(list.length==1)
{this.list=list;return;}
if(this.list.length>=_cvpSettings.maxVideos)
{return;}
var temp_list=[];for(var i=0;i<list.length;i++)
{temp_list[i]=list[i].id;}
playlist.push(list[0]);for(var i=1;i<temp_list.length;i++)
{var found_dup=false;for(var j=0;j<playlist.length;j++)
{if(temp_list[i]==playlist[j].id)
{found_dup=true;break;}}
if(found_dup==false)
{playlist.push(list[i]);}}
this.list=playlist;},nextItem:function()
{if(_cvpPlaylist.pointer<_cvpPlaylist.list.length-1)
{_cvpPlaylist.pointer++;}},queueVideos:function(start)
{for(var i=start;i<this.list.length;i++)
{try
{player.queue(this.list[i].id);}
catch(e){}}},remove:function(video_id)
{var new_list=[];for(var i=0;i<this.list.length;i++)
{if(this.list[i].id!=video_id)
{new_list.push(this.list[i]);}}
this.load(new_list);},setPointer:function(videoId)
{var pointer=_cvpPlaylist.getIndex(videoId);this.pointer=pointer;}};

function init_cvp_player()
{if(top.location!=self.location){top.location.replace(self.location)}
if(!is_flash_compliant())
{no_flash_error();try
{popularVids.init();}
catch(e){}
return;}
try
{_cvpSettings.videoList=vidConfig.videoArray;_cvpSettings.autostart=(typeof(vidConfig.autostart)=='undefined')?_cvpSettings.autostart:vidConfig.autostart;_cvpSettings.defaultSection=(typeof(vidConfig.defaultSection)=='undefined')?null:vidConfig.defaultSection;_cvpSettings.maxVideos=(typeof(vidConfig.maxVideos)=='undefined')?_cvpSettings.maxVideos:vidConfig.maxVideos;_cvpSettings.useTurnerRB=(typeof(vidConfig.useTurnerRB)=='undefined')?_cvpSettings.userTurnerRB:vidConfig.useTurnerRB;_cvpSettings.muteOnAutostart=(typeof(vidConfig.muteOnAutostart)=='undefined')?_cvpSettings.muteOnAutostart:vidConfig.muteOnAutostart;_cvpSettings.name=(typeof(vidConfig.name)=='undefined')?_cvpSettings.name:vidConfig.name;if(_cvpSettings.defaultSection!=null)
{getSectionVideos(_cvpSettings.defaultSection,getSectionVideosLoaded,false);}
_player.flashVars.autostart=_cvpSettings.autostart;_player.flashVars.context=_cvpSettings.name;_cvpPlaylist.load(_cvpSettings.videoList);player.embedSWF(_cvpSettings.div_id);}
catch(e){}}
var _cvpSettings={id:'cvp_1',name:'bvp',width:576,height:360,video_height:324,div_id:'cnnVPFlashLargeContainer',sync_ad_width:336,sync_ad_height:280,sync_ad_div_id:'cnnVPAd',player_ready:false,house_sync_ad:'http://ads.cnn.com/html.ng/site=cnn_money&cnn_money_pagetype=money_video&cnn_money_position=video_336x280_house&cnn_money_rollup=house&page.allowcompete=yes&params.styles=fs&page.allowcompete=yes',videoList:[],autostart:true,defaultSection:null,maxVideos:7,useTurnerRB:false,muteOnAutostart:false};var _player={id:_cvpSettings.id,width:_cvpSettings.width,height:_cvpSettings.height,flashVars:{context:_cvpSettings.name,autostart:_cvpSettings.autostart},embed:{containerSwf:'http://i.cdn.turner.com/money/.element/apps/cvp/4.0/swf/cnn_money_video.swf',expressInstallSwf:'http://i.cdn.turner.com/money/.element/apps/cvp/4.0/swf/expressInstall.swf',options:{quality:'high',bgcolor:'#000000',allowFullScreen:'true',allowScriptAccess:'always',wmode:'transparent'}},onPlayerReady:function()
{this.play(_cvpPlaylist.list[0].id);_cvpPlaylist.queueVideos(1);try{popularVids.init();}
catch(e){}
_cvpSettings.player_ready=true;},onAdError:function(message)
{},onAdPrerollUrl:function(videoId,adUrl)
{},onAdPostrollUrl:function(videoId,adUrl)
{},onAdStarted:function(token)
{load_sync_ad();},onAdFinished:function(token)
{},onAdSensitive:function(videoId)
{},onContentBegin:function(videoId,json)
{var json=this.getContentEntry(videoId);var o=eval('('+json+')');override_omniture_fields(videoId,o);videoId=videoId.replace("/video/","video/");_cvpPlaylist.setPointer(videoId);},onContentBuffering:function()
{},onContentDataLoaded:function(videoId)
{},onContentPlay:function()
{},onContentPlayHead:function()
{},onContentStop:function(videoId)
{},onContentPause:function(videoId,paused)
{},onContentCompleted:function()
{},onContentVolume:function(muted,volume)
{},onContentError:function(videoId,error_message)
{},onVideoTrackingAdClick:function(videoId,url)
{},onVideoTrackingProgress:function(videoId,percent)
{},onVideoTrackingLifetime:function(seconds)
{},onVideoTrackingFullscreen:function(videoId,fullscreen)
{},onVideoTrackingMuted:function(videoId,muted)
{},onVideoTrackingPaused:function(videoId,paused)
{},onVideoTrackingCompleted:function(videoId)
{},onVideoTrackingReplay:function(videoId)
{},onVideoTrackingPlay:function(videoId)
{},onContentTrackingAdCountdown:function(secs)
{}};_cvpSettings.name=(typeof(vidConfig.name)=='undefined')?_cvpSettings.name:vidConfig.name;var player=new CVP(_player);init_cvp_player();

