
var C4VIDEO=function(){var $=C4.DOM.$;var PUBLICDATA=[];var PUBLIC={playerNum:0,TOTALPLAYERS:0,serviceData:{"videoplayer":{"conf":{"@alternativeShell":""}},"@status":"noData"},player:{customTargetDivId:""}};var CONFIG={player:function(){var obj={};obj.shellPath=(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf&&(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@alternativeShell']!==""))?PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@alternativeShell']:"/media/global/swf/brightcove/vipShell.swf";obj.width=(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf&&(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@playerWidth']))?PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@playerWidth']:"";obj.height=(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf&&(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@playerHeight']))?PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@playerHeight']:"";obj.flashVersion="8.0.0";obj.wmode=(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf&&(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@preloadBgColor']!==""))?"":"transparent";obj.bgcolor=(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf&&(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@preloadBgColor']!==""))?PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@preloadBgColor']:"#000000";obj.targetDivId=(PUBLICDATA[PUBLIC.playerNum]["@div"]!=="")?PUBLICDATA[PUBLIC.playerNum]["@div"]:"c4VideoPlayer";obj.embedId="c4VideoEmbed"+PUBLIC.playerNum;return obj;},popUp:{queryStringName:"c4VideoConfig",windowName:"c4VideoPlayerPop",properties:"height=150,width=100,toolbar=0,menubar=0,location=0,status=1,scrollbars=0,resizable=0",pagePath:["/services/videoplayer/popup.jsp?name","vip_popup."]}};var FLAG={inPopUp:false,moo:!!window.MooTools};var GET={divId:function(){return CONFIG.player().targetDivId;},shellPath:function(){return CONFIG.player().shellPath;},wmode:function(){return CONFIG.player().wmode;},bgcolor:function(){return CONFIG.player().bgcolor;},videoConfigObject:function(){var current=PUBLIC.playerNum;return(PUBLICDATA[current]["@status"]!=="error")?PUBLICDATA[current]:false;},omnitureValue:function(){var w=(FLAG.inPopUp)?window.opener:window;var s_prop22="";if(w.c4props){s_prop22=w.c4props("vertical");}
if(PUBLIC.playerNum<PUBLIC.TOTALPLAYERS-1){PUBLIC.playerNum++;PLAYER.mediaPanel.initMultiplePlayers(CONFIG.player());}
return{s_account:(typeof w.s_account!=="undefined")?w.s_account:false,s_prop22:(typeof s_prop22!=="undefined")?s_prop22:false,mypage:(typeof w.mypage!=="undefined")?w.mypage:false};},popUpLinks:function(){return LINKS.collection();},returnAdURL:function(){var w=(FLAG.inPopUp)?window.opener:window;var AdURL=w.OAS_url+'adstream_sx.ads/'+w.OAS_sitepage+'/'+w.OAS_rns+'@'+'x69?';return AdURL;},returnPlayerURL:function(){return document.location.href;}};var DEBUG={showVideoConfig:function(){},updatePlayerProperties:function(){},fail:function(){},decodeAndReload:function(){},getNewPlayerConfig:function(){},togglePanel:function(){},init:function(){}};var PLAYER={mediaPanel:{init:function(){var so=new SWFObject(CONFIG.player().shellPath,CONFIG.player().embedId,CONFIG.player().width,CONFIG.player().height,CONFIG.player().flashVersion,CONFIG.player().bgcolor);so.addParam("wmode",CONFIG.player().wmode);so.useExpressInstall('/media/global/js/lib/swfobject1-5/expressinstall.swf');so.write(CONFIG.player().targetDivId);},initMultiplePlayers:function(config){var so=new SWFObject(config.shellPath,config.embedId,config.width,config.height,config.flashVersion,config.bgcolor);so.addParam("wmode",config.wmode);so.useExpressInstall('/media/global/js/lib/swfobject1-5/expressinstall.swf');so.write(config.targetDivId);}}};var LINKS={collection:function(){var c=[];var links=document.getElementsByTagName("A");for(var i=0;i<links.length;i++){if(typeof links[i].href!=="undefined"){for(var j=0;j<CONFIG.popUp.pagePath.length;j++){if(links[i].href.indexOf(CONFIG.popUp.pagePath[j])!==-1){c[c.length]=links[i];}}}}
return c;},init:function(){var links=this.collection();for(var i=0;i<links.length;i++){C4.BOM.addEvent(links[i],"click",function(e){C4.BOM.stopEvent(e);var n=window.open(this.href,CONFIG.popUp.windowName,CONFIG.popUp.properties);if(window.focus){n.focus();}});}}};var init=function(){LINKS.init();var dataLoaded=(PUBLIC.serviceData["@status"]!=="noData")?true:false;var dataValid=(PUBLIC.serviceData["@status"]!=="error")?true:false;var dataObjs=document.body.innerHTML.match(/C4VIDEO.PUBLIC.serviceData[^<|\.]?=[^<]+"videoplayer"[^<]+/gi);if(dataObjs!==null){var customElementID="c4VideoPlayer";PUBLIC.TOTALPLAYERS=dataObjs.length;for(var i=0;i<dataObjs.length;i++){var uniqueEmbedId=dataObjs[i].match(/C4VIDEO.PUBLIC.player.customTargetDivId([^<].*?)+/gi);if(uniqueEmbedId!==null){uniqueEmbedId=uniqueEmbedId.toString();customElementID=uniqueEmbedId.substring(uniqueEmbedId.indexOf('"')+1,uniqueEmbedId.indexOf(";")-1);}
PUBLICDATA.push(eval('('+dataObjs[i].substring(dataObjs[i].indexOf("{"),dataObjs[i].indexOf(";")-1)+',"@div":"'+customElementID+'"})'));}
dataObjs=null;}
if((dataLoaded)&&(dataValid)){if($(CONFIG.player().targetDivId)){if(FLAG.inPopUp){PLAYER.mediaPanel.init();C4.POPUP.resizeToInner(parseInt(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@playerWidth'],10),parseInt(PUBLICDATA[PUBLIC.playerNum].videoplayer.conf['@playerHeight'],10));}else{PLAYER.mediaPanel.initMultiplePlayers(CONFIG.player());}}else{return false;}}};C4.BOM.addDOMLoadEvent(init);return{PUBLICDATA:PUBLICDATA,PUBLIC:PUBLIC,FLAG:FLAG,DEBUG:DEBUG,GET:GET,init:init};}();
