var cookieDomain='.uefa.com';var GeoTargeting={country:'',validC:'',cpUrl:'',vdUrl:'',isValidUrl:'',initialize:function(allowed,validationUrl,courtesyUlr,competition){this.validC=allowed.toLowerCase();this.vdUrl=validationUrl;this.cpUrl=courtesyUlr;var c=Cookie.get('geo.CountryCode');if(c===undefined||c==null||c==''){var a=new Ajax.Request("/module/geo/check.htmx?comp="+competition,{method:'get',onComplete:gtcallback})} else{this.country=c;this.isValidUrl='Y';eval('loadMatchLib'+competition+'()');}},validate:function(){var c=Cookie.get('geo.CountryCode');if(c!==undefined&&c==null&&c.length==2&&c!='--'&&validC.include(c))document.location.href=this.vdUrl;elsedocument.location.href=this.cpUrl;}};function gtcallback(originalResponse){var t=originalResponse.responseText.toLowerCase();if(t!==undefined&&t!=null&&t.length==2&&t!='--'){GeoTargeting.country=t;GeoTargeting.isValidUrl='Y';Cookie.set('geo.CountryCode',t,1);var comp=originalResponse.request.url.replace('/module/geo/check.htmx?comp=','');eval('loadMatchLib'+comp+'()');}}function loadMatchLib(comp){if(GeoTargeting.isValidUrl=='Y'){if(GeoTargeting.country!=''){eval('sUrl'+comp+'=sUrl'+comp+'.replace(/idCountry/,GeoTargeting.country)');}else{eval('sUrl'+comp+'=sUrl'+comp+'.replace(/idCountry/,\'IT\')');GeoTargeting.isValidUrl='Y';}}else{eval('sUrl'+comp+'=cUrl'+comp);}eval('if(sUrl'+comp+'){ ');eval('$(DivId'+comp+').innerHTML=\'Loading...\';');eval('var Obj'+comp+'=new Ajax.Request(sUrl'+comp+',{method:\'get\',onSuccess:function(transport'+comp+'){var res'+comp+'=transport'+comp+'.responseText;if(res'+comp+'!=\'\'){$(DivId'+comp+').innerHTML=res'+comp+';}else{alert(\'no\');}},onFailure:function(){alert(\'Something went wrong...\');}});');eval('}');}
