var sgad={legacy:{},version:function(){var c=["40.10.5"],e=["40.10.5"];3===c.length||(c=[-1,-1,-1]);3===e.length||(e=[-1,-1,-1]);return{major:c[0],minor:c[1],release:c[2],front:{major:c[0],minor:c[1],release:c[2],toString:function(){return c.join(".")}},back:{major:e[0],minor:e[1],release:e[2],toString:function(){return e.join(".")}},toString:function(){return this.front.toString()+"/"+this.back.toString()}}}(),toString:function(){return"[object SpilGamesAdvertisment - "+sgad.version.front.toString()+
"]"}};
(function(c){var e=navigator,b=e.userAgent,f=e.appVersion,d=parseFloat(f),e={iphone:!1,ipad:!1,ipod:!1,ios:!1,msapp:parseFloat(b.split("MSAppHost/")[1])||!1,webkit:parseFloat(b.split("WebKit/")[1])||!1,chrome:parseFloat(b.split("Chrome/")[1])||!1,air:0<=b.indexOf("AdobeAIR"),android:parseFloat(b.split("Android ")[1])||!1,khtml:0<=f.indexOf("Konqueror")?d:!1,mac:0<=f.indexOf("Macintosh"),quirks:"BackCompat"==document.compatMode,bb:(0<=b.indexOf("BlackBerry")||0<=b.indexOf("BB10"))&&parseFloat(b.split("Version/")[1])||!1,
opera:parseFloat(b.split(" OPR/")[1])||!1,mozilla:!1,firefox:!1,ie:!1,wii:!1};e.safari=0<=f.indexOf("Safari")&&!e.chrome?parseFloat(f.split("Version/")[1]):!1;if(b.match(/(iPhone|iPod|iPad)/)){var a=RegExp.$1.replace(/P/,"p"),k=b.match(/OS ([\d_]+)/)?RegExp.$1:"1",k=parseFloat(k.replace(/_/,".").replace(/_/g,""));e[a]=e.ios=k}e.webkit||(0<=b.indexOf("Opera")&&(e.opera=9.8<=d?parseFloat(b.split("Version/")[1])||d:d),0<=b.indexOf("Gecko")&&!e.khtml&&!e.webkit&&(e.mozilla=d),e.mozilla&&(e.firefox=parseFloat(b.split("Firefox/")[1]||
b.split("Minefield/")[1])||!1),document.all&&!e.opera&&(b=parseFloat(f.split("MSIE ")[1])||!1,(f=document.documentMode)&&5!=f&&Math.floor(b)!=f&&(b=f),e.ie=b),e.wii="undefined"!=typeof opera&&opera.wiiremote);return c.browser=e})(sgad);
(function(c,e){var b=e.AdBrowser=c.legacy.AdBrowser={platform:navigator.platform,name:c.browser.opera?"Opera":c.browser.ie?"Microsoft Internet Explorer":c.browser.chrome?"Chrome":c.browser.firefox?"Firefox":function(){var b=navigator.userAgent.lastIndexOf(" ")+1,d=navigator.userAgent.lastIndexOf("/");return b<d?navigator.userAgent.substring(b,d):navigator.appName}(),major:null,version:(c.browser.opera||c.browser.ie||c.browser.chrome||c.browser.firefox||function(){var b=navigator.userAgent.lastIndexOf(" ")+
1,d=navigator.userAgent.lastIndexOf("/");return b<d?navigator.userAgent.substring(d+1):parseFloat(navigator.appVersion)}()).toString()};b.major=parseInt(b.version,10);isNaN(b.major)&&(b.version=parseFloat(navigator.appVersion).toString(),b.major=parseInt(navigator.appVersion,10));return b})(sgad,this);
(function(c){c.bind="function"===typeof Function.prototype.bind?Function.prototype.bind.call.bind(Function.prototype.bind):function(e,b){if("function"!==typeof e)throw new TypeError("Function.prototype.bind called on incompatible "+e);var f=Array.prototype.slice.call(arguments,2),d=function(){if(this instanceof d){var a=e.apply(this,f.concat(Array.prototype.slice.call(arguments,0)));return Object(a)===a?a:this}return e.apply(b,f.concat(Array.prototype.slice.call(arguments,0)))};e.prototype&&(d.prototype=
c.create(e.prototype));return d};c.indexOf="function"===typeof Array.prototype.indexOf?c.bind(Array.prototype.indexOf.call,Array.prototype.indexOf):function(c,b){var f="string"===typeof c?c.split(""):c,d=f.length>>>0;if(!d)return-1;var a=0;2<arguments.length&&(a=parseInt(arguments[2],10));for(a=0<=a?a:Math.max(0,d+a);a<d;a++)if(a in f&&f[a]===b)return a;return-1};c.create="function"===typeof Object.create?Object.create:function(){var c;c=null===Object.prototype.__proto__||"undefined"==typeof document?
function(){return{__proto__:null}}:function(){function b(){}var c=document.createElement("iframe"),d=document.body||document.documentElement;c.style.display="none";d.appendChild(c);c.src="javascript:";var a=c.contentWindow.Object.prototype;d.removeChild(c);c=null;delete a.constructor;delete a.hasOwnProperty;delete a.propertyIsEnumerable;delete a.isPrototypeOf;delete a.toLocaleString;delete a.toString;delete a.valueOf;a.__proto__=null;b.prototype=a;return function(){return new b}}();return function(b){function f(){}
var d;if(null===b)d=c();else{if("object"!==typeof b&&"function"!==typeof b)throw new TypeError("Object prototype may only be an Object or null");f.prototype=b;d=new f;d.__proto__=b}return d}}();c.slice=c.bind(Array.prototype.slice.call,Array.prototype.slice);c.hasOwnProperty=c.bind(Object.prototype.hasOwnProperty.call,Object.prototype.hasOwnProperty);c.setInterval=function(e,b){return setInterval(c.bind.apply(null,[e,this].concat(c.slice(arguments,2))),b)};c.clearInterval=clearInterval;c.setTimeout=
function(e,b){return setTimeout(c.bind.apply(null,[e,this].concat(c.slice(arguments,2))),b)};c.clearTimeout=clearTimeout;c.setImmediate="function"===typeof setImmediate?setImmediate:function(e){return c.setTimeout.apply(this,[e,0].concat(c.slice(arguments,1)))};c.clearImmediate="function"===typeof clearImmediate?clearImmediate:clearTimeout;return c})(sgad,this);
var AdDefine=function(c,e){return{cls:c,base:e||function(){},instance:function(){this.base.prototype=this.cls.prototype;return this.cls.apply(new this.base,arguments)},singleton:function(){return this.instance.apply(this,arguments)},extend:function(b){return AdDefine(b,this.cls)}}},AdUtilities=AdDefine(function(){var c=document.all&&!window.opera&&window.XMLHttpRequest?!0:!1,e=-1!=navigator.appVersion.indexOf("MSIE 7."),b=-1!=navigator.appVersion.indexOf("MSIE");this.getIsIe=function(){return b};
this.getIsIe11=function(){return!!navigator.userAgent.match(/Trident\/7\./)};this.consolelog=function(){window.console&&"function"===typeof window.console.log&&console.log.apply(console,arguments)};this.consolewarn=function(){window.console&&"function"===typeof window.console.warn&&console.warn.apply(console,arguments)};this.make=function(b,d,a){if(2==arguments.length&&(d instanceof Array||"string"==typeof d))a=d,d=null;if(e){var k="",g;for(g in d)k+=" "+g+'="'+d[g]+'"';k=document.createElement("<"+
b+k+">")}else k=document.createElement(b);if(d)for(g in d)"style"==g&&c?k.style.cssText=d[g]:e||k.setAttribute(g,d[g]);if(null!=a)if(a instanceof Array)for(g=0;g<a.length;g++){var h=a[g];"string"==typeof h&&(h=document.createTextNode(h));k.appendChild(h)}else"string"==typeof a?k.appendChild(document.createTextNode(a)):k.appendChild(a);return k};this.getNode=function(b){return document.getElementById(b)};this.getElementsByClassName=function(b,d){if(b.getElementsByClassName)return b.getElementsByClassName(d);
for(var a=[],c=RegExp("(^| )"+d+"( |$)"),e=b.getElementsByTagName("*"),h=0,j=e.length;h<j;h++)c.test(e[h].className)&&a.push(e[h]);return a};this.addClassName=function(b,d){b&&d&&"undefined"!==typeof b.className&&!(-1<(" "+b.className+" ").indexOf(" "+d+" "))&&(b.className+=" "+d+" ");return b};this.removeClass=function(b,d){if(b.classList)b.classList.remove(d);else{var a=b.className.split(" "),c=[],e,h;for(h=0;h<a.length;h++)(e=a[h])&&e!==d&&c.push(e);b.className=c.join(" ")}return b};this.copyObject=
function(b,d){if("object"==typeof b){if(b instanceof Array)for(var a=b.length,c=Array(a),e=0;e<a;e++)-1===sgad.indexOf(d,e)&&(c[e]=copyObject(b[e],d));else for(a in c={},c.prototype=b.prototype,b)-1===sgad.indexOf(d,a)&&(c[a]=copyObject(b[a],d));return c}return b};this.attachLoadEvent=function(b,d){b.attachEvent?b.attachEvent("onload",d):b.onload=d};this.executeFunctionByName=function(b,d){for(var a=Array.prototype.slice.call(arguments,2),c=b.split("."),e=c.pop(),h=0;h<c.length;h++)d=d[c[h]];return"undefined"!=
typeof d[e]?d[e].apply(d,a):null};return this}()),AdMergeRecursive=function(c,e){if("undefined"==typeof e)return c;if("undefined"==typeof c)return e;for(var b in e)c[b]=null!=e[b]&&e[b].constructor==Object?AdMergeRecursive(c[b],e[b]):e[b];return c},AdScriptLoader=function(c,e,b){var f=function(a,b,d){(function(d,c,e){var k,f=d.getElementsByTagName(c)[0],j,s;k=d.createElement(c);j=!0===k.async||"MozAppearance"in d.documentElement.style||window.opera;k.src=a;k.onreadystatechange=k.onload=function(){var a=
k.readyState;if(!s&&(!a||(j?/complete/:/loaded|complete/).test(a)))s=!0,e.call()};k.onerror=function(){b.notify("onfinish",{source:"onerror"})};f.parentNode.insertBefore(k,f)})(window.document,"script",function(){d.call(this)})};"string"==typeof c&&(c=[c]);var d=c.length,a=0,k=function(){d>a?(f(c[a],e,k),a++):b.call(this)};k()},AdStylesheetLoader=function(c,e){"string"==typeof c&&(c=[c]);var b=c.length,f=0,d=document.getElementsByTagName("head")[0];(function(){b>f?(link=document.createElement("link"),
link.href=c[f],link.type="text/css",link.rel="stylesheet",link.media="screen,print",d.appendChild(link),f++):e.call(this)})()},AdMutationObserver=function(c,e){var b=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;b?(new b(e)).observe(c,{subtree:!0,attributes:!0}):c.addEventListener?c.addEventListener("DOMAttrModified",e,!1):setInterval(e,1E3)},AdEvent=function(c,e,b){b=b||window;b.addEventListener?b.addEventListener(c,e,!1):b.attachEvent&&b.attachEvent("on"+c,e);
return this},AdConfiguration={"positions":[],"servers":[],"filters":[{"enabled":true,"retreiveMethod":null,"name":"Internal IP targeting","order":"","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"value","async":null,"retreiveValue":"AdPortal.isInternal","retreiveMethodParameters":null,"customFunction":null,"comparemode":"loose","id":6088},{"retreiveValue":null,"name":"firstTimeUser","order":"5","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveMethod":"AdConfigParser.getFirstTimeUser","retreiveMethodParameters":null,"customFunction":null,"comparemode":"strict","enabled":true,"id":4697},{"name":"Connection type","order":"0","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method","async":null,"retreiveValue":null,"retreiveMethod":"AdConfigParser.getConnectionType","retreiveMethodParameters":null,"customFunction":null,"comparemode":"strict","enabled":true,"id":5833},{"name":"Browser","order":"0","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"method","async":null,"retreiveValue":null,"retreiveMethod":"AdConfigParser.getBrowser","retreiveMethodParameters":"","customFunction":null,"comparemode":"strict","enabled":true,"id":2778},{"name":"category","order":"0","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdGraph.get","retreiveMethodParameters":"portal:category","customFunction":null,"comparemode":"loose","enabled":true,"id":7973},{"name":"Device type","order":"5","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method async","async":true,"retreiveValue":"AdPortal.deviceType","retreiveMethod":"AdConfigParser.getDeviceTypeInstant","retreiveMethodParameters":"","customFunction":"Portal.lo\t\t\tfilter.portalValue = value;valueDone();","comparemode":"strict","enabled":true,"id":356},{"name":"testparam","order":"0","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdConfig.get","retreiveMethodParameters":"test","customFunction":null,"comparemode":"strict","enabled":true,"id":6444},{"name":"visitor value segment","order":"5","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"method async","async":true,"retreiveValue":"AdPortal.deviceType","retreiveMethod":"AdConfigParser.getVisitorValueSegment","retreiveMethodParameters":null,"customFunction":"Portal.lo\t\t\tfilter.portalValue = value;valueDone();","comparemode":"strict","enabled":true,"id":2838},{"name":"visitor id","order":"4","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"method async","async":true,"retreiveValue":"window.country","retreiveMethod":"AdConfigParser.getVisitorId","retreiveMethodParameters":"","customFunction":"Portal.lo\t\t\tfilter.portalValue = value;valueDone();","comparemode":"strict","enabled":true,"id":8987},{"name":"game type","order":"12","sourcetype":"custom","customsource":"removedByFetchPHP","source":null,"keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdGraph.get","retreiveMethodParameters":"game:tags","customFunction":"","comparemode":"loose","enabled":true,"id":4021},{"name":"game developers","order":"4","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdGraph.get","retreiveMethodParameters":"game:developer","customFunction":null,"comparemode":"loose","enabled":true,"id":367},{"name":"games","order":"12","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdGraph.get","retreiveMethodParameters":"game:id","customFunction":"Portal.lo\t\t\tfilter.portalValue = value;valueDone();","comparemode":"strict","enabled":true,"id":3999},{"name":"pagetypes","order":"0","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdGraph.get","retreiveMethodParameters":"portal:page:type","customFunction":null,"comparemode":"strict","enabled":true,"id":3923},{"name":"sites","order":"1","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdGraph.get","retreiveMethodParameters":"portal:site:id","customFunction":"Portal.lo\t\t\tfilter.portalValue = value;valueDone();","comparemode":"strict","enabled":true,"id":9813},{"name":"countries","order":"2","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method async","async":true,"retreiveValue":"country","retreiveMethod":"AdConfigParser.getVisitorCountry","retreiveMethodParameters":"","customFunction":"Portal.lo\t\t\tfilter.portalValue = value;valueDone();","comparemode":"loose","enabled":true,"id":1264},{"name":"channels","order":"3","sourcetype":"custom","customsource":"removedByFetchPHP","source":"","keyField":"key","valueField":"name","retreiveTargetType":"method","async":false,"retreiveValue":"window.country","retreiveMethod":"AdGraph.get","retreiveMethodParameters":"portal:channel:id","customFunction":"Portal.lo\t\t\tfilter.portalValue = value;valueDone();","comparemode":"strict","enabled":true,"id":7566,"keyfield":"id","valuefield":"name"}],"positiontypes":[{"name":"Sky on left side","type":"display","key":"skyscraper","divid":"sgAdSc2","height":"160","width":"600","enabled":true,"id":4979,"divsize":null},{"divsize":null,"name":"Promo","type":"display","key":"promo","divid":"sgAdPr","height":"90","width":"728","enabled":true,"id":5196},{"divsize":null,"name":"Bilboard","type":"display","key":"bilboard","divid":"sgAdSu","height":null,"width":null,"enabled":true,"id":4297},{"divsize":null,"name":"Push down","type":"display","key":"pushdown","divid":"sgAdPd","height":null,"width":null,"enabled":true,"id":8767},{"name":"Mobile Leaderboard","type":"display","key":"mobilelb","divid":"sgAdMb","divsize":"320x50","height":"50","width":"320","enabled":true,"id":5897},{"name":"yume","type":"video","key":"yume","divid":"sgAdYv","divsize":"1x1","height":"1","width":"1","enabled":true,"id":4930},{"divsize":"320x50","name":"Mobile Leaderboard 2","key":"mobilelb2","divid":"sgAdMb2","height":"50","width":"320","enabled":true,"id":2999,"type":"display"},{"divsize":"300x250","name":"Midroll","key":"midroll","divid":"sgAdOg","height":"280","width":"336","enabled":true,"id":1054,"type":"video"},{"divid":"sgAdPa","name":"Performance Ad","type":"display","key":"Pa","height":"36","width":"150","enabled":true,"id":8962},{"name":"LeaderBoard Social Games","type":"display","key":"leaderboard_socialgame","divid":"sgAdLbSg","height":"90","width":"728","enabled":true,"id":4929},{"width":"300","name":"Medium rectangle","type":"display","key":"mpu","divid":"sgAdMr","height":"250","enabled":true,"id":945},{"name":"Leaderboard under the fold","key":"leaderboardunderthefold","divid":"sgAdLb2","height":"90","width":"728","enabled":true,"id":9652,"type":"display"},{"name":"Site takeover","key":"takeover","divid":"sgAdSt","height":"","width":"","enabled":true,"id":9034,"type":"display","divsize":null},{"name":"Skyscaper","key":"skyscaper","divid":"sgAdSc","height":"600","width":"160","enabled":true,"id":9752,"type":"display"},{"divid":"videoPreroll","name":"Preroll","type":"video","key":"preroll","height":"280","width":"336","enabled":true,"id":467,"divsize":"300x250"},{"name":"Leaderboard","divid":"sgAdLb","height":"90","width":"728","enabled":true,"id":9389,"key":"leaderboard","divsize":null,"type":"display"}],"autoRefreshes":null,"pagePositions":[{"name":"Subcategory Page","key":"SCP","positions":["Leaderboard","Skyscaper","Mpu"],"enabled":true,"id":6467,"channel":"1"},{"channel":"1","name":"Category page","key":"CP","positions":["Leaderboard","Skyscaper"],"enabled":true,"id":9757},{"channel":"1","name":"Gamepage","key":"GP","positions":["Video","Preformance","Leaderboard"],"enabled":true,"id":6928},{"channel":"1","name":"Homepage","key":"HP","positions":["Leaderboard","Skyscaper","Mpu"],"enabled":true,"id":8449}]};null===AdConfiguration&&(AdConfiguration={});
AdConfigParser={mergePositions:function(c){function e(a,d){if(d)for(var j in d)if(null==a[j]||void 0==a[j])a[j]=d[j];else if(a[j]instanceof Array)a[j]&&!a[j].length&&d[j]&&d[j].length&&(a[j]=d[j]);else if(typeof("object"==c[j])&&"filters"==j)for(k in d[j])if(!a[j][k]||!a[j][k].length)a[j][k]=d[j][k];if(f[a.id])for(j=0;j<f[a.id].length;j++)e(b[f[a.id][j]],a)}for(var b={},f={},d=[],a=0;a<c.length;a++)b[c[a].id]=c[a],c[a].parent?(f[c[a].parent]||(f[c[a].parent]=[]),f[c[a].parent].push(c[a].id)):d.push(c[a]);
for(var k,a=0;a<d.length;a++)e(d[a]);return c},getAsyncFilters:function(c){for(var e=[],b=c.length-1;0<=b;b--)c[b].async&&e.push(c[b]);return e},getNonAsyncFilters:function(c){for(var e=[],b=c.length-1;0<=b;b--)c[b].async||e.push(c[b]);return e},removeUnusedFilters:function(c,e){for(var b=c.length-1;0<=b;b--){for(var f=!1,d=0;d<e.length;d++){var a=e[d];a.filters[c[b].name]&&a.filters[c[b].name].length&&(f=!0)}f||c.splice(b,1)}return c},populateFilters:function(c,e){c.length||e(c);for(var b=c.length,
f=0,d=function(){f++;f==b&&e(c)},a=0;a<b;a++){var k=c[a];switch(k.retreiveTargetType){case "method":k.portalValue=executeFunctionByName(k.retreiveMethod,window,k.retreiveMethodParameters);d();break;case "method async":(function(a){executeFunctionByName(a.retreiveMethod,window,function(b){a.portalValue=!a.retreiveMethodParameters||""==a.retreiveMethodParameters?b:executeFunctionByName(a.retreiveMethodParameters,b);d()})})(k);break;case "value":try{k.portalValue=eval(k.retreiveValue)}catch(g){k.portalValue=
null}d();break;case "cookie":d();break;case "customcode":eval(k.customFunction)}}},filterPositions:function(c,e){for(var b=[],f=0;f<c.length;f++){var d=!0,a=c[f];a.filterScore||(a.filterScore=0);for(var k=0;k<e.length;k++){var g=e[k],h=a.filters[g.name];"boolean"===typeof g.portalValue&&(g.portalValue=g.portalValue?"1":"0");if(!h||!h.length)d=!0;else if(void 0==g.portalValue){d=!1;break}else if("loose"==g.comparemode&&-1===h.join(" ").toLowerCase().search(g.portalValue.toLowerCase())&&-1===g.portalValue.toLowerCase().search(h.join(" ").toLowerCase())){d=
!1;break}else if("strict"==g.comparemode&&-1===sgad.indexOf(h,parseInt(g.portalValue))&&-1===sgad.indexOf(h,g.portalValue+"")){d=!1;break}else a.filterScore++}d&&b.push(a)}return b},orderByPositionType:function(c){for(var e={},b=0;b<c.length;b++){var f=c[b];e[f.position]||(e[f.position]=[]);e[f.position].push(f)}return e},orderPositionsByFilters:function(c){var e=function(b,d){return d.filterScore-b.filterScore},b;for(b in c)c[b].sort(e);return c},getPageType:function(){if(AdConfigParser.cachedPageType)return AdConfigParser.cachedPageType;
var c=AdGraph.get("portal:page:type");"GP"==c||"games"==c||"game"==c?c="GP":"main"==c||"homepage"==c||"home_page"==c||"site"==c?c="HP":"search"==c?c="SP":"userprofile"==c||"profile"==c||"user"==c||"inbox"==c||"myfriends"==c||"myawards"==c||"changeavatar"==c||"mygallery"==c||"usergames"==c||"userfriends"==c||"userawards"==c||"usergallery"==c||"mygames"==c?c="PP":"category"==c||"categories"==c||"new_games"==c||"popular_games"==c||"virtualworld"==c||"gamegallerydetails"==c?c="CP":"gamesgalleries"==c||
"gamegalleries"==c||"gamesalbums"==c||"gamegallery"==c?c="AP":"subcategories"==c||"awardgames"==c||"achievementgames"==c||"subcategory"==c||"tagGames"==c||"newpage"==c||"gameshighscore"==c||"popularpage"==c||"newgames"==c||"mostplayedgames"==c||"bestratedgames"==c||"tags"==c||"highscoregames"==c||"gallerygames"==c||"flatpages"==c||"taggames"==c?c="SCP":"thumbpage"==c&&(c="BG");return AdConfigParser.cachedPageType=c},determineContainerIds:function(c){AdConfigParser.getPageType();for(var e=AdConfiguration.positiontypes,
b=0;b<c.length;b++)for(var f=c[b],d=0;d<e.length;d++)e[d].key==f.position&&(f.positionTypeReference=e[d],createDivPlaceHolderId(f))},populatePositions:function(c,e,b){function f(a){for(var b=0;b<e.length;b++){for(var d=0;d<a.sources.length;d++)e[b].id==a.sources[d].source&&(a.sources[d].sourceReference=e[b]);if(a.fallbacksources&&a.fallbacksources.length)for(d=0;d<a.fallbacksources.length;d++)e[b].id==a.fallbacksources[d].source&&(a.fallbacksources[d].sourceReference=e[b])}}function d(a){for(var d=
0;d<b.length;d++)b[d].key==a.position&&(a.positionTypeReference=b[d])}function a(a){var b=AdConfigParser.getPageType();b||(b="HP");sIdPageType=b.charAt(0).toUpperCase()+b.slice(1).toLowerCase();b="";a.positionTypeReference.divsize?b=a.positionTypeReference.divsize:a.positionTypeReference.width&&a.positionTypeReference.height&&(b=a.positionTypeReference.width+"x"+a.positionTypeReference.height);a.containerId="leaderboard_socialgame"===a.position||"preroll"===a.position?a.positionTypeReference.divid+
b:a.positionTypeReference.divid+sIdPageType+b}function k(a){for(var b=function(a,b){var d=a.match(/\|\|(.*?)\|\|/g),c;if(d)for(var k=0;k<d.length;k++)c=b[d[k].replace(/\|\|/g,"")],a=a.replace(d[k],c?c:"").replace(/\n/g,"");return a},d=0;d<a.sources.length;d++)a.sources[d].adSourceUrl=b(a.sources[d].sourceReference.urltemplate,a.sources[d].sourceData);if(a.fallbacksources&&a.fallbacksources.length)for(d=0;d<a.fallbacksources.length;d++)a.fallbacksources[d].adSourceUrl=b(a.fallbacksources[d].sourceReference.urltemplate,
a.fallbacksources[d].sourceData)}AdConfigParser.getPageType();for(var g=0;g<c.length;g++){var h=c[g];f(h);d(h);a(h);k(h)}return c}};
AdConfigConverter={convertServers:function(c){for(var e,b=1E4,f=0;f<c.length;f++){e=AdConfig.getServers();var d=!1,a;for(a in e)c[f].paramparser==e[a].keyId&&(c[f].oldServerId=a,d=!0);d||(e={},e.id=++b,e.keyId=c[f].paramparser,e.sourceUrl=c[f].urltemplate,c[f].oldServerId=e.id,AdConfig.setServer(e))}return c},getModelViewMap:function(c,e){var b={model:null,view:null};switch(c){case "fif":b.view="AdViewIframe";b.model="AdModel";"midroll"==e?(b.view="AdViewOnGame",b.model="AdModelIframe"):"preroll"==
e&&(b.view="AdViewGamepage",b.model="AdModelIframe");break;case "vastvideo":b.view="AdViewGamepage";b.model="AdModelPreroll";"midroll"==e&&(b.view="AdViewOnGame");break;case "flowplayer_liverail":b.view="AdViewGamepage";b.model="AdModelLiverail";break;case "videotest":b.view="AdViewPreroll";b.model="AdModel";break;case "krux":b.view="AdViewKrux";b.model="AdModel";break;case "yumevideo":b.view="AdViewYuMe";b.model="AdModel";break;case "googleima":b.view="AdViewGoogleIMA",b.model="AdModel"}return b},
createOldPositionConfigObject:function(c){var e={$overwrite:!0,abparameters:null,abtest:null,ads:[],allowCompanionAd:null};e.containerId=c.containerId;e.height=c.positionTypeReference.height;e.width=c.positionTypeReference.width;e.metaData=[];e.originalConfig=c;c.midrolltimeout&&(e.ongameTimeout=c.midrolltimeout);for(var b=0;b<c.sources.length;b++){var f=AdConfigConverter.getModelViewMap(c.sources[b].displayType,c.position);0==b&&(e.positionView={keyId:f.view});var d={};d.formatType={keyId:f.model};
d.positionView={keyId:f.view};d.metaData={sourceUrl:c.sources[b].adSourceUrl};d.controllerConfig=e;d.serverId=c.sources[b].sourceReference.oldServerId;c.fallbacksources&&c.fallbacksources.length&&"vastvideo"==c.sources[b].displayType&&(d.fallbackAd={},d.fallbackAd.serverId=c.fallbacksources[0].sourceReference.oldServerId,d.fallbackAd.formatType={keyId:"AdModelIframe"},d.fallbackAd.metaData={sourceUrl:c.fallbacksources[0].adSourceUrl});e.ads.push(d)}return e},convertPositions:function(c,e,b){e=AdConfig.getPositions();
e instanceof Array||(e=[]);var f=[],d,a,k;for(k in c)if(c[k].length){b[k]&&b[k].length&&consolelog("we have a refresh ad ",k);d=c[k][0];d=AdConfigConverter.createOldPositionConfigObject(d);f.push(d);for(var g=a=0;g<e.length;g++)if(e[g].containerId==d.containerId||e[g].containerId.substring(0,8)==d.containerId.substring(0,8))"videoPreroll300x250"==d.containerId&&(AdConfig.get().global.videoShowSkiplinkAfterSeconds=d.originalConfig.videoskiplinkafter,AdConfig.get().global.displayShowSkiplinkAfterSeconds=
d.originalConfig.displayskiplinkafter,AdConfig.get().global.displayDurationSeconds=d.originalConfig.displayadduration),e[g]=d,a++;a||e.push(d)}for(g=0;g<e.length;g++)for(k in b)b[k]&&b[k].length&&(c=b[k][0],e[g].containerId==c.containerId&&(d=AdConfigConverter.createOldPositionConfigObject(c),d.refreshAdMax=c.maxrefreshcount,d.refreshAdAfterSeconds=c.refreshafter,d.ads.length&&(d.metaData=d.ads[0].metaData,d.formatType=d.ads[0].formatType,d.serverId=d.ads[0].serverId,e[g].refreshAd=d)));e&&AdConfig.setPositions(e);
return e}};
var processAdConfiguration=function(c){if(!AdConfiguration||!AdConfiguration.positions||!AdConfiguration.positions.length)AdConfiguration.positions=[];if(!AdConfiguration.autoRefreshes||!AdConfiguration.autoRefreshes.length)AdConfiguration.autoRefreshes=[];if(!AdConfiguration.filters||!AdConfiguration.filters.length)AdConfiguration.filters=[];var e=AdConfigParser.getAsyncFilters(AdConfiguration.filters),b=AdConfigParser.getNonAsyncFilters(AdConfiguration.filters);AdConfigParser.mergePositions(AdConfiguration.positions);AdConfigParser.populateFilters(b,
function(){var f=AdConfigParser.filterPositions(AdConfiguration.autoRefreshes,b),d=AdConfigParser.filterPositions(AdConfiguration.positions,b);e=AdConfigParser.removeUnusedFilters(e,d);AdConfigParser.populateFilters(e,function(a){e=a;d=AdConfigParser.filterPositions(d,e);f=AdConfigParser.filterPositions(f,e);var b=AdConfigParser.orderByPositionType(d),g=AdConfigParser.orderByPositionType(f),b=AdConfigParser.orderPositionsByFilters(b,a),a=AdConfigParser.orderPositionsByFilters(g,a);AdConfigParser.populatePositions(d,
AdConfiguration.servers,AdConfiguration.positiontypes);AdConfigParser.populatePositions(f,AdConfiguration.servers,AdConfiguration.positiontypes);g=AdConfigConverter.convertServers(AdConfiguration.servers);AdConfigConverter.convertPositions(b,g,a);c()})})};AdConfigParser.getVisitorId=function(c){SpilGames(["Cache"],function(e){e.getItem("Tracker.visitorId",function(b){b+="";if(b.length)return b=b[b.length-1],c(b)})})};
AdConfigParser.getVisitorValueSegment=function(c){SpilGames(["Segmentation"],function(e){e.getSegmentProfileData(function(b){if(!b||!b.segments||b&&b.error)return c(0);null===b.segments.valueEUM&&c(-1);return c(b.segments.valueEUM)})})};
AdConfigParser.getVisitorCountry=function(c){if("undefined"!=typeof window.AdPortal&&window.AdPortal&&window.AdPortal.countryCode)return c(AdPortal.countryCode);if("undefined"!=typeof window.AdPortalSettings&&window.AdPortalSettings&&"function"==typeof window.AdPortalSettings.getCountryCode)return c(window.AdPortalSettings.getCountryCode());if("undefined"!=typeof window.Portal&&window.Portal&&window.Portal.locatar&&window.Portal.locatar.getData)Portal.locatar.getData(function(e){return c(e.locatar.country_code)});
else return c("en-US")};AdConfigParser.getDeviceType=function(c){SpilGames("api.util.uabalance",{context:{channelid:parseInt(AdGraph.get("portal:channel:id")),siteid:parseInt(AdGraph.get("portal:site:id"))},ua:navigator.userAgent},function(e){return c(e&&e.deviceType?e.deviceType:"unknown")})};AdConfigParser.getDeviceTypeInstant=function(c){var e="undefined"!=typeof AdPortal&&AdPortal&&AdPortal.deviceType?AdPortal.deviceType:"unknown";return c("undefined"==e?"unknown":e)};
AdConfigParser.getFirstTimeUser=function(){var c=!1;try{"undefined"!=typeof localStorage&&localStorage.getItem&&localStorage.setItem&&(c=!localStorage.getItem("spilgames.advertisement.isFirstTimeUser"),localStorage.setItem("spilgames.advertisement.isFirstTimeUser","false"))}catch(e){}return c.toString()};
AdConfigParser.getBrowser=function(){var c="Rest",e=AdBrowser.name.toLowerCase();"chrome"==e?c="Chrome":"firefox"==e?c="FireFox":"microsoft internet explorer"==e?c="IE"+AdBrowser.major:"safari"==e?c="Safari":"opera"==e&&(c="Opera");return c};AdConfigParser.getConnectionType=function(){var c="unknown";"undefined"!=typeof AdPortal&&AdPortal&&AdPortal.netspeed&&(c=AdPortal.netspeed.toLowerCase());return c};
var AdCookie=AdDefine(function(){this.get=function(c){var e=document.cookie.indexOf(c+"="),b=e+c.length+1;if(!e&&c!=document.cookie.substring(0,c.length)||-1==e)return null;c=document.cookie.indexOf(";",b);-1==c&&(c=document.cookie.length);return unescape(document.cookie.substring(b,c))};this.set=function(c,e,b,f,d,a){var k=new Date;k.setTime(k.getTime());b&&(b*=864E5);k=new Date(k.getTime()+b);document.cookie=c+"="+escape(e)+(b?";expires="+k.toGMTString():"")+(f?";path="+f:"")+(d?";domain="+d:"")+
(a?";secure":"")};this.del=function(c,e,b){this.get(c)&&(document.cookie=c+"="+(e?";path="+e:"")+(b?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT")};return this}),AdGraph=AdDefine(function(){for(var c=document.getElementsByTagName("meta")||[],e={},b=0,f=c.length;b<f;b++)if(c[b].getAttribute){var d=c[b].getAttribute("property")||c[b].getAttribute("name")||null,a=c[b].getAttribute("content")||null;d&&(e[d]=a)}this.get=function(a){return e[a]||null};return this});
(function(c){return c.Config=AdDefine(function(){var c={"parseTimestamp":1440352188,"pageType":"HP","global":{"playerKey":"#$91b7276c1003187b477","labelHeader":"Advertisement","labelSkiplink":"Click here to start the game","labelCountdown":"Advertisement","styleFile":"sgAdFamily.css","videoShowSkiplinkAfterSeconds":"20","displayDurationSeconds":"15","adtechDefault300x250PositionId":"1","labelVideoClickSign":"Click for more information","displayShowSkiplinkAfterSeconds":"7","yumeShowSkiplinkAfterSeconds":"25","needs":"deletion","clickTextGlobal":"FOR MORE INFORMATION, CLICK ON THE ADVERTISEMENT!","labelOngameSkiplinkOff":"Click to continue playing!","labelOngameSkiplink":"Click to keep playing your game!","labelOngameCountdown":"Advertisement","labelClicktoadLong":"Clicking this advertisement will not affect your game session. Link opens in a new window.","labelClicktoadShort":"For more information, click on the advertisement!","refreshAdMinValue":"180","labelLoading":"Loading..."},"site":{"keyId":"92"},"channel":{"keyId":"1"},"locale":{"keyId":"en-GB"},"country":{"keyId":"CA"},"positions":[{"containerId":"sgAdScHp160x600","width":"300","height":"600","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[{"serverId":"10","metaData":{"googleAdClient":"ca-pub-6675826664759732","googleAdWidth":"300","googleAdHeight":"600","googleAdFormat":"300x600_as","googleAdType":"display","googleAdChannel":"8832121602"},"fallbackAd":[],"formatType":{"keyId":"AdModel"}}]},{"containerId":"sgAdStHp","width":"1","height":"1","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[]},{"containerId":"sgAdLb2Hp728x90","width":"728","height":"90","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[{"serverId":"10","metaData":{"googleAdClient":"ca-pub-6675826664759732","googleAdWidth":"728","googleAdHeight":"90","googleAdFormat":"728x90_as","googleAdType":"display","googleAdChannel":"1308829482"},"fallbackAd":[],"formatType":{"keyId":"AdModel"}}]},{"containerId":"sgAdSuHp","width":"970","height":"250","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[]},{"containerId":"sgAdPdHp","width":"2","height":"2","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[]},{"containerId":"sgAdLbHp728x90","width":"728","height":"90","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewKrux"},"ads":[{"serverId":"10","metaData":{"googleAdClient":"ca-pub-6675826664759732","googleAdWidth":"728","googleAdHeight":"90","googleAdFormat":"728x90_as","googleAdType":"display","googleAdChannel":"5878705842"},"fallbackAd":[],"formatType":{"keyId":"AdModel"}}]},{"containerId":"sgAdLbMHp728x90","width":"728","height":"90","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[{"serverId":"65","metaData":{"googleAdClient":"ca-pub-6675826664759732","googleAdWidth":"728","googleAdHeight":"90","googleAdFormat":"728x90_as","googleAdType":"display","googleAdChannel":"5738953122"},"fallbackAd":[],"formatType":{"keyId":"AdModel"}}]},{"containerId":"sgAdLb2MHp728x90","width":"728","height":"90","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[{"serverId":"65","metaData":{"googleAdClient":"ca-pub-6675826664759732","googleAdWidth":"728","googleAdHeight":"90","googleAdFormat":"728x90_as","googleAdType":"display","googleAdChannel":"7215661002"},"fallbackAd":[],"formatType":{"keyId":"AdModel"}}]},{"containerId":"sgAdMbMHp320x50","width":"320","height":"50","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[{"serverId":"65","metaData":{"googleAdClient":"ca-pub-6675826664759732","googleAdWidth":"320","googleAdHeight":"50","googleAdFormat":"320x50_as","googleAdType":"display","googleAdChannel":"2785537362"},"fallbackAd":[],"formatType":{"keyId":"AdModel"}}]},{"containerId":"sgAdMb2MHp320x50","width":"320","height":"50","allowCompanionAd":"0","abtest":"0","abparameters":"","metaData":[],"positionView":{"keyId":"AdViewIframe"},"ads":[{"serverId":"65","metaData":{"googleAdClient":"ca-pub-6675826664759732","googleAdWidth":"320","googleAdHeight":"50","googleAdFormat":"320x50_as","googleAdType":"display","googleAdChannel":"4262245242"},"fallbackAd":[],"formatType":{"keyId":"AdModel"}}]}],"servers":{"10":{"keyId":"AdServerAdSense","sourceUrl":"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js"},"65":{"keyId":"AdServerAdSenseMobile","sourceUrl":"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js"}}},b=c;this._getOriginal=function(){return c};var f;f="";""!==f&&consolelog("Error",f);var d="";this.getVisitorId=function(){if(d)return d;try{d=JSON.parse(localStorage["spilgames.cache.Tracker.visitorId"]).value}catch(a){d=-1}return d};this.getVisitorDigit=function(){return this.getVisitorId()%10};this.init=function(){visitorDigit=this.getVisitorDigit();b.visitorDigit=visitorDigit;if(!("number"!=typeof visitorDigit||0>visitorDigit||
9<visitorDigit)&&b.positions&&b.positions.length&&0!=b.positions.length&&b.abtests)for(var a=/^[0-9](,[0-9])*$/,d=0;d<b.positions.length;d++)if(b.abtests[d]&&b.abtests[d].length&&0!=b.abtests[d].length)for(var c=0;c<b.abtests[d].length&&a.test(b.abtests[d][c].abparameters);c++)for(var e=b.abtests[d][c].abparameters.split(","),f=0;f<e.length;f++)if(visitorDigit==e[f]){b.positions[d]=b.abtests[d][c];break}};this.init();this.get=function(a){return void 0===a?b:b[a]||{}};this.getPositions=function(){return this.get("positions")};
this.getChannel=function(){return parseInt(AdGraph.get("portal:channel:id"))};this.getPosition=function(a){for(var b=this.get("positions"),d=0;d<b.length;d++)if(b[d].containerId==a)return b[d]};this.setPositions=function(a){b.positions=a};this.setPosition=function(a,d){for(var c=this.get("positions"),e=0;e<c.length;e++)c[e].containerId==a&&(b.positions[e]=d)};this.setServer=function(a){b.servers||(b.servers={});b.servers[a.id]=a};this.getServers=function(){return this.get("servers")};this.getServer=
function(a,b){var d=this.getServers()[a],c=d.keyId;b.sourceUrl=b.sourceUrl||d.sourceUrl;return window[c].instance(b)};this.getModel=function(a,b){var d=a.formatType.keyId,c=a.serverId,e=a.metaData;"AdModelPreroll"===d&&(d="AdModelVast");e.controllerConfig=b.getConfig();c=this.getServer(c,e);return window[d].instance(b,c)};this.getView=function(a){return window[a]&&window[a].instance()};this.getSequence=function(a,b){if(void 0===b)return null;var d="sgad.imp."+a,c=parseInt(AdCookie.get(d));if(0>=c||
isNaN(c))c=0;var e=b[c]||null;null===e&&c>=b.length&&(c=0,e=b[c]||e);var e=e||{},f=e.formatType||null;if(null===f)return null;switch(f.keyId||null){case "AdModelRepeatSequence":c=0;e=b[c]||e;break;case "AdModelRepeatLast":c--;e=b[c]||e;break;case "AdModelNone":e=null}AdCookie.set(d+".tmp",c);return e};this.getHostname=function(){return"http://static1.spilcdn.com/vda/"};this.getVersion=function(){return"40.10.5"};this.getRules=function(){var a=["sgAdScGp160x600","sgAdSc2Gp160x600","sgAdPaGp150x36","sgAdLbGp728x90",
"sgAdMrGp336x280"],b=[],d;for(d in a){var c=a[d],e=this.getPosition(c)||{};"1"===(e.metaData||{}).showAdAfterPreroll&&b.push(c)}e=function(){var a=window.setTimeout(function(){AdFrontController.getController("videoPreroll300x250")&&AdFrontController.getController("videoPreroll300x250").notify("onerror",{code:0,message:"No player events triggered within the threshold to enable delayed ads"})},15E3);return{clear:function(){window.clearTimeout(a)}}}();b=[{event:"oninit",eventId:"videoPreroll300x250",
action:"disable",actionIds:b},{event:"onstart",eventId:"videoPreroll300x250",action:"enable",actionIds:b,callback:e.clear},{event:"onerror",eventId:"videoPreroll300x250",action:"enable",actionIds:b,callback:e.clear},{event:"onfallback",eventId:"videoPreroll300x250",action:"enable",actionIds:b,callback:e.clear},{event:"onabort",eventId:"videoPreroll300x250",action:"enable",actionIds:b,callback:e.clear}];a="sgAdLbGp728x90,sgAdLbHp728x90,sgAdLbCp728x90,sgAdLbSp728x90,sgAdLbPp728x90,sgAdLbAp728x90,sgAdLbScp728x90".split(",");
d=["82"];for(var c=[],f,q=0;q<this.getPositions().length;q++)e=this.getPositions()[q],0<e.ads.length&&-1<d.indexOf(e.ads[0].serverId)&&(-1!=a.indexOf(e.containerId)?f=e.containerId:c.push(e.containerId));f&&0<c.length&&(b.push({event:"oninit",eventId:f,action:"disable",actionIds:c}),b.push({event:"onfinish",eventId:f,action:"enable",actionIds:c}),b.push({event:"onfetchend",eventId:f,action:"enable",actionIds:c}),b.push({event:"onabort",eventId:f,action:"enable",actionIds:c}));return b};this.getBlacklist=
function(){return{regex:{creativeserving_1x1:"creative-serving.com/1x1.gif","247realmedia_emptydiv":'<div id="ebDiv(.*)" dir="ltr"></div>',"360yield_1x1":"creative.360yield.com/file/504/1x1.jpg",adtech_min3:"AdId=-3",adtech_min8:"AdId=-8"}}};this.set=function(a){b=a};this.notify=function(a,b,d){"onfinish"===a&&(a="sgad.imp."+d.getId(),b=AdCookie.get(a+".tmp"),null!==b&&(b++,AdCookie.set(a,b),AdCookie.del(a+".tmp")))};return this})})(sgad,this);
(function(c){return c.Analyzer=AdDefine(function(){var c=AdConfig.getBlacklist(),b=function(a){var b=c.regex||{};for(xx in b)if(a.match(RegExp(b[xx],"g")))return"Regex: "+xx},f=window.onerror||function(){},d={ondocumentlock:function(a,b){window.onerror=function(){f.apply(window,arguments);b.notify("onerror",{code:3200,message:arguments[0]})}},ondocumentunlock:function(){window.onerror=f},onfetchend:function(a,d){var c=a.data,e;""==c.replace(/^\s*/,"").replace(/\s*$/,"")&&(e=!0);e&&d.notify("onerror",
{code:3300,message:""});(e=b(c))&&d.notify("ondefault",{code:3400,message:e,str:c});if(0<c.indexOf("acudeoVpaid")||0<c.indexOf("ssframework"))c=d.getView(),c.showTickerElements=function(){},c.showSkipLink=function(){},c.updateTicker=function(){getNode("sgAdTickerLabel").style.display="none"}}};this.notify=function(a,b,c){if(d[a])d[a](b,c)};return this})})(sgad,this);
(function(c){return c.Report=AdDefine(function(){var c={},b={},f={},d=0,a=function(a,b){if(void 0!==b)c[a]=b;else return c[a]||[]},k=function(b,d){var c=a(b);c.seq=c.seq||[];if(void 0!==d)c.seq[c.seq.length-1]=d;else return c.seq[c.seq.length-1]||[]},g=function(){var a=(new Date).getTime();this.watch=function(){var b=Math.round((new Date).getTime()-a);if(0<=b)return b};return this},h,j={},l=function(a){if(j[a])return j[a][0];j[a]=a.match(/[1-9][0-9]*x[1-9][0-9]*$/);j[a]=j[a]?j[a]:["1x1"];return j[a][0]},
q=[],p=function(a,b){if(q[a])return q[a];var d=b.getSequence();if(d){if(d.metaData&&d.metaData.sourceUrl){var c=A(d.metaData.sourceUrl);if(c)return q[a]=c}var e,f;if((e=AdConfig.getServers())&&(f=e[d.serverId])){if(f.sourceUrl&&(c=A(f.sourceUrl)))return q[a]=c;if(f.keyId)return f.keyId}}return"unknown"},n=function(a,b){var d={adSource:p(b,a),tagname:b,size:l(b),countryCode:AdConfig.get("country").keyId,version:AdConfig.getVersion(),deviceType:AdConfigParser.getDeviceTypeInstant(function(a){return a})},
c=AdConfig.getPosition(b);c&&c.refreshAd&&(d.adRefreshCount=c.refreshAd.iteration);return d},r=function(a,b){var d=b.getSequence(),d=d&&d.formatType?d.formatType.keyId:null,c=b.getConfig().positionView,e=c?c.keyId:null,c="AdViewGamepage"===e||"AdViewOnGame"===e,e="AdViewPreroll"===e||"AdViewGoogleIMA"===e,d=!d||"AdModelPreroll"===d&&c||"AdModelLiverail"===d&&c||"AdModel"===d&&e;return("video"===a.substring(0,5)||"sgAdOg"===a.substring(0,6))&&(c||e)&&d},t=function(a){"function"==typeof SpilGames&&
SpilGames("tracker.event.express",a)},s=function(a){if("function"==typeof SpilGames){var b=0,d=(new Date).getTime();!h||"oninit"==a.eventAction?h=d:b=d-h;a.properties=a.properties||{};a.properties.eventTimer=b;t(a)}},o=function(a){"videoAds"===a.eventCategory&&s(a)},m=!1,w=function(a){if("function"===typeof ga&&void 0!==window.performance&&void 0===a.properties.adRefreshCount&&"gamepage"!==AdConfig.get("pageType")){!1===m&&(ga("create","UA-65069027-1","auto",{name:"adeTracker"}),m=!0);var b=parseInt(performance.now()/
100)/10;180<b&&(b=180);ga("adeTracker.send","event",a.eventCategory+" "+b,a.eventAction,a.properties.tagname)}},u={full:[],recognised:[]},A=function(a){var b=[];b["247realmedia"]=["http://mfr.247realmedia.com"];b["2mdn"]=["m1.2mdn.net"];b.Adtech=["http://adserver.adtech.de/addyn/3.0/1183","adserverams.adtech.de"];b.Adtechvideo=["http://adserver.adtech.de/?advideo/3.0/1183"];b.Appnexus=["ib.adnxs.com"];b.Atdmt=["cdn.atdmt.com","view.atdmt.com"];b.Bannerconnect=["bncnt.com"];b.Branovate=["http://ad.yieldmanager.com/"];
b.CPMStar=["cdn3.cpmstar.com","http://server.cpmstar.com/"];b.Contextweb=["contextweb.com"];b.Gan=["media.gan-online.com"];b.Google=["google_ad_client","google_iframe","googleadservices.com","http://googleads.g.doubleclick.net","http://pagead2.googlesyndication.com/pagead/show_ads.js"];b.Gorillanation=["http://n4403ad.doubleclick.net"];b.Improveddigital=["http://ad.360yield.com/"];b.Leonardo=["http://ad.it.doubleclick.net"];b.Liverail=["http://ad4.liverail.com/?LR_PUBLISHER_ID=13109"];b.Mathtag=["tags.mathtag.com"];
b.Miniclip=["http://ad.doubleclick.net/adj/miniclip"];b.Mopub=["http://ads.mopub.com/js/client/mopub.js"];b.Orangespain=["http://ad.doubleclick.net/N7605"];b.Orangelatam=["http://ad.doubleclick.net/N7298"];b.Servingsys=["bs.serving-sys.com","ds.serving-sys.com"];b.Turn=["ad.turn.com","r.turn.com"];b.Venatus=["http://cdn2-marketplace.vntsm.com"];b.Yume=["http://pl.yumenetworks.com"];var d;a:for(adProviderKey in b)for(adTextKey in b[adProviderKey])if(!isNaN(adTextKey)&&-1!==a.indexOf(b[adProviderKey][adTextKey])){d=
adProviderKey;break a}return d};this.getDeliveryChain=function(){return u};var v={oninit:function(b,c,e,k,s){f[c]?f[c]++:f[c]=1;a(c,{num:d,seq:[],timers:{init:new g}});d++;r(c,s)&&o({eventCategory:"videoAds",eventAction:"oninit",properties:n(s,c),eventValue:1})},ondispatch:function(b,d,c){c&&c.seq&&(c.seq.push({type:((b||{}).formatType||{}).keyId||"none",timers:{}}),a(d,c))},onfetchstart:function(a,b,d,c,e){c.timers.fetch=new g;k(b,c);a=n(e,b);r(b,e)?o({eventCategory:"videoAds",eventAction:"request",
properties:a,eventValue:1}):(s({eventCategory:"displayAds",eventAction:"fetch",properties:a,eventValue:1}),s({eventCategory:"displayAds",eventAction:"adRequested",properties:a,eventValue:1}),w({eventCategory:"displayAds",eventAction:"adRequested",properties:a}))},onfetchend:function(a,b,d,c,e){c.timers.fetchend=new g;k(b,c);d=n(e,b);r(b,e)?o({eventCategory:"videoAds",eventAction:"fetchendvideo",properties:d,eventValue:1}):(s({eventCategory:"displayAds",eventAction:"fetchend",properties:d,eventValue:1}),
0<a.data.replace(/^\s+|\s+$/gm,"").replace(a.adsource,"").length&&(s({eventCategory:"displayAds",eventAction:"adRequestFullfilled",properties:d,eventValue:1}),w({eventCategory:"displayAds",eventAction:"adRequestFullfilled",properties:d})))},ondeliverychain:function(a,b,d,c,e){a=a.str;d=A(a);c=!0;d?u.recognised[b]&&1<=u.recognised[b].length?u.recognised[b].slice(-1)[0].adProvider===d&&(c=!1):q[b]&&q[b]===d&&(c=!1):c=!1;u.full[b]||(u.full[b]=[]);u.full[b].push({data:a,adProvider:d});/NO_AD_DELIVERY/ig.test(a)&&
AdFrontController.getController(b).notify("ondefault",{code:3400,message:"Violation of an rule (blank detection)",str:a});if(c&&(u.recognised[b]||(u.recognised[b]=[]),c=u.recognised[b].length+2,u.recognised[b].push({data:a,adProvider:d,chainDepth:c}),!(4<c)&&!("agame.com"!==AdGraph.get("og:site_name")||"HP"!==AdConfig.get("pageType"))))s({eventCategory:r(b,e)?"videoAds":"displayAds",eventAction:r(b,e)?"request":"fetch",properties:n(e,b),eventValue:c}),"Adtech"===d&&2===c&&s({eventCategory:r(b,e)?
"videoAds":"displayAds",eventAction:"default",properties:n(e,b),eventValue:c})},onfallback:function(){},onclose:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"onclose",properties:n(e,b),eventValue:1})},ondefault:function(a,b,d,c,e){u.recognised[b]||(u.recognised[b]=[]);a=u.recognised[b].length+1;s({eventCategory:r(b,e)?"videoAds":"displayAds",eventAction:"default",properties:n(e,b),eventValue:a})},onabort:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"abort",
properties:n(e,b),eventValue:1})},onload:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"onload",properties:n(e,b),eventValue:1})},onduration:function(a,b,d,c,e){b=-1;a.linearAd&&a.linearAd.duration?(duration_array=a.linearAd.duration.split(":"),b=duration_array[2]?3600*duration_array[0]+60*duration_array[1]+duration_array[2]:a.linearAd.duration):"number"==typeof a&&(b=a);Math.round(b);32<parseInt(a)&&e.notify("onerror",{code:2500,message:"Video length exceeded"})},onadinfo:function(a,
b,d,c){c.ads=c.ads||-1;var a=a||[],e;for(e in a)c.ads++},onskiplinkstart:function(){},onskiplinkshow:function(b,d,c){c.timers.skshow=new g;a(d,c)},onskiplinkclick:function(b,d){a(d)},ontick:function(a,d,c,e,k){c.timers.ontick=a;b[d]||(b[d]={});b[d][f[d]]||(r(d,k)&&(c=window.screen,e=n(k,d),e.viewport=c.width+"x"+c.height,o({eventCategory:"videoAds",eventAction:a.source&&"display"==a.source?"firsttickdisplay":"firsttick",properties:e,eventValue:1}),o({eventCategory:"videoAds",eventAction:a.source&&
"display"==a.source?"adDeliveredDisplay":"adDelivered",properties:n(k,d),eventValue:1})),b[d][f[d]]=!0)},ontrackingevent:function(){},onquartile:function(){},onstart:function(){},onfinish:function(a,b,d,c,e){var f,k;null!=a&&"object"==typeof a&&"undefined"!=typeof a.source&&(f=a.source);switch(f){case "lifeline":case "zylom":case "onregister":break;case "onabort":k="endabort";break;case "onerror":k="enderror";break;default:k="end"}null!==k&&"undefined"!==typeof k&&r(b,e)&&o({eventCategory:"videoAds",
eventAction:k,properties:n(e,b),eventValue:1})},onrender:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"onrender",properties:n(e,b),eventValue:1})},onmetadata:function(){},onspoof:function(){},onresize:function(){},onclick:function(){},onerror:function(a,b,d,c,e){c.errors=c.errors||-1;c.errors++;k(b,c);d=n(e,b);d.errorCode=parseInt(a.code,10);r(b,e)?o({eventCategory:"videoAds",eventAction:"error",properties:d,eventValue:1}):s({eventCategory:"displayAds",eventAction:"error",properties:d,
eventValue:1})},ondefaulterror:function(a,b,d,c,e){c.errors=c.errors||-1;c.errors++;k(b,c);d=n(e,b);d.errorCode=parseInt(a.code,10);r(b,e)?o({eventCategory:"videoAds",eventAction:"error",properties:d,eventValue:1}):s({eventCategory:"displayAds",eventAction:"error",properties:d,eventValue:1})},onvasterror:function(a,b,d,c,e){c.errors=c.errors||-1;c.errors++;k(b,c);d=n(e,b);d.errorCode=parseInt(a.code,10);r(b,e)?o({eventCategory:"videoAds",eventAction:"error",properties:d,eventValue:1}):s({eventCategory:"displayAds",
eventAction:"error",properties:d,eventValue:1})},playerRequested:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"playerRequested",properties:n(e,b),eventValue:1})},playerConfigured:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"playerConfigured",properties:n(e,b),eventValue:1})},playerInitialized:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"playerInitialized",properties:n(e,b),eventValue:1})},playerFailed:function(a,b,d,c,e){r(b,e)&&
o({eventCategory:"videoAds",eventAction:"playerFailed",properties:n(e,b),eventValue:1})},adDelivered:function(){},adFailed:function(a,b,d,c,e){r(b,e)&&o({eventCategory:"videoAds",eventAction:"adFailed",properties:n(e,b),eventValue:1})}};this.onmidrolldecision=function(a){t({eventCategory:"midrollAds",eventAction:"decision",properties:{interval:a.time,accepted:a.accepted}})};this.onfrequencytimer=function(a){t({eventCategory:"midrollAds",eventAction:"frequencytimer",eventValue:a.time})};this.notify=
function(b,d,c){if(v[b]){var e=c.getId();v[b](d,e,a(e),k(e),c)}};return this})})(sgad,this);
(function(c){return c.LifeLine=AdDefine(function(){var c=this,b={},f=function(a,d,f){a+=f.getId();b[a]||(b[a]=AdTimer.instance(d,{sender:f,id:a},c),b[a].start())},d=function(a,d){a+=d.getId();b[a]&&b[a].stop()},a={onfetchstart:function(a,b){f("fetch",10,b)},onfetchend:function(a,b){d("fetch",b)},onfallback:function(a,b){d("fetch",b)},onstart:function(a,b){f("firsttick",4,b)},ontick:function(a,b){d("firsttick",b)},ontimercompleted:function(a){a.sender.notify("onfinish",{source:"lifeline",id:a.id})}};
this.notify=function(b,d,c){if(a[b])a[b](d,c)};return this})})(sgad,this);(function(c,e){return c.Observable=e.AdObservable=AdDefine(function(){var b=[];this.add=function(c){b.push(c)};this.notify=function(c,d,a){for(var e=0,g=b.length,e=0;e<g;e++)b[e].notify&&b[e].notify(c,d,a)};return this})})(sgad,this);
(function(c,e){return c.Timer=e.AdTimer=AdDefine(function(b,c,d){var a="pending",e=0;this.start=function(){"started"!==a&&"completed"!==a&&(h("started"),g())};this.pause=function(){"started"===a&&h("paused")};this.stop=function(){"started"===a&&h("stopped")};var g=function(){"started"===a&&(e>=b?h("completed"):(setTimeout(function(){g(this)},1E3),e++))},h=function(b){a=b;d.notify("ontimer"+a,c,this)};return this})})(sgad,this);
(function(c){return c.FrontController=AdDefine(function(){var c=[],b=[],f=AdObservable.instance();this.lockedPositions={};this.displayPositions=function(){this.removePositions();this.setup()};this.displayPosition=function(b,a){if(!this.lockedPositions[b]){this.lockedPositions[b]=!0;this.removePosition(b);var a=a||AdConfig.getPosition(b),c=this.addController(AdController.instance().create(a));c&&(this.initPosition(c),this.dispatchPosition(c))}};this.startAutoRefresh=function(b){if(b.refreshAd.refreshAdAfterSeconds){5>
b.refreshAd.refreshAdAfterSeconds&&(b.refreshAd.refreshAdAfterSeconds=5);AdConfig.get("global").refreshAdMinValue&&b.refreshAd.refreshAdAfterSeconds<AdConfig.get("global").refreshAdMinValue&&(b.refreshAd.refreshAdAfterSeconds=AdConfig.get("global").refreshAdMinValue);var a=1E3*b.refreshAd.refreshAdAfterSeconds,c=[b.containerId],e=this;(function(){setTimeout(function(){if(c){if(c instanceof Array&&c.length>=1)for(var a=c.length-1;a>=0;a--){f.notify("onrefresh",c[a]);if(c[a]==="AdModelNone")return false;
var j=b;j.ads=[b.refreshAd];e.displayPosition(c[a],j)}}else e.displayPositions()},a)})()}};this.setup=function(){this.detectAdBlocker();this.setupPositions();this.initPositions();this.setupIngameAds();this.setupMobileAds();this.dispatchPositions()};this.setupPositions=function(){for(var d=AdController.instance(),a=AdConfig.getPositions(),c=[],e=0;e<a.length;e++)c[a[e].containerId]=a[e];for(e=0;e<b.length;e++){var f=b[e];!this.lockedPositions[f]&&"sgAdOgGp300x250"!=f&&"sgAdYvCp1x1"!=f&&c[f]&&(this.lockedPositions[f]=
!0,this.addController(d.create(c[f])))}for(e=0;e<a.length;e++)f=a[e].containerId,!this.lockedPositions[f]&&"sgAdOgGp300x250"!=f&&"sgAdYvCp1x1"!=f&&(this.lockedPositions[f]=!0,this.addController(d.create(a[e])))};this.detectAdBlocker=function(){var b=this;window.ade_advertfile_loaded=!1;AdScriptLoader(AdConfig.getHostname()+"advert.js",{notify:function(a){if("onfinish"===a&&!1===window.ade_advertfile_loaded&&"function"==typeof SpilGames){SpilGames("tracker.event.express",{eventCategory:"portal",eventAction:"adBlockerDetected",
eventValue:1});for(var c=b.getControllers(),a=0;a<c.length;a++)c[a].notify("onadblocked")}}},function(){})};this.setupMobileAds=function(){var b=AdConfig.getPosition("sgAdYvGp1x1")||AdConfig.getPosition("sgAdYvCp1x1");b&&!SpilGames.mobileAdEvent&&(SpilGames.lastShown=SpilGames.lastShown||new Date(2E3,1,1),SpilGames(["JSLib"],function(a){SpilGames.adRequestEvent=SpilGames.adRequestEvent||a.subscribe("mobile.ad.request",function(){6E4>new Date-SpilGames.lastShown||(SpilGames("mobile.ad.accepted"),AdFrontController.displayPosition(b.containerId,
b))});SpilGames.adFinishEvent=SpilGames.adFinishEvent=a.subscribe("mobile.ad.finished",function(){SpilGames.lastShown=new Date});SpilGames("mobile.ads.ready")}))};this.setupIngameAds=function(){var b=AdConfig.getPosition("sgAdOgGp300x250"),a=this;if(b&&(b.$overwrite||!AdGraph.get("game:tags")||!AdGraph.get("game:tags").match("Social")||!("3"===AdGraph.get("portal:channel:id")||"152793"!==AdGraph.get("game:id")&&"150798"!==AdGraph.get("game:id")))){var c=(new Date).getTime();"function"==typeof SpilGames&&
SpilGames(["JSLib"],function(e){e.subscribe("game.ad.request",function(a){AdFrontController.adImageData=a;a=1E3*(b.ongameTimeout?b.ongameTimeout:60);if(c&&(new Date).getTime()-c<a)AdReport.onmidrolldecision({time:a/1E3,accepted:!1});else AdReport.onmidrolldecision({time:a/1E3,accepted:!0}),SpilGames("ad.request.accepted",!0)});e.subscribe("game.ad.accepted",function(b){if(!a.lockedPositions.sgAdOgGp300x250){if("object"==typeof b){if(!b.displayAd)return;AdFrontController.adImageData=b.bgImage}else if(!b)return;
if(b=AdConfig.getPosition("sgAdOgGp300x250"))AdFrontController.displayPosition("sgAdOgGp300x250",b),a.lockedPositions.sgAdOgGp300x250=!0,AdFrontController.getController("sgAdOgGp300x250").subscribe({notify:function(b){"onfinish"===b&&(a.lockedPositions.sgAdOgGp300x250=!1)}}),c=(new Date).getTime()}})})}};this.initPositions=function(){for(var b=this.getControllers(),a=0;a<b.length;a++)this.initPosition(b[a])};this.initPosition=function(b){f.notify("oninitposition",b);b.init()};this.dispatchPositions=
function(){for(var b=this.getControllers(),a=0;a<b.length;a++){var c=b[a];"videoPreroll300x250"===c.getId()&&"Zylom"===AdGraph.get("game:developer")?c.notify("onfinish",{source:"zylom"}):AdSolution.WidgetIntegration.isPrerollAborted()?c.notify("onfinish",{source:"onabort"}):c.getEnabled()&&this.dispatchPosition(c)}f.notify("onrun")};this.dispatchPosition=function(b){b.dispatch()};this.removePositions=function(){for(var b=c.length-1;0<=b;b--)this.removePosition(c[b].getId())};this.removePosition=function(b){if(b=
this.getController(b))b.destruct(),this.removeController(b)};this.removeController=function(b){if(void 0!==b)for(var a=0;a<c.length;a++)if(c[a]===b)return c.splice(a,1)};this.addController=function(b){if(void 0!==b)return c.push(b),this.getController(b.getId())};this.getControllers=function(){return c};this.getController=function(b){for(var a=0;a<c.length;a++)if(c[a].getId()===b)return c[a];return null};this.register=function(c){c=c instanceof Array?c[0]:c;b.push(c);var a=this.getController(c);a&&
(AdConfig.getPosition(c),a.render(),a.notify("onregister"))};this.isRegistered=function(c){if(Array.prototype.indexOf)return-1!=b.indexOf(c);for(var a=0,e=b.length;a<e;a++)if(b[a]==c)return!0;return!1};this.getObservable=function(){return f};return this})})(sgad,this);
(function(c){return c.Rules=AdDefine(function(){var c=AdConfig.getRules();this.notify=function(b,f,d){f=d.getId();for(d=c.length;d--;){var a=c[d];if(a.event===b&&a.eventId==f){for(var k=a.actionIds.length;k--;){var g=AdFrontController.getController(a.actionIds[k]);g&&("disable"==a.action?g.getEnabled()&&g.disable():"enable"==a.action&&!g.getEnabled()&&(g.enable(),AdFrontController.dispatchPosition(g)))}a.callback&&a.callback()}}};return this})})(sgad,this);
(function(c,e){return c.Controller=e.AdController=AdDefine(function(b){var c="",d="",a="",e=AdObservable.instance(),g={},h={},j=null,l=!0,q=!1,p=!1,n=!1,r=!0,t=!1,s=!1,o=null;this.create=function(a){a=AdController.instance(a);a.subscribe(AdReport);a.subscribe(Rules);a.subscribe(AdConfig);a.subscribe(AdAnalyzer);"videoPreroll300x250"==a.getId()&&a.subscribe(AdLifeline);a.subscribe({notify:function(a,b,c){c.getId();c.event_cache=c.event_cache||{};c.event_cache[a]=c.event_cache[a]||[];c.event_cache[a].push(b)}});
return a};this.init=function(){j=AdConfig.getSequence(b.containerId,b.ads);this.notify("oninit");null!==j&&(g=AdConfig.getModel(j,this),positionView=b.positionView.keyId,j.positionView&&j.positionView.keyId&&(positionView=j.positionView.keyId),(h=AdConfig.getView(positionView))&&h.initialize&&h.initialize(b.containerId))};this.destruct=function(){g&&"function"==typeof g.destruct&&g.destruct();h&&"function"==typeof h.destruct&&h.destruct()};this.dispatch=function(){!q&&!n&&(this.notify("ondispatch",
j),g.fetch&&(q=!0,g.fetch(function(b,e,k,r){o=b;c=e;d=k;a=r;m.render(e,k,r)})))};this.render=function(){if(!p&&!n&&o&&AdFrontController.isRegistered(this.getId())&&h&&h.render){p=!0;try{h.render(o,this,c,d,a)}catch(b){consolewarn("View render exception",b)}o=null;this.notify("onrender")}};this.getTimerRefresh=function(){return null};this.getFinished=function(){return n};this.getId=function(){return b.containerId||null};this.getSequence=function(){return j};this.getMetaData=function(){return b.metaData};
this.getView=function(){return h};this.getModel=function(){return g};this.getConfig=function(){return b};this.getPlacementTag=function(){return b.ads[0].metaData.placementId||null};this.subscribe=function(a){e.add(a)};this.notify=function(a,b){var c=!0;switch(a){case "onskiplinkstart":case "onskiplinkshow":case "onduration":case "ontick":case "onfinish":h&&(h.showSkipLink||(c=!1))}!0===c&&e.notify(a,b,this);if(w[a])w[a](b)};this.SWPSystemEmit=function(a,b){AdSolution.WidgetIntegration.getModule(function(c){(b||
!n)&&c&&c.System&&c.System.emit(a)})};var m=this,w={onfetchstart:function(){"videoPreroll300x250"==m.getId()?m.SWPSystemEmit("ad.preroll.start",!1):"sgAdOgGp300x250"==m.getId()&&m.SWPSystemEmit("ad.midroll.start",!1)},onload:function(){},onstart:function(){h&&h.showTickerElements&&h.showTickerElements(!0)},onskiplinkstart:function(a){skipLinkTimer=setTimeout(function(){h&&h.showSkipLink&&(h.showSkipLink(!0),m.notify("onskiplinkshow"))},1E3*parseInt(a.after||20))},onskiplinkshow:function(){h.getSkipLink&&
(h.getSkipLink().onclick=function(){m.notify("onskiplinkclick")})},onskiplinkclick:function(){m.notify("onfinish",{source:"skiplink"})},onpause:function(){},onresume:function(){},onabort:function(){n||(n=!0,null!==h&&(h&&h.stop&&h.stop(),m.hide()))},onfinish:function(){n||(n=!0,null!==h&&("videoPreroll300x250"==m.getId()?(h&&h.stop&&h.stop(),m.hide(),m.SWPSystemEmit("ad.preroll.finish",!0)):"sgAdOgGp300x250"==m.getId()&&(h&&h.stop&&h.stop(),m.hide(),m.SWPSystemEmit("ad.midroll.finish",!0),SpilGames("ad.complete"))))},
onerror:function(a){if(!n&&(1==a.code||2100==a.code||2200==a.code||2300==a.code||3300==a.code)&&!0!==u())m.notify("onfinish",{source:"onerror"}),m.hide()},ondefault:function(){!0!==u()&&(m.notify("ondefaulterror",{code:3400,message:"Violation of an rule (blank detection)"}),m.notify("onfinish",{source:"ondefault"}),m.hide())},ontick:function(a){h&&h.updateTicker&&h.updateTicker(a.total,a.tick);"videoPreroll300x250"==m.getId()?m.SWPSystemEmit("ad.preroll.heartbeat",!1):"sgAdOgGp300x250"==m.getId()&&
m.SWPSystemEmit("ad.midroll.heartbeat",!1)},oncompanionad:function(a){if("sgAdCompanion1"===a.target)!(0<a.data.indexOf("none"))&&h.companionAd&&(h.companionAd(a.data),m.notify("onresize",{width:a.width,height:a.height}));else if(!(0<a.data.indexOf("display:none"))&&null!==get(a.target)){var b=a.data.match(/(src=".*?")/)[1],b=b.substr(5,b.length-1),c=AdFrontController.getController(a.target),d;d=c?c.getView():AdViewKrux.instance();b=make("iframe",{src:"/vda/iframe.html?url="+encodeURI(b),width:"100%",
height:"100%",scrolling:"no",frameborder:0,style:"margin: 0; padding:0; border:0px;",allowtransparency:!0});b.controller=c;d.initialize(a.target);d.render(b);s=!0;getNode(a.target).style.display="block"}},onresize:function(a){h.resizeAd&&h.resizeAd(a.width,a.height)},onrender:function(){if(b.refreshAd){if(!b.refreshAd.metaData.sourceUrl){var a=AdConfig.getServers()[b.refreshAd.serverId];b.refreshAd.metaData.sourceUrl=a.sourceUrl}b.refreshAd.iteration=!b.refreshAd.iteration?1:b.refreshAd.iteration+
1;(!b.refreshAd.refreshAdMax||b.refreshAd.iteration<=b.refreshAd.refreshAdMax)&&AdFrontController.startAutoRefresh(b)}delete AdFrontController.lockedPositions[m.getId()]},onadblocked:function(){t=!0}},u=function(){j=j||{};var a=j.fallbackAd||{};m.notify("onfallback");if(void 0!==a.formatType){var c=m.getId();if(b.originalConfig)var d=AdConfigConverter.createOldPositionConfigObject(b.originalConfig);else{if("AdModelNone"===j.formatType.keyId)return!1;d=copyObject(b,["controllerConfig"])}d.ads=[a];
if(/sgAdSu/ig.test(c))d.width="728",d.height="90",AdFrontController.displayPosition(c,d),(a=document.getElementById(c))&&addClassName(a,"sgAdLb");else if(AdFrontController.displayPosition(c,d),t&&(a=document.getElementById(c)))if(removeClass(a,"sgAd"),a=getElementsByClassName(a,"sgAdLabel")[0])a.style.display="none";return!0}return!1};this.clean=function(a){a=a.replace(/<script([^>]*)>([.\s\S]*?)<\/script>/ig,"");a=a.replace(/<noscript([^>]*)>([.\s\S]*?)<\/noscript>/ig,"");return a=a.replace(/(<iframe[^>]*>)[.\s\S]*?(<\/iframe>)/ig,
function(a,b,c){return b+c})};this.enable=function(){l=!0};this.disable=function(){l=!1};this.getEnabled=function(){return l};this.show=function(){r=!0;h&&h.show&&h.show()};this.hide=function(){r=!1;g&&"function"==typeof g.hide&&g.hide();h&&"function"==typeof h.hide&&h.hide()};this.getVisibility=function(){return r};this.getHasRoadBlock=function(){return s};return this})})(sgad,this);
(function(c,e){return(c.model={}).Model=e.AdModel=AdDefine(function(b,c){this.fetch=function(b){c.getSource(function(a,c,e,f){b(a,c,e,f)})};return this})})(sgad,this);
(function(c,e){return c.model.Iframe=e.AdModelIframe=AdModel.extend(function(b,c){this.id="AdModelIframe";var d=!0;this.fetch=function(a){c.getSource(function(c,e,f){reg=/src=\"(.+)\"/;var j=c.match(reg);j[1]&&(e=j[1]);var l=AdViewIframe.instance(),q=make("div",{style:"position: absolute; z-index:2 ; display:none; margin: 0px; padding: 0px;",id:"wrapper_iframeContainer"+b.getId()});l.renderAt(c,b,e,f,q);(document.body||document.documentElement).appendChild(q);var p;b.posIframe=function(){p||(p=setTimeout(function(){if(d&&
n&&n.parentNode){l.width!=n.parentNode.offsetWidth&&(l.width=n.parentNode.offsetWidth);l.height!=n.parentNode.offsetHeight&&(l.height=n.parentNode.offsetHeight);var a=0,b=0,c=n;do a+=c.offsetLeft,b+=c.offsetTop;while(c=c.offsetParent);q.style.left!=a+"px"&&(q.style.left=a+"px",q.style.display="block");q.style.top!=b+"px"&&(q.style.top=b+"px",q.style.display="block");p=null}},100))};b.posListener=function(){var a=this;AdMutationObserver(document.body,function(){a.posIframe.call(a.getModel())});setTimeout(function(){a.posIframe.call(a.getModel())},
200);AdEvent("resize",function(){a.posIframe.call(a.getModel())});AdEvent("load",function(){a.posIframe.call(a.getModel())})};b.frameready=function(){b.iframeloaded=!0};b.subscribe({notify:function(a,b,c){"onrender"==a&&c.posListener&&c.posListener()}});var n=make("div",{style:"width:100%;height:100%;"});a(n)})};this.hide=function(){d=!1;var a="wrapper_iframeContainer"+b.getId();if(a=getNode(a))a.style.display="none"};this.destruct=function(){d=!1;var a="wrapper_iframeContainer"+b.getId(),a=getNode(a);
a.parentNode&&a.parentNode.removeChild(a)};return this})})(sgad,this);
(function(c,e){return c.model.Vast=e.AdModelVast=AdModel.extend(function(b,c){this.id="AdModelVast";var d;this.fetch=function(a){c.getSource(function(c){reg=/src=\"(.+)\"/;var e=c.match(reg);e[1]&&(c=e[1]);b.notify("onfetchstart",{source:c});e=AdConfig.getHostname()+"vendor/flowplayer/";c={wmode:"direct",quality:"autolow",plugins:{rtmp:{url:e+"flowplayer.rtmp-3.2.13.swf"},rtmpInstream:{url:e+"flowplayer.rtmp-3.2.13.swf"},ova:{url:e+"ova.swf",autoPlay:!0,canFireAPICalls:!0,canFireEventAPICalls:!0,
debug:{"debugger":"firebug",levels:AdCookie.get("VastDebugLevels")||"none"},overlays:{regions:[{id:"sg-ad-notice",opacity:0}]},ads:{additionalParamsForSWFCompanions:[{name:"wmode",value:"direct"}],pauseOnClickThrough:!0,disableControls:!0,restoreCompanions:!1,notice:{show:!1},clickSign:{html:'<p align="center">'+AdConfig.get("global").labelVideoClickSign+"</p>"},companions:[{id:"sgAdCompanion1",width:"300",height:"250"},{id:"sgAdLbGp728x90",width:"728",height:"90"}],schedule:[{position:"pre-roll",
tag:escape(c)}]}}}};d=AdVideoFlowplayer.instance(b,c);c=d.get();a(c)})};b.subscribe({notify:function(a,c){switch(a){case "onfallback":g();break;case "onstart":c&&c.duration&&0==q&&!n&&p(c.duration,c.sec);break;case "onCuepoint":clearTimeout(n);h=!0;var d=c.duration,e=c.duration-c.sec;q++;d=Math.max(Math.max(j,d),e);j=Math.max(d,j);l=e;b.notify("ontick",{total:Math.max(j,e),tick:e});1<q&&(clearTimeout(n),h=!0)}}});var a=[],e=function(c){for(var d=function(a){return a.replace(/<\!\[cdata\[/ig,"").replace(/\]\]>/,
"").replace(/^\s+|\s+$/g,"").replace(/\n/ig,"")},c=unescape(c),e=c.split(/<vast[\s>]/ig),f=[],c=1;c<e.length;c++){var k={};e[c].replace(/<ad([^>]*)>([.\s\S]*?)<\/ad>/ig,function(a,b,c){if(a=/id\s*=\s*["']?([^"']+)/ig.exec(b))k.adid=a[1]||null;if(a=/assetid\s*=\s*["']?([^"'<]+)/ig.exec(c))k.assetid=a[1]||null;c.replace(/<adsystem([^>]*)>([.\s\S]*?)<\/adsystem>/ig,function(a,b,c){a=/version\s*=\s*["']?([^\s"']+)/ig.exec(b)||[];k.system=d(c)||null;k.version=a[1]||null});c.replace(/<vastadtaguri([^>]*)>([.\s\S]*?)<\/vastadtaguri>/ig,
function(a,b,c){k.tag=d(c)});c.replace(/<creative([^>]*)>([.\s\S]*?)<\/creative>/ig,function(a,b,c){a=/\sid\s*=\s*["']?([^\s"']+)/ig.exec(c)||[];k.creativeid=a[1]||null});c.replace(/<mediafile ([^>]*)>([.\s\S]*?)<\/mediafile>/ig,function(a,b,c){k.mediafiles=k.mediafiles?k.mediafiles+"~~":"";k.mediafiles+=d(c).replace(/<url>/ig,"").replace(/<\/url>/ig,"").replace(/\n/ig,"")})});e[c].replace(/<error([^>]*)>([.\s\S]*?)<\/error>/ig,function(a,c,e){e.match(/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/ig)||
b.notify("onvasterror",d(e))});e[c].replace(/<richmedia([^>]*)>([.\s\S]*?)<\/richmedia>/ig,function(){b.notify("onvasterror","Rich media tag detected.")});f.push(k)}0<f.length&&b.notify("onadinfo",f);e=e[1].match(/<impression[ 0-9a-zA-Z'"=\-]*>(.*)<\/impression>/ig).toString().match(/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?;&//=]*)?/ig);if(e instanceof Array)for(c=0;c<e.length;c++)a.push(e[c])},g=function(){if(0<a.length){for(var c=0;c<a.length;c++)a[c]=a[c].replace(3769515,
3843776);AdScriptLoader(a,b,function(){});b.notify("onfallbackimpressions",a)}};onVPAIDAdStart=function(a){a=a.linearAd||{};if(a.width&&a.height){var c=video.calculateDimensions("600","400");c.source="VPAID";b.notify("onresize",c)}a.duration?(c=Math.round(parseInt(a.duration.slice(6),10)),j=Math.max(c,j),2>Math.round(parseInt(a.duration.slice(6),10))?(startRemainingTimeChange(32,32),b.notify("onspoof")):n||(a=j,2>a?p(32,32):p(a,a))):b.notify("onstart");a=(AdConfig.get("global")||{}).videoShowSkiplinkAfterSeconds||
20;b.notify("onskiplinkstart",{after:a})};onVPAIDAdVideoStart=function(){};onLinearAdStart=function(){};onNonLinearAdShow=function(){};onVPAIDAdPaused=function(){b.notify("onpause")};onLinearAdPause=function(){};onVPAIDAdClickThru=function(a){b.notify("onclick",{source:"onVPAIDAdClickThru",event:a})};onLinearAdClick=function(a){b.notify("onclick",{source:"onLinearAdClick",event:a})};onNonLinearAdClicked=function(a){b.notify("onclick",{source:"onNonLinearAdClicked",event:a})};onVPAIDAdPlaying=function(){b.notify("onresume")};
onLinearAdResume=function(){};onVPAIDAdComplete=function(){setTimeout(function(){b.notify("onfinish",{source:"VPAID"})},10)};onVPAIDAdVideoComplete=function(){};onLinearAdFinish=function(){};var h=!1,j=0,l=0,q=0,p=function(a,c){h||(l=c,n=setTimeout(function(){var a=Math.max(j,l);j=Math.max(a,j);b.notify("ontick",{total:j,tick:l});p(j,--l)},1E3))},n;startRemainingTimeChange=function(a,b){n||p(a,b)};onVPAIDAdError=function(){b.notify("onerror",{code:2200,message:"VPAID Failed"})};onVASTLoadFailure=
onTemplateLoadFailure=onTemplateLoadTimeout=function(a){b.notify("onerror",{code:2100,message:a});b.notify("adFailed",1)};onTemplateLoadSuccess=function(a){b.notify("onfetchend",{data:a});e(a)};onImpressionEvent=function(b){if(b)for(var c=0;c<a.length;c++)(b.url||null)==a[c]&&a.splice(c,1)};onTrackingEvent=function(a){if(null!=a){if("start"===a.eventType){var c=j;"number"==typeof c&&0<c&&startRemainingTimeChange(c,c)}b.notify("ontrackingevent",{name:a.eventType,url:a.urls})}};onLinearAdFirstQuartileComplete=
function(){b.notify("onquartile",{percentage:25,time:q})};onVPAIDAdVideoFirstQuartile=function(){b.notify("onquartile",{percentage:25,time:q})};onLinearAdMidPointComplete=function(){b.notify("onquartile",{percentage:50,time:q})};onVPAIDAdVideoMidpoint=function(){b.notify("onquartile",{percentage:50,time:q})};onLinearAdThirdQuartileComplete=function(){b.notify("onquartile",{percentage:75,time:q})};onVPAIDAdVideoThirdQuartile=function(){b.notify("onquartile",{percentage:75,time:q})};onVPAIDAdLog=function(){};
onClickTrackingEvent=function(){};onAdCallStarted=function(){};onAdCallFailover=function(){};onAdCallComplete=function(){};onCompanionAdShow=function(a){b.notify("oncompanionad",{target:a.divId,width:a.width,height:a.height,data:a.markup})};return this})})(sgad,this);
(function(c,e){return c.model.Liverail=e.AdModelLiverail=AdModel.extend(function(b,c){this.id="AdModelLiverail";var d={analytics:"UA-8223336-4",splash:!1,disabled:!1,ratio:0.5625},a,e,g=0;this.fetch=function(e){h(function(a){e(a);getIsIe();l()});c.getSource(function(a){b.notify("onfetchstart",{source:a});a=AdMergeRecursive(d,a);j(a,function(){l()})});window.gotVPAIDAd=function(c){b.notify("onfetchend",{data:"done loading flowplayer"});a=c;l()}};var h=function(a){var b=make("div",{id:"sgAdFlowplayerHTML5",
"class":"flowplayer minimalist no-background"}),c=make("video"),d=make("source",{type:"video/webm",src:"data:video/webm;base64, GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpc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AAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZj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UkoppZRSSimllFJKBQD6VTgA+D/YsDrCSdFYYKEhKwGAcAAAwBilGHMMQimlVAgx5px0VFqLsUKIMeckpNRabMVzzkEoIZXWYiyecw5CKSnFVmNRKYRSUkottliLSqGjklJKrdVYjDGppNZai63GYoxJKbTUWosxFiNsTam12GqrsRhjayottBhjjMUIX2RsLabaag3GCCNbLC3VWmswxhjdW4ultpqLMT742lIsMdZcAAB3gwMARIKNM6wknRWOBhcashIACAkAIBBSijHGGHPOOeekUow55pxzDkIIoVSKMcaccw5CCCGUjDHmnHMQQgghhFJKxpxzEEIIIYSQUuqccxBCCCGEEEopnXMOQgghhBBCKaWDEEIIIYQQSiilpBRCCCGEEEIIqaSUQgghhFJCKCGVlFIIIYQQQiklpJRSCiGEUkIIoYSUUkophRBCCKWUklJKKaUSSgklhBJSKSmlFEoIIZRSSkoppVRKCaGEEkopJaWUUkohhBBKKQUAABw4AAAEGEEnGVUWYaMJFx6AQkNWAgBkAACQopRSKS1FgiKlGKQYS0YVc1BaiqhyDFLNqVLOIOYklogxhJSTVDLmFEIMQuocdUwpBi2VGELGGKTYckuhcw4AAABBAICAkAAAAwQFMwDA4ADhcxB0AgRHGwCAIERmiETDQnB4UAkQEVMBQGKCQi4AVFhcpF1cQJcBLujirgMhBCEIQSwOoIAEHJxwwxNveMINTtApKnUgAAAAAAAMAPAAAJBcABER0cxhZGhscHR4fICEiIyQCAAAAAAAFwB8AAAkJUBERDRzGBkaGxwdHh8gISIjJAEAgAACAAAAACCAAAQEBAAAAAAAAgAAAAQET2dnUwAAQAAAAAAAAAAjaKehAgAAAEhTii0BRjLV6A+997733vvfe+997733vvfG+8fePvH3j7x94+8fePvH3j7x94+8fePvH3j7x94+8fePvH3gAAAAAAAAAAXm5PqUgABPZ2dTAABLAAAAAAAAACNop6EDAAAAIOuvQAsAAAAAAAAAAAAAAE9nZ1MAAEADAAAAAAAAI2inoQQAAAB/G0m4ATg/8A+997733vvfe+997733vvfK+8B94D7wAB94AAAAD8Kl94D7wH3gAD7wAAAAH4VABem0+pSAAE9nZ1MAAEsDAAAAAAAAI2inoQUAAABc3zKaCwAAAAAAAAAAAAAAT2dnUwAEQAYAAAAAAAAjaKehBgAAAOytEQUBOD/wD733vvfe+997733vvfe+98r7wH3gPvAAH3gAAAAPwqX3gPvAfeAAPvAAAAAfhUAF6bT6lIAAT2dnUwAAQL4AAAAAAACWSy/CAgAAAHsqKaIxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAKDg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg5PZ2dTAAQAxAAAAAAAAJZLL8IDAAAABLWpWwIBAQ4O"});
c.appendChild(d);c.appendChild(e);c.appendChild(f);b.appendChild(c);a(b)},j=function(a,c){var d=AdConfig.getHostname()+"vendor/flowplayer-5.5.2/";AdStylesheetLoader(d+"skin/spilgames.css",function(){});var e=[];void 0===window.$&&e.push("//code.jquery.com/jquery-1.11.0.min.js");e.push(d+"flowplayer.min.js");e.push(d+"liverail.js");AdScriptLoader(e,b,function(){$("#sgAdFlowplayerHTML5").flowplayer(a);c()})},l=function(){g++;3===g&&q()},q=function(){e=flowplayer();!0===e.ready&&e.play();e.bind("ready",
function(){e.play()});var c=function(b,c){a.subscribe(c,b)};c("AdLoaded",function(){b.notify("onload",{source:"LiveRail.AdLoaded"})});c("AdError",function(a,c){b.notify("onerror",{code:c,message:a});b.notify("onfinish",{source:"LiveRail.AdError"})});c("AdStarted",function(){b.notify("onstart");b.notify("onduration",p());getIsIe();!0!==r&&(t(),r=!0)});c("AdLinearChange",function(){getIsIe();e.pause();n=0});c("AdStopped",function(){getIsIe();setTimeout(function(){b.notify("onfinish",{source:"LiveRail.AdStopped"})},
1E3)});c("AdSizeChange",function(){b.notify("onresize",{width:a.getAdWidth(),height:a.getAdHeight(),source:"LiveRail.AdSizeChange"})})},p=function(){var b=a.getAdDuration();0>=b&&(b=e.conf.LR_DURATION||32);return b},n,r=!1,t=function(){setTimeout(function(){var a=p(),c;void 0===n?n=p():n--;c=n;0>=c||(b.notify("ontick",{total:a,tick:c}),t())},1E3)};return this})})(sgad,this);
(function(c,e){var b=Math.floor(99999999999*Math.random());return(c.server={}).Server=e.AdServer=AdDefine(function(){this.getSource=function(){};this.getPageUrl=function(){return window.top.location.href.replace(/[<'">]/g,"")};this.getTargeting=function(b){var c={keywords:[],kv:{},randomNumber:this.getRandomNumber()},a=AdGraph.get("game:id")||"",e=AdGraph.get("game:tags")||"",g=AdGraph.get("portal:category")||"",h=AdGraph.get("portal:subcategory")||"";AdGraph.get("keywords");var e=(new String(e+","+
h+","+g)).split(","),j;for(j in e)0!=e[j].length&&e[j].toLowerCase&&(g=e[j].toLowerCase().replace(/[^a-z0-9]/gi,""),0!=g.length&&c.keywords.push(g));/popular.html/gi.test(window.location.href)&&c.keywords.push("populargames");/best.html/gi.test(window.location.href)&&c.keywords.push("bestgames");a&&(c.kv.gameid=a);b(c)};this.getRandomNumber=function(){return b};return this})})(sgad,this);
(function(c,e){return c.server.AdServerAct=e.AdServerAct=AdServer.extend(function(b){this.getSource=function(){eval(b.sourceUrl)};return this})})(sgad,this);
(function(c,e){return c.server.AdGan=e.AdServerAdGan=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,d=d.replace("__v1__",b.globalV1),d=d.replace("__v2__",b.globalV2),d=d.replace("__v3__",b.globalV3),d=d.replace("__v4__",b.globalV4),d="<script type='text/javascript' src='//cdn.stroeerdigitalmedia.de/praeludium/praeludium_jetztspielende.js'><\/script>\n<script type='text/javascript'>\nvar w = parent.window || window;\nw.SDM_tileid=(typeof(w.SDM_tileid)!='undefined')?w.SDM_tileid+=1:1;\nw.SDM_adxtra=(typeof(w.SDM_adxtra)!='undefined')?w.SDM_adxtra:\"\";\nw.SDM_rnd=(typeof(w.SDM_rnd)!='undefined')?w.SDM_rnd:Math.round(Math.random() * 314159265);\nif (typeof(frn046adxtra)!='undefined') {SDM_enrich=(frn046adxtra.indexOf(\"adset=f\")>=0)?\";adset=f\":\"\"} else {SDM_enrich=\"\"};\nSDM_target=(typeof(SDM_target)!='undefined')?SDM_target:\"\";\nif (w.SDM_tileid==1) document.write('<scr'+'ipt type=\"text/javascript\" src=\"//cdn.stroeerdigitalmedia.de/dynback/call.sjs?'+w.SDM_rnd+'\"></scr'+'ipt>');\nSDM_enrich += \";tile=\" + w.SDM_tileid + w.SDM_adxtra + SDM_target + \";ord=\" + w.SDM_rnd;\n"+("document.write('<scr'+'ipt type=\"text/javascript\" src=\""+
d+"'+SDM_enrich+'?\"></scr'+'ipt>');\n")+"<\/script>\n";c(d+"<script type='text/javascript'>document.write('<scr'+'ipt type='text/javascript' src='http://static1.spilcdn.com/vda/vendor/empty.js'></scri'+'pt>');<\/script>","http://static1.spilcdn.com/vda/vendor/empty.js",d)};return this})})(sgad,this);
(function(c,e){return c.server.RealMedia247=e.AdServer247RealMedia=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,e=d.randomNumber.toString().substring(2,11),a=a.replace("__domain__",b.x247realmediaDomain),a=a.replace("__pagetype__",b.x247realmediaPagetype),a=a.replace("__position__",b.x247realmediaPosition),a=a.replace("__rns__",e),a=a.replace("__keywords__",d.keywords.join("+"));c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.LeonardoDoubleClick=e.AdServerLeonardoDoubleclick=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__domain__",b.globalV1),a=a.replace("__pagetype__",b.globalV2),e=window.v_tile||0;e++;a=a.replace("__tile__",e);a=a.replace("__size__",b.globalV3);a=a.replace("__keywords__",d.keywords.join(","));a=a.replace("__random__",d.randomNumber);d="<script type='text/javascript'>";d="160x600"===b.globalV3?d+'if (typeof dcSkin === "undefined") {\n'+
("    document.write('<scr'+'ipt type=\"text/javascript\" src=\""+a+"\"></scri'+'pt>');\n")+'} else {\n var e = document.getElementById("sgAdScHp160x600");\n if (e && e.parentNode) { e.parentNode.removeChild(e); }\n}\n':d+("document.write('<scr'+'ipt type=\"text/javascript\" src=\""+a+"\"></scri'+'pt>');");d+="<\/script>";c(d,"http://static1.spilcdn.com/vda/vendor/empty.js",d)})};return this})})(sgad,this);
(function(c,e){return c.server.AdLeonardoMobile=e.AdServerAdLeonardoMobile=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,a;a="<script type='text/javascript'>\nvar googletag = googletag || {};\ngoogletag.cmd = googletag.cmd || [];\n(function() {\nvar gads = document.createElement('script');\ngads.async = true;\ngads.type = 'text/javascript';\nvar useSSL = 'https:' == document.location.protocol;\ngads.src = (useSSL ? 'https:' : 'http:') + \n'//www.googletagservices.com/tag/js/gpt.js';\nvar node = document.getElementsByTagName('script')[0];\nnode.parentNode.insertBefore(gads, node);\n})();\n<\/script>\n<script type='text/javascript'>\ngoogletag.cmd.push(function() {\n"+
("googletag.defineSlot('/5902/giochi/mobile/msite/"+b.globalV1+"', [[1, 5], [6, 1], [320, 50]], 'div-gpt-ad-1381851676641-0').addService(googletag.pubads());\n");a=a+"googletag.pubads().enableSingleRequest();\ngoogletag.enableServices();\n});\n<\/script>\n"+("<\!-- Juice giochi/mobile/msite/"+b.globalV1+" --\>\n");a+="<div id='div-gpt-ad-1381851676641-0'>\n<script type='text/javascript'>\ngoogletag.cmd.push(function() { googletag.display('div-gpt-ad-1381851676641-0'); });\n<\/script>\n</div>\n";c(a+
"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.AdSense=e.AdServerAdSense=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,a;a='<script language="javascript">\n'+('google_ad_client     = "'+b.googleAdClient+'";\n');a+="google_ad_width      = "+b.googleAdWidth+";\n";a+="google_ad_height     = "+b.googleAdHeight+";\n";a+='google_ad_format     = "'+b.googleAdFormat+'";\n';a+='google_ad_type       = "'+b.googleAdType+'";\n';a+='google_ad_slot       = "'+b.googleAdChannel+'";\n';a+='google_page_url      = "'+
this.getPageUrl()+'";\n';a+="undefined"===typeof b.googleAdRegion?"":'google_ad_region     = "'+b.googleAdRegion+'";\n';a+="undefined"===typeof b.googleColorBorder?"":'google_color_border  = "'+b.googleColorBorder+'";\n';a+="undefined"===typeof b.googleColorBg?"":'google_color_bg      = "'+b.googleColorBg+'";\n';a+="undefined"===typeof b.googleColorLink?"":'google_color_link    = "'+b.googleColorLink+'";\n';a+="undefined"===typeof b.googleColorText?"":'google_color_text    = "'+b.googleColorText+
'";\n';a+="undefined"===typeof b.googleColorUrl?"":'google_color_url     = "'+b.googleColorUrl+'";\n';a+="undefined"===typeof b.googleFontSize?"":'google_font_size     = "'+b.googleFontSize+'";\n';a+="<\/script>";c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.AdSenseAdx=e.AdServerAdSenseAdx=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,a;a='<script language="javascript">\n'+('google_ad_client     = "'+b.googleAdClient+'";\n');a+="google_ad_width      = "+b.googleAdWidth+";\n";a+="google_ad_height     = "+b.googleAdHeight+";\n";a+='google_ad_type       = "'+b.googleAdType+'";\n';a+='google_ad_slot       = "'+b.googleAdChannel+'";\n';a+='google_page_url      = "'+this.getPageUrl()+'";\n';a+='google_adtest        = "on";\n<\/script>';
c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.AdSenseMobile=e.AdServerAdSenseMobile=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,a;a='<script language="javascript">\n'+('google_ad_client     = "'+b.googleAdClient+'";\n');a+="google_ad_width      = "+b.googleAdWidth+";\n";a+="google_ad_height     = "+b.googleAdHeight+";\n";a+='google_ad_slot       = "'+b.googleAdChannel+'";\n';a+='google_page_url       = "'+this.getPageUrl()+'";\n';a+="<\/script>";c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+
d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.AdSenseGamesServer=e.AdServerAdSenseGamesServer=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,a;a='<script language="javascript">\n'+('google_ad_client     = "'+b.googleAdClient+'";\n');a+="google_ad_width      = "+b.googleAdWidth+";\n";a+="google_ad_height     = "+b.googleAdHeight+";\n";a+='google_ad_format     = "'+b.googleAdFormat+'";\n';a+='google_ad_type       = "'+b.googleAdType+'";\n';a+='google_ad_channel    = "'+b.googleAdChannel+
'";\n';b.googleAdRegion&&(a+='google_ad_region = "'+b.googleAdRegion+'";\n');a+='google_color_border  = "C8D8DF";\ngoogle_color_bg      = "E4ECF0";\ngoogle_color_link    = "174255";\ngoogle_color_text    = "000000";\ngoogle_color_url     = "FFF588";\ngoogle_font_size     = "account_default";\n<\/script>';c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.Publicidad=e.AdServerPublicidad=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(){var d=b.sourceUrl,d=d.replace(/__v1__/g,b.globalV1),d='<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+d+"\"></scri'+'pt>');")+"<\/script>"+('<script>pnetFillSlot("'+b.globalV2+'");<\/script>');c("<script type='text/javascript'>document.write('<scr'+'ipt type='text/javascript' src='http://static1.spilcdn.com/vda/vendor/empty.js'></scri'+'pt>');<\/script>",
"http://static1.spilcdn.com/vda/vendor/empty.js",d)})};return this})})(sgad,this);
(function(c,e){return c.server.Publicidad2=e.AdServerPublicidad2=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(){var d=b.sourceUrl,d=d.replace(/__v1__/g,b.globalV1||""),d=d.replace(/__v2__/g,b.globalV2||""),d=d.replace(/__v3__/g,b.globalV3||""),d=d.replace(/__v4__/g,b.globalV4||""),d=d.replace(/__v5__/g,b.globalV5||""),d=d.replace(/__v6__/g,b.globalV6||""),d='<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+d+"\"></scri'+'pt>');")+
("var sas_format_width = "+b.controllerConfig.width+";");c("<script type='text/javascript'>document.write('<scr'+'ipt type='text/javascript' src='http://static1.spilcdn.com/vda/vendor/empty.js'></scri'+'pt>');<\/script>","http://static1.spilcdn.com/vda/vendor/empty.js",d+"<\/script>")})};return this})})(sgad,this);
(function(c,e){return c.server.Xaxis=e.AdServerXaxis=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(){var d=b.sourceUrl,d=d.replace(/__v1__/g,b.globalV1||""),d=d.replace(/__v2__/g,b.globalV2||""),d=d.replace(/__v3__/g,b.globalV3||""),d=d.replace(/__v4__/g,b.globalV4||""),d=d.replace(/__v5__/g,b.globalV5||""),d=d.replace(/__v6__/g,b.globalV6||"");c("<script type='text/javascript'>document.write('<scr'+'ipt type='text/javascript' src='http://static1.spilcdn.com/vda/vendor/empty.js'></scri'+'pt>');<\/script>",
"http://static1.spilcdn.com/vda/vendor/empty.js",'<script language="javascript">var gmtp = "http", gmturl = gmtp + "://fr.gmads.mookie1.com/r", gmth = "[REFERRER_DOMAIN]", gmthp = "[REFERRER_PATH]";if(gmth.indexOf(\'.\')<0){ var gmth = "[REFERRER_URL]"; }'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+d+"\"></scri'+'pt>');")+"<\/script>")})};return this})})(sgad,this);
(function(c,e){return c.server.AdTech=e.AdServerAdTech=AdServer.extend(function(b){this.getSource=function(c){var d=this;void 0==window.adgroupid&&(window.adgroupid=Math.round(1E3*Math.random()));this.getTargeting(function(a){var e=b.sourceUrl,e=e.replace("__placements__",b.placementId),e=e.replace("__date__",(new Date).getTime()),e=e.replace("__keywords__",a.keywords.join("+")),e=e.replace("__groupid__",window.adgroupid);for(x in a.kv)e=e+(";kv"+x+"="+a.kv[x]);a='<script language="javascript">\n'+
('google_page_url       = "'+d.getPageUrl()+'";\n');a=a+"<\/script>";c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+e+"\"></scri'+'pt>');<\/script>",e,a)})};return this})})(sgad,this);
(function(c,e){return c.server.AdTechVideo=e.AdServerAdTechVideo=AdServer.extend(function(b){this.getSource=function(c){void 0==window.adgroupid&&(window.adgroupid=Math.round(1E3*Math.random()));this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__placements__",b.placementId),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("%2B")),a=a.replace("__groupid__",window.adgroupid);for(x in d.kv)a=a+(";kv"+x+"="+d.kv[x]);a=a+";vidREG=COMPANION_BOTTOM:728x90:addyn";
c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.Amg=e.AdServerAMG=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,a;a='<script language="javascript">\n'+('amgdgt_p  = "'+b.amgdgtP+'";\n');a+='amgdgt_pl = "'+b.amgdgtPl+'";\n';a+='amgdgt_t  = "'+b.amgdgtT+'";\n';a+="<\/script>";c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.CpmStar=e.AdServerCPMstar=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__poolid__",b.cpmstarPoolid),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("+"));c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.DoubleClick=e.AdServerDoubleclick=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__domain__",b.doubleclickDomain),a=a.replace("__tile__",b.doubleclickTile),a=a.replace("__size__",b.doubleclickSize),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("+")),a=a.replace("__random__",d.randomNumber);for(x in d.kv)a+=";kv"+x+"="+d.kv[x];"undefined"==typeof oan_tile?oan_tile=
0:oan_tile++;var e=b.controllerConfig.containerId.match(/[A-Z]+(?:[a-z]*)/g),g="";e[2]?g=e[2].toLowerCase():/videoPreroll/ig.test(b.controllerConfig.containerId)&&(g="Gp");var e=AdGraph.get("portal:category"),h=AdGraph.get("portal:subcategory"),a=a.replace("__pagetype__",g||null),a=a.replace("__category__",e||""),a=a.replace("__subcategory__",h||""),d='<script language="javascript">\n'+('oan_tile = "'+oan_tile+'";\n')+('oan_rnd  = "'+d.randomNumber+'";\n'),d=d+"<\/script>";c(d+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+
a+"\"></scri'+'pt>');<\/script>",a,d)})};return this})})(sgad,this);
(function(c,e){return c.server.DoubleClickVideo=e.AdServerDoubleclickVideo=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__domain__",b.doubleclickDomain),a=a.replace("__tile__",b.doubleclickTile),a=a.replace("__size__",b.doubleclickSize),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("%2B"));for(x in d.kv)a+=";kv"+x+"="+d.kv[x];c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.Global=e.AdServerGlobal=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace(/__v1__/g,b.globalV1),a=a.replace(/__v2__/g,b.globalV2),a=a.replace(/__v3__/g,b.globalV3),a=a.replace(/__v4__/g,b.globalV4),a=a.replace(/__v5__/g,b.globalV5),a=a.replace(/__date__/g,(new Date).getTime()),a=a.replace(/__tz__/g,(new Date).getTimezoneOffset()),a=a.replace(/__keywords__/g,d.keywords.join("+")),a=a.replace(/__random__/g,
Math.floor(99999999999*Math.random()));for(x in d.kv)a+=";kv"+x+"="+d.kv[x];var e=b.controllerConfig.containerId.match(/[A-Z]+(?:[a-z]*)/g),d="";e[2]?d=e[2].toLowerCase():/videoPreroll/ig.test(b.controllerConfig.containerId)&&(d="Gp");var e=AdGraph.get("portal:category"),g=AdGraph.get("portal:subcategory"),a=a.replace(/__pagetype__/g,d||null),a=a.replace(/__category__/g,e||""),a=a.replace(/__subcategory__/g,g||"");c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.GoogleIMA=e.AdServerGoogleIMA=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join(",")),a=a.replace("__keyvalue__",AdGraph.get("game:id")),a=a.replace("__referrer__",escape(document.referrer));c("<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+a+"\"></scri'+'pt>');<\/script>",a,"")})};return this})})(sgad,
this);
(function(c,e){return c.server.ImproveDigital=e.AdServerImproveDigital=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){try{var a=b.controllerConfig.containerId.match(/[A-Z]+(?:[a-z]*)/g)[2].toUpperCase(),e=AdGraph.get("og:site_name")+"_"+a+"_"+b.controllerConfig.width+"_"+b.controllerConfig.height}catch(g){e=""}a=b.sourceUrl;a=a.replace("__placement__",e);a=a.replace("__height__",b.controllerConfig.height);a=a.replace("__width__",b.controllerConfig.width);a=a.replace("__date__",
(new Date).getTime());for(x in d.kv)a+=";kv"+x+"="+d.kv[x];c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.LiveRail=e.AdServerLiverail=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__publisherid__",b.liverailPublisherid),a=a.replace("__schema__",b.liverailSchema),a=a.replace("__admap__",b.liverailAdmap),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join(",")),a=a.replace("__url__",AdGraph.get("og:site_name")),a=a.replace("__keyvalue__",AdGraph.get("game:id"));c('<script language="javascript">'+
("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.MiniClip=e.AdServerMiniclip=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__domain__",b.miniclipDomain),a=a.replace("__pagetype__",b.miniclipPagetype),a=a.replace("__tile__",b.miniclipTile),a=a.replace("__size__",b.miniclipSize),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("_")),a=a.replace("__random__",d.randomNumber),a=a.replace("__pageurl__",encodeURIComponent(window.location.href));
for(x in d.kv)a+=";"+("gameid"===x?"":"kv")+x+"="+d.kv[x];var e=b.controllerConfig.containerId.match(/[A-Z]+(?:[a-z]*)/g),d="";e[2]?d=e[2].toLowerCase():/videoPreroll/ig.test(b.controllerConfig.containerId)&&(d="Gp");var e=AdGraph.get("portal:category"),g=AdGraph.get("portal:subcategory"),a=a.replace("__pagetype__",d||null),a=a.replace("__category__",e||""),a=a.replace("__subcategory__",g||"");c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+a+"\"></scri'+'pt>');")+
"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.MiniClipComma=e.AdServerMiniclipComma=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__domain__",b.miniclipDomain),a=a.replace("__pagetype__",b.miniclipPagetype),a=a.replace("__tile__",b.miniclipTile),a=a.replace("__size__",b.miniclipSize),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join(",")),a=a.replace("__random__",d.randomNumber),a=a.replace("__pageurl__",
encodeURIComponent(window.location.href));for(x in d.kv)a+=";"+("gameid"===x?"":"kv")+x+"="+d.kv[x];var e=b.controllerConfig.containerId.match(/[A-Z]+(?:[a-z]*)/g),d="";e[2]?d=e[2].toLowerCase():/videoPreroll/ig.test(b.controllerConfig.containerId)&&(d="Gp");var e=AdGraph.get("portal:category"),g=AdGraph.get("portal:subcategory"),a=a.replace("__pagetype__",d||null),a=a.replace("__category__",e||""),a=a.replace("__subcategory__",g||"");c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.MiniClipVideo=e.AdServerMiniClipVideo=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__domain__",b.miniclipDomain),a=a.replace("__pagetype__",b.miniclipPagetype),a=a.replace("__tile__",b.miniclipTile),a=a.replace("__size__",b.miniclipSize),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("_")),a=a.replace("__random__",Math.floor(99999999999*Math.random()));for(x in d.kv)a+=
";kv"+x+"="+d.kv[x];c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.OrangeSpain=e.AdServerOrangeSpain=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,a;a='<script language="javascript">\n'+('bannerDomain = "'+b.globalV1+'";\n');a+='logChannel   = "'+b.globalV2+'";\n';a+='posbwoo      = "'+b.globalV3+'";\n';a+='widthbwoo    = "'+b.globalV4+'";\n';a+='heigthbwoo   = "'+b.globalV5+'";\n';b.globalV6&&(a+='place   = "'+b.globalV6+'";\n');a+="<\/script>";c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+
d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.Rubiconproject=e.AdServerRubiconproject=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(){var d=b.sourceUrl,a='<script type="text/javascript">var rp_account   = \''+b.rubiconprojectAccount+"';var rp_site      = '"+b.rubiconprojectSite+"';var rp_zonesize  = '"+b.rubiconprojectZonesize+"';var rp_adtype    = 'js';var rp_smartfile = '[SMART FILE URL]';<\/script>";c(a+'<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
d+"\"></scri'+'pt>');")+"<\/script>",d,a)})};return this})})(sgad,this);
(function(c,e){return c.server.YieldManager=e.AdServerYieldmanager=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__type__",b.yieldmanagerType),a=a.replace("__size__",b.yieldmanagerSize),a=a.replace("__section__",b.yieldmanagerSection),a=a.replace("__domain__",b.yieldmanagerDomain),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("+"));c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.Yield360=e.AdServerYield360=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__p__",b.yield360P),a=a.replace("__w__",b.yield360W),a=a.replace("__h__",b.yield360H),a=a.replace("__tz__",(new Date).getTimezoneOffset()),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("+"));c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.GorillaNation=e.AdServerGorillanation=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__domain__",b.gorillanationDomain),a=a.replace(/__pagetype__/g,b.gorillanationPagetype),a=a.replace("__size__",b.gorillanationSize);"undefined"==typeof gorillanation_tile&&(gorillanation_tile=1);a=a.replace("__tile__",gorillanation_tile++);a=a.replace("__date__",(new Date).getTime());a=a.replace("__keywords__",d.keywords.join("-").replace(/\+/g,
"-"));a=a.replace("__random__",Math.floor(99999999999*Math.random()));for(x in d.kv)a+=";kv"+x+"="+d.kv[x];var e=b.controllerConfig.containerId.match(/[A-Z]+(?:[a-z]*)/g),d="";e[2]?d=e[2].toLowerCase():/videoPreroll/ig.test(b.controllerConfig.containerId)&&(d="Gp");var e=AdGraph.get("portal:category"),g=AdGraph.get("portal:subcategory"),a=a.replace("__pagetype__",d||null),a=a.replace("__category__",e||""),a=a.replace("__subcategory__",g||"");c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+
a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.GorillaNation1x1=e.AdServerGorillanation1x1=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__v3__",b.globalV3),a=a.replace(/__v4__/g,b.globalV4),a=a.replace("__v5__",b.globalV5);"undefined"==typeof gorillanation_tile&&(gorillanation_tile=1);a=a.replace("__tile__",gorillanation_tile++);"undefined"==typeof gorillanation_ord&&(gorillanation_ord=1E16*Math.random());var a=a.replace("__random__",gorillanation_ord),
a=a.replace("__keywords__",d.keywords.join("-").replace(/\+/g,"-")),e="";for(x in d.kv)e+=";kv"+x+"="+d.kv[x];a=a.replace("__kv__",e);d='<script type="text/javascript" src="http://cdn.triggertag.gorillanation.com/js/triggertag.js"><\/script><script type="text/javascript">if (typeof getTrigger === \'function\') {'+("    getTrigger('"+b.globalV1+"');");c('<script type="text/javascript">'+("document.write('<scr'+'ipt src=\""+a+" type=\"text/javascript\"></scr'+'ipt>');")+"<\/script>",a,"",d+"}<\/script>")})};
return this})})(sgad,this);
(function(c,e){return c.server.LiveRailUnderscore=e.AdServerLiverailUnderscore=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,a=a.replace("__publisherid__",b.liverailPublisherid),a=a.replace("__schema__",b.liverailSchema),a=a.replace("__admap__",b.liverailAdmap),a=a.replace("__date__",(new Date).getTime()),a=a.replace("__keywords__",d.keywords.join("_")),a=a.replace("__url__",AdGraph.get("og:site_name")),a=a.replace("__keyvalue__",AdGraph.get("game:id"));
c('<script language="javascript">'+("document.write('<scr'+'ipt language=\"javascript1.1\" src=\""+a+"\"></scri'+'pt>');")+"<\/script>",a,"")})};return this})})(sgad,this);
(function(c,e){return c.server.Applift=e.AdServerApplift=AdServer.extend(function(b){this.getSource=function(c){var d=b.sourceUrl,d=d.replace("__apptoken__",b.globalV1),a;a='<script language="javascript">\nvar AppLiftDiv = document.createElement("div");\n'+('AppLiftDiv.id = "applift-'+b.globalV1+'";\n');a=a+'document.getElementsByTagName("body")[0].appendChild(AppLiftDiv);\nvar AppLiftConfig = {\n'+('hostname: "'+b.globalV2+'",\n');a+='appToken: "'+b.globalV1+'",\n';a=a+'widget: "app_selector",\n'+
("no_slide: "+("true"==b.globalV4||"1"==b.globalV4?"false":"true")+",\n");a+="adCount: "+(0<parseInt(b.globalV3)?b.globalV3:"2")+"\n";a+="};\n<\/script>\n";c(a+"<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+d+"\"></scri'+'pt>');<\/script>",d,a)};return this})})(sgad,this);
(function(c,e){return c.server.Dfp=e.AdServerDfp=AdServer.extend(function(b){this.getSource=function(c){this.getTargeting(function(d){var a=b.sourceUrl,e="div-gpt-ad-"+d.randomNumber,d="define"+d.randomNumber,g;g=""+('<div id="'+e+'">\n')+'<script type="text/javascript">\nvar counter = 0;'+("var "+d+" = function() {\n")+"counter++; if (counter > 10) {return;}\n"+('if (typeof googletag == "undefined") {setTimeout(function(){'+d+"();}, 100); return;}\n")+"googletag.cmd = googletag.cmd || [];\ngoogletag.defineSlot(\n"+
('"/'+b.globalV1+"/"+b.globalV2+"/"+b.globalV3+"/"+b.globalV4+'",\n');g+="["+b.controllerConfig.width+", "+b.controllerConfig.height+"],\n";g=g+('"'+e+'"')+").addService(googletag.pubads())\n"+('.setTargeting("test", "'+b.globalV5+'");\n');g=g+"googletag.pubads().enableSingleRequest();\ngoogletag.enableServices();\ngoogletag.cmd.push(function() {\n"+('googletag.display("'+e+'");\n')+"});\n};\n"+(d+"();\n")+"<\/script>\n</div>\n";c(""+("<script type='text/javascript'>document.write('<scr'+'ipt type=\"text/javascript\" src=\""+
a+"\"></scri'+'pt>');<\/script>")+g,a,g)})};return this})})(sgad,this);(function(c,e){return(c.view={}).View=e.AdView=AdDefine(function(){this.render=function(){};return this})})(sgad,this);
(function(c,e){return c.view.GamePage=e.AdViewGamepage=AdView.extend(function(){var b,c,d,a,e,g,h,j,l,q,p,n,r,t,s,o,m,w;m=function(a){var b=m;b.style.display="table-cell";b.innerHTML=a};w=function(b){var c=document.createDocumentFragment();s=make("div",{id:"sgAdDisplayAdWrapper"});w=make("div",{id:"sgAdDisplayAd"});s.appendChild(w);w.appendChild(b);c.appendChild(s);a.appendChild(c)};return{getAdContainer:function(){return a},getAdHeader:function(){return e},getSkipLink:function(){return r},getTickerLabel:function(){return j},
getPrerollWrapper:function(){return t},getAd:function(){return o},getCompanionAd:function(){return m},getDisplayAd:function(){return w},initialize:function(m){c=m;b=document.createDocumentFragment();d=make("div",{id:"sgAdWrapperObj"});b.appendChild(d);e=make("div",{id:"sgAdHeader"});e.style.display="none";m=make("p",AdConfig.get("global").labelHeader);e.appendChild(m);d.appendChild(e);g=make("div",{id:"sgAdClickToAdLong"});g.style.display="none";m=make("p",AdConfig.get("global").labelClicktoadLong);
g.appendChild(m);d.appendChild(g);h=make("div",{id:"sgAdClickToAdShort"});h.style.display="none";m=make("p",AdConfig.get("global").labelClicktoadShort);h.appendChild(m);d.appendChild(h);a=make("div",{id:"sgAdPlacement"});d.appendChild(a);j=make("div",{id:"sgAdTickerLabel"});j.style.display="none";m=make("p",AdConfig.get("global").labelLoading||"Loading...");j.appendChild(m);n=AdConfig.get("global").labelCountdown;d.appendChild(j);l=make("div",{id:"ad-progress-container"});d.appendChild(l);q=make("div",
{id:"ad-progress-bar","class":"ad-progress"});l.appendChild(q);p=make("span",{id:"ad-progress-stripes"});q.appendChild(p);r=make("div",{id:"sgAdSkipLink"});r.style.display="none";m=make("a",AdConfig.get("global").labelSkiplink);m.href="javascript:void(0);";r.appendChild(m);d.appendChild(r);return this},destruct:function(){try{container=getNode(c),container.innerHTML=""}catch(a){}},showTickerElements:function(a){a?(l.style.display="block",j.style.display="block"):(l.style.display="none",j.style.display=
"none")},showSkipLink:function(a){a?r.style.display="block":(r.onclick=null,r.style.display="none")},render:function(c,d){if(!AdSolution.WidgetIntegration.isPrerollAborted()){var f=make("div",{id:"sgAdWrapper","class":"sgAdWrapper"});f.appendChild(b);var s=getNode("videoPreroll300x250");s&&(s.insertBefore(f,s.firstChild),s.style.width="100%",s.style.height="100%",s.style.display="block");if(!getNode("sgAdPrerollWrapper")){e.style.display="block";j.style.display="block";"spel.nl"===AdGraph.get("og:site_name")&&
"game"===AdGraph.get("og:type")&&(1===AdConfig.getVisitorDigit()?g.style.display="block":2===AdConfig.getVisitorDigit()&&(h.style.display="block"));f=document.createDocumentFragment();t=make("div",{id:"sgAdPrerollWrapper"});o=make("div",{id:"sgAdVideoAd"});"AdModelVast"!=d.getModel().id&&"AdModelLiverail"!=d.getModel().id&&(o.style.height="280px",o.style.width="336px");t.appendChild(o);m=make("div",{id:"sgAdCompanion1"});t.appendChild(m);try{o.appendChild(c)}catch(n){d.notify("onerror",{code:3300,
message:"DOM element remained empty"})}f.appendChild(t);a.appendChild(f)}}},resizeAd:function(a,b){o.setAttribute("style","width: "+parseInt(a)+"px; height: "+parseInt(b)+"px; margin: 0 auto;")},companionAd:m,updateTicker:function(a,b){var c=Math.min(100,106*(1-b/a))+"%";q.style.width=c;j.innerHTML=n.replace("_countdown_",b);j.style.visibility="visible"},hide:function(){this.destruct()}}})})(sgad,this);
(function(c,e){return c.view.OnGame=e.AdViewOnGame=AdView.extend(function(){var b,c,d,a,e,g,h,j,l,q,p,n,r,t,s,o;n=function(a){var b=n;b.style.display="table-cell";b.innerHTML=a};return{getAdContainer:function(){return d},getSkipLink:function(){return l},getMidrollWrapper:function(){return q},getAd:function(){return p},getCompanionAd:function(){return n},initialize:function(m){r=m;AdFrontController.register("sgAdOgGp300x250");b=document.createDocumentFragment();c=make("div",{id:"sgAdWrapperObj"});
b.appendChild(c);var m=make("div",{id:"sgAdOgGpArtLeft"}),s=make("div",{id:"sgAdOgGpArtRight"});c.appendChild(m);c.appendChild(s);d=make("div",{id:"sgAdPlacement"});c.appendChild(d);var o=make("div",{id:"sgAdTickerLabel"});o.style.display="block";m=make("span",{"class":"left-br"});s=make("span",{"class":"right-br"});j=AdConfig.get("global").labelOngameCountdown;a=make("span",{"class":"text"},AdConfig.get("global").labelLoading||"Loading...");o.appendChild(m);o.appendChild(s);o.appendChild(a);c.appendChild(o);
e=make("div",{id:"ad-progress-container"});m=make("span",{"class":"left-br"});s=make("span",{"class":"right-br"});o=make("div",{id:"progress-bg"});g=make("div",{id:"ad-progress-bar","class":"ad-progress"});h=make("span",{id:"ad-progress-stripes"});var n=make("div",{"class":"mid-br"});g.appendChild(h);e.appendChild(m);e.appendChild(s);e.appendChild(o);e.appendChild(g);e.appendChild(n);c.appendChild(e);l=make("div",{id:"sgAdSkipLink"});l.style.display="none";m=make("a",AdConfig.get("global").labelOngameSkiplink);
m.href="javascript:void(0);";l.appendChild(m);c.appendChild(l);return this},destruct:function(){try{s=getNode(r),s.innerHTML=""}catch(a){}},showTickerElements:function(b){b?(e.style.display="block",a.style.display="block"):(e.style.display="none",a.style.display="none")},showSkipLink:function(a){a?l.style.display="block":(l.onclick=null,l.style.display="none")},render:function(c,e){a.style.display="inline-block";t||(t=getNode("theGame"));s=getNode(r);s.innerHTML="";var f=make("div",{id:"sgAdOgMainContainer",
"class":"sgAdOgMainContainer",style:"width:100%"}),g=make("div",{id:"sgAdOgPopupContainer","class":"sgAdOgPopupContainer"});f.appendChild(g);var k=make("div",{id:"sgAdOgPopupContainer_bg"});g.appendChild(k);var k=make("div",{id:"sgAdOgPopupBorderInset_T"}),h=make("div",{id:"sgAdOgPopupBorderInset_LT"}),j=make("div",{id:"sgAdOgPopupBorderInset_MT"}),l=make("div",{id:"sgAdOgPopupBorderInset_RT"});k.appendChild(h);k.appendChild(j);k.appendChild(l);g.appendChild(k);h=make("div",{id:"sgAdOgPopupWrapper",
"class":"sgAdOgPopupWrapper"});g.appendChild(h);k=make("div",{id:"sgAdOgPopupBox","class":"sgAdOgPopupBox"});h.appendChild(k);j=make("div",{id:"sgAdOgPopupBorderInset_L"});h=make("div",{id:"sgAdOgBoxTitle","class":"sgAdOgBoxTitle"});k.appendChild(j);j=make("div",{id:"sgAdOgBoxTitle_bg"});h.appendChild(j);k.appendChild(h);h.appendChild(j);var j=make("div",{id:"sgAdOgBoxTitleBorderInset_T"}),l=make("div",{id:"sgAdOgBoxTitleBorderInset_LT"}),B=make("div",{id:"sgAdOgBoxTitleBorderInset_MT"}),E=make("div",
{id:"sgAdOgBoxTitleBorderInset_RT"});j.appendChild(l);j.appendChild(B);j.appendChild(E);h.appendChild(j);j=make("div",{id:"sgAdOgBoxTitleBorderInset_L"});h.appendChild(j);j=make("span",{"class":"title"},AdConfig.get("global").labelHeader);h.appendChild(j);j=make("div",{id:"sgAdOgBoxTitleBorderInset_R"});h.appendChild(j);j=make("div",{id:"sgAdOgPopupBorderInset_B"});l=make("div",{id:"sgAdOgBoxTitleBorderInset_LB"});B=make("div",{id:"sgAdOgBoxTitleBorderInset_MB"});E=make("div",{id:"sgAdOgBoxTitleBorderInset_RB"});
j.appendChild(l);j.appendChild(B);j.appendChild(E);h.appendChild(j);h=make("div",{id:"sgAdOgBoxContent","class":"sgAdOgBoxContent"});h.appendChild(b);k.appendChild(h);h=make("div",{id:"sgAdOgPopupBorderInset_R"});k.appendChild(h);j=make("div",{id:"sgAdOgPopupBorderInset_B"});k=make("div",{id:"sgAdOgPopupBorderInset_LB"});h=make("div",{id:"sgAdOgPopupBorderInset_MB"});l=make("div",{id:"sgAdOgPopupBorderInset_RB"});j.appendChild(k);j.appendChild(h);j.appendChild(l);g.appendChild(j);o=f;s.appendChild(o);
s.style.width="100%";s.style.height="100%";s.style.zIndex="1";q=make("div",{id:"sgAdOgWrapper","class":"sgAdOgWrapper"});p=make("div",{id:"sgAdVideoAd"});"AdModelVast"!=e.getModel().id&&(p.style.height="280px",p.style.width="336px");q.appendChild(p);n=make("div",{id:"sgAdCompanion1"});q.appendChild(n);p.appendChild(c);d.appendChild(q)},resizeAd:function(a,b){p.setAttribute("style","width: "+parseInt(a)+"px; height: "+parseInt(b)+"px; margin: 0 auto;")},companionAd:n,updateTicker:function(b,c){var d=
Math.min(100,106*(1-c/b))+"%";g.style.width=d;a.innerHTML=j.replace("_countdown_",c);a.style.visibility="visible"},hide:function(){this.destruct()}}})})(sgad,this);
(function(c,e){return c.view.IFrame=e.AdViewIframe=AdDefine(function(){function b(a,b){j&&(clearTimeout(j),p(a,b))}function c(){var a=document.getElementById("iframe-"+l.getId()).contentWindow.document;try{var b=!1;/sgAdPd/ig.test(l.getId())&&0<a.getElementsByTagName("img").length&&/empty.gif/.test(a.getElementsByTagName("img")[0].src)&&(b=!0,AdFrontController.removePosition(l.getId()));if(/sgAdSu/ig.test(l.getId())){for(var d=a.body.children[a.body.children.length-1];d&&1!==d.nodeType&&d.previousSibling;)d=
d.previousSibling;d&&/sgAdSu/ig.test(d.id)&&(l.hide(),b=!0)}if(b)l.notify("ondefault",{code:3400,message:"Violation of an rule (blank detection)",str:a.documentElement.innerHTML});else{var b=l,e=document.getElementById(b.getId());if(e){var f=document.getElementById("iframe-"+b.getId()),h=f&&f.style&&f.style.width?f.style.width:null,k=b.getId().substring(4,6),g=b.getId();if(/sgAdSu/i.test(g))if(/GoogleActiveViewClass[^>]*,728,90,/i.test(f.contentDocument.body.innerHTML)){var n=document.getElementById(g);
addClassName(n,"sgAdLb");n.className=n.className.replace("sgAdSu ","");n.style.margin="20px auto 0";f.style.width="728px";k="Lb"}else f.style.width="970px";f="Pd"===k||"St"===k||"Pa"===k||"Su"===k&&"728px"!==h?"none":"block";e.style.display="block";var j=getElementsByClassName(e,"sgAdLabel");"none"===f&&j&&j[0]&&j[0].style&&(j[0].style.display=f)}}}catch(q){consolewarn("Friendly-iframe exception",q)}e=l;e.notify("onfetchend",{data:a.documentElement.innerHTML});j=AdConfig.get("global")||{};a=j.displayShowSkiplinkAfterSeconds||
7;j=j.displayDurationSeconds||15;e.notify("onduration",parseInt(j));e.notify("onload",{source:"iframe"});e.notify("onstart");e.notify("onskiplinkstart",{after:a});p(j,j)}var d,a,e,g,h,j=null,l,q=function(a,d,e,h,k,g){l=d;g="undefined"!==typeof g?g:"";l.onLoad=c;l.resetTicker=b;l.getParameters=function(){return{controllerId:l.getId(),url:e,snippet:h,supersnippet:g}};n(e,h,k,g)},p=function(a,b){l.notify("ontick",{total:a,tick:b});b--;0<=b?j=setTimeout(function(){p(a,b)},1E3):l.getFinished()||l.notify("onfinish",
{source:"iframe"})},n=function(a,b,c){a=document.createElement("iframe");(new Date).getTime();a.setAttribute("allowtransparency",!1);a.setAttribute("frameborder",0);a.setAttribute("scrolling","no");a.setAttribute("horizontalscrolling","no");a.setAttribute("verticalscrolling","no");a.setAttribute("id","iframe-"+l.getId());a.style.margin="0 auto 0 auto";a.style.padding="0 0 0 0";a.style.overflow="hidden";a.style.border="none";a.setAttribute("seamless","seamless");a.style.display="block";iframeWidth=
parseInt(l.getConfig().width,10);iframeHeight=parseInt(l.getConfig().height,10);10<iframeWidth&&10<iframeHeight?(a.style.width=iframeWidth+"px",a.style.height=iframeHeight+"px"):(a.style.width="0px",a.style.height="0px");c.appendChild(a);a.setAttribute("src","/vda/friendly-iframe_html_"+AdConfig.getVersion()+"#"+l.getId());return a};return{initialize:function(b){d=b;a=make("div");a.className="sgAdWrapper";e=make("div");e.className="sgAdLabel";e.innerHTML=AdConfig.get("global").labelHeader;a.appendChild(e);
g=make("div");g.className="sgAdContainer";a.appendChild(g)},render:function(b,c,e,f,h){var k=getNode(d);addClassName(k,"sgAd");addClassName(k,d.substr(0,6));addClassName(k,"sgAdSite"+AdConfig.get("site").keyId);k.appendChild(a);q(b,c,e,f,g,h)},renderAt:q,show:function(){getNode(d).style.display="block"},hide:function(){getNode(d).style.display="none"},destruct:function(){for(h=getNode(d);h&&h.firstChild;)h.removeChild(h.firstChild)}}})})(sgad,this);
(function(c,e){var b=c.view.Krux=e.AdViewKrux=AdDefine(function(){var b,c,a,e,g=null,h,j=function(a,c){var d=c+"<script src="+a+"><\/script>";h.notify("onfetchstart",{source:a});c="undefined"!==typeof c?c:"";window.postscribe("#sgAdContainer"+b,d,{done:function(){var a=document.getElementById(b).innerHTML,c=!1;/sgAdPd/ig.test(b)&&/cdn2-marketplace.vntsm.com/g.test(a)&&!/ftscript/g.test(a)&&(c=!0,AdFrontController.removePosition(b));if(c)h.notify("ondefault",{code:3400,message:"Violation of an rule (blank detection)",
str:a});else{var c=h.getId().substring(4,6),c="Pd"===c||"St"===c||"Su"===c||"Pa"===c?"none":"block",e=document.getElementById(b);e.style.display="block";e=getElementsByClassName(e,"sgAdLabel");"none"===c&&e&&e[0]&&e[0].style&&(e[0].style.display=c)}h.notify("onfetchend",{data:a,adsource:d})},beforeWrite:function(a){h.notify("ondeliverychain",{source:"krux",str:a});return a},afterWrite:function(){},scriptDone:function(){},error:function(){h.notify("onerror",{code:3300,message:"DOM element remained empty"})}})};
return{initialize:function(h){b=h;c=make("div");c.className="sgAdWrapper";a=make("div");a.className="sgAdLabel";a.innerHTML=AdConfig.get("global").labelHeader;c.appendChild(a);e=make("div");e.className="sgAdContainer";e.id="sgAdContainer"+h;c.appendChild(e)},render:function(a,e,k,g){h=e;a=getNode(b);/^(sgAdLb)|(sgAdMr)/.test(b)||(a.style.display="none");addClassName(a,"sgAd");addClassName(a,b.substr(0,6));addClassName(a,"sgAdSite"+AdConfig.get("site").keyId);a.appendChild(c);j(k,g)},show:function(){document.getElementById(b).style.display=
"block"},hide:function(){document.getElementById(b).style.display="none"},destruct:function(){for(g=getNode(b);g&&g.firstChild;)g.removeChild(g.firstChild)}}});(function(){function b(f,p){var f=f||"",p=p||{},n;for(n in c)c.hasOwnProperty(n)&&(p.autoFix&&(p["fix_"+n]=!0),p.fix=p.fix||p["fix_"+n]);var r={comment:/^<\!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s>]/i,startTag:/^</,chars:/^[^<]/},l={comment:function(){var a=f.indexOf("--\>");if(0<=a)return{content:f.substr(4,
a),length:a+3}},endTag:function(){var a=f.match(e);if(a)return{tagName:a[1],length:a[0].length}},atomicTag:function(){var a=l.startTag();if(a){var b=f.slice(a.length);if(b.match(RegExp("</\\s*"+a.tagName+"\\s*>","i"))&&(b=b.match(RegExp("([\\s\\S]*?)</\\s*"+a.tagName+"\\s*>","i"))))return{tagName:a.tagName,attrs:a.attrs,content:b[1],length:b[0].length+a.length}}},startTag:function(){var b=f.match(a);if(b){var c={};b[2].replace(g,function(a,b,d,e,f){a=d||e||f||h.test(b)&&b||null;c[b]=a});return{tagName:b[1],
attrs:c,unary:!!b[3],length:b[0].length}}},chars:function(){var a=f.indexOf("<");return{length:0<=a?a:f.length}}},s=function(){for(var a in r)if(r[a].test(f)){j&&console.log("suspected "+a);var b=l[a]();return b?(j&&console.log("parsed "+a,b),b.type=b.type||a,b.text=f.substr(0,b.length),f=f.slice(b.length),b):null}};p.fix&&function(){var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,b=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i,c=[];c.last=function(){return this[this.length-
1]};c.lastTagNameEq=function(a){var b=this.last();return b&&b.tagName&&b.tagName.toUpperCase()===a.toUpperCase()};c.containsTagName=function(a){for(var b=0,c;c=this[b];b++)if(c.tagName===a)return!0;return!1};var d=function(b){b&&"startTag"===b.type&&(b.unary=a.test(b.tagName)||b.unary);return b},e=s,h=function(){f="</"+c.pop().tagName+">"+f},k={startTag:function(a){var d=a.tagName;"TR"===d.toUpperCase()&&c.lastTagNameEq("TABLE")?(f="<TBODY>"+f,g()):p.fix_selfClose&&b.test(d)&&c.containsTagName(d)?
c.lastTagNameEq(d)?h():(f="</"+a.tagName+">"+f,g()):a.unary||c.push(a)},endTag:function(a){c.last()?p.fix_tagSoup&&!c.lastTagNameEq(a.tagName)?h():c.pop():p.fix_tagSoup&&(e(),g())}},g=function(){var a=f,b=d(e());f=a;if(b&&k[b.type])k[b.type](b)};s=function(){g();return d(e())}}();return{append:function(a){f+=a},readToken:s,readTokens:function(a){for(var b;(b=s())&&!(a[b.type]&&!1===a[b.type](b)););},clear:function(){var a=f;f="";return a},rest:function(){return f},stack:[]}}var c=function(){var a=
{},b=this.document.createElement("div");b.innerHTML="<P><I></P></I>";a.tagSoup="<P><I></P></I>"!==b.innerHTML;b.innerHTML="<P><i><P></P></i></P>";a.selfClose=2===b.childNodes.length;return a}(),a=/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,e=/^<\/([\-A-Za-z0-9_]+)[^>]*>/,g=/([\-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,h=/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i,
j=!1;b.supports=c;b.tokenToString=function(a){var b={comment:function(a){return"<--"+a.content+"--\>"},endTag:function(a){return"</"+a.tagName+">"},atomicTag:function(a){return b.startTag(a)+a.content+b.endTag(a)},startTag:function(a){var b="<"+a.tagName,c;for(c in a.attrs)var d=a.attrs[c],b=b+(" "+c+'="'+(d?d.replace(/(^|[^\\])"/g,'$1\\"'):"")+'"');return b+(a.unary?"/>":">")},chars:function(a){return a.text}};return b[a.type](a)};b.escapeAttributes=function(a){var b={},c;for(c in a){var d=a[c];
b[c]=d&&d.replace(/(^|[^\\])"/g,'$1\\"')}return b};for(var l in c)b.browserHasFlaw=b.browserHasFlaw||!c[l]&&l;this.htmlParser=b})();(function(){function b(){}function c(a,b,d){var e,f=a&&a.length||0;for(e=0;e<f;e++)b.call(d,a[e],e)}function a(a,b,c){for(var d in a)a.hasOwnProperty(d)&&b.call(c,d,a[d])}function e(b,c){a(c,function(a,c){b[a]=c});return b}function g(b,c){b=b||{};a(c,function(a,c){null==b[a]&&(b[a]=c)});return b}function h(a){try{return l.call(a)}catch(b){var e=[];c(a,function(a){e.push(a)});
return e}}var j=this;if(!j.postscribe){var l=Array.prototype.slice,q=function(){function b(a,c,d){var e=g+c;if(2===arguments.length)return e=a.getAttribute(e),null==e?e:""+e;null!=d&&""!==d?a.setAttribute(e,d):a.removeAttribute(e)}function f(a,c){var d=a.ownerDocument;e(this,{root:a,options:c,win:d.defaultView||d.parentWindow,doc:d,parser:j.htmlParser("",{autoFix:!0}),actuals:[a],proxyHistory:"",proxyRoot:d.createElement(a.nodeName),scriptStack:[],writeQueue:[]});b(this.proxyRoot,"proxyof",0)}var g=
"data-ps-";f.prototype.write=function(){[].push.apply(this.writeQueue,arguments);for(var a;!this.deferredRemote&&this.writeQueue.length;)a=this.writeQueue.shift(),"function"===typeof a?this.callFunction(a):this.writeImpl(a)};f.prototype.callFunction=function(a){var b={type:"function",value:a.name||a.toString()};this.onScriptStart(b);a.call(this.win,this.doc);this.onScriptDone(b)};f.prototype.writeImpl=function(a){this.parser.append(a);for(var b,a=[];(b=this.parser.readToken())&&!/^script$/i.test(b.tagName);)a.push(b);
this.writeStaticTokens(a);b&&this.handleScriptToken(b)};f.prototype.writeStaticTokens=function(a){a=this.buildChunk(a);if(a.actual)return a.html=this.proxyHistory+a.actual,this.proxyHistory+=a.proxy,this.proxyRoot.innerHTML=a.html,this.walkChunk(),a};f.prototype.buildChunk=function(a){var b=this.actuals.length,e=[],f=[],h=[];c(a,function(a){e.push(a.text);if(a.attrs){if(!/^noscript$/i.test(a.tagName)){var c=b++;f.push(a.text.replace(/(\/?>)/," "+g+"id="+c+" $1"));"ps-script"!==a.attrs.id&&h.push("atomicTag"===
a.type?"":"<"+a.tagName+" "+g+"proxyof="+c+(a.unary?"/>":">"))}}else f.push(a.text),h.push("endTag"===a.type?a.text:"")});return{tokens:a,raw:e.join(""),actual:f.join(""),proxy:h.join("")}};f.prototype.walkChunk=function(){for(var a,c=[this.proxyRoot];null!=(a=c.shift());){var d=1===a.nodeType;if(!d||!b(a,"proxyof"))d&&(this.actuals[b(a,"id")]=a,b(a,"id",null)),(d=a.parentNode&&b(a.parentNode,"proxyof"))&&this.actuals[d].appendChild(a);c.unshift.apply(c,h(a.childNodes))}};f.prototype.handleScriptToken=
function(a){var b=this.parser.clear();b&&this.writeQueue.unshift(b);a.src=a.attrs.src||a.attrs.SRC;if(a.src&&this.scriptStack.length)this.deferredRemote=a;else this.onScriptStart(a);var c=this;this.writeScriptToken(a,function(){c.onScriptDone(a)})};f.prototype.onScriptStart=function(a){a.outerWrites=this.writeQueue;this.writeQueue=[];this.scriptStack.unshift(a)};f.prototype.onScriptDone=function(a){a!==this.scriptStack[0]?this.options.error({message:"Bad script nesting or script finished twice"}):
(this.options.scriptDone({script:a}),this.scriptStack.shift(),this.write.apply(this,a.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this.onScriptStart(this.deferredRemote),this.deferredRemote=null))};f.prototype.writeScriptToken=function(a,b){var c=this.buildScript(a);a.src&&(c.src=a.src,this.scriptLoadHandler(c,b));try{this.insertScript(c),a.src||b()}catch(d){this.options.error(d),b()}};f.prototype.buildScript=function(b){var c=this.doc.createElement(b.tagName);a(b.attrs,function(a,
b){c.setAttribute(a,b)});b.content&&(c.text=b.content);return c};f.prototype.insertScript=function(a){this.writeImpl('<span id="ps-script"/>');var b=this.doc.getElementById("ps-script");b.parentNode.replaceChild(a,b)};f.prototype.scriptLoadHandler=function(a,b){function c(){a=a.onload=a.onreadystatechange=a.onerror=null;b()}var d=this.options.error;e(a,{onload:function(){c()},onreadystatechange:function(){/^(loaded|complete)$/.test(a.readyState)&&c()},onerror:function(){d({message:"remote script failed "+
a.src});c()}})};return f}(),p=function(){function a(){var b=l.shift();b&&(b.stream=c.apply(null,b))}function c(g,j,l){function p(a){a=l.beforeWrite(a);m.write(a);l.afterWrite(a)}m=new q(g,l);m.id=h++;m.name=l.name||m.id;d.streams[m.name]=m;var o=g.ownerDocument,r={write:o.write,writeln:o.writeln};e(o,{write:p,writeln:function(a){p(a+"\n")}});var z=m.win.onerror||b;m.win.onerror=function(a,b,c){l.error({msg:a+" - "+b+":"+c});z.apply(m.win,arguments)};m.write(j,function(){e(o,r);m.win.onerror=z;l.done(o,
r);m=null;a()});return m}function d(c,e,h){"function"===typeof h&&(h={done:h});var h=g(h,{done:b,scriptDone:function(){},error:function(a){throw a;},beforeWrite:function(a){return a},afterWrite:b}),c=/^#/.test(c)?j.document.getElementById(c.substr(1)):c.jquery?c[0]:c,k=[c,e,h];c.postscribe={cancel:function(){k.stream?k.stream.abort():k[1]=b}};l.push(k);m||a();return c.postscribe}var h=0,l=[],m=null;return e(d,{streams:{},queue:l,WriteStream:q})}();j.postscribe=p}})();return b})(sgad,this);
(function(c,e){var b={adDomainUrl:"http://plg2.yumenetworks.com/",domainId:"1446DqTvyYlp",prerollPlaylist:"dynamic_preroll_playlist.vast2xml",midrollPlaylist:null,postrollPlaylist:null,bannerPlaylist:null,html5VideoId:"sgAdYvVideo",clickTagHRefId:"hRefClickTag",bEnableLocationSupport:!1},f=["in","seconds"],d=function(){window.console&&console.warn.apply(console,arguments)};return c.view.YuMe=e.AdViewYuMe=AdView.extend(function(){var a,e,g,h,j,l,q,p,n,r,t,s,o,m,w,u=function(){window.yumeSDKAdEventListener=
function(a,b){if(p[a])p[a](b);else d("Unknown Event Type: ",a,b)}},A=function(){var a=controller.getConfig().originalConfig;if(a){var a=a.sources[0].sourceData,c;for(c in a)0<a[c].length&&void 0!==b[c]&&(b[c]=a[c])}},v=function(){a.parentNode.removeChild(a);B("fromInside")},y=function(){l.style.height="100%";t=l.videoWidth/l.videoHeight||1.3333333;var b=window.innerWidth,c=window.innerHeight;a.style.width=b+"px";a.style.height=c+"px";q.style.height=c+"px";b<c?(e.style.width=0.8*b+"px",e.style.height=
0.8*b/t+"px"):(e.style.height=0.7*c+"px",e.style.width=0.7*c*t+"px");setTimeout(function(){window.scrollTo(0,1)},100)},F=function(){a.parentNode?(SpilGames("mobile.ad.finished"),w=!0,document.body.style.overflow="auto",v(),clearInterval(o)):(clearInterval(m),SpilGames("mobile.ad.finished"))},z=function(){o=setInterval(function(){s=Math.floor(n.yume_getDuration());var a=s-Math.ceil(l.currentTime);0<=a&&(g.innerHTML=f[0]+" "+(9<a?a:"0"+a)+" "+f[1])},300)},B=function(a){a&&(document.body.removeEventListener("touchmove",
p.voidEvent),window.removeEventListener("orientationchange",y),window.removeEventListener("resize",y),window.removeEventListener("focus",p.windowFocus),delete window.yumeSDKAdEventListener,clearTimeout(o))};p={ad_present:function(b){d("AD_PRESENT",b);a.style.display="block";document.body.style.overflow="hidden";y();window.addEventListener("focus",p.windowFocus)},ad_absent:function(a){d("AD_ABSENT",a)},ad_playing:function(a){d("AD_PLAYING",a);document.body.removeEventListener("touchstart",p.onDocumentTouchStart);
controller.notify("onstart",{});w=!1;h.style.display="none";j.style.display="block";z()},ad_completed:function(a){d("AD_COMPLETED",a);controller.notify("onfinish",{source:"YuMe"});w||(m=setInterval(F,300))},ad_error:function(a){d("AD_ERROR",a);controller.notify("onerror",{code:2200,message:"YuMe Failed"})},ad_clicked2site:function(b){d("AD_CLICKED2SITE",b);q.style.display="block";window.addEventListener("focus",p.windowFocus);a.addEventListener("click",p.startVideo)},ad_clicked2video:function(a){d("AD_CLICKED2VIDEO",
a)},pip_video_playing:function(a){d("PIP_VIDEO_PLAYING",a)},ad_cb_flash_event:function(a){d("AD_CB_FLASH",a)},ad_cb_iframe_event:function(a){d("AD_CB_IFRAME",a)},onDocumentTouchStart:function(){l.play()},startVideo:function(a){a.preventDefault();l.play();q.style.display="none";return!1},voidEvent:function(a){a.preventDefault()}};return{initialize:function(b){r=document.getElementById(b);r||(r=document.createElement("div"),r.id=b,document.body.insertBefore(r,document.body.firstChild));b='<div id="sgAdYvOverlay" style="position:absolute; width:100%; height:100%; z-index:1000; left:0; top:0; display:none">\n<a id="clickToRestart" style="position:absolute; display: none; width: 100%; z-index:10000;"></a>\n<div id="sgAdYvOpacity" style="position:absolute; width:100%; height:100%; background-color:black; opacity:0.8"></div>\n<div id="sgAdContainer" style="position:absolute; width:100%; z-index:1000">\n<h1 id="sgAdYvHeader" style="text-align:center; color:white;">{{headerText}}</h1>\n<div id="sgAdYvVideoDiv" style="position:relative; margin: 0 auto;">\n<a style="display: block;" id="hRefClickTag">\n<video id="sgAdYvVideo" style="height:0px; width:100%; margin:0 auto;"></video>\n</a>\n</div>\n<h3 id="sgAdYvTouchForAction" style="text-align:center; color:white;">{{touchForActionText}}</h3>\n<h3 id="sgAdYvFooter" style="text-align:center; color:white; display:none;">\n{{footerText}} \n<span id="sgAdYvCountDown" style="color:white;"></span>\n</h3>\n</div>\n</div>'.replace("{{headerText}}",
"Advertisement");b=b.replace("{{touchForActionText}}","Please tap the screen to watch a message from our sponsor.");b=b.replace("{{footerText}}","Thanks to this advertiser, we can bring you this great game for free");r.innerHTML=b;a=document.getElementById("sgAdYvOverlay");e=document.getElementById("sgAdYvVideoDiv");g=document.getElementById("sgAdYvCountDown");h=document.getElementById("sgAdYvTouchForAction");j=document.getElementById("sgAdYvFooter");l=document.getElementById("sgAdYvVideo");document.getElementById("hRefClickTag");
q=document.getElementById("clickToRestart");u()},render:function(a,d){setTimeout(function(){SpilGames("mobile.ad.finished")},1E4);controller=d;A();c.view.YuMe.SDKLoader.run(function(a){n=a;n.yume_init(b);n.yume_startAd("PREROLL_BLOCK")});document.body.addEventListener("touchstart",p.onDocumentTouchStart);document.body.addEventListener("touchmove",p.voidEvent);window.addEventListener("orientationchange",y);window.addEventListener("resize",y);q.addEventListener("click",p.startVideo)},hide:v,destruct:B,
eventHandlers:p}})})(sgad,this);
(function(c){var e=document.getElementById("adsSc");if(e){var b=e.src.match(/^http[s]?:\/\/[a-z0-9\.]+\//)[0]+"vda/vendor/yume/yume_html5_sdk.js",f=[],d=!1,a=!1,k,g=function(){for(var a=0,b=f.length;a<b;a++)f.shift()(k)};c.view.YuMe.SDKLoader={run:function(c){f.push(c);if(!a){if(d)return g();a=!0;c=document.createElement("script");c.setAttribute("src",b);c.addEventListener("load",function(){k=new YuMeHTML5SDK;g();d=!0;a=!1});document.head.appendChild(c)}}}}})(sgad,this);
(function(c,e){return c.view.GoogleIMA=e.AdViewGoogleIMA=AdView.extend(function(){var b,c,d,a;function e(a){o.notify("onload",{source:"VIDEO"});o.notify("playerInitialized",1);v=a.getAdsManager(B);v.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,h);v.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,j);v.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,q);v.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,g);v.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,
g);v.addEventListener(google.ima.AdEvent.Type.LOADED,g);v.addEventListener(google.ima.AdEvent.Type.STARTED,g);v.addEventListener(google.ima.AdEvent.Type.COMPLETE,g);try{var b=document.getElementById("videoPreroll300x250");v.init(b?b.offsetWidth:"100%",b?b.offsetHeight:360,google.ima.ViewMode.FULLSCREEN);v.start()}catch(c){o.notify("onerror",{code:2200,message:"GoogleIMA Failed"}),o.notify("playerFailed",1)}o.notify("playerConfigured",1)}function g(a){var b=a.getAd();switch(a.type){case google.ima.AdEvent.Type.LOADED:t.firstChild.style.position=
"relative";t.firstChild.style.margin="0 auto";var a=parseInt(b.getHeight(),10),c=parseInt(t.firstChild.style.height.slice(0,-2),10);0<a&&20<c-a&&(t.firstChild.getElementsByTagName("iframe")[0].height=a+(c-a)/2);b.isLinear();break;case google.ima.AdEvent.Type.STARTED:o.notify("onstart",{});o.notify("adDelivered",1);M();b&&b.getDuration&&(m=b.getDuration());if(b.isLinear())z=setInterval(function(){var a=v.getRemainingTime(),a=parseInt(a);m<a&&(m=a);o.notify("ontick",{total:m,tick:a});var a=m-a,b=25*
Math.floor(4*(a/m));b>w&&100>b&&(w=b,o.notify("onquartile",{percentage:b,time:a}))},1E3);else var d=A,e=setInterval(function(){o.notify("ontick",{total:A,tick:d--,source:"display"});0>=d&&(clearInterval(e),o.notify("onfinish",{source:"GoogleIMA"}))},1E3);break;case google.ima.AdEvent.Type.COMPLETE:case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:l();break;case google.ima.AdEvent.Type.USER_CLOSE:o.notify("onclose",{source:"GoogleIMA"}),l()}}function h(a){o.notify("onerror",{code:2200,message:"GoogleIMA Failed"});
o.notify("adFailed",1);consolelog("Some error happener: ",a.getError());v&&v.destroy&&v.destroy()}function j(){}function l(){N||(o.notify("onfinish",{source:"GoogleIMA"}),"undefined"!==typeof z&&z&&clearInterval(z),"undefined"!==typeof intervalTimerNonLinear&&intervalTimerNonLinear&&clearInterval(intervalTimerNonLinear),N=!0)}function q(){l()}var p,n,r,t,s=null,o,m,w=0,u="",A=15,v,y,F,z,B,E,C,G,H,I,D,L,J,O,K,N=!1;a=d=c=b=void 0;var P=function(g,j){o.notify("onfetchstart",{source:g});u=g;try{eval(j),
b="undefined"!==typeof linearAdSlotWidth?parseInt(linearAdSlotWidth,10):0,c="undefined"!==typeof linearAdSlotHeight?parseInt(linearAdSlotWidth,10):0,d="undefined"!==typeof nonLinearAdSlotWidth?parseInt(nonLinearAdSlotWidth,10):0,a="undefined"!==typeof nonLinearAdSlotHeight?parseInt(nonLinearAdSlotHeight,10):0}catch(l){consolelog("Some error: ",l)}var m=document.createElement("script");m.setAttribute("src","//s0.2mdn.net/instream/html5/ima3.js");m.addEventListener("load",function(){o.notify("playerRequested",
1);var g=AdConfig.get("locale").keyId,g=g.split("-")[0];google.ima.settings.setLocale(g);F=new google.ima.AdDisplayContainer(t);F.initialize();y=new google.ima.AdsLoader(F);y.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,e,!1);y.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,h,!1);g=new google.ima.AdsRequest;g.adTagUrl=u;g.linearAdSlotWidth=b||640;g.linearAdSlotHeight=c||400;g.nonLinearAdSlotWidth=d||336;g.nonLinearAdSlotHeight=a||280;y.requestAds(g);o.notify("onfetchend",
{data:g.adTagUrl})});document.head.appendChild(m)},M=function(){document.getElementById(p).style.display="block"};return{initialize:function(a){A=(AdConfig.get("global")||{}).displayDurationSeconds||15;"sgAdOgGp300x250"===a&&AdFrontController.register("sgAdOgGp300x250");E=document.createDocumentFragment();C=make("div",{id:"sgAdWrapperObj"});E.appendChild(C);G=make("div",{id:"sgAdHeader"});G.style.textAlign="center";var b=make("p",AdConfig.get("global").labelHeader);G.appendChild(b);C.appendChild(G);
H=make("div",{id:"sgAdClickToAdLong"});H.style.display="none";b=make("p",AdConfig.get("global").labelClicktoadLong);H.appendChild(b);C.appendChild(H);I=make("div",{id:"sgAdClickToAdShort"});I.style.display="none";b=make("p",AdConfig.get("global").labelClicktoadShort);I.appendChild(b);C.appendChild(I);s=make("div",{id:"sgAdPlacement"});C.appendChild(s);D=make("div",{id:"sgAdTickerLabel"});D.style.display="none";D.style.textAlign="center";b=make("p",AdConfig.get("global").labelLoading||"Loading...");
D.appendChild(b);r=AdConfig.get("global").labelCountdown;C.appendChild(D);L=make("div",{id:"ad-progress-container"});C.appendChild(L);J=make("div",{id:"ad-progress-bar","class":"ad-progress"});L.appendChild(J);O=make("span",{id:"ad-progress-stripes"});J.appendChild(O);K=make("div",{id:"sgAdSkipLink"});K.style.display="none";b=make("a",AdConfig.get("global").labelSkiplink);b.href="javascript:void(0);";K.appendChild(b);C.appendChild(K);B={curentTime:0};p=a;n=make("div");n.className="sgAdWrapper";t=
make("div");t.id="sgAdContainer"+a;n.appendChild(t)},render:function(a,b,c,d){o=b;getNode(p).appendChild(E);s.appendChild(n);P(c,d)},showSkipLink:function(){},updateTicker:function(a,b){var c=Math.min(100,106*(1-b/a))+"%";J.style.width=c;D.style.display="block";D.innerHTML=r.replace("_countdown_",b);D.style.visibility="visible"},destruct:function(){try{t=getNode(p),t.innerHTML=""}catch(a){}},show:M,hide:function(){this.destruct()}}})})(sgad,this);
(function(c,e){return c.Video=e.AdVideo=AdDefine(function(){this.get=function(){};this.calculateDimensions=function(b,c){var b=parseInt(b),c=parseInt(c),d=Math.min(400/c,600/b);return{width:Math.round(b*d),height:Math.round(c*d)}};this.notify=function(){};return this})})(sgad,this);
(function(c,e){var b=0;return c.VideoFlowplayer=e.AdVideoFlowplayer=AdVideo.extend(function(c,d){var d=d||{},a;c.notify("playerRequested",1);var e=this;this.get=function(){var g=AdConfig.getHostname()+"vendor/flowplayer/";a=d.id||"sgAdVideoFlowplayer|"+ ++b;var h=AdConfig.get("global").playerKey,j=d.playlistreplaced||!1,l=AdMergeRecursive({key:h,wmode:"transparent",clip:{scaling:"orig",onMetaData:function(a){c.notify("onmetadata",a);var b=a.metaData||{},a=b.width&&b.height&&"http://lp.longtailvideo.com/5/ova/blank.mp4"!==
a.completeUrl?e.calculateDimensions(b.width,b.height):e.calculateDimensions("600","400");a.source="VIDEO";c.notify("onresize",a);b.duration&&c.notify("onduration",b.duration)},onBegin:function(){}},plugins:{controls:null},onError:function(){c.notify("onerror",{code:2200,message:"VPAID Failed"})}},d),q=make("a",{id:a});AdScriptLoader(g+"flowplayer-3.2.13.min.js",c,function(){if("undefined"==typeof $f)c.notify("onerror",{code:2200,message:"VPAID Failed"});else{var b=$f(q,{src:g+"flowplayer.commercial-3.2.18.swf",
hasPriority:"true",wmode:"transparent",quality:"autolow",allowfullscreen:"false",bgcolor:"#ffffff"},l);b.onLoad(function(){if(AdSolution.WidgetIntegration.isPrerollAborted()&&b){try{b.stop()}catch(d){}c.notify("onabort",{source:"VIDEO"})}AdSolution.WidgetIntegration.SystemEvents.subscribe("gi.update",function(a){if(a.data&&7===a.data.code&&b){try{b.stop()}catch(d){}c.notify("onabort",{source:"VIDEO"})}});if(getIsIe11()){var e=document.getElementById(a+"_api"),g=e.parentElement.parentElement;2==g.offsetWidth||
2==g.offsetHeight?(e.width="2px",e.height="2px"):(e.width=g.offsetWidth,e.height=g.offsetHeight)}!0===j?c.notify("onload",{source:"VIDEO"}):c.notify("onerror",{code:2300,message:"Playlist not replaced"})});b.onError(function(a,b){c.notify("onerror",{code:"1"+a,message:b})});b.onPlaylistReplace(function(){j=!0});var d=!1,e=[];for(x=0;60>x;x++)e.push(1E3*x);b.onCuepoint(e,function(a,b){if(d){var e=Math.round(a.duration),b=Math.round(b/a.cuepointMultiplier);c.notify("onCuepoint",{duration:e,sec:b})}});
b.onStart(function(a){a.ovaAd&&(d=!0,c.notify("onstart",{duration:parseInt(a.fullDuration),sec:parseInt(a.fullDuration)}),a=(AdConfig.get("global")||{}).videoShowSkiplinkAfterSeconds||20,c.notify("onskiplinkstart",{after:a}))});b.onPause(function(){c.notify("onpause")});b.onResume(function(){c.notify("onresume")});b.onFinish(function(){c.notify("onfinish",{source:"VIDEO"})});b.onLoad(function(){c.notify("playerInitialized",1)});var h=!1;b.onError(function(){!0!==h&&(c.notify("playerFailed",1),h=!0)});
var k=!1;b.onStart(function(){!0!==k&&(c.notify("adDelivered",1),k=!0)});c.notify("playerConfigured",1)}});return q};this.notify=function(b,c){switch(b){case "onresize":if(getIsIe11()&&a){var d=document.getElementById(a+"_api");d.width=parseInt(c.width);d.height=parseInt(c.height)}try{$f().getScreen().css({left:0,top:0,width:parseInt(c.width),height:parseInt(c.height)})}catch(e){}}};c.subscribe(this);return this})})(sgad,this);
var AdCookie=AdCookie.singleton(),AdGraph=AdGraph.singleton(),AdConfig=sgad.Config.singleton(),AdAnalyzer=sgad.Analyzer.singleton(),AdReport=sgad.Report.singleton(),Rules=sgad.Rules.singleton(),AdLifeline=sgad.LifeLine.singleton(),AdFrontController=sgad.FrontController.singleton();AdSolution={displayPosition:function(c){AdFrontController.displayPosition(c)},displayPositions:function(){AdFrontController.displayPositions()}};
AdSolution.WidgetIntegration=function(){var c,e=[],b=!1,f=!1,d=[];"function"===typeof SpilGames&&SpilGames(["gi.SWP"],function(a){c=a;if(c.init){c.init("ads_banner");c.System.init(function(a){var c,e,j,l;if(c=d[a.name]){e=c.length;for(l=0;l<e;l++)j=c[l],"function"===typeof j&&j(a)}7===a.data.code?b=!0:16===a.data.code&&(a=AdFrontController.getController("sgAdOgGp300x250"),a.getFinished()||(f=!0,a.notify("onfinish",{source:"onabort"})))});for(a=0;a<e.length;a++)e[a](c);e=[]}});return{getModule:function(a){c?
a(c):e.push(a)},isPrerollAborted:function(){return b},isMidrollAborted:function(){return f},SystemEvents:{subscribe:function(a,b){d[a]||(d[a]=[]);d[a].push(b)}}}}();
AdSolution.runHack=function(c){for(var e=AdConfig.getPositions(),b,f,d=e.length-1;0<=d;d--)if(e[d].containerId.match(/^videoPreroll300x250$/)){b=e[d];f=d;break}if(!b)return AdSolution.WidgetIntegration.getModule(function(a){a.System.emit("ad.preroll.finish")}),c();if(b.$overwrite)return c();if(AdGraph.get("game:developer")&&AdGraph.get("game:type")&&null===AdGraph.get("game:developer").match("Qplay")&&AdGraph.get("game:type").match("zapapasocial2")||AdGraph.get("game:tags")&&AdGraph.get("game:tags").match("Social")||
AdGraph.get("game:tags")&&AdGraph.get("game:tags").match("MMORPG"))e.splice(f,1),AdSolution.WidgetIntegration.getModule(function(a){a.System.emit("ad.preroll.finish")});c()};for(var isSeleniumTest="stg"===window.location.host.substring(0,3)&&-1!==location.search.search("noad=true"),AdFrontOld=[],i=0,len=AdFront.length;i<len;i++)AdFrontOld[i]=AdFront[i];
window.AdFront=AdDefine(function(){this.push=function(c){this.isSeleniumTest||AdFrontController.register(c)};this.init=function(c){this.isSeleniumTest=c;for(var c=0,e=AdFrontOld.length;c<e;c++)this.push(AdFrontOld[c])};return this}).singleton();window.AdFront.init(isSeleniumTest);
if("Microsoft Internet Explorer"==AdBrowser.name&&8>=AdBrowser.version){var oldc=AdFrontController.getController,oldr=AdFrontController.register,registerLater=[];AdFrontController.getController=function(){return{notify:function(){callLater=!1}}};AdFrontController.register=function(c){registerLater.push(c)};AdEvent("load",function(){AdFrontController.getController=oldc;AdFrontController.register=oldr;for(var c=0;c<registerLater.length;c++)AdFrontController.register(registerLater[c]);processAdConfiguration(function(){AdSolution.runHack(function(){AdFrontController.setup()})})})}else processAdConfiguration(function(){AdSolution.runHack(function(){AdFrontController.setup()})});
if("function"===typeof SpilGames&&"gamepage"===AdConfig.get().pageType){var gameId=AdGraph.get("game:id"),position=AdConfig.getPosition("sgAdOgGp300x250");gameId&&position&&position.ads&&0<position.ads.length&&SpilGames("api.application.getExtended",{applicationId:gameId},function(c){c.application&&c.application.adInterval&&(position.ongameTimeoutOrig=position.ongameTimeout,position.ongameTimeout=c.application.adInterval,AdConfig.setPosition("sgAdOgGp300x250",position))})}
attachLoadEvent(window,function(){var c=AdConfigParser.getPageType();if(c&&(c="sgAdSu"+c[0]+c.substr(1).toLowerCase(),(c=document.getElementById(c))&&92==c.offsetHeight))addClassName(c,"sgAdLb"),c.children[1].children[0].style.display="block"});
var onKeyUpMidroll=function(c){if(c.ctrlKey&&c.shiftKey&&"3"===String.fromCharCode(c.keyCode)){console.log("########################################");console.log("ALL CONFIGURATIONS");console.log("########################################");for(c=0;c<AdConfiguration.positions.length;c++){for(var e="",b=0;b<AdConfiguration.filters.length;b++)e+=AdConfiguration.filters[b].name+" : "+AdConfiguration.filters[b].portalValue+"; ";var f="";for(b in AdConfiguration.positions[c].filters)AdConfiguration.positions[c].filters[b]&&
(f+=b+" : "+AdConfiguration.positions[c].filters[b].join(",")+"; ");console.log("positions => ",AdConfiguration.positions[c].label,AdConfiguration.positions[c]);console.log("postion filters => ",f);console.log("portal filter values => ",e);console.log("--------------------------------------------")}console.log("########################################");console.log("FILTERED CONFIGURATIONS");console.log("########################################");for(c=0;c<AdConfig.getPositions().length;c++)AdConfig.getPositions()[c].$overwrite?
console.log(AdConfig.getPositions()[c].originalConfig.label,AdConfig.getPositions()[c]):console.log(AdConfig.getPositions()[c]),console.log("--------------------------------------------")}};window.addEventListener?window.addEventListener("keyup",onKeyUpMidroll,!1):window.attachEvent&&window.attachEvent("onkeyup",onKeyUpMidroll);
var onKeyUpConsole=function(c){c.ctrlKey&&c.shiftKey&&"4"===String.fromCharCode(c.keyCode)&&(SpilGames("game.ad.accepted",!0),AdConfig.getPosition("sgAdOgGp300x250")?(console.log("Midroll settings",AdConfig.getPosition("sgAdOgGp300x250")),console.log("Midroll timeout [sec]",AdConfig.getPosition("sgAdOgGp300x250").ongameTimeout)):console.log("No midroll settings"))};window.addEventListener?window.addEventListener("keyup",onKeyUpConsole,!1):window.attachEvent&&window.attachEvent("onkeyup",onKeyUpConsole);
(function(){(window.GamePlayerAPI||function(c){return function(){c.push(arguments);return c}}([]))("onGameDisplay",function(){AdFrontController.getController("videoPreroll300x250").notify("onfinish")})})();
