if(typeof(swfobject)=="undefined"){document.write("<script src='http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js'><\/script>")}else{}var hpto=false;hpto=true;function breakInit(){clientWidth=960;leaderHeight=200;gutterHeight=1412;backgroundAsset={background:"#000000 url(http://video1.break.com/campaigns/wow/ff_hpto.jpg) no-repeat center 157px"};firstClickTag="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=1965004&PluID=0&ord=%n";secondClickTag="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=1965004&PluID=0&ord=%n";leaderClickTag="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=1965004&PluID=0&ord=%n";leaderBoardHTML='<div id="hptoBg1" class="bkRemove" style="margin:0 auto;position: relative; width: '+clientWidth+"px; height: "+leaderHeight+'px;"><a href="'+leaderClickTag+'" target="_blank"><img src="http://media1.break.com/static/live/v1/img/shim.gif" width="'+clientWidth+'" height="'+leaderHeight+'" border="0" /></a>'+ +'<img src="http://ads.pointroll.com/PortalServe/?pid=1150123D18920101124201605&pos=i&r=[RANDOM]" width="1" height="1" border="0" style="display:none;" /></div>';validUrls[0]="http://www.filefront.com/";validUrls[1]="http://filefront.com/";validUrls[2]="http://localhost/filefront/";validUrls[3]="http://news.filefront.com/";validUrls[4]="http://beta.filefront.com/";validUrls[5]="http://localhost/partnerPublish/dev/filefront.html";validUrls[6]="http://10.10.10.179:8888/filefront/";function g(){if(run==false){return}jQuery(".top_wrap").css("width","990px");jQuery(".top_wrap").css("margin-left","auto");jQuery(".top_wrap").css("margin-right","auto");jQuery(".breakingnews").css("display","none");jQuery(".ad_top").css("display","none");jQuery(".content").css("overflow","hidden");jQuery(".content").css("background","black");jQuery(".content").css("width","946px");jQuery(".content").css("padding-left","15px");jQuery("#heads_up_ad_unit").css("margin","0");jQuery("#heads_up_ad_unit").css("padding","22px 0");jQuery("#heads_up_ad_unit").css("background","black");jQuery("#heads_up_ad_unit").css("width","977px");jQuery("#header").css("width","976px");jQuery("#pax_sliver").css("margin","0")}function f(){if(run==false){return}leaderBoardHTML='<div id="hptoBg1" class="bkRemove" style="float: left; position: relative; width: '+clientWidth+"px; height: "+leaderHeight+'px;"><div id="hptoLeft" class="bkRemove" style="position: absolute; top: 0px; left: 0px; width: 960px; height: 200px;"><a href="'+leaderClickTag+'" target="_blank"><img src="http://media1.break.com/static/live/v1/img/shim.gif" width="901" height="200" border="0" /></a></div><div id="hptoCall" class="bkRemove" style="position: absolute; top: 0px; left: 594px; width: 300px; height: '+leaderHeight+'px;"></div></div>';targetSwf="http://video1.break.com/static/app/v1/global/swf/player10.swf";targetSwfWidth=300;targetSwfHeight=200}function h(){leaderBoardHTML='<div id="hptoBg1" class="bkRemove" style="float: left; position: absolute;left: '+gutterWidth+"px; width: "+clientWidth+"px; height: "+leaderHeight+'px; z-index:1000;"><a href="'+leaderClickTag+'" target="_blank"><img src="http://media1.break.com/static/live/v1/img/shim.gif" border="0" align="top" width="'+clientWidth+'" height="'+leaderHeight+'" /></a><div id="flashOverlay" class="bkRemove" style="background: transparent; width: '+clientWidth+'px; height: 200px; z-index: 1;"><a href="'+leaderClickTag+'" target="_blank"><img src="http://media1.break.com/static/live/v1/img/shim.gif" border="0" align="top" width="'+clientWidth+'" height="'+leaderHeight+'" /></a></div></div>';targetSwf="http://video1.break.com/static/live/v1/pages/sponsors/uncharted2/swfs/U2_breakpropsHPTO_500x200.swf";targetSwfWidth=500;targetSwfHeight=195}for(var e=validUrls.length-1;e>=0;e--){if(urlString==validUrls[e]){run=true}else{run=false}if(run==true){break}}g();if(staticFlashTakeover==1){f()}if(overlayFlashTakeover==1){h()}}var clientWidth=960,leaderHeight=200,gutterHeight=1200,backgroundAsset=null,firstClickTag="#",secondClickTag="#",leaderClickTag="#",staticFlashTakeover=0,overlayFlashTakeover=0,targetSwf=null,targetSwfWidth=0,targetSwfHeight=0,validUrls=new Array(),breakFlashVars={},breakParams={},breakAttributes={},gutterWidth=0,browserWidth=getBrowserWidth(),insertFirstGutterCode=null,insertLeaderBoardCode=null,insertSecondGutterCode=null,leaderBoardHTML=null,urlString=document.location.href,run=false;jQuery(document).ready(function(){injectCode()});jQuery(window).resize(function(){injectCode()});function injectCode(){if(hpto==false){return}if(jQuery(".bkRemove").length>0){jQuery(".bkRemove").remove()}browserWidth=(getBrowserWidth())-20;gutterWidth=Math.round((browserWidth-clientWidth)/2);breakInit();if(run==false){return}gutterWidth=Math.round((browserWidth-clientWidth)/2);if((jQuery.browser.name)=="msie"){gutterWidth=(Math.round((browserWidth-clientWidth)/2)+10)}insertLeaderBoardCode=leaderBoardHTML;insertFirstGutterCode='<a id="breakFirstGutter" class="bkRemove" target="_blank" href="'+firstClickTag+'" style="position:absolute;left:0px;width:'+gutterWidth+"px;height:"+gutterHeight+'px;cursor:pointer;display:block;text-decoration:none;z-index:99;">&nbsp;</a>';insertSecondGutterCode='<a id="breakSecondGutter" class="bkRemove" target="_blank" href="'+secondClickTag+'" style="position:absolute;right:0px;width:'+gutterWidth+"px;height:"+gutterHeight+'px;cursor:pointer;display:block;text-decoration:none;">&nbsp;</a>';jQuery("#top_search").after(insertLeaderBoardCode);jQuery("body").prepend(insertFirstGutterCode);jQuery("body").prepend(insertSecondGutterCode);if(staticFlashTakeover==1){playStaticHptoVideo()}if(overlayFlashTakeover==1){playOverlayHptoVideo()}adjustStyles();jQuery("body").css(backgroundAsset)}function getBrowserWidth(){if(window.innerWidth){return window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth!=0){return document.documentElement.clientWidth}else{if(document.body){return document.body.clientWidth}}}return 0}function playStaticHptoVideo(){breakParams.allowscriptaccess="always";breakParams.wmode="transparent";breakAttributes.id="hptoCall";breakParams.align="r";breakFlashVars.iContentID=1958223;breakFlashVars.sVidTitle="Scott Pilgrim";breakFlashVars.videoPath="http://video1.break.com/campaigns/hbo-101129/1122_Entourage15_HD_1.flv";breakFlashVars.mode="slim";breakFlashVars.contentURL="http://www.break.com/break-best-videos/hbo-holiday-dvd-campaign.html";breakFlashVars.useInPlay="true";breakFlashVars.initWidth=targetSwfWidth;breakFlashVars.initHeight=targetSwfHeight;breakFlashVars.categoryid="";breakFlashVars.bChannelId="";breakFlashVars.hptoText="Click to watch the whole video.";breakFlashVars.hptoTeaserVideo="http://video1.break.com/campaigns/hbo-101129/HBOTeaser.flv";swfobject.createCSS("#hptoCall","position:absolute;top:-16px;right:0px;width:"+targetSwfWidth+"px;height:"+targetSwfHeight+"px;");swfobject.embedSWF(targetSwf,"hptoCall",targetSwfWidth,targetSwfHeight,"10.0.0","http://video1.break.com/static/app/v1/global/swf/expressinstall.swf",breakFlashVars,breakParams,breakAttributes)}function playOverlayHptoVideo(){breakParams.scale="noscale";breakParams.align="t";breakParams.allowscriptaccess="always";breakParams.wmode="transparent";swfobject.createCSS("#flashOverlay","position:absolute;top:0px;width:500px;height:195px;left:487px;");swfobject.embedSWF(targetSwf,"flashOverlay",targetSwfWidth,targetSwfHeight,"10.0.0","http://video1.break.com/static/app/v1/global/swf/expressinstall.swf",breakFlashVars,breakParams,breakAttributes)}function resizeSWF(b){b+="px";document.getElementById("hptoBg1").style.height=b}function adjustStyles(){if(hpto==false){return}jQuery("#adUnit").css("display","none");jQuery("#bman_head_wrap .bman_iframewrap iframe").css("display","block");jQuery("#linkto2").css("display","block");jQuery("#linkto1").css("display","block");jQuery("#hptoBg1").css("float","left");if((jQuery.browser.msie)==true&&(jQuery.browser.version)=="7.0"){jQuery("#header").css("height",320+"px")}};
