var C4VIDEO=function(){var B=C4.DOM.$;var A={serviceData:{videoplayer:{conf:{"@alternativeShell":""}},"@status":"noData"},player:{customTargetDivId:""}};var H={player:function(){var J={};J.shellPath=(A.serviceData.videoplayer.conf["@alternativeShell"]!=="")?A.serviceData.videoplayer.conf["@alternativeShell"]:"media/global/swf/brightcove/vipShell.swf";J.width=A.serviceData.videoplayer.conf["@playerWidth"];J.height=A.serviceData.videoplayer.conf["@playerHeight"];J.flashVersion="8.0.0";J.wmode=(A.serviceData.videoplayer.conf["@preloadBgColor"]!=="")?"":"transparent";J.bgcolor=(A.serviceData.videoplayer.conf["@preloadBgColor"]!=="")?A.serviceData.videoplayer.conf["@preloadBgColor"]:"#000000";J.targetDivId=(A.player.customTargetDivId!=="")?A.player.customTargetDivId:"c4VideoPlayer";J.embedId="c4VideoEmbed";return J},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"}};var C={inPopUp:false,moo:!!window.MooTools};var F={divId:function(){return H.player().targetDivId},shellPath:function(){return H.player().shellPath},wmode:function(){return H.player().wmode},bgcolor:function(){return H.player().bgcolor},videoConfigObject:function(){return(A.serviceData["@status"]!=="error")?A.serviceData:false},omnitureValue:function(){var J=(C.inPopUp)?window.opener:window;var K="";if(typeof J.c4props==="function"){K=J.c4props("vertical")}return{s_account:(typeof J.s_account!=="undefined")?J.s_account:false,s_prop22:(typeof K!=="undefined")?K:false,mypage:(typeof J.mypage!=="undefined")?J.mypage:false}},popUpLinks:function(){return D.collection()}};var E={showVideoConfig:function(){},updatePlayerProperties:function(){},fail:function(){},decodeAndReload:function(){},getNewPlayerConfig:function(){},togglePanel:function(){},init:function(){}};var G={mediaPanel:{init:function(){var J=new SWFObject(H.player().shellPath,H.player().embedId,H.player().width,H.player().height,H.player().flashVersion,H.player().bgcolor);J.addParam("wmode",H.player().wmode);J.useExpressInstall("media/global/js/lib/swfobject1-5/expressinstall.swf");J.write(H.player().targetDivId)}}};var D={collection:function(){var L=[];var J=document.getElementsByTagName("A");for(var K=0;K<J.length;K++){if(typeof J[K].href!=="undefined"){if(J[K].href.indexOf(H.popUp.pagePath)!==-1){L[L.length]=J[K]}}}return L},init:function(){var J=this.collection();for(var K=0;K<J.length;K++){C4.BOM.addEvent(J[K],"click",function(L){C4.BOM.stopEvent(L);var M=window.open(this.href,H.popUp.windowName,H.popUp.properties);if(window.focus){M.focus()}})}}};var I=function(){D.init();var J=(A.serviceData["@status"]!=="noData")?true:false;var K=(A.serviceData["@status"]!=="error")?true:false;if((J)&&(K)){if(B(H.player().targetDivId)){if(C.inPopUp){G.mediaPanel.init();C4.POPUP.resizeToInner(parseInt(A.serviceData.videoplayer.conf["@playerWidth"],10),parseInt(A.serviceData.videoplayer.conf["@playerHeight"],10))}else{G.mediaPanel.init()}}else{return false}}};C4.BOM.addDOMLoadEvent(I);return{PUBLIC:A,FLAG:C,DEBUG:E,GET:F,init:I}}();