// Copyright 2012 Google Inc. All rights reserved.
// Container Version: 60
(function(w,g){w[g]=w[g]||{};w[g].e=function(s){return eval(s);};})(window,'google_tag_manager');(function(){
var m=this,aa=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b},ba=function(a,b){var d=Array.prototype.slice.call(arguments,1);return function(){var b=d.slice();b.push.apply(b,arguments);return a.apply(this,b)}},ca=null;/*
 jQuery v1.9.1 (c) 2005, 2012 jQuery Foundation, Inc. jquery.org/license. */
var da=/\[object (Boolean|Number|String|Function|Array|Date|RegExp)\]/,fa=function(a){if(null==a)return String(a);var b=da.exec(Object.prototype.toString.call(Object(a)));return b?b[1].toLowerCase():"object"},ga=function(a,b){return Object.prototype.hasOwnProperty.call(Object(a),b)},ha=function(a){if(!a||"object"!=fa(a)||a.nodeType||a==a.window)return!1;try{if(a.constructor&&!ga(a,"constructor")&&!ga(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(var d in a);return void 0===
d||ga(a,d)},ia=function(a,b){var d=b||("array"==fa(a)?[]:{}),c;for(c in a)if(ga(a,c)){var e=a[c];"array"==fa(e)?("array"!=fa(d[c])&&(d[c]=[]),d[c]=ia(e,d[c])):ha(e)?(ha(d[c])||(d[c]={}),d[c]=ia(e,d[c])):d[c]=e}return d};var ja=function(){},z=function(a){return"function"==typeof a},la=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},ma=function(a){return"number"==fa(a)&&!isNaN(a)},na=function(a,b){if(Array.prototype.indexOf){var d=a.indexOf(b);return"number"==typeof d?d:-1}for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1},oa=function(a){return a?a.replace(/^\s+|\s+$/g,""):""},D=function(a){return Math.round(Number(a))||0},pa=function(a){var b=[];if(la(a))for(var d=0;d<a.length;d++)b.push(String(a[d]));
return b},E=function(){return new Date},qa=function(a,b){if(!ma(a)||!ma(b)||a>b)a=0,b=2147483647;return Math.round(Math.random()*(b-a)+a)},ra=function(){this.prefix="gtm.";this.ha={}};ra.prototype.set=function(a,b){this.ha[this.prefix+a]=b};ra.prototype.get=function(a){return this.ha[this.prefix+a]};ra.prototype.contains=function(a){return void 0!==this.get(a)};
var sa=function(a,b,d){try{return a["21"](a,b||ja,d||ja)}catch(c){}return!1},ta=function(a,b){function d(b,c){a.contains(b)||a.set(b,[]);a.get(b).push(c)}for(var c=oa(b).split("&"),e=0;e<c.length;e++)if(c[e]){var f=c[e].indexOf("=");0>f?d(c[e],"1"):d(c[e].substring(0,f),c[e].substring(f+1))}},wa=function(a){var b=a?a.length:0;return 0<b?a[b-1]:""},xa=function(a){for(var b=0;b<a.length;b++)a[b]()},ya=E().getTime(),za=function(a,b,d){return a&&a.hasOwnProperty(b)?a[b]:d},Aa=function(a,
b,d){a.prototype["gtm_proxy_"+b]=a.prototype[b];a.prototype[b]=d};var G=window,I=document,Ca=navigator,J=function(a,b,d){var c=G[a],e="var "+a+";";if(m.execScript)m.execScript(e,"JavaScript");else if(m.eval)if(null==ca&&(m.eval("var _et_ = 1;"),"undefined"!=typeof m._et_?(delete m._et_,ca=!0):ca=!1),ca)m.eval(e);else{var f=m.document,g=f.createElement("script");g.type="text/javascript";g.defer=!1;g.appendChild(f.createTextNode(e));f.body.appendChild(g);f.body.removeChild(g)}else throw Error("goog.globalEval not available");G[a]=void 0===c||d?b:c;return G[a]},L=
function(a,b,d,c){return(c||"http:"!=G.location.protocol?a:b)+d},Da=function(a){var b=I.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)},Ea=function(a,b){b&&(a.addEventListener?a.onload=b:a.onreadystatechange=function(){a.readyState in{loaded:1,complete:1}&&(a.onreadystatechange=null,b())})},M=function(a,b,d){var c=I.createElement("script");c.type="text/javascript";c.async=!0;c.src=a;Ea(c,b);d&&(c.onerror=d);Da(c)},Fa=function(a,b){var d=I.createElement("iframe");d.height="0";d.width=
"0";d.style.display="none";d.style.visibility="hidden";Da(d);Ea(d,b);void 0!==a&&(d.src=a);return d},l=function(a,b,d){var c=new Image(1,1);c.onload=function(){c.onload=null;b&&b()};c.onerror=function(){c.onerror=null;d&&d()};c.src=a},O=function(a,b,d,c){a.addEventListener?a.addEventListener(b,d,!!c):a.attachEvent&&a.attachEvent("on"+b,d)},P=function(a){G.setTimeout(a,0)},Ga=!1,Ha=[],Ia=function(a){if(!Ga){var b=I.createEventObject,d="complete"==I.readyState,c="interactive"==I.readyState;if(!a||"readystatechange"!=
a.type||d||!b&&c){Ga=!0;for(var e=0;e<Ha.length;e++)Ha[e]()}}},Ja=0,Ka=function(){if(!Ga&&140>Ja){Ja++;try{I.documentElement.doScroll("left"),Ia()}catch(a){G.setTimeout(Ka,50)}}},Ma=function(a){var b=I.getElementById(a);if(b&&La(b,"id")!=a)for(var d=1;d<document.all[a].length;d++)if(La(document.all[a][d],"id")==a)return document.all[a][d];return b},La=function(a,b){return a&&b&&a.attributes[b]?a.attributes[b].value:null},Na=function(a){return a.target||a.srcElement||{}},Ra=function(a){var b=I.createElement("div");
b.innerHTML="A<div>"+a+"</div>";for(var b=b.lastChild,d=[];b.firstChild;)d.push(b.removeChild(b.firstChild));return d},Sa=function(a,b){for(var d={},c=0;c<b.length;c++)d[b[c]]=!0;for(var e=a,c=0;e&&!d[String(e.tagName).toLowerCase()]&&100>c;c++)e=e.parentElement;e&&!d[String(e.tagName).toLowerCase()]&&(e=null);return e},Ta=!1,Ua=[],Va=function(){if(!Ta){Ta=!0;for(var a=0;a<Ua.length;a++)Ua[a]()}},Wa=function(a){a=a||G;var b=a.location.href,d=b.indexOf("#");return 0>d?"":b.substring(d+1)},Xa=function(a){window.console&&
window.console.log&&window.console.log(a)};var Ya=new ra,Za={},ab={set:function(a,b){ia($a(a,b),Za)},get:function(a){return Q(a,2)}},Q=function(a,b){if(2==b){for(var d=Za,c=a.split("."),e=0;e<c.length;e++){if(void 0===d[c[e]])return;d=d[c[e]]}return d}return Ya.get(a)},$a=function(a,b){for(var d={},c=d,e=a.split("."),f=0;f<e.length-1;f++)c=c[e[f]]={};c[e[e.length-1]]=b;return d};var bb=new RegExp(/^(.*\.)?(google|youtube|blogger)(\.com?)?(\.[a-z]{2})?\.?$/),cb={customPixels:["nonGooglePixels"],html:["customScripts","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],customScripts:["html","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],nonGooglePixels:[],nonGoogleScripts:["nonGooglePixels"],nonGoogleIframes:["nonGooglePixels"]},db={customPixels:["customScripts","html"],html:["customScripts"],customScripts:["html"],nonGooglePixels:["customPixels",
"customScripts","html","nonGoogleScripts","nonGoogleIframes"],nonGoogleScripts:["customScripts","html"],nonGoogleIframes:["customScripts","html","nonGoogleScripts"]},eb=function(a,b){for(var d=[],c=0;c<a.length;c++)d.push(a[c]),d.push.apply(d,b[a[c]]||[]);return d},fb=function(){var a=Q("gtm.whitelist");
var b=a&&eb(pa(a),cb),d=Q("gtm.blacklist")||Q("tagTypeBlacklist")||[];var c=d&&eb(pa(d),db),e={};return function(f){var g=f&&f["21"];if(!g)return!0;if(void 0!==e[g.a])return e[g.a];var h=!0;if(a)e:{if(0>na(b,g.a))if(g.b&&0<g.b.length)for(var k=0;k<g.b.length;k++){if(0>na(b,g.b[k])){h=
!1;break e}}else{h=!1;break e}h=!0}var p=!1;if(d){var n;if(!(n=0<=na(c,g.a)))e:{for(var q=g.b||[],r=new ra,u=0;u<c.length;u++)r.set(c[u],!0);for(u=0;u<q.length;u++)if(r.get(q[u])){n=!0;break e}n=!1}p=n}return e[g.a]=!h||p}};var _jsm=function(a){if(void 0!==a["23"])try{var b=G.google_tag_manager;return b&&b.e&&b.e(a["23"])}catch(d){}};_jsm.a="jsm";_jsm.b=["customScripts"];var _c=function(a){return a["34"]};_c.a="c";_c.b=["google"];var gb;e:{var hb=/MSIE +([\d\.]+)/.exec(Ca.userAgent);if(hb&&hb[1]){var ib=I.documentMode;ib||(ib="CSS1Compat"==I.compatMode?parseInt(hb[1],10):5);if(!ib||8>=ib){gb=!1;break e}}gb=!!I.querySelectorAll}var jb=gb;var _et=function(a){var b=Q("gtm.element"),d;if(b){var c=b.innerText||b.textContent||"";c&&" "!=c&&(c=c.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""));c&&(c=c.replace(/(\xa0+|\s{2,}|\n|\r\t)/g," "));d=c}else d="";var e=d;return e?e:a["13"]};_et.a="et";_et.b=["google"];var lb=function(a,b,d,c,e){var f,g=(a.protocol.replace(":","")||G.location.protocol.replace(":","")).toLowerCase();switch(b){case "protocol":f=g;break;case "host":f=(a.hostname||G.location.hostname).split(":")[0].toLowerCase();if(d){var h=/^www\d*\./.exec(f);h&&h[0]&&(f=f.substr(h[0].length))}break;case "port":f=String(1*(a.hostname?a.port:G.location.port)||("http"==g?80:"https"==g?443:""));break;case "path":f="/"==a.pathname.substr(0,1)?a.pathname:"/"+a.pathname;var k=f.split("/");0<=na(c||[],k[k.length-
1])&&(k[k.length-1]="");f=k.join("/");break;case "query":f=a.search.replace("?","");if(e)e:{for(var p=f.split("&"),n=0;n<p.length;n++){var q=p[n].split("=");if(decodeURIComponent(q[0]).replace("+"," ")==e){f=decodeURIComponent(q.slice(1).join("=")).replace("+"," ");break e}}f=void 0}break;case "fragment":f=a.hash.replace("#","");break;default:f=a&&a.href}return f},mb=function(a){var b="";a&&a.href&&(b=a.hash?a.href.replace(a.hash,""):a.href);return b},nb=function(a){var b=I.createElement("a");a&&
(b.href=a);return b};var _eu=function(a){var b=String(Q("gtm.elementUrl")||a["13"]||""),d=nb(b);return b};_eu.a="eu";_eu.b=["google"];var ob=Math.random(),pb=null,sb=null;var _e=function(){return sb};_e.a="e";_e.b=["google"];var _j=function(a){for(var b=String(a["26"]).split("."),d=G,c=0;c<b.length;c++)d=d&&d[b[c]];return d};_j.a="j";_j.b=["google"];var _v=function(a){var b=Q(a["26"].replace(/\\\./g,"."),a["10"]);return void 0!==b?b:a["13"]};_v.a="v";_v.b=["google"];var _f=function(a){var b=String(Q("gtm.referrer")||I.referrer);if(!b)return b;var d=nb(b);return b};_f.a="f";_f.b=["google"];var _t=function(){return E().getTime()};_t.a="t";_t.b=["google"];var tb=function(a){var b=G.location,d=b.hash?b.href.replace(b.hash,""):b.href,c;if(c=a[""]?a[""]:Q("gtm.url"))d=String(c),b=nb(d);var e,f,g;
g=a["28"];a["8"]&&(d=lb(b,a["8"],e,f,g));return d},_u=tb;_u.a="u";_u.b=["google"];var _eq=function(a){return String(a["5"])==String(a["6"])};_eq.a="eq";_eq.b=["google"];var _re=function(a){return(new RegExp(a["6"],a[""]?"i":void 0)).test(a["5"])};_re.a="re";_re.b=["google"];var zb=ja,Ab=[],Bb=!1,Cb=function(a){return G["famobi_dataLayer"].push(a)},Db=function(a){var b=!1;return function(){!b&&z(a)&&P(a);b=!0}},Jb=function(){for(var a=!1;!Bb&&0<Ab.length;){Bb=!0;var b=Ab.shift();if(z(b))try{b.call(ab)}catch(d){}else if(la(b))e:{var c=b;if("string"==fa(c[0])){for(var e=c[0].split("."),f=e.pop(),g=c.slice(1),h=Za,k=0;k<e.length;k++){if(void 0===h[e[k]])break e;h=h[e[k]]}try{h[f].apply(h,g)}catch(p){}}}else{var n=b,q=void 0;for(q in n)if(n.hasOwnProperty(q)){var r=q,u=n[q];
Ya.set(r,u);ia($a(r,u),Za)}var w=!1,v=n.event;if(v){sb=v;var y=Db(n.eventCallback),S=n.eventTimeout;S&&G.setTimeout(y,Number(S));w=zb(v,y,n.eventReporter)}if(!pb&&(pb=n["gtm.start"])){}sb=null;a=w||a}var K=b,Y=Za;Ib();Bb=!1}return!a};var Kb,Lb=/(Firefox\D28\D)/g.test(Ca.userAgent),Mb={nwnc:{},nwc:{},wnc:{},wc:{},wt:null,l:!1},Nb={nwnc:{},nwc:{},wnc:{},wc:{},wt:null,l:!1},Tb=function(a,b){return function(d){d=d||G.event;var c=Na(d),e=!1;if(3!==d.which||"LINK_CLICK"!=a){"LINK_CLICK"==a&&(c=Sa(c,["a","area"]),e=!c||!c.href||Ob(c.href)||2===d.which||null==d.which&&4==d.button||d.ctrlKey||d.shiftKey||d.altKey||!0===d.metaKey);var f="FORM_SUBMIT"==a?Nb:Mb;if(d.defaultPrevented||!1===d.returnValue||d.W&&d.W()){if(c){var g={simulateDefault:!1},
h=Pb(f);h&&Qb(a,c,g,f.wt,h)}}else{if(c){var g={},k=!0;(k=Qb(a,c,g,f.wt,""))||(Rb(g.eventReport,f)?b=!0:e=!0);e=e||k||"LINK_CLICK"==a&&Lb;g.simulateDefault=!k&&b&&!e;g.simulateDefault&&(e=Sb(c,g)||e,!e&&d.preventDefault&&d.preventDefault());d.returnValue=k||!b||e;return d.returnValue}return!0}}}},Qb=function(a,b,d,c,e){var f=c||2E3,g={"gtm.element":b,"gtm.elementClasses":b.className,"gtm.elementId":b["for"]||La(b,"id")||"","gtm.elementTarget":b.formTarget||b.target||""};switch(a){case "LINK_CLICK":g["gtm.triggers"]=
e||"";g.event="gtm.linkClick";g["gtm.elementUrl"]=b.href;g.eventTimeout=f;g.eventCallback=Ub(b,d);g.eventReporter=function(a){d.eventReport=a};break;case "FORM_SUBMIT":g["gtm.triggers"]=e||"";g.event="gtm.formSubmit";g["gtm.elementUrl"]=Xb(b);g.eventTimeout=f;g.eventCallback=Yb(b,d);g.eventReporter=function(a){d.eventReport=a};break;case "CLICK":g.event="gtm.click";g["gtm.elementUrl"]=b.formAction||b.action||b.href||b.src||b.code||b.codebase||"";break;default:return!0}return Cb(g)},Xb=function(a){var b=
a.action;b&&b.tagName&&(b=a.cloneNode(!1).action);return b},Zb=function(a){var b=a.target;if(!b)switch(String(a.tagName).toLowerCase()){case "a":case "area":case "form":b="_self"}return b},Sb=function(a,b){var d=!1,c=/(iPad|iPhone|iPod)/g.test(Ca.userAgent),e=Zb(a).toLowerCase();switch(e){case "":case "_self":case "_parent":case "_top":var f;f=(e||"_self").substring(1);b.targetWindow=G.frames&&G.frames[f]||G[f];break;case "_blank":c?(b.simulateDefault=!1,d=!0):(b.targetWindowName="gtm_autoEvent_"+
E().getTime(),b.targetWindow=G.open("",b.targetWindowName));break;default:c&&!G.frames[e]?(b.simulateDefault=!1,d=!0):(G.frames[e]||(b.targetWindowName=e),b.targetWindow=G.frames[e]||G.open("",e))}return d},Ub=function(a,b,d){return function(){b.simulateDefault&&(b.targetWindow?b.targetWindow.location.href=a.href:(d=d||E().getTime(),500>E().getTime()-d&&G.setTimeout(Ub(a,b,d),25)))}},Yb=function(a,b,d){return function(){if(b.simulateDefault)if(b.targetWindow){var c;b.targetWindowName&&(c=a.target,
a.target=b.targetWindowName);I.gtmSubmitFormNow=!0;$b(a).call(a);b.targetWindowName&&(a.target=c)}else d=d||E().getTime(),500>E().getTime()-d&&G.setTimeout(Yb(a,b,d),25)}},Pb=function(a){for(var b=["wnc","nwnc"],d=[],c=0;c<b.length;c++){var e=a[b[c]],f;for(f in e)e.hasOwnProperty(f)&&e[f]&&d.push(f)}return d.join(",")},ac=function(a,b,d,c,e){var f=e;if(!f||"0"==f){if(a.l)return;a.l=!0;f="0"}var g=a.wt;b&&(!g||g>c)&&(a.wt=c);a[b?d?"wc":"wnc":d?"nwc":"nwnc"][f]=!0},Rb=function(a,b){if(b.wnc["0"]||b.wc["0"])return!0;
for(var d=0;d<bc.length;d++)if(a.passingRules[d]){var c=bc[d],e=cc[d],f=e&&e[0]&&e[0][0]||e[1]&&e[1][0];if(f&&"0"!=f&&(b.wc[f]||b.wnc[f]))for(var g=c[1],h=0;h<g.length;h++)if(a.resolvedTags[g[h]])return!0}return!1},dc=function(a,b,d,c,e){var f,g,h=!1;switch(a){case "CLICK":if(I.gtmHasClickListenerTag)return;I.gtmHasClickListenerTag=!0;f="click";g=function(a){var b=Na(a);b&&Qb("CLICK",b,{},c)};h=!0;break;case "LINK_CLICK":b&&!Kb&&(Kb=mb(I.location));ac(Mb,b||!1,d||!1,c,e);if(I.gtmHasLinkClickListenerTag)return;
I.gtmHasLinkClickListenerTag=!0;f="click";g=Tb(a,b||!1);break;case "FORM_SUBMIT":ac(Nb,b||!1,d||!1,c,e);if(I.gtmHasFormSubmitListenerTag)return;I.gtmHasFormSubmitListenerTag=!0;f="submit";g=Tb(a,b||!1);break;default:return}O(I,f,g,h)},Ob=function(a){if(!Kb)return!0;var b=a.indexOf("#");if(0>b)return!1;if(0==b)return!0;var d=nb(a);return Kb==mb(d)},$b=function(a){try{if(a.constructor&&a.constructor.prototype)return a.constructor.prototype.submit}catch(b){}if(a.gtmReplacedFormSubmit)return a.gtmReplacedFormSubmit;
I.gtmFormElementSubmitter||(I.gtmFormElementSubmitter=I.createElement("form"));return I.gtmFormElementSubmitter.submit.call?I.gtmFormElementSubmitter.submit:a.submit};var mc=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},nc=function(a,b){return a<b?-1:a>b?1:0};var T;e:{var oc=m.navigator;if(oc){var pc=oc.userAgent;if(pc){T=pc;break e}}T=""};var qc=-1!=T.indexOf("Opera")||-1!=T.indexOf("OPR"),U=-1!=T.indexOf("Trident")||-1!=T.indexOf("MSIE"),rc=-1!=T.indexOf("Gecko")&&-1==T.toLowerCase().indexOf("webkit")&&!(-1!=T.indexOf("Trident")||-1!=T.indexOf("MSIE")),sc=-1!=T.toLowerCase().indexOf("webkit"),tc=function(){var a=m.document;return a?a.documentMode:void 0},uc=function(){var a="",b;if(qc&&m.opera){var d=m.opera.version;return"function"==aa(d)?d():d}rc?b=/rv\:([^\);]+)(\)|;)/:U?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:sc&&(b=/WebKit\/(\S+)/);
if(b)var c=b.exec(T),a=c?c[1]:"";if(U){var e=tc();if(e>parseFloat(a))return String(e)}return a}(),vc={},wc=function(a){var b;if(!(b=vc[a])){for(var d=0,c=mc(String(uc)).split("."),e=mc(String(a)).split("."),f=Math.max(c.length,e.length),g=0;0==d&&g<f;g++){var h=c[g]||"",k=e[g]||"",p=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var q=p.exec(h)||["","",""],r=n.exec(k)||["","",""];if(0==q[0].length&&0==r[0].length)break;d=nc(0==q[1].length?0:parseInt(q[1],10),0==r[1].length?0:parseInt(r[1],
10))||nc(0==q[2].length,0==r[2].length)||nc(q[2],r[2])}while(0==d)}b=vc[a]=0<=d}return b},xc=m.document,yc=xc&&U?tc()||("CSS1Compat"==xc.compatMode?parseInt(uc,10):5):void 0;var zc;if(!(zc=!rc&&!U)){var Ac;if(Ac=U)Ac=U&&9<=yc;zc=Ac}zc||rc&&wc("1.9.1");U&&wc("9");var Bc=function(a){Bc[" "](a);return a};Bc[" "]=function(){};var Gc=function(a,b){var d="";U&&!Cc(a)&&(d='<script>document.domain="'+document.domain+'";\x3c/script>'+d);var c="<!DOCTYPE html><html><head><script>var inDapIF=true;\x3c/script>"+d+"</head><body>"+b+"</body></html>";if(Dc)a.srcdoc=c;else if(Ec){var e=a.contentWindow.document;e.open("text/html","replace");e.write(c);e.close()}else Fc(a,c)},Dc=sc&&"srcdoc"in document.createElement("iframe"),Ec=rc||sc||U&&wc(11),Fc=function(a,b){U&&wc(7)&&!wc(10)&&6>Hc()&&Ic(b)&&(b=Jc(b));var d=function(){a.contentWindow.goog_content=
b;a.contentWindow.location.replace("javascript:window.goog_content")};U&&!Cc(a)?Kc(a,d):d()},Hc=function(){var a=navigator.userAgent.match(/Trident\/([0-9]+.[0-9]+)/);return a?parseFloat(a[1]):0},Cc=function(a){try{var b;var d=a.contentWindow;try{var c;if(c=!!d&&null!=d.location.href)t:{try{Bc(d.foo);c=!0;break t}catch(e){}c=!1}b=c}catch(f){b=!1}return b}catch(g){return!1}},Lc=0,Kc=function(a,b){var d="goog_rendering_callback"+Lc++;window[d]=b;a.src="javascript:'<script>(function() {document.domain = \""+
document.domain+'";var continuation = window.parent.'+d+";window.parent."+d+" = null;continuation();})()\x3c/script>'"},Ic=function(a){for(var b=0;b<a.length;++b)if(127<a.charCodeAt(b))return!0;return!1},Jc=function(a){for(var b=unescape(encodeURIComponent(a)),d=Math.floor(b.length/2),c=[],e=0;e<d;++e)c[e]=String.fromCharCode(256*b.charCodeAt(2*e+1)+b.charCodeAt(2*e));1==b.length%2&&(c[d]=b.charAt(b.length-1));return c.join("")};/*
 Copyright (c) 2014 Derek Brans, MIT license https://github.com/krux/postscribe/blob/master/LICENSE. Portions derived from simplehtmlparser, which is licensed under the Apache License, Version 2.0 */
var Tc,Uc;
var dd=function(a){return function(){}},ed=function(a){return function(){}};var Ad=function(a){var b=G||m,d=b.onerror,c=!1;sc&&!wc("535.3")&&(c=!c);b.onerror=function(b,f,g,h,k){d&&d(b,f,g,h,k);a({message:b,fileName:f,Ma:g,eb:h,error:k});return c}};var _jel=function(a,b){I.gtmHasJsErrorListenerTag||(I.gtmHasJsErrorListenerTag=!0,Ad(function(a){Cb({event:"gtm.pageError","gtm.errorMessage":a.message,"gtm.errorUrl":a.fileName,"gtm.errorLineNumber":a.Ma})}));P(b)};_jel.a="jel";_jel.b=["google"];
var Ed=!1,_ua=function(a,b,d){function c(a){var b=[].slice.call(arguments,0);b[0]=q+b[0];G[p()].apply(window,b)}function e(b,d){void 0!==a[d]&&c("set",b,a[d])}function f(a,b){return void 0===b?b:a(b)}function g(a,b){if(b)for(var d in b)b.hasOwnProperty(d)&&c("set",a+d,b[d])}function h(){var b=function(a,b,d){if(!ha(b))return!1;for(var e=za(Object(b),d,[]),f=0;e&&f<e.length;f++)c(a,e[f]);return!!e&&0<e.length},d;a["15"]?
d=Q("ecommerce"):a[""]&&(d=a[""].ecommerce);if(!ha(d))return;d=Object(d);var e=za(a["20"],"currencyCode",d.currencyCode);void 0!==e&&c("set","&cu",e);b("ec:addImpression",d,"impressions");if(b("ec:addPromo",d[d.promoClick?"promoClick":"promoView"],"promotions")&&d.promoClick){c("ec:setAction","promo_click",d.promoClick.actionField);return}for(var f="detail checkout checkout_option click add remove purchase refund".split(" "),
g=0;g<f.length;g++){var h=d[f[g]];if(h){b("ec:addProduct",h,"products");c("ec:setAction",f[g],h.actionField);break}}}function k(a,b,c){var d=0;if(void 0!==a)for(var e in a)if(a.hasOwnProperty(e)&&(c&&w[e]||!c&&void 0===w[e])){var f;if(v[e]){var g=a[e];f="false"==String(g).toLowerCase()?!1:!!g}else f=a[e];b[e]=f;d++}return d}J("GoogleAnalyticsObject",a["26"]||"ga",!1);var p=function(){return G.GoogleAnalyticsObject},n=J(p(),function(){var a=
G[p()];a.q=a.q||[];a.q.push(arguments)},!1),q="",r=n.l="";void 0==a[""]?(r=n.l="gtm"+ya++,q=r+"."):""!==a[""]&&(r=n.l=a[""],q=r+".");var u=!1;var w={name:!0,clientId:!0,sampleRate:!0,siteSpeedSampleRate:!0,alwaysSendReferrer:!0,allowAnchor:!0,allowLinker:!0,cookieName:!0,cookieDomain:!0,cookieExpires:!0,legacyCookieDomain:!0,legacyHistoryImport:!0,storage:!0},v={allowAnchor:!0,
allowLinker:!0,alwaysSendReferrer:!0,anonymizeIp:!0,exFatal:!0,forceSSL:!0,javaEnabled:!0,legacyHistoryImport:!0,nonInteraction:!0,useBeacon:!0};var y={name:r};
void 0!==
a["1"]&&(y.allowLinker=a["1"]);k(a["20"],y,!0);n("create",a["0"],y);c("set","&gtm","GTM-PBT7JT");void 0!==a["4"]&&c("set","anonymizeIp",a["4"]||void 0);
e("nonInteraction","27");
g("contentGroup",a["9"]);g("dimension",a["14"]);
g("metric",a["25"]);var S={};k(a["20"],S,!1)&&c("set",S);a["24"]&&c("require","linkid","linkid.js");
c("set","hitCallback",function(){if(z(a[""]))a[""]();else{var c=a["20"],d=c&&c.hitCallback;z(d)&&d()}b()});if(a["32"]){a["16"]&&(c("require",
"ec","ec.js"),h()),c("send",{hitType:"event",eventCategory:String(a["18"]),eventAction:String(a["17"]),eventLabel:f(String,a["19"]),eventValue:f(D,a[""])});}else if(a[""]){}else if(a[""]){}else if(a[""]){}else if(a[""]){}else if(a[""]){}else if(a[""]){}else{a["16"]&&(c("require","ec","ec.js"),h());
c("send","pageview");if(a["7"]){c("require","linker");var Y=String(a["7"]).replace(/\s+/g,"").split(",");n(q+"linker:autoLink",Y,a["33"],a["12"])}}if(!Ed){var ea=a["11"]?"u/analytics_debug.js":"analytics.js";Ed=!0;M(L("https:","http:","//www.google-analytics.com/"+ea,
u),function(){G[p()].loaded||d()},d)}};_ua.a="ua";_ua.b=["google"];var Fd,Gd;var ie=function(){this.g=[]};ie.prototype.set=function(a,b){this.g.push([a,b]);return this};ie.prototype.resolve=function(a,b){for(var d={},c=0;c<this.g.length;c++){var e=je(this.g[c][0],a,b),f=je(this.g[c][1],a,b);d[e]=f}return d};var ke=function(a){this.index=a};ke.prototype.resolve=function(a,b){var d=Eb[this.index];if(d&&!b(d)){var c=d["22"];if(a){if(a.get(c))return;a.set(c,!0)}d=je(d,a,b);a&&a.set(c,!1);return sa(d)}};
for(var _M=function(a){return new ke(a)},me=function(a){this.resolve=function(b,d){for(var c=[],e=0;e<a.length;e++)c.push(je(le[a[e]],b,d));return c.join("")}},_T=function(a){return new me(arguments)},oe=function(a){function b(b){for(var c=1;c<a.length;c++)if(a[c]==b)return!0;return!1}this.resolve=function(d,c){var e=je(a[0],d,c);if(a[0]instanceof ke&&b(8)&&b(16)){var f="gtm"+ya++;ne.set(f,e);return'google_tag_manager["GTM-PBT7JT"].macro(\''+f+"')"}for(var e=String(e),g=1;g<a.length;g++)e=X[a[g]](e);return e}},_E=function(a,b){return new oe(arguments)},Hb=function(a,b){return je(a,new ra,b)},je=function(a,b,d){var c=a;if(a instanceof ke||a instanceof
ie||a instanceof me||a instanceof oe)return a.resolve(b,d);if(la(a))for(var c=[],e=0;e<a.length;e++)c[e]=je(a[e],b,d);else if(a&&"object"==typeof a){var c={},f;for(f in a)a.hasOwnProperty(f)&&(c[f]=je(a[f],b,d))}return c},pe=function(a,b){var d=b[a],c=d;if(d instanceof ke||d instanceof oe||d instanceof me)c=d;else if(la(d))for(var c=[],e=0;e<d.length;e++)c[e]=pe(d[e],b);else if("object"==typeof d){var c=new ie,f;for(f in d)d.hasOwnProperty(f)&&c.set(b[f],pe(d[f],b))}return c},Z=function(a,b){for(var d=
b?b.split(","):[],c=0;c<d.length;c++){var e=d[c]=d[c].split(":");0==a&&(e[1]=le[e[1]]);if(1==a)for(var f=qe(e[0]),e=d[c]={},g=0;g<f.length;g++){var h=re[f[g]];e[h[0]]=h[1]}if(2==a)for(g=0;4>g;g++)e[g]=qe(e[g]);3==a&&(d[c]=le[e[0]]);if(4==a)for(g=0;2>g;g++)if(e[g]){e[g]=e[g].split(".");for(var k=0;k<e[g].length;k++)e[g][k]=le[e[g][k]]}else e[g]=[];5==a&&(d[c]=e[0])}return d},qe=function(a){var b=[];if(!a)return b;for(var d=0,c=0;c<a.length&&d<se;d+=6,c++){var e=a&&a.charCodeAt(c)||65;if(65!=e){var f=
0,f=65<e&&90>=e?e-65:97<=e&&122>=e?e-97+26:95==e?63:48<=e?e-48+52:62;1&f&&b.push(d);2&f&&b.push(d+1);4&f&&b.push(d+2);8&f&&b.push(d+3);16&f&&b.push(d+4);32&f&&b.push(d+5)}}return b},se=143,te=[_re,_u,'url',_M(0),'.*',_eq,_e,'_event',_M(1),'gtm.js','',_ua,'GA Pageviews',_c,'GA Tracking ID play.famobi.com','UA-52760429-1',_M(2),false,true,{},'2','1',_v,'affiliateId from dataLayer','affiliateId',2,_M(3),_j,'packageId from global scope','famobi_gameID',_M(4),{20:26,21:30},'fg_ga','play.famobi.com,games.cdn.famobi.com','\x26tid','\x26aip','\x26cd2','\x26cd1',{34:16,35:18,36:26,37:30},1,_jel,'JS Errors',3,'event',_M(5),'Ingame event','eventCategory',_M(6),'undefined','GA Events','eventAction',_M(7),'eventLabel',_M(8),'nonInteraction',_M(9),'packageId',_M(10),{20:26,21:57},'\x26t','\x26ec','\x26ea','\x26el','\x26ni',{34:16,59:43,60:47,61:51,62:53,35:18,63:55,36:26,37:57},5,_t,'_time','Data layer gtm.errorUrl','gtm.errorUrl','Data layer gtm.errorLineNumber','gtm.errorLineNumber','Data layer gtm.errorMessage','gtm.errorMessage',_jsm,'IFrame','(function(){return window.top!\x3d\x3dwindow.self?\x22true\x22:\x22false\x22})();',_T(76),'A1202-1','affiliateId from URL','query','fg_aid',_M(16),'GA Pageviews m.games1.com','GA Tracking ID m.games1.com','UA-52760429-2',_M(17),{20:26},{34:86,35:18,36:26},13,'url hostname','host','url path','path',_f,'referrer','element','gtm.element','element classes','gtm.elementClasses','element id','gtm.elementId','element target','gtm.elementTarget',_et,'element text','element url','gtm.elementUrl','history new url fragment','gtm.newUrlFragment','history old url fragment','gtm.oldUrlFragment','history new state','gtm.newHistoryState','history old state','gtm.oldHistoryState','history change source','gtm.historyChangeSource','gameId','portalId','Cordova','(function(){return window.cordova||window.phonegap?\x22true\x22:\x22false\x22})();',_T(121),'InGame','(function(){return window.famobi_gameID?\x22true\x22:\x22false\x22})();',_T(124),'Window.Location','(function(){return window.location.href})();',_T(127),'Window.Top.Location','(function(){return window.top.location?window.top.location.href:void 0})();',_T(130),'Document.Referrer','(function(){return document.referrer})();',_T(133),'dataLayer portal','portal','Index affiliate dimension','index game dimension','Index developer dimension','3'],ue=[],ve=0;ve<te.length;ve++)ue[ve]=pe(ve,te);var le=ue,re=Z(0,"21:0,21:1,22:2,5:3,6:4,21:5,21:6,22:7,5:8,6:9,21:11,22:12,21:13,22:14,34:15,0:16,16:17,15:17,4:18,9:19,21:22,22:23,26:24,10:25,21:27,22:28,26:29,14:31,25:19,26:32,33:18,20:19,11:17,7:33,12:17,2:38,24:18,1:17,31:39,21:40,22:41,31:42,22:43,5:44,6:45,22:46,26:46,5:47,6:48,22:49,32:18,3:18,18:47,22:50,26:50,17:51,22:52,26:52,19:53,22:54,26:54,27:55,22:56,26:56,14:58,2:64,31:65,21:66,22:67,22:68,26:69,22:70,26:71,22:72,26:73,21:74,22:75,23:77,5:26,6:78,22:79,8:80,28:81,5:82,22:83,22:84,34:85,0:86,14:87,33:17,2:88,31:89,22:90,8:91,22:92,8:93,21:94,22:95,22:96,26:97,22:98,26:99,22:100,26:101,22:102,26:103,21:104,22:105,22:106,26:107,22:108,26:109,22:110,26:111,22:112,26:113,22:114,26:115,22:116,26:117,22:118,26:118,13:10,22:119,26:119,22:120,23:122,22:123,23:125,22:126,23:128,22:129,23:131,22:132,23:134,22:135,26:136,22:137,34:20,22:138,34:21,22:139,34:140"),Eb=Z(1,"G,AD,AAH,AAA8,AAAAH,ABAAAAAB,AAAkAAAY,AAAkAAAAgB,AAAkAAAAAM,AAAkAAAAAgB,AAAkAAAAAAM,AAAAAAAAAAAG,AAAkAAAAAAAY,AAAkAAAAAAAgB,AAAkAAAAAAAAG,AAAAAAAAAAAA4,CAAAAAAAAAAAAc,AABAAAAAAAAAAAG,CAAAAAAAAAAAAAAM,CAAAAAAAAAAAAAAw,AAAAAAAAAAAAAAAAD,AAAEAAAAAAAAAAAAM,AAAEAAAAAAAAAAAAw,AAAEAAAAAAAAAAAAAD,AAAEAAAAAAAAAAAAAM,AAAAAAAAAAAAAAAAAw,AAAEAAAAAAAAAAAAAAD,AAAEAAAAAAAAAAAAAAM,AAAEAAAAAAAAAAAAAAw,AAAEAAAAAAAAAAAAAAAD,AAAEAAAAAAAAAAAAAAAM,AAAEAAAAAAAAAAAAAAAw,AAAkAAAAAAAAAAAAAAAAH,AAAkAAAAAAAAAAAAAAAAY,AAAAAAAAAAAAIAAAAAAAgB,AAAAAAAAAAAAIAAAAAAAAG,AAAAAAAAAAAAIAAAAAAAAY,AAAAAAAAAAAAIAAAAAAAAgB,AAAAAAAAAAAAIAAAAAAAAAG,AAAkAAAAAAAAAAAAAAAAAAY,AABAAAAAAAAAAAAAAAAAAAgB,AABAAAAAAAAAAAAAAAAAAAAG,AABAAAAAAAAAAAAAAAAAAAAY"),ne=new ra,we=Z(1,"Z,gM,gAAAAAAG,gAAAAAAgB,gAAAAAAAAAAAAD,gAAAAAAAAAAAAi"),V=Z(1,"Aw4D4_H,AAAAAA4,AQ4DwGBAeSyB,AQwDQWDAAAAAAA5D"),bc=Z(2,"D:D::,E:E:I:,S:I::,i:I::"),cc=Z(4,"10.10:,10:,10:,10:");var Ib=function(){};var He=function(){var a=this;this.w=!1;this.F=[];this.Q=[];this.I=function(){a.w||xa(a.F);a.w=!0};this.J=function(){a.w||xa(a.Q);a.w=!0};this.k=ja},Ie=function(){this.m=[];this.Z={};this.R=[];this.r=0};Ie.prototype.addListener=function(a){this.R.push(a)};var Je=function(a,b,d,c){if(!d.w){a.m[b]=d;void 0!==c&&(a.Z[b]=c);a.r++;var e=function(){0<a.r&&a.r--;0<a.r||xa(a.R)};d.F.push(e);d.Q.push(e)}};var Ke=function(){var a=[];return function(b,d){if(void 0===a[b]){var c=we[b]&&Hb(we[b],d);a[b]=[c&&sa(c),c]}return a[b]}},Le=function(a,b){for(var d=b[0],c=0;c<d.length;c++)if(!a.f(d[c],a.c)[0])return!1;for(var e=b[2],c=0;c<e.length;c++)if(a.f(e[c],a.c)[0])return!1;return!0},Me=function(a,b){return function(){a["35"]=b.I;a["36"]=b.J;sa(a,b.I,b.J)}},Ne=!1,zb=function(a,b,d){switch(a){case "gtm.js":if(Ne)return!1;Ne=!0;break;case "gtm.sync":if(Q("gtm.snippet")!=
ob)return!1}Q("tagTypeBlacklist");for(var c={name:a,G:b||ja,s:qe(),t:qe(),f:Ke(),c:fb()},e=[],f=0;f<bc.length;f++)if(Le(c,bc[f])){e[f]=!0;for(var g=c,h=bc[f],k=h[1],p=0;p<k.length;p++)g.s[k[p]]=!0;for(var n=h[3],p=0;p<n.length;p++)g.t[n[p]]=!0}else e[f]=!1;var q=[];for(var r=0;r<se;r++)if(c.s[r]&&!c.t[r])if(c.c(V[r])){}else{q[r]=
Hb(V[r],c.c);}c.u=q;for(var u=new Ie,w=0;w<se;w++)if(c.s[w]&&!c.t[w]&&!c.c(V[w])){var v=c.u[w],y=new He;y.F.push(dd(v));y.Q.push(ed(v));y.k=Me(v,y);Je(u,w,y,v[""])}u.addListener(c.G);for(var S=[],A=0;A<u.m.length;A++){var N=u.m[A];if(N){var H=u.Z[A];void 0!==H?H!=A&&
u.m[H]&&u.m[H].F.push(N.k):S.push(A)}}for(A=0;A<S.length;A++)u.m[S[A]].k();0<u.r||xa(u.R);d&&z(d)&&d({passingRules:e,resolvedTags:c.u});return 0<c.u.length};var Oe={macro:function(a){if(ne.contains(a))return ne.get(a)}};Oe.dataLayer=ab;Oe.Oa=function(){var a=G.google_tag_manager;a||(a=G.google_tag_manager={});a["GTM-PBT7JT"]||(a["GTM-PBT7JT"]=Oe)};Oe.Oa();
(function(){var a=J("famobi_dataLayer",[],!1),b=J("google_tag_manager",{},!1),b=b["famobi_dataLayer"]=b["famobi_dataLayer"]||{};Ha.push(function(){b.gtmDom||(b.gtmDom=!0,a.push({event:"gtm.dom"}))});Ua.push(function(){b.gtmLoad||(b.gtmLoad=!0,a.push({event:"gtm.load"}))});var d=a.push;a.push=function(){var b=[].slice.call(arguments,0);d.apply(a,b);for(Ab.push.apply(Ab,b);300<this.length;)this.shift();return Jb()};Ab.push.apply(Ab,a.slice(0));P(Jb)})();
if("interactive"==I.readyState&&!I.createEventObject||"complete"==I.readyState)Ia();else{O(I,"DOMContentLoaded",Ia);O(I,"readystatechange",Ia);if(I.createEventObject&&I.documentElement.doScroll){var Pe=!0;try{Pe=!G.frameElement}catch(Re){}Pe&&Ka()}O(G,"load",Ia)}"complete"===I.readyState?Va():O(G,"load",Va);
(function(a){})("async");var _vs="res_ts:1418472840836000,srv_cl:81709810,ds:live,cv:60";
})()
