IBSYS.using("ad.strategies");IBSYS.ad.strategies.AdifyVideo=function(e,l,j){var h=IBSYS.propPath("IBSYS.ad.AdifyIDs.interactive.flashplayer");if(h){var d=e.contentMeta;var b=Math.round(Math.random()*100000000);var a=new Date().getTime()/1000;var g=[];g.push({coid:d.contentId.substring(18)});var c=e.useZone||l.currentZone;if(c!="national"&&c!="local"){g.push({referrer:c})}g.push({vidcat:(d.category||d.topic||"homepage")});var k=e.section||pageProps.sectionpath||"homepage";g.push({section:k});if(k.toLowerCase().replace(/[^a-z0-9]/g,"")!="video"){g.push({section:"video"})}g.push({pool:d.pool});for(var f=0;f<g.length;f++){for(key in g[f]){if(key&&g[f][key]){g[f]=(key+"0"+g[f][key]).replace(/[^A-Za-z0-9]/g,"")}else{IBSYS.log("Problem in AdifyVideo.js with keyword: "+key);g.splice(f,1)}}}var n="http://ad.afy11.net/ad?asId="+h+"&kd="+g.join("%2C")+"&ct=15&enc=2&rand="+(b+1)+"&rk1="+b+"&rk2="+a;e.element.setAdUrl(n,e.contentMeta.contentId)}else{e.element.setAdUrl("",e.contentMeta.contentId)}};if(IBSYS.application.Application.getProperty("ads.defaultStrategy")=="Adify"){IBSYS.ad.AdManager.setEventMapping("newMediaContent",{mapping:[{Strategy:{Name:"AdifyVideo",Parameters:{contentMeta:{event:"eventData"}}},Rules:[{Type:"CheckValue",check:{position:"type"},expect:"asxProxy"},{Type:"CheckValue",check:{event:"eventData.showAds"},expect:true},{Type:"CheckValue",check:{application:"ads.defaultStrategy"},expect:"Adify"}]}]});IBSYS.ad.AdManager.setEventMapping("playingVideoAd",{mapping:[{Strategy:{Name:"Adify",Parameters:{addtlKW:{comp:[{section:"video"}]},randomKeys:{event:"eventData.adifyRandomValues"},interactive:false,topic:{propPath:"IBSYS.media.vidPlayModule.currentVideo.topic"},useId:{propPath:"IBSYS.media.vidPlayModule.currentVideo.coidValue"},section:{propPath:"IBSYS.media.vidPlayModule.currentVideo.category"},getSect:false}},Rules:[{expect:"DOM",check:{position:"type"},Type:"CheckValue"},{Type:"adPositionSizeIn",sizes:"300x250,160x600,728x90"}]}]});IBSYS.ad.AdManager.setEventMapping("videoAdSkipped",{mapping:[{Strategy:{Name:"Adify",Parameters:{interactive:false,topic:{propPath:"IBSYS.media.vidPlayModule.currentVideo.topic"},useId:{propPath:"IBSYS.media.vidPlayModule.currentVideo.coidValue"},section:{propPath:"IBSYS.media.vidPlayModule.currentVideo.category"},getSect:false}},Rules:[{expect:"DOM",check:{position:"type"},Type:"CheckValue"},{Type:"adPositionSizeIn",sizes:"300x250,160x600,728x90"}]}]})};