Signin  Pricing  Examples  Support

Libraries > wdg_js_aggregator-MINIFIED-0891737eae969d1ea1ede65af8f2cfaf.js

wdg_js_aggregator-MINIFIED-0891737eae969d1ea1ede65af8f2cfaf.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://games.co.id/wdg/js_aggregator-active/js/minified/wdg_js_aggregator-MINIFIED-0891737eae969d1ea1ede65af8f2cfaf.js

Function Explorer





















Libraries on games.co.id


wdg_featured_games-MINIFIED-be3d06d0dcd21ffd3d221825cf9902ff.js

wdg_footer-MINIFIED-b878ce5464c32ff2d4416b9892fd8a5c.js

wdg_js_aggregator-MINIFIED-0891737eae969d1ea1ede65af8f2cfaf.js

wdg_js_aggregator-MINIFIED-eea5e002b69eea3bf4edce7140a09f76.js

wdg_mobile_apps-MINIFIED-bc03f2a5a82e938a662fbbef110f321f.js

wdg_performance_tracker-MINIFIED-adbfcee758de332d9e0a019dcc885f717796e8a5.js

wdg_popup_login-MINIFIED-a61b0c75887be24f1e50ba056716e6e9.js

wdg_popup_oauth-MINIFIED-51468e1e655045377b46653dd4414989.js

wdg_popup_register-MINIFIED-d99de0b7fc8cff81d37a340625d49da0.js

wdg_popup_register_feedback-MINIFIED-2e37cbb51a0c911896954341fc852e12.js

wdg_recent_played_games-MINIFIED-86cf51f7f19df8d9e1af289f34ad1ae1.js

wdg_search_bar-MINIFIED-41150803654626aca7fa8586b1d906b8.js

wdg_set-MINIFIED-0b238515850ea4405ec3b921f7817cc5.js

wdg_user_status-MINIFIED-5651f6abe333e8848fbe37f3ff8dc3a9.js

wdg_vda-MINIFIED-a2f3448bf9bb603b9c953660add8db5e.js



Explore More


tiny_mce.js

init-head.js

init.js

menu-utils.js

wdg_js_aggregator-MINIFIED-0891737eae969d1ea1ede65af8f2cfaf.js
				
(function(a){function g(b){b._done||(b(),b._done=1)}function f(b){var a;if("object"==typeof b)for(var c in b)b[c]&&(a={name:c,url:b[c]});else a=b.split("/"),a=a[a.length-1],c=a.indexOf("?"),a={name:-1!=c?a.substring(0,c):a,url:b};return(b=w[a.name])&&b.url===a.url?b:w[a.name]=a}function b(b,a){if(b){"object"==typeof b&&(b=[].slice.call(b));for(var c=0;c<b.length;c++)a.call(b,b[c],c)}}function k(b){return"[object Function]"==Object.prototype.toString.call(b)}function l(b){b=b||w;var a,c;for(c in b){if(b.hasOwnProperty(c)&&
4!=b[c].state)return!1;a=!0}return a}function n(a){a.state=1;b(a.onpreload,function(b){b.call()})}function e(b,a){void 0===b.state&&(b.state=2,b.onpreload=[],h({src:b.url,type:"cache"},function(){n(b)}))}function p(a,c,f){if(4==a.state)return c&&c();if(3==a.state)return C.ready(a.name,c);if(2==a.state)return a.onpreload.push(function(){p(a,c)});a.state=3;h(a.url,function(){a.state=4;c&&c();b(r[a.name],function(b){g(b)});l()&&v&&b(r.ALL,function(b){g(b)})},f)}function h(b,f,d){var m=a.createElement("script");
m.type="text/"+(b.type||"javascript");m.src=b.src||b;m.async=d?d:!1;m.onreadystatechange=m.onload=function(){var b=m.readyState;f.done||b&&!(u?/complete/:/loaded|complete/).test(b)||(f.done=!0,f())};(a.body||c).appendChild(m)}function d(){v||(v=!0,b(q,function(b){g(b)}))}var c=a.documentElement,m,v,q=[],z=[],r={},w={},u=!0===a.createElement("script").async||"MozAppearance"in a.documentElement.style||window.opera,t=window.head_conf&&head_conf.head||"head",C=window[t]=window[t]||function(){C.ready.apply(null,
arguments)};C.js=u?function(){var a=arguments,c=a[a.length-1],d={},m=!1;k(c)||(c=null);if(c&&2===a.length||!c&&1===a.length)m=!0;b(a,function(b,h){b!=c&&(b=f(b),d[b.name]=b,p(b,c&&h==a.length-2?function(){l(d)&&g(c)}:null,m))});return C}:function(){var a=arguments,c=[].slice.call(a,1),d=c[0];if(!m)return z.push(function(){C.js.apply(null,a)}),C;d?(b(c,function(b){k(b)||e(f(b))}),p(f(a[0]),k(d)?d:function(){C.js.apply(null,c)})):p(f(a[0]));return C};C.ready=function(b,c){if(b==a)return v?g(c):q.push(c),
C;k(b)&&(c=b,b="ALL");if("string"!=typeof b||!k(c))return C;var d=w[b];if(d&&4==d.state||"ALL"==b&&l()&&v)return g(c),C;(d=r[b])?d.push(c):r[b]=[c];return C};C.ready(a,function(){l()&&b(r.ALL,function(b){g(b)});C.feature&&C.feature("domloaded",!0)});if(window.addEventListener)a.addEventListener("DOMContentLoaded",d,!1),window.addEventListener("load",d,!1);else if(window.attachEvent){a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&d()});t=1;try{t=window.frameElement}catch(I){}!t&&
c.doScroll&&function(){try{c.doScroll("left"),d()}catch(b){setTimeout(arguments.callee,1)}}();window.attachEvent("onload",d)}!a.readyState&&a.addEventListener&&(a.readyState="loading",a.addEventListener("DOMContentLoaded",handler=function(){a.removeEventListener("DOMContentLoaded",handler,!1);a.readyState="complete"},!1));setTimeout(function(){m=!0;b(z,function(b){b()})},300)})(document);
var _SG={},SpilGames=SpilGames||function(a){return function(){a.push(arguments);return a}}(SpilGames||[]),_spque=[],_sgdef={Cookies:["set"],Cache:["set"],Events:["publish","subscribe","subscribeOnce","unsubscribe"],Debug:"log warn error subscribe unsubscribe publish report".split(" "),Users:["get","getCurrentUser","getFriends","getAvatar"],Auth:["authenticate","login","logout"],Net:["post","get"],Highscores:["insert","getFriendScores","getMyScores","getGameScores"],Gameplay:["insert","getMyPlays",
"getFriendPlays"],Activities:["post","getActivityFeed"],Payments:["pay"],Portal:"getInformation adjustHeight requestGameBreak showInviteFriends showScoreboard gotoPage getLocale".split(" ")},_sgpush=function(a,g){return function(){_spque.push([a,g,arguments])}},x;for(x in _sgdef)if(_sgdef.hasOwnProperty(x)){SpilGames[x]={};for(var y in _sgdef[x])_sgdef[x].hasOwnProperty(y)&&(_qobj="_SG."+x,_qcall=_qobj+"."+_sgdef[x][y],SpilGames[x][_sgdef[x][y]]=_sgpush(_qcall,_qobj))}
SpilGames.Settings=new function(){_SG.Settings=this;var a={},g={},f=function(b){return b.toLowerCase()};this.postInit=function(){f=_SG.Deprecation.checkRenamed;var b=function(b){for(old in b)if(b.hasOwnProperty(old)){var a=f(old);a!=old&&(b[a]=b[old],delete b[old])}};b(a);b(g)};this.set=function(b,k,l){l=l?a:g;if("object"==typeof b)for(x in b)b.hasOwnProperty(x)&&(l[f(x)]=b[x]);else l[f(b)]=k};this.setDefault=function(b,a){this.set(b,a,!0)};this.get=function(b){b=f(b);return g[b]||a[b]||null}};
if("undefined"==typeof spilgames_api.apibase)throw"Please specify the base path of the API.";"undefined"!=typeof spilgames_api.channel_id&&SpilGames.Settings.set("portal.channel_id",spilgames_api.channel_id);"undefined"!=typeof spilgames_api.site_id&&SpilGames.Settings.set("portal.site_id",spilgames_api.site_id);
SpilGames.Head=new function(){_SG.Head=this;var a=spilgames_api.apibase;this.api_loaded=!1;this.load=head.js;this.ready=head.ready;this.loadApi=function(){this.include("api",function(){_SG.Head.api_loaded=!0})};this.include=function(){var g=[];for(i=0;i<arguments.length;i++){var f=arguments[i];if("string"==typeof f)if("plugin.integration"==f){var f=_SG.Settings.get("currentPortalInfo")||{},b=f.lang||"en_US",k=f.geoip||{},l=navigator||{},l=(l.language||l.browserLanguage||l.systemLanguage||l.userLanguage).toUpperCase().split(/[-_]/ig);
g.push("http://static1.spilcdn.com/vda/pb/1/0/0?locale="+b+"&country="+(k.country_code||l[1]||l[0])+"&pagetype="+(f.pagetype||"GP"))}else 0==f.indexOf("http://")?g.push(f):g.push(a+"spilgames."+f+".js");else g.push(f)}this.load.apply(this,g)}};
(function(a){var g=null,f=function(b){g==(b.domain||b.origin)&&function(b){var a;try{a=JSON.parse(b.data)}catch(f){a={call:[null,null],id:null}}var g=a.id||"",e=(a.call[0]||"").split(".");a=a.call[1]||{};var p=[],h=/^CALLBACK:/,d=function(a){var c={id:g,call:{id:a||0,data:null}};return function(a){c.call.data=a;b&&b.source&&b.source.postMessage&&b.source.postMessage(JSON.stringify(c),b.domain||b.origin)}},c;for(c in a){if("object"==typeof a[c])for(var m in a[c])h.test(a[c][m])&&(a[c][m]=d(a[c][m]));
h.test(a[c])&&(a[c]=d(a[c]));p.push(a[c])}switch(e.length){case 1:"SpilGames"==e[0]&&SpilGames.apply(this,p);break;case 2:SpilGames[e[1]].apply(this,p);break;case 3:SpilGames[e[1]][e[2]].apply(SpilGames,p)}}(b);null===g&&"SpilGames.registerDomain"==b.data&&(g=b.domain||b.origin)};a.attachEvent?a.attachEvent("onmessage",f,!1):a.addEventListener&&a.addEventListener("message",f,!1)})(window);var _zpQueue=[];
window.ZapapaJSApi=function(a,g,f,b){_zpQueue.push({a:a,d:g,c:f,o:b});1==_zpQueue.length&&(a=function(){_SG.Head.include("plugin.zapapa",function(){for(;_zpQueue.length;){var b=_zpQueue.shift();ZapapaJSApi(b.a,b.d,b.c,b.o)}})},_SG.Head.api_loaded?a():SpilGames.Events.subscribeOnce("api.initialized",a))};(function(a){var g="https://api.spilgames.com";a.spilgames_api&&a.spilgames_api.spapiendpoint&&(g=a.spilgames_api.spapiendpoint);SpilGames.Settings.set({"socialgateway.domain":g})})(window);/*
 2013, SpilGames
*/
Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var g=Array.prototype.slice.call(arguments,1),f=this,b=function(){},k=function(){return f.apply(this instanceof b&&a?this:a,g.concat(Array.prototype.slice.call(arguments)))};b.prototype=this.prototype;k.prototype=new b;return k});SpilGames.Head.loadApi();
SpilGamesBootstrap=window.SpilGamesBootstrap||[[function(){this("spilgames.set@spilgames.module.import.namespaces",{});this("spilgames.set@spilgames.module.portal.channelid",1);this("spilgames.set@spilgames.module.portal.siteid",1);this("spilgames.set@spilgames.module.spapi.backend","https://api.spilgames.com/")}]];
SpilGamesBootstrap.push([function(){var a=this,g=a.messageBroker;g.addRule("api.account.*|api.auth.*",function(f,b){f&&"undefined"!==typeof f.ttl?a(["Cache"],function(a){a.setItem({key:"SPAPI.auth.ttl",value:f.ttl,expires:f.ttl,path:"/"});delete f.ttl;b(f)}):b()});g.addRule("clear.api|api.*|game.api.*",{modules:["SPAPI"],map:{"clear.api":"SPAPI.clear","*":"SPAPI.send"}},g.PROTECTED);g.addRule("tracker.*",{modules:["PageTracker","EventTracker"],map:{"tracker.page.track":"PageTracker.track","tracker.event.init":"EventTracker.init",
"tracker.event.track":"EventTracker.track","tracker.event.express":"EventTracker.trackExpress"}},g.PROTECTED)}]);
(function(a,g,f,b,k,l){function n(){for(var a=arguments,c=a[0].split("@"),d=c[1],m=2<a.length?a[1]:g,c=c[0].split(".").reverse(),h=c.length,B=[],e=3<a.length&&a[2]===f?f:b,a=a[a.length-1];h--;)a[c[h]]||(a[c[h]]={}),a["*"]&&a["*"].listeners&&(B=B.concat(a["*"].listeners)),a=a[c[h]],a["*"]&&a["*"].listeners&&0===h&&(B=B.concat(a["*"].listeners));d&&(a["@"]||(a["@"]={}),a["@"][d]||(a["@"][d]={}),a=a["@"][d]);a.listeners||(a.listeners=[]);a=a.listeners;if(m)if(e)for(h=a.length;h--;)a[h]===m&&a.splice(h,
1);else a.push(m);return B.concat(a)}function e(){return{ns:l,dependencies:{},getApi:function(){return t},create:function(a,b,c){function d(){return a.apply(this,B)}var f=new e,B=[],m=c?c.length:0,h;if(0<m)for(;m--;)h=c[m].split("."),1<h.length?h[0]===l?B.push(b[h[1]]):B.push(b[h[0]][h[1]]):B.push(b[h[0]]);f.dependencies=b||{};a.prototype=f;d.prototype=a.prototype;return d}}}function p(){var c=Object.prototype,d=c.toString,m=Array.prototype.slice,h=c.hasOwnProperty,e={emptyFn:function(){},indexOf:function(a,
b){var c=0;if(a===g)return-1;if(a.indexOf)return a.indexOf(b);for(c=a.length;c--;)if(a[c]===b)return c;return-1},isString:function(a){return"[object String]"===d.call(a)},isDate:function(a){return"[object Date]"===d.call(a)},isNumber:function(a){return"[object Number]"===d.call(a)},isBoolean:function(a){return!0===a||!1===a||"[object Boolean]"===d.call(a)},isArray:Array.isArray||function(a){return"[object Array]"===d.call(a)},isJSON:function(a){return e.isString(a)?/^[\],:{}\s]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,
"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")):!1},isObject:function(a){return Object(a)===a&&a.constructor===Object},isFunction:function(a){return"[object Function]"===d.call(a)},isElement:function(a){return!(!a||1!==a.nodeType)},has:function(a,b){return h.call(a,b)},isArguments:function(a){return"[object Arguments]"===d.call(a)},isUndefined:function(a){return void 0===a},isDefined:function(a){return void 0!==a},isNodeList:function(a){return a?
/^\[object (HTMLCollection|NodeList|Object)\]$/.test(d.call(a))&&e.isNumber(a.length)&&(0===a.length||"object"===typeof a[0]&&0<a[0].nodeType):!1},isEmpty:function(a){var c;if(""===a||0===a||"0"===a||a===g||a===b||e.isUndefined(a)||e.isArray(a)&&0===a.length)return f;if(e.isObject(a)){for(c in a)if(e.has(a,c))return b;return f}return b},size:function(a){var b=0,c;if(!a)return 0;if(e.isObject(a))for(c in a)e.has(a,c)&&++b;if(e.isString(a)||e.isArray(a)||e.isArguments(a))b=a.length;e.isNumber(a)&&(b=
a.toString().length);return b},combine:function(a,b,c){var d;if(e.multiIs("array",a,b))return a.concat(b);for(d in b)e.has(b,d)&&(c&&e.isObject(b[d])?a[d]=e.combine(b[d]):a[d]=b[d]);return a},clone:function(a){return e.combine({},a,f)},async:function(a,b){var c,d=0,f=e.size(a),m=function(c,m){c(function(c){var h;++d;if(e.isObject(c))for(h in c)a[h]=c[h];else a[m]=c;b&&d===f&&b(a)})};for(c in a)e.has(a,c)&&e.isFunction(a[c])&&m(a[c],c)},isRegex:function(a){return!(!(a&&a.test&&a.exec)||!a.ignoreCase&&
a.ignoreCase!==b)},toArray:function(a){var b,c=[];if(!a)return[a];if(e.isArguments(a))return m.call(a);e.isString(a)&&a.split("");if(e.isArray(a))return m.call(a);if(e.isNodeList(a)){if(a instanceof Object)return m.call(a);b=[];for(c=0;c<a.length;c++)b.push(a[c]);return b}for(b in a)e.has(a,b)&&c.push(a[b]);return c},keys:Object.keys||function(a){var b=[],c;if(a==Object(a))for(c in a)e.has(a,c)&&(b[b.length]=c);return b},each:function(a,b,c){var d=a.length,f=0;if(e.isArguments(a)||e.isString(a)||
e.isNodeList(a))a=e.toArray(a);if(e.isArray(a))for(;f<d;)b.call(c,a[f],f++,a);if(e.isObject(a))for(f in a)b.call(c,a[f],f,a)},once:function(a){var c=b;return function(){if(!c)return c=f,a.apply(a,arguments)}},contains:function(a,c){return e.isString(a)?-1!==a.indexOf(c)?f:b:e.isArray(a)?-1!==e.indexOf(a,c)?f:b:e.has(a,c)},memoize:function(a,b){var c={};b=b||function(a){return a};return function(){var d=b.apply(g,arguments);return e.has(c,d)?c[d]:c[d]=a.apply(a,arguments)}},upperFirst:function(a){return a.charAt(0).toUpperCase()+
a.slice(1)},multiIs:function(){for(var a=e.toArray(arguments),b=e["is"+e.upperFirst(a.shift())],c=a.length;c--;)if(!b.call(g,a[c]))return!1;return!0},RegExEscape:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},getNavigationStartTime:function(){var b=(new Date).getTime(),c=a.performance||a.msPerformance||a.webkitPerformance||a.mozPerformance||!1;return c&&c.timing&&c.timing.navigationStart?function(){return c.timing.navigationStart}:a.SpilGames&&a.SpilGames.navStartFallback?function(){return a.SpilGames.navStartFallback}:
function(){return b}}()};e.isArguments(arguments)||(e.isArguments=function(a){return!(!a||!e.has(a,"callee"))});return e}function h(){var a=p(),d={},e={},m=0,h=function(a,b){var c=a.opt,d=b.opt,e=a.index,f=b.index,m=a.addIndex,h=b.addIndex,c=c&-14,d=d&-14;2===c&&(c=0);2===d&&(d=0);if(c===d)return c&64&&e!==f?e-f:c&32?h-m:m-h;if(c&16)return d&16&&d&2?1:0===d||d&64?-1:c-d;if(c&32)return 0===d||d&64?1:c-d;if(c&64)return d&64&&d&2?1:e-h;if(0===c){if(d&16)return 1;if(d&32)return-1;if(d&64)return m-f}return 0},
k=function(a){var b;e[a]||(b=n(a,d),e[a]=b?b.sort(h):[]);return!!e[a].length},l=function(a){k(a);return e[a]};return{FORCE:1,PROTECTED:2,ASYNC:4,KILL:8,FIRST:16,LAST:32,INDEX:64,rulesIndex:d,getRules:l,hasRules:k,removeRule:function(a,b,c,m){var h=l(a),k=h.length;b=b||[];c=c||0;for(m=m||g;k--;)(h[k].oLogic||h[k].logic)!==b||h[k].opt!==c||h[k].index!==m||h[k].opt&2||(n(a,h[k],f,d),e={})},addRule:function(b,f,h,k){function l(a,b){var c=this.event.rule.logic,d=this.event.rule.event,f=c.split("*"),d=
d.split("*"),e=this.event.type;1<f.length&&(c=1<d.length?f[0]+e.split(d[0])[1]:f[0]+e);t(c,a);b()}function q(a,b){var c=this.event;t(function(){this.event=c;c.rule.logic.apply(this,[a,b])})}function p(){var b=c(),d={},e=a.memoize(function(b){for(var c=f.map._index||a.keys(f.map),d=c.length,e=0,h;e<d;e++)if(h=new RegExp("^"+c[e].replace(/\./g,"\\.").replace(/\*$/,".*")+"$"),h.test(b))return c[e];return!1});b.pause();a.isArray(f.modules)?t(f.modules,function(){for(var a=0,c=f.modules.length;a<c;a++)d[f.modules[a]]=
arguments[a];b.pause()}):b.pause();return function(a,c){b.push(function(a,b,c){if(f.map&&e(a.event.type)){var h=f.map[e(a.event.type)],m=h.split("."),g=m.pop(),m=m.join(".");d[m]&&d[m][g]?d[m][g].call(a,b,c):(t.error("mapError",0,h+" does not exist"),c(b))}},[this,a,c],0,"mb")}}var r;a.isString(f)&&(r=l);a.isFunction(f)&&(r=q);a.isObject(f)&&(r=p());if(!a.isEmpty(b)&&!a.isEmpty(r)){b=b.split("|");for(var v=0,w=b.length;v<w;v++)n(b[v],{event:b[v],logic:f,opt:h||0,index:a.isUndefined(k)?g:k,code:r,
addIndex:m++},d);e={}}},publish:function(c,d,e){function h(){var b;m[k]?(b=m[k++],d.event.rule=b,b.opt&8&&(g=f),t.debug("mb:"+b.event,b.oLogic||b.logic),b.code.call(d,d.event.data,function(c){a.isDefined(c)&&(d.event.data=c);b.opt&4||h()}),b.opt&4&&h()):g||(delete d.event.rule,e(d.event))}var m=l(c),g=b,k=0;d={event:d};h()}}}function d(){function a(b,c){var d;if("string"===typeof b&&(b=b.split("|"),h.isFunction(c)))for(;d=b.pop();)n(d,c,m);return q}function c(a,b,d){function e(){var b=n(r,m);r!==
a&&(b=b.concat(n(a,m)));return b}function f(b){var c=e(r),m=c.length,g=0,l=[],q;for(k[r]=k[a]={eventData:b};g<m;)-1===h.indexOf(l,c[g])&&(l.push(c[g]),q=c[g],h.isFunction(q)&&(b.callee=q,d.event=b,q.call(d,b.data))),g++,q=e(r),m!==q.length&&(g=0,m=q.length,c=q)}var r=a.split(/#APIID\.[0-9]{9,}/)[0],p=r.split("@");b={type:r,cleanType:p[0],id:p[1]||g,callee:g,data:h.isDefined(b)?b:g};d=d||{};l&&l.hasRules(r)?l.publish(r,b,f):f(b);return q}function d(a,b){h.isFunction(b)&&n(a,b,f,m);return q}function e(a){var c;
a=new RegExp("^"+a.replace(".","\\.").replace("*",".*"));for(c in k)if(h.has(k,c)&&a.test(c))return c;return b}var h=p(),m={},k={},l=g,q={};return q={subscribe:a,sub:a,publish:c,pub:c,unsubscribe:d,unsub:d,hasSubscribers:function(a){return h.isEmpty(n(a,m))},isPublish:function(a){return e(a)===b?b:f},getLastEventData:function(a){if((a=e(a))&&h.has(k,a))return k[a].eventData},clear:function(){m={};return q},set:function(a,b){"messagebroker"===a&&(l=b);return q}}}function c(){function a(){var d=g,p=
0,v=f,w=b,p=function(a){for(var c=h[a]||[],d=c.length;d--;)if(c[d]!==g)return b;delete h[a];return f};q&&p(q)&&c.publish(l+".queue.empty@"+q);0<m.length?(d=m.shift(),q=d.id,p=d.pos,d=h[q][p],h[q][p]=g,k=1,q?c.publish(l+".queue.next@"+q,d):c.publish(l+".queue.next",d),d.opt&1&&(d.opt&2?(d.params.push(a),v=b):d.params.push(e.emptyFn)),d.opt&2&&e.isFunction(d.params[d.params.length-1])&&(d.callback=d.params.pop(),d.params.push(function(){d.callback();a()}),v=b),d.opt&4&&(w=f),!w&&e.isFunction(d.call)&&
(e.isArray(d.params)||(d.params=[d.params]),d.call.apply({},d.params)),v&&r&&a()):(c.publish(l+".queue.idle"),k=0)}var c=d(),e=p(),h={},m=[],k=0,q=g,r=f;return{next:a,push:function(b,c,d,f){f=f||0;var g=0;h[f]||(h[f]=[]);g=h[f].push({call:b||e.emptyFn,params:c||[],opt:d||0});m.push({id:f,pos:--g});0===k&&r&&a()},pause:function(c){r=r?b:f;e.isBoolean(c)&&(r=c);0===k&&r&&0<m.length&&a()},set:function(a,b){switch(a){case "events":c=b;break;case "auto":r=b}}}}function m(){var d=c(),e=p(),h=q.head||q.getElementsByTagName("head")[0]||
g,m=q.body||q.getElementsByTagName("body")[0],k={index:["css","script"],script:/\.js$/,css:/\.css$/},v={script:function(b,c,d){var g=a.document.createElement("script"),k=h||m;g.async=f;c=c?e.once(c):e.emptyFn;d=d?e.once(d):e.emptyFn;g.onerror=function(){d()};g.onreadystatechange=g.onload=function(){var a=g.readyState;a&&!/loaded|complete/.test(a)||c(g)};g.src=b;k.appendChild(g)},css:function(a,b){var c=q.createElement("link"),d=h||m;c.type="text/css";c.rel="stylesheet";c.href=a;d.appendChild(c);b()}},
u=function(a,b,c,h){d.push(function(a,b,c,d){var h=e.memoize(function(a){for(var b=k.index,c=b.length;c--;)if(k[b[c]].test(a))return b[c];return g},function(a){return a+k.index.join()}),f,m=function(){f--;0===f&&b.apply(b,arguments)},q,l,r;b=b||e.emptyFn;d=d||e.emptyFn;e.isArray(a)||(a=[a]);q=f=a.length;for(a.reverse();q--;)if(c?(l=a[q],r=c):(l=/^([a-z0-9]+):([\s\S]+)/.exec(a[q]))?(r=l[1],l=l[2]):(l=a[q],r=h(l)),v[r])v[r](l,m,d);else m()},[a,b,c,h],0,"fl")};return{pause:d.pause,module:function(c,
h){d.push(function(c,d){var h={},m={},g=[],k={},p,u,n,z=e.memoize(function(){var b=[],c=["moz","ms","o","webkit",""],d=c.length;for(a.JSON&&b.push("JSON");d--;)if(a[c[d]+"IndexedDB"]){b.push("IndexedDB");break}q.querySelector&&q.querySelectorAll&&b.push("querySelector");a.openDatabase&&b.push("WebSQLDB");try{a.localStorage&&b.push("LocalStorage")}catch(e){}a.navigator.cookieEnabled&&b.push("Cookie");return b}),H=function(){var a=m[l],b;for(b in a)e.has(a,b)&&(m[b]=a[b]);delete m[l];(d||e.emptyFn)(m)},
C=function(){var a=g.length,b={},c,d,m,f="",k=t.get(l+".module.import.namespaces");if(k.defaultNs){for(g.sort().reverse();a--;)c=g[a],d=h[c],m=k[c]||k.defaultNs,b[m]||(b[m]=m),e.contains(b[m],"?")?b[m]+="&":b[m]+="?",b[m]+="req:"+c+"=",b[m]+=d.join(",");for(c in r)f+="&has:"+c+"="+r[c].index.join(",");for(m in b)b[m]+="&browser="+z(),b[m]+=f,v.script(b[m])}};e.isArray(c)||(c=[c]);for(p=c.length;p--;)u=c[p].split("."),n=u[1]?u[0]:l,u=u[1]||u[0],r[n]&&r[n][u]?(m[n]||(m[n]={}),m[n][u]=r[n][u]):w.modules[n]&&
w.modules[n][u]?(k[n]||(k[n]={}),k[n][u]=1):(h[n]||(h[n]=[],g.push(n)),h[n].push(u),w.addModule(n,u));e.multiIs("empty",h,k)?H():(t.subscribe(l+".module.import.moduleloaded",function(a){var c=a.ns;a=a.name;var d=0,g=b;h[c]&&-1!==(d=e.indexOf(h[c],a))&&(g=f,h[c].splice(d,1),e.isEmpty(h[c])&&delete h[c]);k[c]&&k[c][a]&&(g=f,delete k[c][a],e.isEmpty(k[c])&&delete k[c]);g&&(m[c]||(m[c]={}),m[c][a]=r[c][a]);e.multiIs("empty",h,k)&&(t.unsubscribe(l+".module.import.moduleloaded",this.event.callee),H())}),
e.isEmpty(h)||C())},[c,h],0,"ml")},file:u,script:function(a,b,c){u(a,b,"script",c)},css:function(a,b){u(a,b,"css")},setMap:function(a,b){"index"===a&&e.isArray(b)?k.index=b.reverse():k[a]=b}}}function v(){function b(d,m,e,h){var f=c.combine(function(){t.apply(g,arguments)},t),k=Array((e||[]).length),l,q,r;if(d&&m){for(l in d)if(c.has(d,l))if(c.isObject(d[l]))for(q in d[l])c.has(d[l],q)&&(f[l]||(f[l]={}),f[l][q]=new d[l][q],r=c.indexOf(e,l+"."+q),-1!==r&&(k[r]=f[l][q]));else f[l]=new d[l],r=c.indexOf(e,
l),-1!==r&&(k[r]=f[l]);h.name&&(f.sandboxname=h.name);try{m.apply(f,k)}catch(p){t.error.call(p,p,0,""+p,0,m),a.console&&"function"===typeof a.console.trace&&a.console.trace("%c Exception stack trace:","background: red; color: #fff")}(h.name||h.readyevent)&&t(h.readyevent||h.name+".ready")}}var c=p();return{create:function(a,c,d,m){return new b(a,c,d||[],m||{})}}}var q=a.document,z="function"===typeof a.SpilGames?a.SpilGames():a.SpilGames||[],r={},w={modules:{},addModule:function(a,b){w.modules[a]||
(w.modules[a]={});w.modules[a][b]=1}},u=function(){return q.all?function(b,c){var d,m=[];for(d=2;d<arguments.length;d++)m.push(arguments[d]);return a.setTimeout(function(){b.apply(g,m)},c)}:a.setTimeout}(),t;r[l]={JSLib:function(){return t},Module:e,Utils:p,MessageBroker:h,Events:d,Queue:c,Import:m,Sandbox:v};r[l].index=p().keys(r[l]);t=function(){function c(a,b){if(A.isArray(a)){var d,m=a.length,e=0,h=function(a){n.isPublish(a)?e+=1:n.subscribe(a,function(){n.unsubscribe(a,this.event.callee);e+=
1;e===m&&b()})};for(d=0;d<m;d+=1)h(a[d]);e===m&&b()}else A.isString(a)?n.isPublish(a)?b(n.getLastEventData(a)):n.subscribe(a,function(){n.unsubscribe(a,this.event.callee);b.apply(this,arguments)}):b()}function k(){var b=A.toArray(arguments),d,m,e=A.emptyFn,h,f,g={},l=+new Date,r=function(b){h!==a.SpilGames&&u.create(b,h,f,g)};if(b[0])if(A.isObject(b[0])&&(g=b.shift()),A.isString(b[0])){d=b.shift();t.debug.timer(l,d);if(!A.isFunction(b[0])||A.isFunction(b[1]))m=b.shift();A.isFunction(b[0])&&(e=b.shift(),
d+="#APIID."+l);h=function(){var a=this,b=A.toArray(arguments);a.subscribe(d,function(c){a.unsubscribe(d,this.event.callee);this.event.callee=e;a.event=this.event;b.unshift(c);e.apply(a,b);a.debug.timer(l)});c(g.waiton,function(){a.publish(d,m)})};r({})}else A.isArray(b[0])&&(f=b.shift()),A.isFunction(b[0])&&(h=b.shift()),c(g.waiton,function(){f?q.module(f,r):r({})});return t}var q=m(),u=v(),n=d(),B=h(),A=p(),K=e(),F={"spilgames.version":{value:0}};A.combine(k,{init:function(){var a,b;if(!t.get(l+
".module.import.namespaces").defaultNs){a=0;for(b=z.index||z.length;a<b;a++)t.apply(g,z[a]);z=[]}},push:function(b){k.apply(a,b)},publish:n.publish,unsubscribe:n.unsubscribe,subscribe:n.subscribe,inRequest:w.addModule,set:function(){var a,b=function(b,c,d){if(b){if(!F[b])return F[b]={opt:d||0,value:c},k;if(F[b].opt&2)return k;if(F[b].opt&1){if(A.isObject(F[b].value)){if(A.isObject(c))for(a in c)A.has(c,a)&&(F[b].value[a]=c[a]);return k}if(A.isArray(F[b].value))return F[b].value.push(c),k;A.isFunction(c)&&
(c="function(){}");F[b].value+=c;return k}F[b]={opt:d||0,value:c}}return k};b.APPEND=1;b.PROTECTED=2;return b}(),get:function(a){return F[a]?F[a].value:g},error:function(a,b,c,d,m){d={error:a,number:b,level:d||0,caller:m,scope:this,detail:c,isError:!0,toString:function(){return b+":"+a+" - "+c}};k.publish("spilgames.error",d);k.debug.error(d);return d},debug:function(b){function c(){function a(){if(b)if("function"===typeof b[e])b[e].apply(b,m);else b[e](m);k.publish(l+".debug."+e,m);return b&&b[e]}
var m=A.toArray(arguments),e=m.shift();"error"!==e||a()||(m.unshift("ERROR:"),e="log");if(d){if("time"===e&&b[e])b[e](m[0]);if("timeEnd"===e)if(b[e])b[e](m[0]);else e="log";"info"===e&&(b[e]?a():e="log");if("warning"===e||"warn"===e)e="warn",b[e]?a():e="log";"log"===e&&a()}}var d=b&&a.jslibDebug,m={};return A.combine(function(){var a=A.toArray(arguments);a.unshift("log");c.apply(g,a)},{timer:function(a,b){var d=m[a];if(d)return c("timeEnd","(id:"+a+") "+d.n,"in:"+(new Date-d.s));m[a]={n:b||a,s:+new Date};
c("time","(id:"+a+") "+m[a].n)},error:function(){var a=A.toArray(arguments);a.unshift("error");c.apply(g,a)},info:function(){var a=A.toArray(arguments);a.unshift("info");c.apply(g,a)}})}(a.console),getApi:function(){return k},ns:l,version:g,environment:g,messageBroker:{removeRule:B.removeRule,addRule:B.addRule,rulesIndex:B.rulesIndex,FORCE:B.FORCE,PROTECTED:B.PROTECTED,ASYNC:B.ASYNC,KILL:B.KILL,FIRST:B.FIRST,LAST:B.LAST,INDEX:B.INDEX}});B.addRule(l+".set.*",function(a){var b=this.event;b.id&&(b=b.id.split("#"),
k[b[0].split(".")[1]]===g&&(k[b[0].split(".")[1]]=a),k.set(b[0],a,b[1]||0))});n.set("messagebroker",B);q.pause(b);n.subscribe(l+".module.import.loadmodule|"+l+".import",function(a){var b=(a.fullName||a.name).split("."),c=a.dependencies||a.deps||[],d=b[1]?b[0]:l,e=b[1]||b[0],m={},b=function(a,b){var c=a.length,d=[],e,h;for(a.reverse();c--;)h=a[c].split("."),e=h[1]?h[0]:l,h=h[1]||h[0],r[e]&&r[e][h]?e===l?m[h]=new r[e][h]:(m[e]||(m[e]={}),m[e][h]=new r[e][h]):d.push(e+"."+h);0<d.length?q.module(d,function(c){for(var d in c)if(A.has(c,
d))if(A.isObject(c[d]))for(A.name in d)A.has(e,void 0)&&(m[d][void 0]=new d[void 0]);else m[d]=new c[d];b(a)}):b(a)},h=function(b){b=b||[];w.modules[d]&&w.modules[d][e]&&delete w.modules[d][e];r[d]||(r[d]={index:[]});r[d][e]=K.create(a.module,m,b);r[d].index.push(e);t(l+".module.import.moduleloaded",{name:e,ns:d})};r[d]&&r[d][e]||(w.addModule(d,e),0<c.length?b(c,h):h())});n.subscribe(l+".dom.ready",A.once(function(){q.pause(f)}));return k}();(function(){function b(){return t.apply(g,arguments)}var c=
p(),d;if(a.SpilGames)for(d in a.SpilGames)a.SpilGames.hasOwnProperty(d)&&(b[d]=a.SpilGames[d]);b.require=function(a){if(a in r.spilgames&&"function"===typeof r.spilgames[a])return r.spilgames[a]();throw Error("Module does not exist or is not loaded yet: "+a);};a.SpilGames=b;if(c.isArray(k))for(c=0,d=k.length;c<d;c++)t.apply(g,k[c]);c=0;for(d=z.index||z.length;c<d;c++)t.apply(g,z[c])})();(function(){var c=b,d,e=function(){c||(c=f,t(l+".dom.ready"))},m=function(){if(!c)try{q.documentElement.doScroll("left"),
e()}catch(a){u(m,10)}};if("complete"===q.readyState||q.body)e();else if(q.addEventListener)q.addEventListener("DOMContentLoaded",e,b);else if(q.attachEvent){try{d=a.frameElement!==g}catch(h){}q.documentElement.doScroll&&!d&&m();q.attachEvent("onreadystatechange",function(){"complete"===q.readyState&&e()})}else a.addEventListener?a.addEventListener("load",e,b):a.attachEvent?a.attachEvent("onload",e):a.onload=e})()})(this||window,null,!0,!1,SpilGamesBootstrap,"spilgames");SpilGames("JSLib SPAPI Cookie SWP Utils FeatureDetector".split(" "),function(a,g,f,b,k,l){b.init("js_aggregator");var n=g.getStateInfo(f.getItem("token")||""),e=function(a,c){var d=b.get("login_complete_handler");c&&d&&c.state===g.STATE_LOGGEDIN&&"function"===typeof d?d.call(this,a,c):window.location.reload(!0)},p=function(){a("api.account.getToken",{cache:!0},function(b){b=b.auth.token;var c=g.getStateInfo(b),d=n;n=c;b!==d.token&&(a("api.event.auth.changed",c),c.state!==d.state&&e(d,c))})},h=function(a){f[a?
"setItem":"removeItem"]({key:"rememberme",value:"1",path:"/",expires:"never"})},d=function(c,d){var e=c&&c.rememberMe?!0:!1;h(e);a("api.auth.login",{rememberMe:e,login:c.username,password:c.password},function(a){k.isFunction(d)&&d.call(this,a);b.System.emit("login.finished")})},c=function(b){a("api.auth.logout",{},function(){h(!1);p();k.isFunction(b)&&b.call(this)})},m=function(a){var b=f.getItem("rememberme");f.setItem({key:"token",value:a.token,expires:a.state===g.STATE_LOGGEDOUT||b?"never":0,path:"/"})},
v=function(b){a("api.account.getToken",{cache:!0},function(a){m({state:g.STATE_LOGGEDOUT,token:a.auth.token});b&&b()})},q=function(a){if(l.cookies()){var b=f.getItem("token")||null;b?g.setNewToken({auth:{token:b}}):1>a&&v(function(){q(a+1)})}};q(0);a.subscribe("api.event.auth.changed",m);b.System.init(function(a){switch(a.name){case "auth.login.remember":h(a.body.rememberMe);break;case "auth.login.request":d(a.body,a.body.callback);break;case "auth.logout.request":c(a.body.callback);break;case "login.finished":case "registration.finished":p()}})});/*
 2015, SpilGames
*/
SpilGames("spilgames.import",{name:"Slider",deps:["DOMEvent","FeatureDetector","SWPUtils","BeLazy"],module:function(a,g,f,b){function k(a,b){function d(){f=Math.min(f+1/(60*a.duration),1);a.slide.style.left=e+(h-e)*f+"%";1>f&&(a.rAF=window.requestAnimationFrame(d))}var e=parseFloat(a.slide.style.left||0),h=-100*b,f=0;window.cancelAnimationFrame(a.rAF);a.duration?a.rAF=window.requestAnimationFrame(d):a.slide.style.left=h+"%"}function l(a){var d=this;this.options=a;this.slide=a.slide;this.prevButton=
a.prev;this.nextButton=a.next;this.currentPage=0;this.refresh();this.setDuration(a.duration||.4);h?(this.slide.style[n]=h,this.setEasing(a.easing||"ease")):this.slide.style.position="relative";this.bind();b.until("visible",this.slide,function(){d.refresh();d.updateUIButtons()})}var n,e,p,h,d=window.document.createElement("div");g.transitions()&&("string"===typeof d.style.transition?(n="transitionProperty",e="transitionDuration",p="transitionTimingFunction"):["Webkit","Moz","Ms","O"].forEach(function(a){"string"===
typeof d.style[a+"Transition"]&&(n=a+"TransitionProperty",e=a+"TransitionDuration",p=a+"TransitionTimingFunction")}),"string"===typeof d.style.transform?h="transform":["-webkit-","-moz-","-ms-","-o-"].forEach(function(a){"string"===typeof d.style[a+"transform"]&&(h=a+"transform")}));l.init=function(a){return new l(a)};l.prototype.refresh=function(){this.numberOfItems=this.slide.getElementsByTagName("li").length;this.numberOfPages=Math.ceil(this.slide.scrollWidth/this.slide.clientWidth);isFinite(this.numberOfPages)&&
0!==this.numberOfItems||(this.numberOfPages=1)};l.prototype.bind=function(){this.prevButton&&this.nextButton&&this.slide&&(a.add(this.prevButton,"click",function(){this.refresh();this.slideTo(this.currentPage-1)}.bind(this)),a.add(this.nextButton,"click",function(){this.refresh();this.slideTo(this.currentPage+1)}.bind(this)),a.add(this.slide,"swipe",function(a){a=a.swipeDirection;if("right"===a||"left"===a)this.refresh(),this.slideTo("right"===a?this.currentPage-1:this.currentPage+1)}.bind(this)))};
l.prototype.setDuration=function(a){this.duration!==a&&(this.duration=a,e&&(this.slide.style[e]=a+"s"))};l.prototype.setEasing=function(a){p&&(this.slide.style[p]=a)};l.prototype.updateUIButtons=function(){0===this.currentPage?f.addClass(this.prevButton,"is-disabled"):f.removeClass(this.prevButton,"is-disabled");this.currentPage===this.numberOfPages-1?f.addClass(this.nextButton,"is-disabled"):f.removeClass(this.nextButton,"is-disabled")};l.prototype.slideTo=function(a,d){if(0>a||this.numberOfPages<=
a||this.currentPage===a)return this.currentPage;void 0===d?d=this.options.duration:this.setDuration(d);if(h){var e=this.slide.getElementsByTagName("li")[0].offsetWidth,f=this.slide.clientWidth/e,g=Math.floor(this.slide.clientWidth/e);this.slide.style[h]=a===this.numberOfPages-1?"translateX(-"+(this.numberOfItems-f)*e+"px)":"translateX(-"+g*e*a+"px)"}else k(this,a);window.setTimeout(function(){b.trigger()},1E3*d+10);this.currentPage=a;this.updateUIButtons();this.emit({type:"slide",page:a});return a};
l.prototype.on=function(a,b){var d=this.listeners||{};d[a]=d[a]||[];-1===d[a].indexOf(b)&&d[a].push(b);this.listeners=d;return this};l.prototype.off=function(a,b){if(this.listeners&&this.listeners[a]){var d=this.listeners[a],e=d.indexOf(b);-1!==e&&d.splice(e,1)}return this};l.prototype.emit=function(a){this.listeners&&this.listeners[a.type]&&this.listeners[a.type].forEach(function(b){b.call(this,a)},this);return this};return l}});
(function(a){var g,f=0,b=["webkit","moz"];for(g=0;g<b.length&&!a.requestAnimationFrame;g+=1)a.requestAnimationFrame=a[b[g]+"RequestAnimationFrame"],a.cancelAnimationFrame=a[b[g]+"CancelAnimationFrame"]||a[b[g]+"CancelRequestAnimationFrame"];a.requestAnimationFrame||(a.requestAnimationFrame=function(b){var g=(new Date).getTime(),n=Math.max(0,16-(g-f)),e=a.setTimeout(function(){b(g+n)},n);f=g+n;return e});a.cancelAnimationFrame||(a.cancelAnimationFrame=function(b){a.clearTimeout(b)})})(window);SpilGames("spilgames.import",{name:"Placeholder",deps:["FeatureDetector","DOMEvent"],module:function(a,g){return{init:function(f){if(!1===a.placeholder()){var b=document.getElementById(f);f=b.getAttribute("placeholder")||b.attributes&&b.attributes.placeholder?b.attributes.placeholder.nodeValue:null;var g=function(a,b,f){return a.addEventListener?a.addEventListener(b,f,!1):a.attachEvent("on"+b,f)};if(f){var l=document.createElement("input");l.type="text";l.value=f;l.className=b.className;l.placeholder=
b.placeholder;l.name=b.name;l.id=b.id+"_ph";b.parentNode.insertBefore(l,b.nextSibling);b.style.display="none";g(l,"keydown",function(){b.style.display="";l.style.display="none";b.focus()});g(b,"blur",function(){""===b.value&&(b.style.display="none",l.style.display="")})}}},setFeatureDetector:function(f){a=f}}}});SpilGames("spilgames.import",{name:"Tabs",deps:["DOMSelect","DOMEvent","SWP","BeLazy"],module:function(a,g,f,b){var k=window,l,n,e,p,h=function(a){-1<a&&n&&n[a]&&(f.Utils.toggleClass([n[p],n[a]],"is-hidden"),f.Utils.toggleClass([l[p],l[a]],"tab-active"),p=a)};return{init:function(d){l=a.getAll(".tab-switch",d);n=a.getAll(".tab-content",d);e=a.get(".tab-active",d);d&&l&&n&&e&&(p=Array.prototype.indexOf.call(l,e),g.add(l,"click",function(a){a=a||k.event;h(Array.prototype.indexOf.call(l,a.target||a.srcElement));
b.trigger()}))},switchTo:h}}});SpilGames("spilgames.import",{name:"Net",deps:["Import","Utils","JSON"],module:function(a,g,f){var b=this,k=g.has,l=g.emptyFn,n=g.once,e=g.isUndefined,p=b.getApi(),h=window.escape,d=p.get(b.ns+".module.net.transport")||["xhr"],c=function(a){var b=function(){if(a.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(b){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(b){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}return null};b.cors=
function(){var c;if(a.XDomainRequest)return c=new XDomainRequest,c.checkScheme=function(b){return/^[^:]+:(\/\/)/.test(b)?a.location.protocol===b.split(":")[0]+":":!0},c;c=b();return e(c.withCredentials)?null:c};return b}(window),m={},c={xhr:c,cors:c.cors,jsonp:function(){var c="",d="jsonp"+b.ns+ +new Date,e={open:function(a,b){c=b},onreadystatechange:l,set:function(a,b){e.set[a]=b},send:function(b){var m=e.set.callback||0,h=e.set.data||0;if(b||m||h)c=/\?/.test(c)?c+"&":c+"?",b&&(c+=h?h+"="+encodeURIComponent(b):
b,m&&(c+="&")),m&&(c+=m+"="+d);a.file("script:"+c)}};window[d]=function(){e.onreadystatechange.apply(this,arguments)};return e}},v=function(a){for(var c=0,e=0,m=p.get(b.ns+".module.net.transporters.map"),h,c=d.length;e<c;e++)if(a&&"cors"===d[e]&&e++,h=m[d[e]]())return h},q=function(a){var b,c=a.backendResult||null,d=a.error,e=a.errorString,m=a.errorCode||0;switch(a.dataType||null){case "xml":a="<error><error> "+d+" </error><error_string>"+e+"</error_string><error_code>"+m+"</error_code></error>";
if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async=!1;b=b.loadXML(a);break}b=new DOMParser;b=b.parseFromString(a,"text/xml");break;case "html":break;default:b=a,b.toString=function(){return[c,d,e,m].join()}}b.isError=!0;return b},z=function(a,b,c){var d;if(c){if(a.responseType){if(("xml"===b||"html"===b)&&"document"===a.responseType||a.responseType===b)return a.response;d=new RegExp(b);if(d.test(a.responseType))return a.response}if(("xml"===b||"html"===b)&&a.responseXML)return a.responseXML;
a=a.responseText}if(m[b])try{return m[b](a)}catch(e){return q({backendResult:a,error:"parse_error:"+b,errorString:e.message,errorCode:0,dataType:b})}try{switch(b){case "json":return g.isObject(a)?a:f.parse(a);case "xml":if(window.ActiveXObject)return d=new ActiveXObject("Microsoft.XMLDOM"),d.async=!1,d.loadXML(a);d=new DOMParser;return d.parseFromString(a,"text/xml");default:return a}}catch(e){return q({backendResult:a,error:"parse_error:"+b,errorString:e,errorCode:0,dataType:b})}};p.get(b.ns+".module.net.transporters.map")||
p.set(b.ns+".module.net.transporters.map",c,p.set.APPEND);b.post=function(a,c,d,e){b.send({url:a,data:g.isObject(c)?c:{},dataType:(g.isFunction(c)?d:e)||"text",type:"POST"},(g.isFunction(c)?c:d)||l)};b.get=function(a,c,d,e){b.send({url:a,data:g.isObject(c)?c:{},dataType:(g.isFunction(c)?d:e)||"text",type:"GET"},(g.isFunction(c)?c:d)||l)};b.send=function(a,b){var c=new v,d=a.url||"",m=(a.type||"GET").toUpperCase(),p=e(a.data)?{}:a.data,D=(a.dataType||"text").toLowerCase(),E=a.username||null,H=a.password||
null,B=a.headers||{},A=a.withCredentials||!1,K=a.async||!0,F=a.overrideMimeType||0,J=a.extra||0,M=a.timeout||!1,T=e(a.abort)||a.abort?!0:!1,O=!1,L=n(function(){b.apply(this,arguments)}),P=n(function(){(a.onsuccess||l).apply(this,arguments);(L||l).apply(this,arguments);O=!0}),N=n(function(){(a.onerror||l).apply(this,arguments);(L||l).apply(this,arguments)}),V=n(function(){if(!O){var b=q({error:"timeout_error",errorString:"Maximum timeout of "+M+" ms. exceeded",errorCode:0});(a.ontimeout||l).call(this,
b);(N||l).call(this,b);(L||l).call(this,b)}}),U=a.onreadystatechange||l,Q=g.memoize(function(a){var b="",c,d=function(a,b){var c=a.length,e="";for(b=b?b+"[]=":"";c--;)g.isEmpty(e)||(e+="&"),e+=b,e=g.isArray(a[c])?e+d(a[c]):g.isObject(a[c])?e+(""+h(f.stringify(a[c]))):e+h(a[c]);return e};if(g.isObject(a))for(c in a)k(a,c)&&(g.isEmpty(b)||(b+="&"),b=g.isArray(a[c])?b+d(a[c],c):g.isObject(a[c])?b+((c?c+"=":"")+h(f.stringify(a[c]))):b+(c+"="+h(a[c])));else g.isString(a)&&(b=a);return b}),R=function(a){var b=
Q(p);"GET"===m&&""!==b&&(a=/\?/.test(a)?a+"&":a+"?",a+=b);return a},S=function(a){a=a||{};N(q({error:"http_error:"+D,errorString:c.statusText||a.error_string||c.status,errorCode:a.error_code,dataType:D}))},G;A&&e(c.withCredentials)&&(c=new v(!0));c.checkScheme&&!c.checkScheme(R(d))&&(c=new v(!0));navigator.userAgent.match(/Trident\/7.0;.* rv:11/)&&(c=new v(!0));try{c.open(m,R(d),K,E,H)}catch(W){(a.onerror||b||l).call(this,q({error:"transport_open_error",errorString:"Failed to open transport",errorCode:0}));
return}e(c.withCredentials)||(c.withCredentials=A);"POST"===m&&(B["Content-Type"]=B["Content-Type"]||B["content-type"]||"application/x-www-form-urlencoded");if(c.setRequestHeader)for(G in B)k(B,G)&&c.setRequestHeader(G,B[G]);c.overrideMimeType&&F&&c.overrideMimeType(F);if(c.set&&J)for(G in J)k(J,G)&&c.set(G,J[G]);c.onreadystatechange=c.onload=function(a){var b=0,d=null;U(c);e(c.readyState)?d=z(c.responseText||a||"unknown",D):4===c.readyState&&(b=parseInt(c.status||0,10),200<=b&&300>b||304===b?d=z(c,
D,!0):S());d||204!==b&&201!==b?d&&(d.isError?N(d):P(d)):P("")};c.onerror=S;M&&setTimeout(function(){g.isFunction(c.abort)&&T&&c.abort();V()},M);c.send(Q(p))};b.set=function(a,b){switch(a){case "transport":g.isArray(b)&&(d=b)}}}});SpilGames("spilgames.import",{name:"Memory",module:function(){function a(a,b){b&&b(a);return a}var g={};return{setItem:function(f,b){g[f.key]=f;return a(!0,b)},getItem:function(f,b){var k=g[f.key],l=+new Date;return k&&(0===k.expires||l<k.expires)?a(k.value,b):a(null,b)},removeItem:function(f,b){var k=delete g[f.key];return a(k,b)},getAllItems:function(){return g},reset:function(){g={}}}}});SpilGames("spilgames.import",{name:"Cookie",deps:["JSON","Utils"],module:function(a,g){var f=this,b=window.document,k=window.escape,l=window.unescape;f.setItem=function(f,e){var l=!1,h=f.expires||"",d=f.domain?"; domain="+f.domain:"",c=f.path?"; path="+f.path:"",m=f.secure?"; secure"+f.secure:"",v=f.key,q=f.value||"";if(v&&!/^(?:expires|max\-age|path|domain|secure)$/.test(v)){g.isString(h)&&""!==h&&(h="never"===h?new Date(+new Date+31556926E4):new Date(h));g.isNumber(h)&&(h=0===h?"":"; max-age="+
h);g.isDate(h)&&(h="; expires="+h.toGMTString());if(g.isObject(q)||g.isArray(q))q=a.stringify(q);b.cookie=k(v)+"="+k(q)+h+d+c+m;l=!0}e&&e(l);return l};f.getItem=function(f,e){var p=k(f.key||f||"").replace(/[\-\.\+\*]/g,"\\$&");(p=(new RegExp("(?:^|;\\s*)"+p+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*")).exec(b.cookie))&&p[1]&&(p=l(p[1]),g.isJSON(p)&&(p=a.parse(p)));e&&e(p);return p};f.removeItem=function(a,b){return f.setItem({key:a.key||a,expires:new Date,domain:a.domain,path:a.path||"/"},b)}}});SpilGames("spilgames.import",{name:"LocalStorage",deps:["Utils","JSON","JSLib"],module:function(a,g,f){var b=this,k=["spilgames.cache.Tracker.visitorId","spilgames.cache.recent.played.games"],l,n,e=function(b,d){d&&a.isFunction(d)&&d(b);return b},p=function(a){var b=!1;if(a&&a.code)switch(parseInt(a.code,10)){case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===a.name&&(b=!0);break;case 22:b=!0}else a&&a.number&&-2147024882===a.number&&(b=!0);return b};try{l=window.localStorage,n=window.sessionStorage}catch(h){f=
function(){throw h;},l=n={setItem:f,getItem:f,removeItem:f}}b.setItem=function(b,d){var c=b.expires||0,m=!1,f={value:b.value,expires:c};if(b.key){a.isNumber(c)&&0<c&&(c=+new Date+1E3*c);a.isDate(c)&&(c=c.getTime());a.isString(c)&&(c="never"===c?+new Date+31556926E4:+new Date(c));f.expires=c;f.storeDate=+new Date;try{(0<c?l:n).setItem(b.key,g.stringify(f))}catch(q){return p(q)&&window.setTimeout(function(){for(var a=k.length,b={},c,d,e,m=0,m=0;m<a;m+=1)e=k[m],(c=l[k[m]])&&(b[e]=c);l.clear();for(d in b)try{l[d]=
b[d]}catch(h){}},0),e(!1,d)}m=!0}return e(m,d)};b.getItem=function(h,d){var c=h.key||h||"",m=n[c]||l[c]||null,f=h.maxAge||Infinity;m&&a.isJSON(m)&&(m=g.parse(m),a.has(m,"value")&&!a.isUndefined(m.expires)&&(0!==m.expires&&m.expires<+new Date?(m=null,b.removeItem(c)):+new Date-m.storeDate>1E3*f?(m=null,b.removeItem(c)):m=m.value));return e(m,d)};b.removeItem=function(a,b){var c=a.key||a||"",m=l[c]||n[c]||null;m&&(l.removeItem(c),n.removeItem(c));return e(!!m,b)};b.getAllItems=function(){return a.combine(a.clone(l),
a.clone(n))}}});SpilGames("spilgames.import",{name:"Cache",deps:["Utils","JSON","Memory","JSLib","FeatureDetector"],module:function(a,g,f,b,k){function l(c,e){var f=a.memoize(function(){return k.localStorage()?"LocalStorage":"Cookie"});a.isEmpty(c)&&(c=f());a.isString(c)?d[c]?e(d[c]):b([c],function(a){d[c]=a;e(d[c])}):e(c)}function n(a,c,d,e){if(a.key)return a.key=h+a.key,a;a=b.error("Cache."+c+": key is not defined",0,0,d);e&&e(a);return null}function e(b,d,e,f){a.isEmpty(b)&&(b=/.*/);a.isString(b)&&(b=new RegExp("^"+
(h+b).replace(/\./g,"\\.").replace(/\*$/,".*")+"$"));a.isRegex(b)&&(a.each(e,function(a,e){b.test(e)&&(d.key=e.replace(h,""),c.removeItem(d))}),f&&f(!0))}function p(a){var b=/\+(\d+)\s+(year|month|week|day|hour|minute|second)s?/.exec(a),c={second:1E3,minute:6E4,hour:36E4,day:864E5,week:6048E5,month:26784E5,year:31536E6};return b?parseInt(b[1],10)*c[b[2]]:"never"===a?31536E7:+new Date(a)}var h=b.ns+".cache.",d={Memory:f},c;return c={setItem:function(b,d){var e=+new Date,f;if(b=n(b,"addItem",!1,d))f=
b.expires||0,a.isNumber(f)&&0<f&&(f=e+1E3*f),a.isString(f)&&(f=e+p(f)),a.isDate(f)&&(f=f.getTime()),b.expires=new Date(f),l(b.module,function(a){a.setItem(b,d)});return c},getItem:function(b,d){a.isString(b)&&(b={key:b});(b=n(b,"getItem",null,d))&&l(b.module,function(a){a.getItem(b,d)});return c},removeItem:function(b,d){a.isString(b)&&(b={key:b});(b=n(b,"removeItem",!1,d))&&l(b.module,function(a){a.removeItem(b,d)});return c},clear:function(b,d){a.isString(b)&&(b={pattern:b});a.isFunction(b)&&(d=
b);a.isEmpty(b)&&(b={pattern:""});l(b.module,function(a){a.clear?a.clear(b,d):a.getAllItems?e(b.pattern,b,a.getAllItems(),d):d&&d(!1)});return c},makeKey:function(){for(var b=a.toArray(arguments),c=-1,d="";b[++c];)a.isObject(b[c])||a.isArray(b[c])?a.isEmpty(b[c])||(d+=g.stringify(b[c])):d+=b[c];return d},set:function(a,b){"prefix"===a&&(h=b);return c}}}});/*
 2014, SpilGames
*/
SpilGames("spilgames.import",{name:"BeLazy",deps:["JSLib","DOMEvent","SWPUtils","DOMSelect"],module:function(){var a,g=window,f=document,b=[],k,l,n=!1,e=[],p=function(a,b,c){var d=a.getBoundingClientRect();a=d.top;var e=d.left,f=d.right,d=d.bottom;return a<=c&&e<=b&&-10<=f&&-10<=d&&(a||e||f||d)?!0:!1},h=function(a,b,c){var d=a.getBoundingClientRect(),e=d.top,h=d.left,g=d.right,d=d.bottom,k=(h+g)/2,l=(e+d)/2;if(0>g||0>d||h>b||e>c)return!1;h+=5;e+=5;return a.contains(f.elementFromPoint(k,l))||a.contains(f.elementFromPoint(h,
e))||a.contains(f.elementFromPoint(g,e))||a.contains(f.elementFromPoint(g,d))||a.contains(f.elementFromPoint(h,d))},d=function(){var a,c,d=function(){a=!1},e=function(){g.clearTimeout(c);for(var a=(g.innerWidth||f.documentElement.clientWidth)+10,e=(g.innerHeight||f.documentElement.clientHeight)+10,m=b.length,k,n,z,D=0;D<m;)if(n=b[D],z=n.node,k=n.trulyVisible?h:p,k(z,a,e)){b.splice(D,1);m--;try{n.callback(z)}catch(E){l.error("Error while lazyloading",z,E)}}else D++;g.setTimeout(d)};return{debounce:function(){a=
!0;g.clearTimeout(c);c=g.setTimeout(e,100)},throttle:function(){a||(a=!0,g.clearTimeout(c),c=g.setTimeout(e,50))}}}(),c=function(a,c,e,f){"visible"===a&&(b.push({node:c,callback:e,trulyVisible:f}),d.debounce());return c};return function(b,h,q,p){k=k||h;l=l||q;!1===n&&(k.add(f,"click",d.debounce),k.add(f,"mouseover",d.throttle),k.add(f,"focus",d.throttle),k.add(g,"hashchange",d.throttle),k.add(g,"touchmove",d.throttle),k.add(g,"scroll",d.throttle),k.add(g,"resize",d.debounce),n=!0);return a=a||{until:c,
trigger:function(){d.throttle()},registerImageloadCallback:function(a){0>l.indexOf(e,a)&&e.push(a)},handleImagesIn:function(a){var d=function(a){var b=a.getAttribute("alt");b&&(a.setAttribute("data-alt",b),a.removeAttribute("alt"));a.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");c("visible",a,function(a){var b=a.getAttribute("data-src"),c=a.getAttribute("data-alt");b&&(a.src=b,a.removeAttribute("data-src"));c&&(a.setAttribute("alt",c),a.removeAttribute("data-alt"));
q.removeClass(a,"lazyload");q.each(e,function(b){setTimeout(function(){b(a)},0)})},!0)};b("spilgames.dom.ready",function(){q.each(p.getAll("img.lazyload[data-src]",a),d)})}}}}()});SpilGames({waiton:"spilgames.dom.ready"},["BeLazy"],function(a){a.handleImagesIn(window.document)});SpilGames("spilgames.import",{name:"DOMEvent",deps:["Utils","DOMSelect"],module:function(){var a=window,g=document,f,b,k,l=function(e){return e===a||e===g||f.isElement(e)?[e]:f.isNodeList(e)||f.isArray(e)?e:b.getAll(e)},n=function(a,b){var f,d,c,m;a.addEventListener("touchstart",function(a){if(a=a.changedTouches?a.changedTouches[0]:void 0)f=a.pageX,d=a.pageY},!1);a.addEventListener("touchend",function(a){var e=a.changedTouches?a.changedTouches[0]:void 0;e&&(c=e.pageX-f,m=e.pageY-d,75<=Math.abs(c)&&
100>=Math.abs(m)?(a.swipeDirection=0>c?"left":"right",b(a)):75<=Math.abs(m)&&100>=Math.abs(c)&&(a.swipeDirection=0>m?"up":"down",b(a)))},!1)};return function(e,p){f=f||e;b=b||p;return k=k||{add:function(a,b,c){f.each(l(a),function(a){"swipe"===b?n(a,function(a){c(a)}):a.addEventListener(b,c,!1)})},remove:function(a,b,c){f.each(l(a),function(a){a.removeEventListener(b,c,!1)})},preventDefault:function(a){a.preventDefault()},preventBubbling:function(a){a.stopPropagation()},trigger:function(b,d){f.each(l(b),
function(b){var e;if("function"===typeof a.CustomEvent)e=new a.CustomEvent(d,{bubbles:!0,cancelable:!1}),b.dispatchEvent(e);else if(g.createEvent)e=g.createEvent("MouseEvents"),e.initEvent(d,!0,!1),b.dispatchEvent(e);else if(g.createEventObject)b.fireEvent("on"+d);else if("function"===typeof b["on"+d])b["on"+d]()})}}}}()});SpilGames("spilgames.import",{name:"DOMSelect",module:function(a){a.querySelectorAll||(a.querySelectorAll=function(b){var f=a.createElement("style"),g=[];a.documentElement.firstChild.appendChild(f);a._qsa=[];f.styleSheet.cssText=b+"{x-qsa:expression(document._qsa && document._qsa.push(this));}";window.scrollBy(0,0);for(f.parentNode.removeChild(f);a._qsa.length;)b=a._qsa.shift(),b.style.removeAttribute("x-qsa"),g.push(b);a._qsa=null;return g});a.querySelector||(a.querySelector=function(b){b=a.querySelectorAll(b);
return b.length?b[0]:null});var g=function(a,f){var g=new RegExp("(^|,)s*(?!#"+f+")(?![s.[]])(.|$)","gm");return a.replace(/(^|,)\s+/,"$1").replace(g,"$1#"+f+" $2").replace(/\s+$/,"").replace(/\s+/," ")},f={getAll:function(b,f){f=f||a;if(a===f||f.querySelectorAll)return f.querySelectorAll(b);f.id||(f.id=Math.random().toString().slice(2));return a.querySelectorAll(g(b,f.id))},get:function(b,f){f=f||a;if(a===f||f.querySelector)return f.querySelector(b);f.id||(f.id=Math.random().toString().slice(2));
return a.querySelector(g(b,f.id))}};return function(){return f}}(window.document)});SpilGames("spilgames.import",{name:"StickyElement",deps:["SWPUtils","DOMSelect","DOMEvent"],module:function(a,g){var f,b,k,l,n=[],e,p=function(b){return a.getComputedStyle?a.getComputedStyle(b):b.currentStyle},h=function(b){return a.parseInt(b,10)||0},d=function(a,b){var c=p(a),d=a.getBoundingClientRect(),d=d.height||d.bottom-d.top,e;switch(b){case 0:e=h(c.paddingTop)+h(c.paddingBottom);c=h(c.borderTopWidth)+h(c.borderBottomWidth);d-=e+c;break;case 1:c=h(c.marginTop)+h(c.marginBottom),d+=c}return d},
c=function(a){var b=a.element,c;e<=a.minScrollY?(a.state=0,b.style.position="relative",b.style.top="0",b.style.width=""):e>=a.maxScrollY?(a.state=2,b.style.position="relative",b.style.top=a.maxTop+"px",b.style.width=""):e>a.minScrollY&&e<a.maxScrollY&&(c=p(b).width,a.state=1,b.style.position="fixed",b.style.top=a.fixedTop+"px",b.style.width=c)},m=function(){var c=a.innerHeight;b.each(n,function(a){var b=a.element,f=d(b,1),g,m=b.parentElement;g=p(m);m=m.getBoundingClientRect();g=e+m.top+h(g.borderTopWidth)+
h(g.paddingTop);m=d(b.parentElement,0);b=c/2-f/2;f=m-f;a.minScrollY=g-b;a.maxScrollY=g+f-b;a.fixedTop=b;a.maxTop=f});v()},v=function(){b.each(n,function(a){switch(a.state){case 0:e>a.minScrollY&&c(a);break;case 1:(e<=a.minScrollY||e>=a.maxScrollY)&&c(a);break;case 2:e<a.maxScrollY&&c(a);break;default:c(a)}})},q=function(){var b;return function(){a.clearTimeout(b);b=a.setTimeout(m,200)}}(),z=function(){var b,c=function(){b=!1;m()};return function(){e=void 0!==a.pageYOffset?a.pageYOffset:g.body.scrollTop;
b||(b=!0,a.setTimeout(c,200));v()}}(),r=function(a){b.each(k.getAll(a),function(a){n.push({element:a})});m()},w=!1;return function(c,d,e){w||(w=!0,f={enable:r},b=c,k=d,l=e,l.add(a,"resize",q),l.add(a,"scroll",z));return f}}(window,document)});SpilGames("spilgames.import",{name:"EnDecode",module:function(){var a=this.getApi();return{encode:function(g,f){a([g.module],function(a){f&&f(a.encode(g))})},decode:function(g,f){a([g.module],function(a){f&&f(a.decode(g))})}}}});SpilGames("spilgames.import",{name:"LightSWFObject",module:function(a,g,f){var b;b||(b=function(k,l){function n(a){var b=e(a);b&&"OBJECT"==b.nodeName&&(d.ie&&d.win?(b.style.display="none",function(){if(4==b.readyState){var d=e(a);if(d){for(var f in d)"function"==typeof d[f]&&(d[f]=null);d.parentNode.removeChild(d)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function e(a){var b=null;try{b=p.getElementById(a)}catch(d){}return b}var p=g,h=[],d=function(){var b="undefined"!=
typeof p.getElementById&&"undefined"!=typeof p.getElementsByTagName&&"undefined"!=typeof p.createElement,d=f.userAgent.toLowerCase(),e=f.platform.toLowerCase(),h=e?/win/.test(e):/win/.test(d),e=e?/mac/.test(e):/mac/.test(d),d=/webkit/.test(d)?parseFloat(d.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!+"\v1",k=[0,0,0],l=null;if("undefined"!=typeof f.plugins&&"object"==typeof f.plugins["Shockwave Flash"])!(l=f.plugins["Shockwave Flash"].description)||"undefined"!=typeof f.mimeTypes&&f.mimeTypes["application/x-shockwave-flash"]&&
!f.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(g=!1,l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),k[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10),k[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10),k[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if("undefined"!=typeof a.ActiveXObject)try{if(l=(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"))g=!0,l=l.split(" ")[1].split(","),k=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]}catch(n){}return{w3:b,
pv:k,wk:d,ie:g,win:h,mac:e}}();(function(){d.ie&&d.win&&window.attachEvent("onunload",function(){for(var a=h.length,e=0;e<a;e++)n(h[e]);for(var f in d)d[f]=null;b=d=null})})();return{getFlashPlayerVersion:function(){return{major:d.pv[0],minor:d.pv[1],release:d.pv[2]}},hasFlashPlayerVersion:function(a){var b=d.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1},createSWF:function(a,
b,f){if(d.w3){var g,l=e(f);if(!(d.wk&&312>d.wk)&&l)if("undefined"==typeof a.id&&(a.id=f),d.ie&&d.win){var k="",n;for(n in a)a[n]!=Object.prototype[n]&&("data"==n.toLowerCase()?b.movie=a[n]:"styleclass"==n.toLowerCase()?k+=' class="'+a[n]+'"':"classid"!=n.toLowerCase()&&(k+=" "+n+'="'+a[n]+'"'));n="";for(var u in b)b[u]!=Object.prototype[u]&&(n+='<param name="'+u+'" value="'+b[u]+'" />');l.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+k+">"+n+"</object>";h[h.length]=a.id;
g=e(a.id)}else{u=p.createElement("object");u.setAttribute("type","application/x-shockwave-flash");for(var t in a)a[t]!=Object.prototype[t]&&("styleclass"==t.toLowerCase()?u.setAttribute("class",a[t]):"classid"!=t.toLowerCase()&&u.setAttribute(t,a[t]));for(k in b)b[k]!=Object.prototype[k]&&"movie"!=k.toLowerCase()&&(a=u,n=k,t=b[k],f=p.createElement("param"),f.setAttribute("name",n),f.setAttribute("value",t),a.appendChild(f));l.parentNode.replaceChild(u,l);g=u}return g}},removeSWF:function(a){d.w3&&
n(a)}}});return b}(window,window.document,window.navigator)});SpilGames("spilgames.import",{name:"Base64",module:function(){var a=window,g="function"===typeof a.atob&&"function"===typeof a.btoa;return{encode:function(f,b){var k;if(g)k=a.btoa(f.data);else{k=f.data;var l,n,e,p,h=0,d=0,c="",c=[];if(k){do l=k.charCodeAt(h++),n=k.charCodeAt(h++),e=k.charCodeAt(h++),p=l<<16|n<<8|e,l=p>>18&63,n=p>>12&63,e=p>>6&63,p&=63,c[d++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(n)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(p);while(h<k.length);c=c.join("");k=k.length%3;k=(k?c.slice(0,k-3):c)+"===".slice(k||3)}}b&&b(k);return k},decode:function(f,b){var k;if(g)k=a.atob(f.data);else{k=f.data;var l,n,e,p,h,d=0,c=0;p="";var m=[];if(k){k+="";do l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(k.charAt(d++)),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(k.charAt(d++)),
p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(k.charAt(d++)),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(k.charAt(d++)),e=l<<18|n<<12|p<<6|h,l=e>>16&255,n=e>>8&255,e&=255,64==p?m[c++]=String.fromCharCode(l):64==h?m[c++]=String.fromCharCode(l,n):m[c++]=String.fromCharCode(l,n,e);while(d<k.length);k=p=m.join("")}}b&&b(k);return k}}}});SpilGames("spilgames.import",{name:"JSON",module:function(){return JSON}});SpilGames("spilgames.import",{name:"Pack",module:function(){var a=function(a,f){for(var b=0,k=0,l={},n="",e="",p="",h="",d=0,c=0,e="",m=c=0,v=0,q=[],z,r,w,u,t,C,I,D=0,E,H=function(a,b,c){var d,e,f,h,g;if(0>a||0>=b)return 0;e=a%8;f=c.length-(a>>3)-1;h=c.length+(-(a+b)>>3);g=f-h;for(a=(c[f]>>e&(1<<(g?8-e:b))-1)+(g&&(d=(a+b)%8)?(c[h++]&(1<<d)-1)<<(g--<<3)-e:0);g;){d=a;a=c[h++];b=(g--<<3)-e;for(++b;--b;)a=1073741824===((a%=2147483648)&1073741824)?2*a:2*(a-1073741824)+2147483648;a=d+a}return a};b<a.length;){n=
a[b];e="";for(b++;b<a.length&&null!==a[b].match(/[\d\*]/);)e+=a[b],b++;""===e&&(e="1");for(p="";b<a.length&&"/"!==a[b];)p+=a[b],b++;"/"===a[b]&&b++;switch(n){case "a":case "A":e="*"===e?f.length-k:parseInt(e,10);h=f.substr(k,e);k+=e;q="a"===n?h.replace(/\0+$/,""):h.replace(/ +$/,"");l[p]=q;break;case "h":case "H":e="*"===e?f.length-k:parseInt(e,10);h=f.substr(k,e);k+=e;if(e>h.length)throw Error("Warning: unpack(): Type "+n+": not enough input, need "+e);q="";for(d=0;d<h.length;d++)e=h.charCodeAt(d).toString(16),
"h"===n&&(e=e[1]+e[0]),q+=e;l[p]=q;break;case "c":case "C":e="*"===e?f.length-k:parseInt(e,10);h=f.substr(k,e);k+=e;for(d=0;d<h.length;d++)q=h.charCodeAt(d),"c"===n&&128<=q&&(q-=256),l[p+(1<e?d+1:"")]=q;break;case "S":case "s":case "v":e="*"===e?(f.length-k)/2:parseInt(e,10);h=f.substr(k,2*e);k+=2*e;for(d=0;d<h.length;d+=2)q=(h.charCodeAt(d+1)&255)<<8+(h.charCodeAt(d)&255),"s"===n&&32768<=q&&(q-=65536),l[p+(1<e?d/2+1:"")]=q;break;case "n":e="*"===e?(f.length-k)/2:parseInt(e,10);h=f.substr(k,2*e);
k+=2*e;for(d=0;d<h.length;d+=2)q=((h.charCodeAt(d)&255)<<8)+(h.charCodeAt(d+1)&255),l[p+(1<e?d/2+1:"")]=q;break;case "i":case "I":case "l":case "L":case "V":e="*"===e?(f.length-k)/4:parseInt(e,10);h=f.substr(k,4*e);k+=4*e;for(d=0;d<h.length;d+=4)q=((h.charCodeAt(d+3)&255)<<24)+((h.charCodeAt(d+2)&255)<<16)+((h.charCodeAt(d+1)&255)<<8)+(h.charCodeAt(d)&255),l[p+(1<e?d/4+1:"")]=q;break;case "N":e="*"===e?(f.length-k)/4:parseInt(e,10);h=f.substr(k,4*e);k+=4*e;for(d=0;d<h.length;d+=4)q=((h.charCodeAt(d)&
255)<<24)+((h.charCodeAt(d+1)&255)<<16)+((h.charCodeAt(d+2)&255)<<8)+(h.charCodeAt(d+3)&255),l[p+(1<e?d/4+1:"")]=q;break;case "f":case "d":m=8;v=4;"d"===n&&(m=11,v=8);e="*"===e?(f.length-k)/v:parseInt(e,10);h=f.substr(k,e*v);k+=e*v;for(d=0;d<h.length;d+=v){f=h.substr(d,v);q=[];for(c=f.length-1;0<=c;--c)q.push(f.charCodeAt(c));c="f"===n?23:52;z=Math.pow(2,m-1)-1;r=H(c+m,1,q);w=H(c,m,q);u=0;t=2;C=q.length+(-c>>3)-1;D=0;do for(I=q[++C],D=c%8||8,E=1<<D;E>>=1;)I&E&&(u+=1/t),t*=2;while(c-=D);q=w===(z<<
1)+1?u?NaN:r?-Infinity:Infinity:(1+-2*r)*(w||u)?w?Math.pow(2,w-z)*(1+u):Math.pow(2,-z+1)*u:0;l[p+(1<e?d/4+1:"")]=q}break;case "x":case "X":case "@":e="*"===e?f.length-k:parseInt(e,10);0<e&&(k="X"===n?k-e:"x"===n?k+e:e);break;default:throw Error("Warning:  unpack() Type "+n+": unknown format code");}}return l};return{unpack:function(g,f){var b=a(g.format,g.data);f&&f(b);return b}}}});SpilGames("spilgames.import",{name:"Base64Url",deps:["Base64"],module:function(a){return{encode:function(g,f){var b;b=a.encode(g).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"");f&&f(b);return b},decode:function(g,f){var b;g.data=g.data.replace(/-/g,"+").replace(/_/g,"/");for(b=0;b<g.data.length%4;++b)g.data+="=";b=a.decode(g);f&&f(b);return b}}}});SpilGames("spilgames.import",{fullName:"Social",deps:["DOMSelect","Import","Utils"],module:function(a,g,f){var b=function(b,g,n,e,p){var h=window.document.createElement("div");g=a.get(g);h.className=n;f.each(e,function(a,b){h.setAttribute("data-"+b,a)});p&&(h.innerHTML=p);g.appendChild(h);b&&f.isFunction(b)&&b()};return{createFacebookButton:function(f,l,n){n=n||{};var e;if(!(e=n.href)){e=a.get("link[rel=canonical]");var p=window.location.href;e&&(p=e.href);e=p}b(l,f,"fb-like",{href:e,send:n.send||
!1,layout:n.layout||"button_count",width:n.width||90,height:n.height||20,"show-faces":n.showFaces||!1,font:n.font||"arial"});g.script("https://connect.facebook.net/"+(n.locale||"en_US")+"/sdk.js#xfbml=1&version=v2.5")}}}});SpilGames("spilgames.import",{fullName:"System",deps:["SWPUtils","SWPEvent","Utils","JSLib"],module:function(a,g,f,b){var k={"-1":"No event action config","-2":"No widget event config","-3":"Invalid system event"},l=[],n=b.get("spilgames.SWP.eventConfig"),e=b.get("spilgames.SWP.systemEvents"),p=function(b,c,e){var h;if(n&&f.has(n,b))if(f.has(n[b],c))for(b=n[b][c],h=0,c=b.length;h<c;h+=1)e(b[h]);else a.warn(k["-1"],{widgetName:b,eventAction:c});else a.warn(k["-2"],{widgetName:b})},h=function(a,b){var e,
f,h;h=0;for(e=l.length;h<e;h+=1)(f=l[h])&&f.eventName===a&&b({name:f.eventName.replace("system.",""),fullName:f.eventName,body:f.data,data:f.data,emitter:f.widgetName,callee:"system"})};return{init:function(a,b){var e=function(a){try{b(a)}catch(d){window.setTimeout(function(){throw d;},0)}};p(a,"listen",function(a){g.listen(a,function(){var a;a=this.event;a={name:a.cleanType.replace("system.",""),fullName:a.cleanType,body:a.data||{},data:a.data||{},callee:a.callee};e(a)});h(a,e)})},emit:function(b,
c,h){c="system."+c;-1===f.indexOf(e,c)?a.warn(k["-3"],{widgetName:b,eventName:c}):n[b]&&n[b].emit&&-1<n[b].emit.indexOf(c)&&(g.emit(c,h),l.push({widgetName:b,eventName:c,data:h}))}}}});SpilGames("spilgames.import",{fullName:"gi.SWP",deps:["SWP"],module:function(a){return a}});SpilGames("spilgames.import",{fullName:"SWP",deps:["Widget","System","SWPUtils","JSLib"],module:function(){var a;a||(a=function(a,f,b,k){var l="widget.",n,e;return{init:function(a){n=a;l+=a},Widget:{subscribe:function(b){a.subscribe(l,b)},emit:function(b,e){a.emit(l,b,e)},refresh:function(b,f){e=void 0;"string"===typeof b?a.refresh(b,{},{}):(b=b||{},f=f||{},a.refresh(n,b,f))},getSnippet:function(b,e){a.getSnippet(n,b,e)},init:function(b){a.subscribe(l,b)}},System:{init:function(a){f.init(l,a)},emit:function(a,
b){f.emit(l,a,b)}},Utils:b,set:function(a,b){k.set(a,b,k.set.PROTECTED)},get:function(a){return k.get(a)},getProperty:function(a){n||k.error("SWP.getProperty() error",0,"widgetName is not known yet. Please SWP.init() your widget first");if(void 0===e)try{e=JSON.parse(window.document.getElementById("wdg_"+n).getAttribute("data-props"))}catch(b){e=null}return a&&"*"!==a?e&&a&&e.hasOwnProperty(a)?e[a]:null:e}}});return a}()});SpilGames("spilgames.module.import.loadmodule",{fullName:"SWPEvent",dependencies:["Events"],module:function(){var a;a||(a=function(a){return{listen:function(f,b){a.subscribe(f,b)},emit:function(f,b){a.publish(f,b)},unsubscribe:function(f,b){a.unsubscribe(f,b)}}});return a}()});SpilGames("spilgames.import",{fullName:"Widget",deps:["SWPEvent","SWPUtils","Net"],module:function(a,g,f){var b=function(){},k=function(b,f){a.listen(b+".*",function(){var a;a=this.event;a={name:a.cleanType.replace(b+".",""),fullName:a.cleanType,data:a.data.body,emitter:a.data.info.emitter,callee:a.callee};f(a)})};return{refresh:function(a,f,e){var k=e.cleanup||b,h=e.callback||b;this.getSnippet(a,f,function(b){if(!b.isError){var c="wdg_"+a,e=document.getElementById(c),f=document.createElement("div");
e?(k(),f.innerHTML=b.trim(),e.setAttribute("data-props",f.firstChild.getAttribute("data-props")),e.setAttribute("class",f.firstChild.getAttribute("class")),e.innerHTML=f.firstChild.innerHTML,h(e.innerHTML)):g.error('Unable to find element with id: "'+c+'"')}})},getSnippet:function(a,b,e){b.output_format="snippet";var g=Object.keys(b).map(function(a){var d=b[a];return[encodeURIComponent(a),encodeURIComponent(d)].join("=")}).join("&");f.set("transport",["xhr"]);f.send({url:["/wdg/",a,"/?",g].join("")},
e)},emit:function(b,f,e){e={body:e,info:{emitter:b}};a.emit(b+"."+f,e||null)},init:k,subscribe:k}}});SpilGames("spilgames.import",{fullName:"SWPUtils",deps:["Utils","JSLib"],module:function(a,g){function f(b){/\s/.test(b)&&g.error("a class can not contain white spaces");return new RegExp("(^|\\s+)"+a.RegExEscape(b)+"(\\s+|$)")}function b(a,b){return f(b).test(a.className)}function k(a,b){Array.isArray(b)?b.forEach(function(b){k(a,b)}):a&&a.className&&b&&(a.className=a.className.replace(f(b)," ").trim())}function l(a,f){Array.isArray(f)?f.forEach(function(b){l(a,b)}):a&&f&&!b(a,f)&&(a.className+=
" "+f)}function n(e,f){var h,d;if(Array.isArray(e)||a.isNodeList(e))for(h=0,d=e.length;h<d;h+=1)n(e[h],f);else Array.isArray(f)?f.forEach(function(a){n(e,a)}):b(e,f)?k(e,f):l(e,f)}return a.combine(a,{UCFirst:function(a){return a.charAt(0).toUpperCase()+a.slice(1)},LCFirst:function(a){return a.charAt(0).toLowerCase()+a.slice(1)},consoleEnabled:function(){return window.console?!0:!1},debug:function(){this.consoleEnabled()&&console.log.apply&&console.log.apply(console,arguments)},error:function(){this.consoleEnabled()&&
console.error.apply&&console.error.apply(console,arguments)},warn:function(){this.consoleEnabled()&&console.warn.apply&&console.warn.apply(console,arguments)},getObjectKeys:function(a){var b=[],f;for(f in a)a.hasOwnProperty(f)&&b.push(f);return b},sprintf:function(a,b){var f=arguments,d=1;return a.replace(/%((%)|s)/g,function(a){return a[2]||f[d++]})},parseURL:function(a){var b=document.createElement("a");b.href=a;return{protocol:b.protocol,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,
hash:b.hash,host:b.host}},hasClass:b,removeClass:k,addClass:l,toggleClass:n})}});SpilGames("spilgames.import",{name:"SPAPI",deps:"Utils Net Portal Cache Game JSLib FeatureDetector JSON".split(" "),module:function(a,g,f,b,k,l,n,e){function p(a,b){delete a[b];return a}function h(a){return 0===a?n.localStorage()?"LocalStorage":"Memory":1===a?k:null}function d(c,d,e){a.isDefined(c.cache)&&!a.isBoolean(c.cache)?d(c.cache):"logged-out"===e?d("never"):b.getItem("SPAPI.auth.ttl",function(a){null!==a?d(a):d("+1 month")})}function c(c,d){function e(){l.debug.info("clear all cache",c);b.clear({pattern:"SPAPI.calls.*",
module:h(0)}).clear({pattern:"SPAPI.calls.*",module:h(1)}).removeItem("SPAPI.calls."+t[0])}var f=c.split(".");"account.logout"===c&&"pre"===d&&(e(),b.removeItem({key:"SPAPI.auth.ttl",module:h(0)}));I[f[0]]&&a.contains(I[f[0]],f[1])&&"post"===d&&e();"clearAll"===c&&e();"clearUser"===c&&b.clear({pattern:"SPAPI.calls."+d,module:h(0)});"clearGame"===c&&b.clear({pattern:"SPAPI.calls."+d,module:h(1)})}function m(a,b){b(l.error.call(a,a.error,a.number||0,a.detail||String(a)||"",0,b))}function v(a){return{token:a,
state:"string"===typeof a&&"Uw"===a.substr(0,2)&&62<=a.length&&"B"===a.substr(23,1)?"logged-in":"logged-out"}}function q(c,e,f,g){var k=e.split(".");!f.cache&&0!==f.cache||C[k[0]]&&(a.contains(C[k[0]],k[1])||"all"===C[k[0]])||(p(c,"auth"),p(c,"appAuth"),d(f,function(a){b.setItem({expires:a,key:b.makeKey("SPAPI.calls.",e,p(f,"cache")),module:h(g),value:c})}))}function z(d,e,f,g,k){a.has(d,"error")?("tokenExpired"===d.detail?c("clearAll"):1>D&&(D+=1),m(d,k)):(c(e,"post"),a.has(d,"appAuth")&&a.has(d,
"level")&&a.has(d,"username")&&(b.setItem({key:"SPAPI.calls."+t[1],module:h(1),expires:300,value:{appAuth:d.appAuth,username:d.username,level:d.level}}),l("api.event.appauth.changed",v(d.appAuth.token))),a.has(d,"auth")&&(c("clearGame","*"),b.setItem({key:"SPAPI.calls."+t[0],module:h(0),expires:"never",value:{auth:d.auth}}),l("api.event.auth.changed",v(d.auth.token))),q(a.clone(d),e,f,g),k(d))}function r(a,c,d,e){if(c.cache){a===t[1]&&(d=1);if(a===t[0]||a===t[1])c={};p(c,"cache");b.getItem({key:b.makeKey("SPAPI.calls.",
a,c),module:h(d)},e)}else e(null)}function w(b,c,d,e){b!==t[0]||a.has(c,"context")||(c.context={siteid:f.get("siteid"),channelid:f.get("channelid")});b===t[1]&&(d=0,a.has(c,"applicationId")||(c.applicationId=k.get("applicationid")));p(c,"cache");b===t[0]||a.has(c,"auth")||a.has(c,"context")?e(c):u(t[d],{cache:!0},d,function(a){a.isError?e(a):(c.auth=a.appAuth||a.auth,e(c))})}function u(d,f,h,k){var q;a.isEmpty(d)?m({error:"Call is empty"},k):(f.cache&&(q=b.makeKey("SPAPI.calls.",d,f)),r(d,a.clone(f),
h,function(b){b?(l.debug.info("from cache",d),k(b)):q&&E[q]&&E[q].length?E[q].push({request:d,requestData:f,requestTokenLevel:h,callback:k}):w(d,a.clone(f),h,function(a){a.isError?k(a):(c(d,"pre"),q&&(E[q]=[],E[q].push({request:d,requestData:f,requestTokenLevel:h,callback:k})),g.send({url:l.get(l.ns+".module.spapi.backend")+d.replace(".","/")+"/",type:"POST",data:e.stringify(a),dataType:"json",overrideMimeType:"text/text",extra:{callback:"callback",data:"body"}},function(a){var b;if(q)for(;E[q].length;)b=
E[q].pop(),z(a,b.request,b.requestData,b.requestTokenLevel,b.callback);else z(a,d,f,h,k)}))})}))}var t={0:"account.getToken",1:"account.getApplicationToken"},C={account:"all"},I={account:"login getToken register deregister registerByProvider loginByProvider".split(" ")},D=0,E={};g.set("transport",["cors","jsonp"]);return{STATE_LOGGEDIN:"logged-in",STATE_LOGGEDOUT:"logged-out",send:function(b,c){if(this.event){var d=/^(game\.api|api)\.(.+)/.exec(this.event.cleanType);b={data:b,call:d?d[2]:"",tokenLevel:d&&
"api"===d[1]?0:1}}/^(event|portal)/.test(b.call)&&c?c():u(b.call,b.data||{},b.tokenLevel||0,c||a.emptyFn)},clear:function(b,d){d=a.isFunction(b)?b:d;a.isString(b)?/$game/.test(b)?c("clearGame",b):c("clearUser",b):c("clearAll",b);d&&d({})},setNewToken:function(b,c){z(b,t[0],{},0,c||a.emptyFn)},getStateInfo:v,getParsedToken:function(b,c){function d(e){var f;a.isObject(b)&&a.has(b,"token")&&(f=b.token);a.isString(b)||a.isString(f)?e(f||b):u("account.getToken",{cache:!0},0,function(a){a.isError?m(a,c):
e(a.auth.token)})}a.isFunction(b)&&(c=b);l(["Base64Url","Pack"],function(a,b){d(function(d){var e=d.substring(0,4),f,h="a1magic_byte/Cversion/Ctype/Creserved/Ckeyspace/Ckey/Ngid_high/Ngid_low/nsite/Cchannel/Cauthorization_level/Ntimestamp/NappId_high";d=a.decode({data:d});switch(e){case "UwAA":case "UwAC":f=d.substr(0,d.length-20);break;case "UwAB":f=d.substr(0,d.length-40),h+="/NappId_low"}f?b.unpack({format:h+"/a*profilar_username",data:f},c):m({error:"tokenBad",number:302},c)})})}}}});SpilGames("spilgames.import",{name:"Tooltip",deps:["DOMSelect","DOMEvent","SWPUtils"],module:function(a,g,f){function b(b,c){return p?(h=b&&b.currentTarget?b.currentTarget:c,a.get(".tooltip",h)):!1}function k(a,b){var e=0,f=0,h;h=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;if(b&&b.pageX||b&&b.pageY)e=b.pageX,f=b.pageY-h;else if(window.event.clientX||window.event.clientY)e=window.event.clientX,f=window.event.clientY;a.style.left=
e+2+"px";a.style.top=f+2+"px"}function l(a){var c;if(c=a&&a.currentTarget?b(a,null):b(null,this))f.addClass(c,"tooltip-visible"),k(c,a)}function n(a){var c;(c=a&&a.currentTarget?b(a,null):b(null,this))&&k(c,a)}function e(a){(a=a&&a.currentTarget?b(a,null):b(null,this))&&f.removeClass(a,"tooltip-visible")}var p,h;return{create:function(b){this.remove(b);if(p=a.get(b)&&a.get(b).nodeName?a.get(b).nodeName:null)if(window.addEventListener)g.add(b,"mouseover",l),g.add(b,"mousemove",n),g.add(b,"mouseout",
e);else{b=a.getAll(b);for(var c=0;c<b.length;c++)b[c].onmouseover=l,b[c].onmousemove=n,b[c].onmouseout=e}},remove:function(b){if(window.addEventListener)g.remove(b,"mouseover",l),g.remove(b,"mousemove",n),g.remove(b,"mouseout",e);else{b=a.getAll(b);for(var c=0;c<b.length;c++)b[c].onmouseover=null,b[c].onmousemove=null,b[c].onmouseout=null}}}}});SpilGames("spilgames.import",{fullName:"FormValidation",deps:["JSLib","DOMSelect","DOMEvent"],module:function(a,g,f){var b=[],k=function(){},l=function(a){var b=!1;if(-1==a.day.value||-1==a.month.value||-1==a.year.value)b=!0;else switch(a.month.value){case "4":case "5":case "9":case "11":30<a.day.value&&(b=!0);break;case "2":var c=1==(new Date(a.year.value,1,29)).getMonth();if(!c&&28<a.day.value||c&&29<a.day.value)b=!0}b?k({error:{type:"dob-wrong"},field:"dob"}):k({error:!1,field:"dob",correct:!0})},
n=function(a){var b,c;"-1"!==a.day.value&&"-1"!==a.month.value&&"-1"!==a.year.value&&(b=new Date,b=+new Date(b.getFullYear()-13,b.getMonth(),b.getDate()),c=+new Date(+a.year.value,+a.month.value-1,+a.day.value),0>b-c&&k({error:{type:"dob-coppa-underage"},field:"dob",userData:{day:+a.day.value,month:+a.month.value-1,year:+a.year.value}}));return 0<b-c},e=function(b){3>b.value.length?k({error:{type:"username-short"},field:"username"}):(k({error:!1,field:"username",loading:!0}),a("api.account.checkUsername",
{username:b.value},function(a){a.error?k({error:{type:"username-profane"},field:"username"}):a.exists?k({error:{type:"username-taken"},field:"username",extraData:{suggestionList:a.suggestionList}}):k({error:!1,field:"username",correct:!0})}))},p=function(b){b.value.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{1,}))$/)?(k({error:!1,field:"email",loading:!0}),a("api.account.checkEmail",{email:b.value},
function(a){a.exists&&1==a.exists?k({error:{type:"email-taken"},field:"email",extraData:{suggestionList:a.suggestionList}}):k({error:!1,field:"email",correct:!0,extraData:{suggestionList:a.suggestionList}})})):k({error:{type:"email-format"},field:"email"})};return{attach:function(a,d){k=d;for(var c=0;c<a.length;c++)switch(b.push(a[c]),a[c].type){case "dob":var g=a[c].elem,v=a[c];f.add([g.year],"change",function(){l(g);!0===v.coppaEnabled&&n(g)});f.add([g.day,g.month],"change",function(){"-1"!==g.day.value&&
"-1"!==g.month.value&&"-1"!==g.year.value&&(l(g),!0===v.coppaEnabled&&n(g))});break;case "username":var q=a[c].elem;f.add("#"+q.id,"change",function(){e(q)});break;case "email":var z=a[c].elem;f.add("#"+z.id,"change",function(){p(z)});break;case "password":var r=a[c].elem;f.add("#"+r.id,"change",function(){6>r.value.length?k({error:{type:"password-short"},field:"password"}):k({error:!1,field:"password",correct:!0})});break;case "gender":var w=a[c].inputs,u=function(){for(var a=!1,b=0;b<w.length;b++)w[b].checked&&
(a=!0);a?k({error:!1,field:"gender",correct:!0}):k({error:{type:"gender-notspecified"},field:"gender"})};f.add(w,"click",u);f.add(w,"change",u);break;case "agree-with-terms":var t=a[c].elem,u=function(){t.checked?k({error:!1,field:"agree-with-terms",correct:!0}):k({error:{type:"agree-with-terms-notconfirmed"},field:"agree-with-terms"})};f.add(t,"click",u);f.add(t,"change",u)}},validateAll:function(){for(var a=0;a<b.length;a++){var d,c;if("dob"===b[a].type||"coppa"===b[a].type)d=b[a].elem.year,c=-1==
b[a].elem.year.value||-1==b[a].elem.month.value||-1==b[a].elem.day.value?!0:!1;else if("agree-with-terms"===b[a].type)d=b[a].elem,c=!1===b[a].elem.checked?!0:!1;else if("gender"===b[a].type){var e=b[a].inputs;c=!0;d=e[0];for(var g=0;g<e.length;g++)if(e[g].checked){c=!1;break}}else d=b[a].elem,c=""==b[a].elem.value||void 0==b[a].elem.value?!0:!1;c&&f.trigger(d,"change")}}}}});SpilGames("spilgames.import",{name:"Game",deps:["Memory","Utils","JSLib"],module:function(a,g,f){var b=f.ns+".module.game.";f.get("environment");return g.combine(a,{get:function(a){return f.get(b+a)},set:function(a,g){"applicationid"===a&&(f.debug.info("clear game cache","applicationid changed"),f("clear.api","game.*"));f.set(b+a,g);return this}})}});SpilGames("spilgames.import",{name:"StopWatch",module:function(){var a={},g=function(){return Date.now?Date.now:function(){return(new Date).getTime()}}();return{start:function(f){a[f]||(a[f]={start:g(),end:null,elapsed:null})},stop:function(f){if((f=a[f])&&!f.end)return f.end=g(),f.elapsed=f.end-f.start,f.elapsed},elapsed:function(f){f=a[f];var b;if(f)return b=f.end||g(),f.elapsed=b-f.start,f.elapsed},now:g,reset:function(f){f&&a[f]&&delete a[f]}}}});SpilGames("spilgames.import",{name:"Portal",module:function(){var a=this,g=a.getApi();a.get=function(f){return g.get(a.ns+".module.portal."+f)};a.set=function(f,b){g.set(a.ns+".module.portal."+f,b);return a}}});SpilGames(["JSLib","EventTracker"],function(a,g){a.subscribe("advertising.track.*",function(a){a=this.event.type.replace("advertising.track.","").split(".");g.trackExpress({eventCategory:a[0],eventAction:a[1],properties:this.event.data||{}})})});SpilGames(["JSLib","SWPUtils"],function(a,g){SpilGames({waiton:"advertising.prepare.takeover"},function(f){g.addClass(document.body,"takeover");var b=document.querySelector("#wdg_site_takeover");null!==b&&(b.style.display="none");b=document.querySelector(".brand-banner");null!==b&&(b.style.display="none");a("advertising.track.displayAds.takeover",f)})});SpilGames("spilgames.import",{name:"PluginDetector",deps:["SWP","Import"],module:function(){var a=window,g=a.document.getElementById("spilAdvert"),f,b=0,k=[],l,n=function(){k.forEach(function(b){a.setTimeout(function(){b(l.enabled,l)},0)})},e=g&&!!g.getBoundingClientRect().left,p=function(){if(2!==b){b=2;l={enabled:!1,weight:!a.sp_ad+!e};if(1<l.weight||l.weight&&a.navigator.userAgent.match(/Trident.*rv[ :]*11\./))l.enabled=!0,f.SWP.System.emit("content.blocker.detected");n()}};return function(e,d){0===
b&&(e.init("js_aggregator"),f={Import:d,SWP:e},a.sp_ad=!1,b=1,f.Import.script("/wdg/js_aggregator-active/js/module/monetisation/advertisement.js",p,p));return{isContentBlockerActive:function(a){2===b?a(l.enabled,l):k.push(a)}}}}()});SpilGames(["PluginDetector","EventTracker"],function(a,g){a.isContentBlockerActive(function(a,b){!0===a&&g.trackExpress({eventCategory:"portal",eventAction:"adBlockerDetected",eventValue:1})})});SpilGames("spilgames.import",{name:"FeatureDetector",deps:["LightSWFObject"],module:function(){var a,g={};a||(a=function(a){function b(a,b){"undefined"===typeof g[a]&&(g[a]=b());return g[a]}function k(a,b,c){var d=document.createElement("div"),e=document.body;d.innerHTML=['&#173;<style id="sFeatureDetectr">',b,"</style>",a].join("");d.id="FeatureDetectr";e.appendChild(d);a=c(d);v&&d.parentNode.removeChild(d);return a}function l(){var a,b;a=(document.body||document.documentElement).style;if("string"==
typeof a.transition)return!0;b="Moz Webkit Khtml O ms MS".split(" ");for(var c=0;c<b.length;c++)if("string"==typeof a[b[c]+"transition"])return!0;return!1}function n(){var a=document.body||document.documentElement,b=!1,c="Moz Webkit Khtml O ms MS".split(" ");a.style.animationName&&(b=!0);if(!1===b)for(var d=0;d<c.length;d++)if(void 0!==a.style[c[d]+"AnimationName"]){b=!0;break}return b}function e(){var b=a.getFlashPlayerVersion();return 0<b.major+b.minor+b.release}function p(){var a=!1,b;if(navigator.mimeTypes&&
navigator.mimeTypes["application/vnd.unity"]&&navigator.mimeTypes["application/vnd.unity"].enabledPlugin&&navigator.plugins&&navigator.plugins["Unity Player"])a=!0;else if(window.ActiveXObject){try{b=new ActiveXObject("UnityWebPlayer.UnityWebPlayer.1")}catch(c){}b&&(a=!0)}return a}function h(){var a=!1;if("ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)a=!0;return a}function d(){return b("canvas",function(){var a=document.createElement("canvas");return!(!a.getContext||
!a.getContext("2d"))})}function c(){return document.documentElement.clientWidth}function m(){return document.documentElement.clientHeight}var v=!0;return{cookies:function(){return b("cookies",function(){var a=!1;document.cookie="FeatureDetectr=1";a=-1!=document.cookie.indexOf("FeatureDetectr=");document.cookie="FeatureDetectr=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return a})},websockets:function(){return b("websockets",function(){return"WebSocket"in window})},webworkers:function(){return b("webworkers",
function(){return"Worker"in window})},cssContent:function(){return b("cssContent",function(){return k("<div>test</div>",'#FeatureDetectr {font:0/0 a;} #FeatureDetectr div:after{content:":)";font:7px/1 a;}',function(a){return 7<=a.offsetHeight})})},checkedSelector:function(){return b("checkedSelector",function(){return k('<input type="radio" name="rdio" value="1" checked="1"/>',"#FeatureDetectr {font:0/0 a;} #FeatureDetectr input:checked{display:none;}",function(a){return 0===a.offsetHeight})})},placeholder:function(){return b("placeholder",
function(){return void 0!==document.createElement("input").placeholder})},localStorage:function(){return b("localStorage",function(){try{return localStorage.setItem("spilgames","spilgames"),localStorage.removeItem("spilgames"),!0}catch(a){return!1}})},transitions:function(){return b("transitions",l)},animations:function(){return b("animations",n)},canvas:d,webgl:function(){try{var a=document.createElement("canvas");return!!window.WebGLRenderingContext&&(!!a.getContext("experimental-webgl")||!!a.getContext("webgl"))}catch(b){return!1}},
touch:function(){return b("touch",h)},flash:function(){return b("flash",e)},unity:function(){return b("unity",p)},screenWidth:function(){return b("screenWidth",c)},screenHeight:function(){return b("screenHeight",m)},canvasText:function(){return b("canvasText",function(){return!1===d()?!1:"function"==typeof document.createElement("canvas").getContext("2d").fillText})},flexboxLegacy:function(){return b("flexboxLegacy",function(){var a;var b="B"+"boxDirection".slice(1);b:{var b=("boxDirection "+["Webkit",
"Moz","O","ms"].join(b+" ")+b).split(" "),c=document.createElement("spilgames").style;for(a in b){var d=b[a];if(!~(""+d).indexOf("-")&&void 0!==c[d]){a=!0;break b}}a=!1}return a})},applicationCache:function(){return b("applicationCache",function(){return"applicationCache"in window})},pageVisibility:function(){return b("pageVisibility",function(){return function(){var a=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var b=0;b<a.length;b++)if(a[b]+"Hidden"in document)return a[b]+
"Hidden";return null}()?!0:!1})},toggleCleanup:function(a){v=a},setCache:function(a){g=a||{}}}});return a}()});SpilGames(function(){var a=window,g=a.document.body;/iphone|ipad|ipod/i.test(a.navigator.userAgent)&&g.addEventListener("click",function(f){for(var b=f.target;b&&b!==g;){if("a"===b.tagName.toLowerCase()){"_blank"===b.target&&(a.open(b.href,"ext"),f.preventDefault());break}b=b.parentNode}})});


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z