if(typeof(Oggifinogi)!="object"){Oggifinogi={}};Oggifinogi.Timer=function(zc,zb,za){var xe=this;var xd=zb;var xc=true;var xb=null;var xa=zc;this.get_interval=function(){return xd};this.set_interval=function(zd){if(xd!==zd){xd=zd;if(xe.IsRunning()){xe.Stop();xe.Start()}}};this.get_enabled=function(){return xc};this.set_enabled=function(zd){xc=zd};this.add_tick=function(zd){xa=zd;if(xc&&xd!=null){xe.Start()}};this.remove_tick=function(zd){xa=null};this.Start=function(){xe.Stop();xb=window.setInterval(fa,xd)};this.Stop=function(){if(xe.IsRunning()){window.clearInterval(xb);xb=null}};this.IsRunning=function(){return xb!=null};if(za){this.Start()};function fa(){if(xc){xa(xe)}}};if(typeof(Oggifinogi.Net)!="object"){Oggifinogi.Net={}};Oggifinogi.ScriptLoader=function(id,zb,za){var xd=id;var xc=zb;var xb=this;var xa=new Oggifinogi.Timer(fc,100);if(typeof(loadingOggiPlayerScript)=="undefined"){loadingOggiPlayerScript={}};this.Load=function(){if(fa()){xa.Start();return};if(window.isIframe){if(document.getElementById(xd)!=null){return xb.ScriptLoaded()}}else{if(top.document.getElementById(xd)!=null){return xb.ScriptLoaded()}};loadingOggiPlayerScript[xd]=true;var xf;if(window.isIframe){xf=document.createElement("script")}else{xf=top.document.createElement("script")};xf.id=xd;xf.type="text/javascript";xf.src=xc;if(window.isIframe){document.getElementsByTagName("HEAD")[0].appendChild(xf)}else{top.document.getElementsByTagName("HEAD")[0].appendChild(xf)};var xe=new Oggifinogi.Timer(fd,100,true)};this.ScriptLoaded=function(){};function fa(){return typeof(loadingOggiPlayerScript)!="undefined"&&loadingOggiPlayerScript[xd]};function fb(){delete loadingOggiPlayerScript[xd];xb.ScriptLoaded()};function fc(){if(!fa()){xa.Stop();fb()}};function fd(zc){for(var i=0;i<za.length;i++){if(eval("typeof("+za[i]+")")=="undefined"){return}};zc.Stop();fb()}};Oggifinogi._BrowserDetect=function(){var xa=this;this.init=function(){xa.browser=xa.searchString(xa.dataBrowser)||"An unknown browser";xa.version=xa.searchVersion(navigator.userAgent)||xa.searchVersion(navigator.appVersion)||"an unknown version";xa.OS=xa.searchString(xa.dataOS)||"an unknown OS"};this.searchString=function(za){for(var i=0;i<za.length;i++){var xc=za[i].string;var xb=za[i].prop;xa.versionSearchString=za[i].versionSearch||za[i].identity;if(xc){if(xc.indexOf(za[i].subString)!=-1){return za[i].identity}}else if(xb){return za[i].identity}}};this.searchVersion=function(za){var xb=za.indexOf(xa.versionSearchString);if(xb==-1){return};return parseFloat(za.substring(xb+xa.versionSearchString.length+1))};this.dataBrowser=[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.userAgent,subString:"AppleWebKit",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.vendor,subString:"Camino",identity:"Camino"},{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"}];this.dataOS=[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};Oggifinogi.BrowserDetect=new Oggifinogi._BrowserDetect();Oggifinogi.BrowserDetect.init();Oggifinogi.AndoFlashRequestSender=function(zd,zc,zb,za){var xj=zd;var xi="flashSenderDiv";var xh=zc;var xg="runSpotRequestSender";var xf;if(za!=null){xg=za};var xe={};var xd=new Array();var xc=new Oggifinogi.Timer(fk,100,true);var xb=new Oggifinogi.Timer(fl,50,false);var xa=this;this.GetRequestQueue=function(){return xe};this.Init=function(){fd()};this.Send=function(id,zm,zl,zk,zj,zi,zh,zg,zf,ze){var xk=id;xd.push(new Oggifinogi.Net.FlashRequestInfo(xk,zm,zl,zk,zj,zi,zh,zg,zf,ze));fk()};this.Abort=function(ze){fe().abort(ze)};this.AbortAll=function(){if(typeof(fe().abortAll)=="function"){fe().abortAll()}};this.GetResponseData=function(zf,ze){return fg.apply(this,arguments)};function fd(){if(fe()==null){if(document.getElementById(xi)==null){var xm=document.createElement("div");xm.id=xi;xm.style.cssText="position:absolute;left:-10px;top:-10px;width:0;height:0";var xl=document.body;xl.insertBefore(xm,xl.childNodes[0])};var xk;if(Oggifinogi.BrowserDetect.browser=="Explorer"){xk=fb(xh)}else{xk=fa(xh)};fc(xk,1,1,xg);document.getElementById(xi).appendChild(xk);window[xg]=xk}};function fe(){return document.getElementById(xg)};function ff(ze){try{if(typeof(fe())!="undefined"&&fe()!=null&&typeof(fe().send)=="function"&&fe().send(ze.Id,ze.Method,ze.Url,ze.Body,ze.Timeout,ze.Headers)){if(xj==true){if(ze.Handler!=null){xe[ze.Id]=ze}}else{if(fj()==0){var xm=fh();if(xm==200){var xl=fg(fi(),ze.ResponseContentType);if(ze.Handler!=null)ze.Handler(xl,ze.UserContext)}else{if(ze.FailedHandler!=null)ze.FailedHandler(xm,ze.UserContext)}}else{if(ze.FailedHandler!=null)ze.FailedHandler(null,ze.UserContext)}};return true};return false}catch(e){var xk=e.toString();if(e.message!=null){xk=e.message};xa.PlayerContext.ReportSender.TrackEvent(7,xk)}};function fg(zf,ze){var xk=null;xk=zf;return xk};function fh(){return fe().getResponseCode()};function fi(){return fe().getResponseText()};function fj(){return fe().getState()};function fk(ze){if(xd.length>0){if(ff(xd[0])){xd.splice(0,1)}}};function fl(ze){if(typeof(fe())!="undefined"&&fe()!=null&&typeof(fe().connect)=="function"){fe().connect(xf);ze.Stop()}}};function fa(za){var xa=document.createElement("embed");xa.setAttribute("src",za);xa.setAttribute("type","application/x-shockwave-flash");return xa};function fb(za){var xb=document.createElement("object");xb.setAttribute("type","application/x-shockwave-flash");if(Oggifinogi.BrowserDetect.browser=="Explorer"){if(Oggifinogi.BrowserDetect.version<8||(document.documentMode!=null&&document.documentMode<8)){xb=document.createElement('<object type="application/x-shockwave-flash"></object>')};var xa=document.createElement("param");xa.setAttribute("name","movie");xa.setAttribute("value",za);xb.appendChild(xa)}else{xb.setAttribute("data",za)};return xb};function fc(zc,zb,za,id){var xc=["wmode","allowScriptAccess","FlashVars","width","height","id"];var xb=["window","always","isAsync=true",1,1,id];if(Oggifinogi.BrowserDetect.browser=="Explorer"){for(var i=0;i<xc.length;i++){var xa=document.createElement("param");xa.setAttribute("name",xc[i]);xa.setAttribute("value",xb[i]);zc.appendChild(xa)}};for(var i=0;i<xc.length;i++){zc.setAttribute(xc[i],xb[i])}};Oggifinogi.Net.FlashRequestInfo=function(id,zi,zh,zg,zf,ze,zd,zc,zb,za){this.Id=id;this.Method=zi;this.Url=zh;this.Body=zg;this.Timeout=zf;this.Headers=ze;this.Handler=zd;this.FailedHandler=zc;this.ResponseContentType=zb;this.UserContext=za};Oggifinogi._DomUtils=function(){var xb=this;var xa;this.DestroyElement=function(id){var xc=document.getElementById(id);if(xc!=null&&xc.parentNode!=null){xc.parentNode.removeChild(xc)}};this.FindMaxZIndex=function(){var xf=document.getElementsByTagName("*");var xe=0;for(var i=0;i<xf.length;i++){var xd=parseFloat(Oggifinogi.DomUtils.GetCurrentStyle(xf[i],"zIndex"));if(xd>=2147400000){continue};if(xd!=null&&!isNaN(xd)&&xd>xe){xe=xd}};var xc=fa();if(xc>xe){xe=xc};xe+=parseInt(xe/ 100000);return parseInt(xe)};this.GetCurrentStyle=function(zb,za){if(zb!=null){if(zb.currentStyle)return zb.currentStyle[za];else if(window.getComputedStyle){var xd=parseFloat(document.defaultView.getComputedStyle(zb,null)[za]);var xc=parseFloat(zb.style.zIndex);if(xc!=null&&!isNaN(xc)&&xc>xd){xd=xc};return xd}};return null};this.GetWindowWidth=function(){return(document.compatMode=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth};this.GetWindowHeight=function(){return(document.compatMode=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight};this.GetWindowScrollTop=function(){return document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop};this.GetWindowScrollLeft=function(){return document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft};this.GetDocumentScrollHeight=function(){return(document.compatMode=="CSS1Compat")?document.documentElement.scrollHeight:document.body.scrollHeight};this.IsVerticalScrollBarVisible=function(){return xb.GetDocumentScrollHeight()>xb.GetWindowHeight()};this.GetScrollBarWidth=function(){return fb()};function fa(){var xg=0;if(document.styleSheets){try{for(var i=0;i<document.styleSheets.length;i++){var xf=document.styleSheets[i];var xe;if(xf.cssRules!=null){xe=xf.cssRules}else if(xf.rules!=null){xe=xf.rules}else{return 0};for(var j=0;j<xe.length;j++){var xd=xe[j];if(xd.style!=null){var xc=parseInt(xd.style.zIndex);if(xc>=2147483640){continue};if(xc!=null&&!isNaN(xc)&&xc>xg){xg=xc}}}}}catch(e){}};return xg};function fb(){if(xa==null){var xd=document.createElement("p");xd.style.width="100%";xd.style.height="200px";var xc=document.createElement("div");xc.style.position="absolute";xc.style.top="0px";xc.style.left="0px";xc.style.visibility="hidden";xc.style.width="200px";xc.style.height="150px";xc.style.overflow="hidden";xc.appendChild(xd);document.body.appendChild(xc);var w1=xd.offsetWidth;xc.style.overflow="scroll";var w2=xd.offsetWidth;if(w1==w2)w2=xc.clientWidth;document.body.removeChild(xc);xa=w1-w2};return xa}};Oggifinogi.DomUtils=new Oggifinogi._DomUtils();Oggifinogi._DomEvent=function(){this.AddHandler=function(zc,zb,za){if(zc.addEventListener){zc.addEventListener(zb,za,false)}else{zc.attachEvent("on"+zb,za)}};this.RemoveHandler=function(zc,zb,za){if(zc.removeEventListener){zc.removeEventListener(zb,za,false)}else{zc.detachEvent("on"+zb,za)}}};Oggifinogi.DomEvent=new Oggifinogi._DomEvent();Oggifinogi._AndoTracking=function(){this.TrackPreStream=function(){fa("http://static-cdn-cf.oggifinogi.com/tracking/RunSpotPreStream1x1.gif")};this.TrackNoPreStream=function(){fa("http://static-cdn-cf.oggifinogi.com/tracking/RunSpotNoPreStream1x1.gif")};this.TrackPreRoll=function(){fa("http://static-cdn-cf.oggifinogi.com/tracking/RunSpotPreRoll1x1.gif")};this.TrackNoPreRollXmlResponse=function(){fa("http://static-cdn-cf.oggifinogi.com/tracking/RunSpotNoPreRollXmlResponse1x1.gif")};this.TrackNoPreRollEmptyResponse=function(){fa("http://static-cdn-cf.oggifinogi.com/tracking/RunSpotNoPreRollEmptyResponse1x1.gif")};function fa(za){var xa=new Image();xa.src=fb(za)};function fb(za){return za+="?cb="+Math.random()}};Oggifinogi.AndoTracking=new Oggifinogi._AndoTracking();Oggifinogi._TextAnalyzer=function(){this.GetOggiPlaceholderLine=function(za){return za.match(/document.write\("\<div id='oggiPlaceholder.*?\r\n/)};this.GetPlayerLoaderLine=function(za){return za.match(/document.write\("\<scr.*/)};this.GetWidth=function(za){var xa=za.match(/width\:(\d*)px;/);return parseInt(xa[1])};this.GetHeight=function(za){var xa=za.match(/height\:(\d*)px;/);return parseInt(xa[1])}};Oggifinogi.TextAnalyzer=new Oggifinogi._TextAnalyzer();Oggifinogi._ChromeUtils=function(){this.IsChrome=function(){return navigator.userAgent.toLowerCase().indexOf('chrome')>-1}};Oggifinogi.ChromeUtils=new Oggifinogi._ChromeUtils();Oggifinogi._OggiPlayerInjector=function(){this.AddOggiPlayerLoaderScript=function(za){var xa=document.createElement("script");xa.type="text/javascript";xa.src=za;document.body.appendChild(xa)};this.AddOggiPlaceHolderDiv=function(zb,za){var xa=document.createElement("div");xa.id=zb;xa.style.cssText=za;xa.style.position="absolute";xa.style.left=0;xa.style.top=0;document.body.appendChild(xa);return xa}};Oggifinogi.OggiPlayerInjector=new Oggifinogi._OggiPlayerInjector();Oggifinogi._PageParametersReader=function(){var xa=2929;this.NeedFullscreen=function(){var xc=document.location.search.match(/fullScreen=(\w*)/i);if(xc!=null){var xb=xc[1];if(xb=="0"){return false}};return true};this.GetSid=function(){var xc=document.location.search.match(/sid=(\d*)/i);if(xc!=null){var xb=xc[1];return xb};return xa}};Oggifinogi.PageParametersReader=new Oggifinogi._PageParametersReader();Oggifinogi._AndoVisibilityManager=function(){this.HideAndo=function(){if(!elementsToHide){return};fa("hidden")};this.ShowAndo=function(){if(!elementsToHide){return};fa("visible")};function fa(za){for(var i=0;i<elementsToHide.length;i++){var xa=document.getElementById(elementsToHide[i]);xa.style.visibility=za;if(Oggifinogi.BrowserDetect.OS=="Mac"&&Oggifinogi.BrowserDetect.browser=="Safari"){if(za=="hidden"){xa.style.left="-3000px";xa.style.position="absolute"}else{xa.style.left="";xa.style.position=""}}}}};Oggifinogi.AndoVisibilityManager=new Oggifinogi._AndoVisibilityManager();Oggifinogi._AndoPlayerManager=function(){var xc=this;var xb=100;var xa=new Oggifinogi.Timer(fa,xb,false);this.StopAndoPlayer=function(){var xd=xc.GetAndoPlayer();if(!xd){return};if(typeof(xd.stopLive)=="function"){xd.stopLive()}};this.RunAndoPlayer=function(){xa.Start()};this.GetAndoPlayer=function(){if(!oggiAndoPlayerId){return null};return document.getElementById(oggiAndoPlayerId)};function fa(){var xd=xc.GetAndoPlayer();if(!xd){return};if(typeof(xd.playLive)=="function"){try{xd.playLive();xa.Stop()}catch(err){}}}};Oggifinogi.AndoPlayerManager=new Oggifinogi._AndoPlayerManager();Oggifinogi._DarkenManager=function(){var xb="OggiDarkenElement";var xa="http://static-cdn-cf.oggifinogi.com/prod/dark.png";this.Darken=function(){var xc=document.createElement("div");xc.id=xb;xc.style.left=0;xc.style.top=0;xc.style.width=screen.availWidth+"px";xc.style.height=screen.availHeight+"px";xc.style.position="absolute";xc.style.zIndex=Oggifinogi.DomUtils.FindMaxZIndex()+1;xc.style.background="url("+xa+")";document.body.appendChild(xc)};this.UnDarken=function(){var xc=document.getElementById(xb);if(xc){xc.parentNode.removeChild(xc)}}};Oggifinogi.DarkenManager=new Oggifinogi._DarkenManager();Oggifinogi._RunSpotRequest=function(){var xb="http://static-cdn-cf.oggifinogi.com/prod/RequestSender.swf?v=2";var xa=2000;this.Init=function(){var xc="RUN_SPOT_REQUEST_SENDER";RunSpotRequestSender=new Oggifinogi.AndoFlashRequestSender(true,xb,xc);RunSpotRequestSender.Init()};this.SendPreRoll=function(za){var xc=fa("http://collective.andohs.net/amtmsvc/runspotv3.2/service.asmx/RunSpot?sid=","5");RunSpotRequestSender.Send(za,"GET",xc,null,xa,null,fb,fc,0,null)};this.SendPreStream=function(za){var xc=fa("http://collective.andomedia.com/amtmsvc/runspotv3.3/service.asmx/RunSpot?sid=","8");RunSpotRequestSender.Send(za,"GET",xc,null,xa,null,fb,fc,0,null)};this.GetAdId=function(za){var xc=za.match(/<adid>(\d*)<\/adid>/);return xc[1]};this.GetAdUrl=function(za){var xc=za.match(/<adURL_high>(.*)<\/adURL_high>/);return xc[1]};this.GetBannerUrl=function(za){var xc=za.match(/<bannerURL>(.*)<\/bannerURL>/);if(xc!=null){return xc[1]}else{return ""}};function fa(zb,za){return zb+Oggifinogi.PageParametersReader.GetSid()+"&adformat="+za+"&minduration=0&maxduration=900&sip=-1&latitude=-1&longitude=-1&zip=-1&spotlevel=1&categoryID=1&cb="+Math.random()};function fb(za){};function fc(){}};Oggifinogi.RunSpotRequest=new Oggifinogi._RunSpotRequest();Oggifinogi._GetScriptRequest=function(){var xa=2000;this.RunGetScript=function(ze,zd,zc,zb,za){if(zc==null||zc==0||zb==null||zb==''){Oggifinogi.STWVariablesManager.SetVariables("","none");Oggifinogi.AndoVisibilityManager.ShowAndo();Oggifinogi.AndoPlayerManager.RunAndoPlayer();Oggifinogi.AndoTracking.TrackNoPreStream();return};Oggifinogi.STWVariablesManager.SetVariables("","prestream",za);Oggifinogi.AndoTracking.TrackPreStream();fa(zb,zd)};function fa(zb,za){zb=fb(zb);zb=fc(zb);RunSpotRequestSender.Send(za,"GET",zb,null,xa,null,fd,fe,0,null)};function fb(za){za=za.replace(/\&amp;/g,"&");za=za.replace(/\&quot;/g,"\"");za=za.replace(/\&lt;/g,"<");za=za.replace(/\&gt;/g,">");return za};function fc(za){var xb=location;if(top.location!=location){src+='&oggiIsIframe=1';xb=document.referrer;if(xb==''||xb==null){xb=location.toString()}};za+='&oggiSite='+escape(xb);za=za.replace(/'/g,'%27');return za};function fd(za){};function fe(){}};Oggifinogi.GetScriptRequest=new Oggifinogi._GetScriptRequest();Oggifinogi._OggiPlayerShower=function(){var xc;var xb;var xa=Oggifinogi.PageParametersReader.NeedFullscreen();this.ShowOggiPlayer=function(za){var xh=Oggifinogi.TextAnalyzer.GetOggiPlaceholderLine(za);var xg=Oggifinogi.TextAnalyzer.GetPlayerLoaderLine(za);fa(za,xh,xg);xb=xh[0].match(/id='(.*?)'/)[1];xc=xb.replace("oggiPlaceholder","");var xf=xh[0].match(/style='(.*?)'/)[1];unitWidth=Oggifinogi.TextAnalyzer.GetWidth(xf);unitHeight=Oggifinogi.TextAnalyzer.GetHeight(xf);fb();var xe=xg[0].match(/src='(.*?)'/)[1];var xd=Oggifinogi.OggiPlayerInjector.AddOggiPlaceHolderDiv(xb,xf);Oggifinogi.OggiPlayerInjector.AddOggiPlayerLoaderScript(xe);fc();fd();Oggifinogi.UnitFinishedManager.Init(xc,xb)};function fa(zc,zb,za){zc=zc.replace(zb,"");zc=zc.replace(za,"");zc=zc.replace(/\r\n/g,"");eval(zc)};function fb(){if(xa){Oggifinogi.DarkenManager.Darken()}};function fc(){if(xa){Oggifinogi.WindowSizeManager.FullScreen()}else{Oggifinogi.WindowSizeManager.ResizeTo(unitWidth,unitHeight)}};function fd(){if(xa){Oggifinogi.UnitPositionManager.Init(unitWidth,unitHeight,xc,xb)}}};Oggifinogi.OggiPlayerShower=new Oggifinogi._OggiPlayerShower();Oggifinogi._WindowSizeManager=function(){var xa=this;this.ResizeTo=function(zb,za){self.resizeTo(zb,za);if(Oggifinogi.ChromeUtils.IsChrome()){return};var dw=zb-xa.GetWinWidth();var dh=za-xa.GetWinHeight();self.resizeTo(zb+dw,za+dh)};this.GetWinWidth=function(){return(document.compatMode=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth};this.GetWinHeight=function(){return(document.compatMode=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight};this.FullScreen=function(){self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight)}};Oggifinogi.WindowSizeManager=new Oggifinogi._WindowSizeManager();Oggifinogi._UnitFinishedManager=function(){var xf;var xe;var xd=100;var xc=new Oggifinogi.Timer(fb,xd,false);var xb=45000;var xa=false;this.Init=function(zb,za){xf=zb;xe=za;xc.Start();fa()};function fa(){setTimeout(function(){if(xa){return};if(Oggifinogi.ContextFactory&&typeof(Oggifinogi.ContextFactory.GetContext(xf).UnitFinished)=="function"){Oggifinogi.ContextFactory.GetContext(xf).UnitFinished()}},xb)};function fb(){if(!Oggifinogi.ContextFactory){return};Oggifinogi.ContextFactory.GetContext(xf).UnitFinished=function(){fc()};xc.Stop()};function fc(){Oggifinogi.DarkenManager.UnDarken();Oggifinogi.AndoVisibilityManager.ShowAndo();var xg=Oggifinogi.AndoPlayerManager.GetAndoPlayer();Oggifinogi.WindowSizeManager.ResizeTo(parseInt(xg.width),parseInt(xg.height));Oggifinogi.AndoPlayerManager.RunAndoPlayer();fd();xa=true};function fd(){if(xe==null&&xf!=null){return};var xh=document.getElementById(xe);var xg=document.getElementById("oggiPlayerDiv"+xf);if(xg&&xh){xg.style.display="none";xh.style.display="none"}}};Oggifinogi.UnitFinishedManager=new Oggifinogi._UnitFinishedManager();Oggifinogi._UnitPositionManager=function(){var xb;var xa;this.Init=function(zd,zc,zb,za){xb=zb;xa=za;fb(zd,zc);Oggifinogi.DomEvent.AddHandler(window,"resize",fa);Oggifinogi.DomEvent.AddHandler(window,"scroll",fa)};function fa(){fb(unitWidth,unitHeight)};function fb(zb,za){var xo=0;var xn=0;var xm=0;var xl=0;var xk=8;var xj=za;var xi=zb;var xh=0;var xg=0;var xf=Oggifinogi.DomUtils.GetWindowHeight();var xe=Oggifinogi.DomUtils.GetWindowWidth();var xd=Oggifinogi.DomUtils.GetWindowScrollTop();var xc=Oggifinogi.DomUtils.GetWindowScrollLeft();xm=(xe-xi)/ 2-xh;if(xe<xi+2 *xk){xm=-xh+xk};xl=(xf-xj)/ 2-xg;if(xf<xj+2 *xk){xl=-xg+xk};fc(document.getElementById("oggiPlayerDiv"+xb),xm,xl);fc(document.getElementById(xa),xm,xl)};function fc(zc,zb,za){if(!zc){return};zc.style.left=zb+"px";zc.style.top=za+"px"}};Oggifinogi.UnitPositionManager=new Oggifinogi._UnitPositionManager();Oggifinogi._PreStreamRequest=function(){this.RunPreStreamRequest=function(zd,zc,zb,za){if(zb==null||zb==0||za==null||za==''){Oggifinogi.AndoTracking.TrackNoPreRollXmlResponse();Oggifinogi.RunSpotRequest.SendPreStream(zc);return};Oggifinogi.AndoTracking.TrackPreRoll();Oggifinogi.STWVariablesManager.SetVariables(zd,"preroll");Oggifinogi.AndoVisibilityManager.ShowAndo();Oggifinogi.AndoPlayerManager.RunAndoPlayer()}};Oggifinogi.PreStreamRequest=new Oggifinogi._PreStreamRequest();Oggifinogi._STWVariablesManager=function(){this.SetVariables=function(zc,zb,za){runspotResult=zc;adState=zb;bannerURL=za==null?"":za}};Oggifinogi.STWVariablesManager=new Oggifinogi._STWVariablesManager();var xk;var xj;var xi;var xh="runSpotPreroll";var xg="runSpotPrestream";var xf="getScript";var xe;var xd;var xc;var xb;var xa='OggiPlayerService/PlayerProxy.aspx';document.body.style.overflow="hidden";Oggifinogi.AndoVisibilityManager.HideAndo();Oggifinogi.AndoPlayerManager.StopAndoPlayer();Oggifinogi.RunSpotRequest.Init();Oggifinogi.RunSpotRequest.SendPreRoll(xh);function OggiRequestComplete(id,zc,zb,za){if(za==null||za==''){if(id==xh){Oggifinogi.AndoTracking.TrackNoPreRollEmptyResponse();Oggifinogi.RunSpotRequest.SendPreStream(xg);return};if(id==xg){Oggifinogi.STWVariablesManager.SetVariables("","none");Oggifinogi.AndoTracking.TrackNoPreStream()};Oggifinogi.AndoVisibilityManager.ShowAndo();Oggifinogi.AndoPlayerManager.RunAndoPlayer();return};if(id==xh){var xp=Oggifinogi.RunSpotRequest.GetAdId(za);var xo=Oggifinogi.RunSpotRequest.GetAdUrl(za);Oggifinogi.PreStreamRequest.RunPreStreamRequest(za,xg,xp,xo)}else if(id==xg){var xn=Oggifinogi.RunSpotRequest.GetAdId(za);var xm=Oggifinogi.RunSpotRequest.GetAdUrl(za);var xl=Oggifinogi.RunSpotRequest.GetBannerUrl(za);Oggifinogi.GetScriptRequest.RunGetScript(za,xf,xn,xm,xl)}else if(id==xf&&za.indexOf(xa)>-1){Oggifinogi.OggiPlayerShower.ShowOggiPlayer(za)}else{Oggifinogi.STWVariablesManager.SetVariables("","none");Oggifinogi.AndoVisibilityManager.ShowAndo();Oggifinogi.AndoPlayerManager.RunAndoPlayer()}};
