// JavaScript Document//window.onerror=function(){ return false; }function params(wut,qp,dflt){ dflt=(dflt==null)?'':dflt; try{r=unescape(wut.match(new RegExp(qp+"=+([^&;]*)"))[1]);}catch(qp){r=dflt;} return r; }function gid(_id){ return document.getElementById(_id); }function inner(_gid,_text){ gid(_gid).innerHTML=_text; }function setFSP(_fspobj){player=new fspObj();for (v in vars){ eval("player."+v+"=vars."+v); }for (f in _fspobj){ eval("player."+f+"=_fspobj."+f); }if (_fspobj.width!=null && _fspobj.height==null){ player.height=Math.round(parseFloat(_fspobj.width)*.75);if (showControls){ player.height=parseFloat(player.height)+30; } else { player.controlViewer='false'; }}try{ gid('FSPFRAME').style.width=player.width+'px'; gid('FSPFRAME').style.height=player.height+'px'; }catch(ff){}try{_showAds=(params(document.cookie,'noAds','false')=='false' && params(location.search,'ads','true')=='true' && player.adType!='false');player.adType=(showAds)?((_showAds)?'default':'false'):'false';player.controlViewer=params(location.search,'controls',player.controlViewer);}catch(e){}if (!showPostDiv){ player.autoplay='true:false'; }else{player.autoplay='false:false';}player.display=function(){ inner('fspdiv',player.render()); }}vars={ fspRoot:'http://bventertainment.go.com/tv/buenavista/regisandkelly/FSPRoot', movie:'http://bventertainment.go.com/tv/buenavista/regisandkelly/FSPRoot/fspContainer.swf', width:'400', height:'330', session:'fsp_'+Math.round(Math.random()*1000), start:0, movieViewer:'default', controlViewer:'default', bgColor:'E3E6E6', controlBgColor:'3F6C8A', controlForeColor:'ffffff', controlTextColor:'ffffff', adType:'false', useFS:'true', autoplay:'true:false' }var player; _playlist='<fsp><PLAYLIST><CLIP><VIDEO STREAMURL=""></VIDEO></CLIP></PLAYLIST></fsp>';var showPostDiv=true; var clipScrollTo=null; var doAutoPlay=true; var clipAutoPlay=false; var playerhitcat="flashplayer"; var showControls=true;var videos=[];var showAds=false; var firstClipOnly=false; var doSynchFrame=false; var playlistURL=""; var linkVideos=false; var doAlternateAds=false;var useProgressive=true;function getPlaylist(list,index){try{ gid('postfspdiv').style.display='none'; }catch(pfs){}gid('fspdiv').style.display='block';createPlaylist(list);//player.stop();player.getPlaylist(_playlist,index,'true');}function fspContainer_DoFSCommand(command){ eval(command); }document.writeln('<script language="VBScript">');document.writeln('sub fspContainer_FSCommand(ByVal command, ByVal args)');document.writeln('call fspContainer_DoFSCommand(command, args)');document.writeln('end sub');document.writeln('</script>');function playbackDone(){}function playlistStop(){player.getPlaylist(_playlist,0);}// gid('fspdiv').style.display='none'; gid('postfspdiv').style.display='block'; customPost(); }function customPost(){}function doPlayer(){try{ hitbox.fspMediaConnector=function(method,flv,currentPosition,totalLength,accounted){ hitIt(method,"/"+flv); }} catch(h){}player.addListener('playbackDone', 'playbackDone');player.addListener('playlistStop', 'playlistStop');player.pageFinished();if (playlistURL!=""){ player.getPlaylist(playlistURL,0); }else if (clipAutoPlay){ getClip(); }else if (firstClipOnly){ getClip(videos[0]); }else if (doAutoPlay){ player.getPlaylist(_playlist, startIndy, 'true'); /*player.play();*/ }}startIndy=0;function displayer(){player.display();connie=params(location.search,'clip','null').toLowerCase();if (connie!='null'){ clipAutoPlay=true; } else { createPlaylist(videos); }//window.onload=doPlayer;window.onload=function(){if (doSynchFrame){ player.createSynchFrame("synch","synchIF"); }setTimeout("doPlayer()",1500);}window.onrefresh=function(){ player.removeListener('playbackDone'); player.removeListener('playlistStop'); player.removeListener('onMute'); }}function createPlaylist(_listarray){_playlist='<fsp><PLAYLIST>';for (l in _listarray){if (typeof(_listarray[l])=='string'){_playlist+='<CLIP CATEGORY="'+playerhitcat+'" TITLE="" HITCAT="'+playerhitcat+'"><VIDEO '+((useProgressive)?'PROGURL':'STREAMURL')+'="'+_listarray[l].replace(/\.flv/gi,'')+'.flv" LENGTH=""></VIDEO></CLIP>\n';} else {_playlist+='<CLIP CATEGORY="'+playerhitcat+'" TITLE="'+_listarray[l].text.replace("\"","%22").replace("'","%27")+'" HITCAT="'+playerhitcat+'"><VIDEO '+((_listarray[l].id!=null)?'ID="'+_listarray[l].id+'"':'')+' '+((useProgressive)?'PROGURL':'STREAMURL')+'="'+_listarray[l].url.replace(/\.flv/gi,'')+'.flv" LENGTH=""></VIDEO></CLIP>\n';}}_playlist+='</PLAYLIST></fsp>';}function getClip(connie){try{ gid('postfspdiv').style.display='none'; }catch(e){}gid('fspdiv').style.display='block'; startIndy=0;if (connie==null){ connie=params(location.search,'clip','0').toLowerCase(); }if (isNaN(parseFloat(connie))){ connie=connie.toLowerCase();for (i=0; i<videos.length; i++){if (typeof(videos[i])=='string'){if (videos[i].toLowerCase().indexOf(connie.toLowerCase())!=-1){ startIndy=i; break; }} else {if (videos[i].text.toLowerCase()==connie || videos[i].url.toLowerCase().indexOf(connie)!=-1){ startIndy=i; break; }}}} else { startIndy=parseFloat(connie); }setTimeout('getPlaylist([videos[startIndy]],0)',300);player.addListener('playlistStop', 'playlistStop');if (clipScrollTo!=null){ scrollTo(0,clipScrollTo); }}function nullCheck(_obj,_default){ return (_obj==null)?_default:_obj; }//{ pl_bgcolor:"#E5E8E8", pl_bordercolor:"#E5E8E8", pl_acolor:"#295266", pl_borderbottomcolor:"#587281", pl_width:"145px", pl_hoverbgcolor:"#d5d8d8" }function createMenu(plobj){plobj.pl_width=nullCheck(plobj.pl_width,(parseFloat(player.width)-4)+"px");plobj.pl_bgcolor=nullCheck(plobj.pl_bgcolor,"#E5E8E8");plobj.pl_bordercolor=nullCheck(plobj.pl_bordercolor,"#E5E8E8");plobj.pl_acolor=nullCheck(plobj.pl_acolor,"#295266");plobj.pl_borderbottomcolor=nullCheck(plobj.pl_borderbottomcolor,"#587281");plobj.pl_hoverbgcolor=nullCheck(plobj.pl_hoverbgcolor,"#d5d8d8");document.writeln('<style>\#playlistdiv{ border:1px solid '+plobj.pl_bordercolor+'; background:'+plobj.pl_bgcolor+'; margin-bottom:6px; }\#playlistdiv a{ color:'+plobj.pl_acolor+' !important; text-decoration:none; }\#playlistdiv a:hover{ text-decoration:none; }\#playlistdiv div{ border-bottom:1px solid '+plobj.pl_borderbottomcolor+'; }\#playlistdiv a, #playlistdiv div{ width:'+plobj.pl_width+'; min-height:16px; line-height:16px; font:bold 11px arial; }\#playlistdiv div{ padding:1px; }\#playlistdiv a:hover, #playlistdiv div:hover{ background:'+plobj.pl_hoverbgcolor+'; }\#playlistdiv ul{ margin:0px 0px 0px 17px; padding:0px; }\</style>');document.writeln('<div id="playlistdiv" style="width:'+(parseFloat(plobj.pl_width)+2)+'px; text-align:left;">');for (v in videos){ document.writeln('<div><a href="javascript:getPlaylist(videos,'+v+')"><ul><li>'+videos[v].text+'</li></ul></a></div>'); }document.writeln('</div>');}document.writeln('<style>#postfspdiv{ display:none; }</style>');