function trackClick(f){if(jQuery("#brkStatsDiv").length==0){var e=jQuery("<div></div>").attr({id:"brkStatsDiv",style:"height:0px;width:0px;"});jQuery(e).appendTo("body")}var d=Math.floor(Math.random()*1001);strURL=f+"&"+d;statPixel="url("+strURL+")";document.getElementById("brkStatsDiv").style.backgroundImage=statPixel}function setTimedBackground(r,o,q,l,p,j){var m=new Date();var n=new Date(p,q-1,l,j,0,0,0);var k="url("+o+")";if(m>=n){jQuery(r).css("background-image",k)}}jQuery(document).ready(function(){jQuery(".brk-tracker").click(function(){var b=jQuery(this).attr("brk-link");if(b==undefined||b==""){return}trackClick(b)})});function expandHeader(c,d){jQuery(c).fadeOut(200,function(){jQuery(c).css("height","200px");jQuery("#adSkinBackdrop").animate({marginBottom:d},500,"swing",function(){jQuery("#cta-expand").css("display","none");jQuery("#cta-collapse").css("display","block");jQuery("#cta-collapse").css("visibility","visible");jQuery(c).css("background-position","0 -65px");jQuery(c).fadeIn("slow")})});jQuery("#header-click").css("height","200px");jQuery("#header-gutter-click").css("height","200px")}function collapseHeader(c,d){jQuery(c).fadeOut(200,function(){jQuery(c).css("height","65px");jQuery("#adSkinBackdrop").animate({marginBottom:d},500,"swing",function(){jQuery("#cta-expand").css("display","block");jQuery("#cta-collapse").css("display","none");jQuery("#cta-collapse").css("visibility","hidden");jQuery(c).css("background-position","0 0");jQuery(c).fadeIn("slow")})});jQuery("#header-click").css("height","65px");jQuery("#header-gutter-click").css("height","65px")}function firstVisit(b){if(jQuery.cookie(b)){return false}else{return true}}function markVisit(d,e,f){jQuery.cookie(d,e,f)}function playHptoVideo(o,t,q,p,r,n,h){var s={};var m={};var l={};l.id="hptoCall";m.allowscriptaccess="always";m.wmode="transparent";m.align="r";s.iContentID=q;s.videoPath=p;s.mode="slim";s.contentURL=r;s.useInPlay="true";s.initWidth=o;s.initHeight=t;s.hideTeaserText="true";s.hideControls="true";swfobject.createCSS("#hptoCall","width:"+o+"px;height:"+t+"px;");if((navigator.userAgent.indexOf("iPad")!=-1)||(navigator.userAgent.indexOf("iPhone")!=-1)){swfobject.removeSWF("hptoCall")}else{if(h){s.hptoTeaserVideo=n;swfobject.embedSWF("http://media1.break.com/break/swf/mini-player65.swf","hptoCall",o,t,"10.0.0","http://media1.break.com/static/app/v1/global/swf/expressinstall.swf",s,m,l)}else{s.hptoTeaserVideo=null;swfobject.embedSWF("http://media1.break.com/break/swf/player12.swf","hptoCall",o,t,"10.0.0","http://media1.break.com/static/app/v1/global/swf/expressinstall.swf",s,m,l)}}};
