var cookieDomain='.uefa.com';var Prototype={Version:"1.6.0.2",Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!window.opera,WebKit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement("div").__proto__&&document.createElement("div").__proto__!==document.createElement("form").__proto__},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(A){return A}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Class={create:function(){var E=null,D=$A(arguments);if(Object.isFunction(D[0])){E=D.shift()}function A(){this.initialize.apply(this,arguments)}Object.extend(A,Class.Methods);A.superclass=E;A.subclasses=[];if(E){var B=function(){};B.prototype=E.prototype;A.prototype=new B;E.subclasses.push(A)}for(var C=0;C<D.length;C++){A.addMethods(D[C])}if(!A.prototype.initialize){A.prototype.initialize=Prototype.emptyFunction}A.prototype.constructor=A;return A}};Class.Methods={addMethods:function(G){var C=this.superclass&&this.superclass.prototype;var B=Object.keys(G);if(!Object.keys({toString:true}).length){B.push("toString","valueOf")}for(var A=0,D=B.length;A<D;A++){var F=B[A],E=G[F];if(C&&Object.isFunction(E)&&E.argumentNames().first()=="$super"){var H=E,E=Object.extend((function(I){return function(){return C[I].apply(this,arguments)}})(F).wrap(H),{valueOf:function(){return H},toString:function(){return H.toString()}})}this.prototype[F]=E}return this}};var Abstract={};Object.extend=function(A,C){for(var B in C){A[B]=C[B]}return A};Object.extend(Object,{inspect:function(A){try{if(Object.isUndefined(A)){return"undefined"}if(A===null){return"null"}return A.inspect?A.inspect():String(A)}catch(B){if(B instanceof RangeError){return"..."}throw B}},toJSON:function(A){var C=typeof A;switch(C){case"undefined":case"function":case"unknown":return ;case"boolean":return A.toString()}if(A===null){return"null"}if(A.toJSON){return A.toJSON()}if(Object.isElement(A)){return}var B=[];for(var E in A){var D=Object.toJSON(A[E]);if(!Object.isUndefined(D)){B.push(E.toJSON()+": "+D)}}return"{"+B.join(", ")+"}"},toQueryString:function(A){return $H(A).toQueryString()},toHTML:function(A){return A&&A.toHTML?A.toHTML():String.interpret(A)},keys:function(A){var B=[];for(var C in A){B.push(C)}return B},values:function(B){var A=[];for(var C in B){A.push(B[C])}return A},clone:function(A){return Object.extend({},A)},isElement:function(A){return A&&A.nodeType==1},isArray:function(A){return A!=null&&typeof A=="object"&&"splice" in A&&"join" in A},isHash:function(A){return A instanceof Hash},isFunction:function(A){return typeof A=="function"},isString:function(A){return typeof A=="string"},isNumber:function(A){return typeof A=="number"},isUndefined:function(A){return typeof A=="undefined"}});Object.extend(Function.prototype,{argumentNames:function(){var A=this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip");return A.length==1&&!A[0]?[]:A},bind:function(){if(arguments.length<2&&Object.isUndefined(arguments[0])){return this}var A=this,C=$A(arguments),B=C.shift();return function(){return A.apply(B,C.concat($A(arguments)))}},bindAsEventListener:function(){var A=this,C=$A(arguments),B=C.shift();return function(D){return A.apply(B,[D||window.event].concat(C))}},curry:function(){if(!arguments.length){return this}var A=this,B=$A(arguments);return function(){return A.apply(this,B.concat($A(arguments)))}},delay:function(){var A=this,B=$A(arguments),C=B.shift()*1000;return window.setTimeout(function(){return A.apply(A,B)},C)},wrap:function(B){var A=this;return function(){return B.apply(this,[A.bind(this)].concat($A(arguments)))}},methodize:function(){if(this._methodized){return this._methodized}var A=this;return this._methodized=function(){return A.apply(null,[this].concat($A(arguments)))}}});Function.prototype.defer=Function.prototype.delay.curry(0.01);Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+"-"+(this.getUTCMonth()+1).toPaddedString(2)+"-"+this.getUTCDate().toPaddedString(2)+"T"+this.getUTCHours().toPaddedString(2)+":"+this.getUTCMinutes().toPaddedString(2)+":"+this.getUTCSeconds().toPaddedString(2)+'Z"'};var Try={these:function(){var C;for(var B=0,D=arguments.length;B<D;B++){var A=arguments[B];try{C=A();break}catch(E){}}return C}};RegExp.prototype.match=RegExp.prototype.test;RegExp.escape=function(A){return String(A).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var PeriodicalExecuter=Class.create({initialize:function(B,A){this.callback=B;this.frequency=A;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},execute:function(){this.callback(this)},stop:function(){if(!this.timer){return}clearInterval(this.timer);this.timer=null},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.execute()}finally{this.currentlyExecuting=false}}}});Object.extend(String,{interpret:function(A){return A==null?"":String(A)},specialChar:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\\":"\\\\"}});Object.extend(String.prototype,{gsub:function(E,C){var A="",D=this,B;C=arguments.callee.prepareReplacement(C);while(D.length>0){if(B=D.match(E)){A+=D.slice(0,B.index);A+=String.interpret(C(B));D=D.slice(B.index+B[0].length)}else{A+=D,D=""}}return A},sub:function(C,A,B){A=this.gsub.prepareReplacement(A);B=Object.isUndefined(B)?1:B;return this.gsub(C,function(D){if(--B<0){return D[0]}return A(D)})},scan:function(B,A){this.gsub(B,A);return String(this)},truncate:function(B,A){B=B||30;A=Object.isUndefined(A)?"...":A;return this.length>B?this.slice(0,B-A.length)+A:String(this)},strip:function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var B=new RegExp(Prototype.ScriptFragment,"img");var A=new RegExp(Prototype.ScriptFragment,"im");return(this.match(B)||[]).map(function(C){return(C.match(A)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)})},escapeHTML:function(){var A=arguments.callee;A.text.data=this;return A.div.innerHTML},unescapeHTML:function(){var A=new Element("div");A.innerHTML=this.stripTags();return A.childNodes[0]?(A.childNodes.length>1?$A(A.childNodes).inject("",function(B,C){return B+C.nodeValue}):A.childNodes[0].nodeValue):""},toQueryParams:function(B){var A=this.strip().match(/([^?#]*)(#.*)?$/);if(!A){return{}}return A[1].split(B||"&").inject({},function(E,F){if((F=F.split("="))[0]){var C=decodeURIComponent(F.shift());var D=F.length>1?F.join("="):F[0];if(D!=undefined){D=decodeURIComponent(D)}if(C in E){if(!Object.isArray(E[C])){E[C]=[E[C]]}E[C].push(D)}else{E[C]=D}}return E})},toArray:function(){return this.split("")},succ:function(){return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1)},times:function(A){return A<1?"":new Array(A+1).join(this)},camelize:function(){var D=this.split("-"),A=D.length;if(A==1){return D[0]}var C=this.charAt(0)=="-"?D[0].charAt(0).toUpperCase()+D[0].substring(1):D[0];for(var B=1;B<A;B++){C+=D[B].charAt(0).toUpperCase()+D[B].substring(1)}return C},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()},underscore:function(){return this.gsub(/::/,"/").gsub(/([A-Z]+)([A-Z][a-z])/,"#{1}_#{2}").gsub(/([a-z\d])([A-Z])/,"#{1}_#{2}").gsub(/-/,"_").toLowerCase()},dasherize:function(){return this.gsub(/_/,"-")},inspect:function(B){var A=this.gsub(/[\x00-\x1f\\]/,function(C){var D=String.specialChar[C[0]];return D?D:"\\u00"+C[0].charCodeAt().toPaddedString(2,16)});if(B){return'"'+A.replace(/"/g,'\\"')+'"'}return"'"+A.replace(/'/g,"\\'")+"'"},toJSON:function(){return this.inspect(true)},unfilterJSON:function(A){return this.sub(A||Prototype.JSONFilter,"#{1}")},isJSON:function(){var A=this;if(A.blank()){return false}A=this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,"");return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(A)},evalJSON:function(sanitize){var json=this.unfilterJSON();try{if(!sanitize||json.isJSON()){return eval("("+json+")")}}catch(e){}throw new SyntaxError("Badly formed JSON string: "+this.inspect())},include:function(A){return this.indexOf(A)>-1},startsWith:function(A){return this.indexOf(A)===0},endsWith:function(A){var B=this.length-A.length;return B>=0&&this.lastIndexOf(A)===B},empty:function(){return this==""},blank:function(){return/^\s*$/.test(this)},interpolate:function(A,B){return new Template(this,B).evaluate(A)}});if(Prototype.Browser.WebKit||Prototype.Browser.IE){Object.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},unescapeHTML:function(){return this.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")}})}String.prototype.gsub.prepareReplacement=function(B){if(Object.isFunction(B)){return B}var A=new Template(B);return function(C){return A.evaluate(C)}};String.prototype.parseQuery=String.prototype.toQueryParams;Object.extend(String.prototype.escapeHTML,{div:document.createElement("div"),text:document.createTextNode("")});with(String.prototype.escapeHTML){div.appendChild(text)}var Template=Class.create({initialize:function(A,B){this.template=A.toString();this.pattern=B||Template.Pattern},evaluate:function(A){if(Object.isFunction(A.toTemplateReplacements)){A=A.toTemplateReplacements()}return this.template.gsub(this.pattern,function(D){if(A==null){return""}var F=D[1]||"";if(F=="\\"){return D[2]}var B=A,G=D[3];var E=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;D=E.exec(G);if(D==null){return F}while(D!=null){var C=D[1].startsWith("[")?D[2].gsub("\\\\]","]"):D[1];B=B[C];if(null==B||""==D[3]){break}G=G.substring("["==D[3]?D[1].length:D[0].length);D=E.exec(G)}return F+String.interpret(B)})}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;var $break={};var Enumerable={each:function(C,B){var A=0;C=C.bind(B);try{this._each(function(E){C(E,A++)})}catch(D){if(D!=$break){throw D}}return this},eachSlice:function(D,C,B){C=C?C.bind(B):Prototype.K;var A=-D,E=[],F=this.toArray();while((A+=D)<F.length){E.push(F.slice(A,A+D))}return E.collect(C,B)},all:function(C,B){C=C?C.bind(B):Prototype.K;var A=true;this.each(function(E,D){A=A&&!!C(E,D);if(!A){throw $break}});return A},any:function(C,B){C=C?C.bind(B):Prototype.K;var A=false;this.each(function(E,D){if(A=!!C(E,D)){throw $break}});return A},collect:function(C,B){C=C?C.bind(B):Prototype.K;var A=[];this.each(function(E,D){A.push(C(E,D))});return A},detect:function(C,B){C=C.bind(B);var A;this.each(function(E,D){if(C(E,D)){A=E;throw $break}});return A},findAll:function(C,B){C=C.bind(B);var A=[];this.each(function(E,D){if(C(E,D)){A.push(E)}});return A},grep:function(D,C,B){C=C?C.bind(B):Prototype.K;var A=[];if(Object.isString(D)){D=new RegExp(D)}this.each(function(F,E){if(D.match(F)){A.push(C(F,E))}});return A},include:function(A){if(Object.isFunction(this.indexOf)){if(this.indexOf(A)!=-1){return true}}var B=false;this.each(function(C){if(C==A){B=true;throw $break}});return B},inGroupsOf:function(B,A){A=Object.isUndefined(A)?null:A;return this.eachSlice(B,function(C){while(C.length<B){C.push(A)}return C})},inject:function(A,C,B){C=C.bind(B);this.each(function(E,D){A=C(A,E,D)});return A},invoke:function(B){var A=$A(arguments).slice(1);return this.map(function(C){return C[B].apply(C,A)})},max:function(C,B){C=C?C.bind(B):Prototype.K;var A;this.each(function(E,D){E=C(E,D);if(A==null||E>=A){A=E}});return A},min:function(C,B){C=C?C.bind(B):Prototype.K;var A;this.each(function(E,D){E=C(E,D);if(A==null||E<A){A=E}});return A},partition:function(D,B){D=D?D.bind(B):Prototype.K;var C=[],A=[];this.each(function(F,E){(D(F,E)?C:A).push(F)});return[C,A]},pluck:function(B){var A=[];this.each(function(C){A.push(C[B])});return A},reject:function(C,B){C=C.bind(B);var A=[];this.each(function(E,D){if(!C(E,D)){A.push(E)}});return A},sortBy:function(B,A){B=B.bind(A);return this.map(function(D,C){return{value:D,criteria:B(D,C)}}).sort(function(F,E){var D=F.criteria,C=E.criteria;return D<C?-1:D>C?1:0}).pluck("value")},toArray:function(){return this.map()},zip:function(){var B=Prototype.K,A=$A(arguments);if(Object.isFunction(A.last())){B=A.pop()}var C=[this].concat(A).map($A);return this.map(function(E,D){return B(C.pluck(D))})},size:function(){return this.toArray().length},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray,every:Enumerable.all,some:Enumerable.any});function $A(C){if(!C){return[]}if(C.toArray){return C.toArray()}var B=C.length||0,A=new Array(B);while(B--){A[B]=C[B]}return A}if(Prototype.Browser.WebKit){$A=function(C){if(!C){return[]}if(!(Object.isFunction(C)&&C=="[object NodeList]")&&C.toArray){return C.toArray()}var B=C.length||0,A=new Array(B);while(B--){A[B]=C[B]}return A}}Array.from=$A;Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse){Array.prototype._reverse=Array.prototype.reverse}Object.extend(Array.prototype,{_each:function(B){for(var A=0,C=this.length;A<C;A++){B(this[A])}},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(A){return A!=null})},flatten:function(){return this.inject([],function(B,A){return B.concat(Object.isArray(A)?A.flatten():[A])})},without:function(){var A=$A(arguments);return this.select(function(B){return !A.include(B)})},reverse:function(A){return(A!==false?this:this.toArray())._reverse()},reduce:function(){return this.length>1?this:this[0]},uniq:function(A){return this.inject([],function(D,C,B){if(0==B||(A?D.last()!=C:!D.include(C))){D.push(C)}return D})},intersect:function(A){return this.uniq().findAll(function(B){return A.detect(function(C){return B===C})})},clone:function(){return[].concat(this)},size:function(){return this.length},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"},toJSON:function(){var A=[];this.each(function(B){var C=Object.toJSON(B);if(!Object.isUndefined(C)){A.push(C)}});return"["+A.join(", ")+"]"}});if(Object.isFunction(Array.prototype.forEach)){Array.prototype._each=Array.prototype.forEach}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(C,A){A||(A=0);var B=this.length;if(A<0){A=B+A}for(;A<B;A++){if(this[A]===C){return A}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(B,A){A=isNaN(A)?this.length:(A<0?this.length+A:A)+1;var C=this.slice(0,A).reverse().indexOf(B);return(C<0)?C:A-C-1}}Array.prototype.toArray=Array.prototype.clone;function $w(A){if(!Object.isString(A)){return[]}A=A.strip();return A?A.split(/\s+/):[]}if(Prototype.Browser.Opera){Array.prototype.concat=function(){var E=[];for(var B=0,C=this.length;B<C;B++){E.push(this[B])}for(var B=0,C=arguments.length;B<C;B++){if(Object.isArray(arguments[B])){for(var A=0,D=arguments[B].length;A<D;A++){E.push(arguments[B][A])}}else{E.push(arguments[B])}}return E}}Object.extend(Number.prototype,{toColorPart:function(){return this.toPaddedString(2,16)},succ:function(){return this+1},times:function(A){$R(0,this,true).each(A);return this},toPaddedString:function(C,B){var A=this.toString(B||10);return"0".times(C-A.length)+A},toJSON:function(){return isFinite(this)?this.toString():"null"}});$w("abs round ceil floor").each(function(A){Number.prototype[A]=Math[A].methodize()});function $H(A){return new Hash(A)}var Hash=Class.create(Enumerable,(function(){function A(B,C){if(Object.isUndefined(C)){return B}return B+"="+encodeURIComponent(String.interpret(C))}return{initialize:function(B){this._object=Object.isHash(B)?B.toObject():Object.clone(B)},_each:function(C){for(var B in this._object){var D=this._object[B],E=[B,D];E.key=B;E.value=D;C(E)}},set:function(B,C){return this._object[B]=C},get:function(B){return this._object[B]},unset:function(B){var C=this._object[B];delete this._object[B];return C},toObject:function(){return Object.clone(this._object)},keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},index:function(C){var B=this.detect(function(D){return D.value===C});return B&&B.key},merge:function(B){return this.clone().update(B)},update:function(B){return new Hash(B).inject(this,function(C,D){C.set(D.key,D.value);return C})},toQueryString:function(){return this.map(function(D){var C=encodeURIComponent(D.key),B=D.value;if(B&&typeof B=="object"){if(Object.isArray(B)){return B.map(A.curry(C)).join("&")}}return A(C,B)}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(B){return B.map(Object.inspect).join(": ")}).join(", ")+"}>"},toJSON:function(){return Object.toJSON(this.toObject())},clone:function(){return new Hash(this)}}})());Hash.prototype.toTemplateReplacements=Hash.prototype.toObject;Hash.from=$H;var ObjectRange=Class.create(Enumerable,{initialize:function(C,A,B){this.start=C;this.end=A;this.exclusive=B},_each:function(A){var B=this.start;while(this.include(B)){A(B);B=B.succ()}},include:function(A){if(A<this.start){return false}if(this.exclusive){return A<this.end}return A<=this.end}});var $R=function(C,A,B){return new ObjectRange(C,A,B)};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(A){this.responders._each(A)},register:function(A){if(!this.include(A)){this.responders.push(A)}},unregister:function(A){this.responders=this.responders.without(A)},dispatch:function(D,B,C,A){this.each(function(E){if(Object.isFunction(E[D])){try{E[D].apply(E,[B,C,A])}catch(F){}}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=Class.create({initialize:function(A){this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",encoding:"UTF-8",parameters:"",evalJSON:true,evalJS:true};Object.extend(this.options,A||{});this.options.method=this.options.method.toLowerCase();if(Object.isString(this.options.parameters)){this.options.parameters=this.options.parameters.toQueryParams()}else{if(Object.isHash(this.options.parameters)){this.options.parameters=this.options.parameters.toObject()}}}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,B,A){$super(A);this.transport=Ajax.getTransport();this.request(B)},request:function(B){this.url=B;this.method=this.options.method;var D=Object.clone(this.options.parameters);if(!["get","post"].include(this.method)){D._method=this.method;this.method="post"}this.parameters=D;if(D=Object.toQueryString(D)){if(this.method=="get"){this.url+=(this.url.include("?")?"&":"?")+D}else{if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){D+="&_="}}}try{var A=new Ajax.Response(this);if(this.options.onCreate){this.options.onCreate(A)}Ajax.Responders.dispatch("onCreate",this,A);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous){this.respondToReadyState.bind(this).defer(1)}this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.body=this.method=="post"?(this.options.postBody||D):null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()}}catch(C){this.dispatchException(C)}},onStateChange:function(){var A=this.transport.readyState;if(A>1&&!((A==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)}},setRequestHeaders:function(){var E={"X-Requested-With":"XMLHttpRequest","X-Prototype-Version":Prototype.Version,Accept:"text/javascript, text/html, application/xml, text/xml, */*"};if(this.method=="post"){E["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){E.Connection="close"}}if(typeof this.options.requestHeaders=="object"){var C=this.options.requestHeaders;if(Object.isFunction(C.push)){for(var B=0,D=C.length;B<D;B+=2){E[C[B]]=C[B+1]}}else{$H(C).each(function(F){E[F.key]=F.value})}}for(var A in E){this.transport.setRequestHeader(A,E[A])}},success:function(){var A=this.getStatus();return !A||(A>=200&&A<300)},getStatus:function(){try{return this.transport.status||0}catch(A){return 0}},respondToReadyState:function(A){var C=Ajax.Request.Events[A],B=new Ajax.Response(this);if(C=="Complete"){try{this._complete=true;(this.options["on"+B.status]||this.options["on"+(this.success()?"Success":"Failure")]||Prototype.emptyFunction)(B,B.headerJSON)}catch(D){this.dispatchException(D)}var E=B.getHeader("Content-type");if(this.options.evalJS=="force"||(this.options.evalJS&&this.isSameOrigin()&&E&&E.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))){this.evalResponse()}}try{(this.options["on"+C]||Prototype.emptyFunction)(B,B.headerJSON);Ajax.Responders.dispatch("on"+C,this,B,B.headerJSON)}catch(D){this.dispatchException(D)}if(C=="Complete"){this.transport.onreadystatechange=Prototype.emptyFunction}},isSameOrigin:function(){var A=this.url.match(/^\s*https?:\/\/[^\/]*/);return !A||(A[0]=="#{protocol}//#{domain}#{port}".interpolate({protocol:location.protocol,domain:document.domain,port:location.port?":"+location.port:""}))},getHeader:function(A){try{return this.transport.getResponseHeader(A)||null}catch(B){return null}},evalResponse:function(){try{return eval((this.transport.responseText||"").unfilterJSON())}catch(e){this.dispatchException(e)}},dispatchException:function(A){(this.options.onException||Prototype.emptyFunction)(this,A);Ajax.Responders.dispatch("onException",this,A)}});Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Response=Class.create({initialize:function(C){this.request=C;var D=this.transport=C.transport,A=this.readyState=D.readyState;if((A>2&&!Prototype.Browser.IE)||A==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(D.responseText);this.headerJSON=this._getHeaderJSON()}if(A==4){var B=D.responseXML;this.responseXML=Object.isUndefined(B)?null:B;this.responseJSON=this._getResponseJSON()}},status:0,statusText:"",getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||""}catch(A){return""}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders()}catch(A){return null}},getResponseHeader:function(A){return this.transport.getResponseHeader(A)},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders()},_getHeaderJSON:function(){var A=this.getHeader("X-JSON");if(!A){return null}A=decodeURIComponent(escape(A));try{return A.evalJSON(this.request.options.sanitizeJSON||!this.request.isSameOrigin())}catch(B){this.request.dispatchException(B)}},_getResponseJSON:function(){var A=this.request.options;if(!A.evalJSON||(A.evalJSON!="force"&&!(this.getHeader("Content-type")||"").include("application/json"))||this.responseText.blank()){return null}try{return this.responseText.evalJSON(A.sanitizeJSON||!this.request.isSameOrigin())}catch(B){this.request.dispatchException(B)}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,A,C,B){this.container={success:(A.success||A),failure:(A.failure||(A.success?null:A))};B=Object.clone(B);var D=B.onComplete;B.onComplete=(function(E,F){this.updateContent(E.responseText);if(Object.isFunction(D)){D(E,F)}}).bind(this);$super(C,B)},updateContent:function(D){var C=this.container[this.success()?"success":"failure"],A=this.options;if(!A.evalScripts){D=D.stripScripts()}if(C=$(C)){if(A.insertion){if(Object.isString(A.insertion)){var B={};B[A.insertion]=D;C.insert(B)}else{A.insertion(C,D)}}else{C.update(D)}}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,A,C,B){$super(B);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=A;this.url=C;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(A){if(this.options.decay){this.decay=(A.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=A.responseText}this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});function $(B){if(arguments.length>1){for(var A=0,D=[],C=arguments.length;A<C;A++){D.push($(arguments[A]))}return D}if(Object.isString(B)){B=document.getElementById(B)}return Element.extend(B)}if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(F,A){var C=[];var E=document.evaluate(F,$(A)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var B=0,D=E.snapshotLength;B<D;B++){C.push(Element.extend(E.snapshotItem(B)))}return C}}if(!window.Node){var Node={}}if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12})}(function(){var A=this.Element;this.Element=function(D,C){C=C||{};D=D.toLowerCase();var B=Element.cache;if(Prototype.Browser.IE&&C.name){D="<"+D+' name="'+C.name+'">';delete C.name;return Element.writeAttribute(document.createElement(D),C)}if(!B[D]){B[D]=Element.extend(document.createElement(D))}return Element.writeAttribute(B[D].cloneNode(false),C)};Object.extend(this.Element,A||{})}).call(window);Element.cache={};Element.Methods={visible:function(A){return $(A).style.display!="none"},toggle:function(A){A=$(A);Element[Element.visible(A)?"hide":"show"](A);return A},hide:function(A){$(A).style.display="none";return A},show:function(A){$(A).style.display="";return A},remove:function(A){A=$(A);A.parentNode.removeChild(A);return A},update:function(A,B){A=$(A);if(B&&B.toElement){B=B.toElement()}if(Object.isElement(B)){return A.update().insert(B)}B=Object.toHTML(B);A.innerHTML=B.stripScripts();B.evalScripts.bind(B).defer();return A},replace:function(B,C){B=$(B);if(C&&C.toElement){C=C.toElement()}else{if(!Object.isElement(C)){C=Object.toHTML(C);var A=B.ownerDocument.createRange();A.selectNode(B);C.evalScripts.bind(C).defer();C=A.createContextualFragment(C.stripScripts())}}B.parentNode.replaceChild(C,B);return B},insert:function(C,E){C=$(C);if(Object.isString(E)||Object.isNumber(E)||Object.isElement(E)||(E&&(E.toElement||E.toHTML))){E={bottom:E}}var D,F,B,G;for(var A in E){D=E[A];A=A.toLowerCase();F=Element._insertionTranslations[A];if(D&&D.toElement){D=D.toElement()}if(Object.isElement(D)){F(C,D);continue}D=Object.toHTML(D);B=((A=="before"||A=="after")?C.parentNode:C).tagName.toUpperCase();G=Element._getContentFromAnonymousElement(B,D.stripScripts());if(A=="top"||A=="after"){G.reverse()}G.each(F.curry(C));D.evalScripts.bind(D).defer()}return C},wrap:function(B,C,A){B=$(B);if(Object.isElement(C)){$(C).writeAttribute(A||{})}else{if(Object.isString(C)){C=new Element(C,A)}else{C=new Element("div",C)}}if(B.parentNode){B.parentNode.replaceChild(C,B)}C.appendChild(B);return C},inspect:function(B){B=$(B);var A="<"+B.tagName.toLowerCase();$H({id:"id",className:"class"}).each(function(F){var E=F.first(),C=F.last();var D=(B[E]||"").toString();if(D){A+=" "+C+"="+D.inspect(true)}});return A+">"},recursivelyCollect:function(A,C){A=$(A);var B=[];while(A=A[C]){if(A.nodeType==1){B.push(Element.extend(A))}}return B},ancestors:function(A){return $(A).recursivelyCollect("parentNode")},descendants:function(A){return $(A).select("*")},firstDescendant:function(A){A=$(A).firstChild;while(A&&A.nodeType!=1){A=A.nextSibling}return $(A)},immediateDescendants:function(A){if(!(A=$(A).firstChild)){return[]}while(A&&A.nodeType!=1){A=A.nextSibling}if(A){return[A].concat($(A).nextSiblings())}return[]},previousSiblings:function(A){return $(A).recursivelyCollect("previousSibling")},nextSiblings:function(A){return $(A).recursivelyCollect("nextSibling")},siblings:function(A){A=$(A);return A.previousSiblings().reverse().concat(A.nextSiblings())},match:function(B,A){if(Object.isString(A)){A=new Selector(A)}return A.match($(B))},up:function(B,D,A){B=$(B);if(arguments.length==1){return $(B.parentNode)}var C=B.ancestors();return Object.isNumber(D)?C[D]:Selector.findElement(C,D,A)},down:function(B,C,A){B=$(B);if(arguments.length==1){return B.firstDescendant()}return Object.isNumber(C)?B.descendants()[C]:B.select(C)[A||0]},previous:function(B,D,A){B=$(B);if(arguments.length==1){return $(Selector.handlers.previousElementSibling(B))}var C=B.previousSiblings();return Object.isNumber(D)?C[D]:Selector.findElement(C,D,A)},next:function(C,D,B){C=$(C);if(arguments.length==1){return $(Selector.handlers.nextElementSibling(C))}var A=C.nextSiblings();return Object.isNumber(D)?A[D]:Selector.findElement(A,D,B)},select:function(){var A=$A(arguments),B=$(A.shift());return Selector.findChildElements(B,A)},adjacent:function(){var A=$A(arguments),B=$(A.shift());return Selector.findChildElements(B.parentNode,A).without(B)},identify:function(B){B=$(B);var C=B.readAttribute("id"),A=arguments.callee;if(C){return C}do{C="anonymous_element_"+A.counter++}while($(C));B.writeAttribute("id",C);return C},readAttribute:function(C,A){C=$(C);if(Prototype.Browser.IE){var B=Element._attributeTranslations.read;if(B.values[A]){return B.values[A](C,A)}if(B.names[A]){A=B.names[A]}if(A.include(":")){return(!C.attributes||!C.attributes[A])?null:C.attributes[A].value}}return C.getAttribute(A)},writeAttribute:function(E,C,F){E=$(E);var B={},D=Element._attributeTranslations.write;if(typeof C=="object"){B=C}else{B[C]=Object.isUndefined(F)?true:F}for(var A in B){C=D.names[A]||A;F=B[A];if(D.values[A]){C=D.values[A](E,F)}if(F===false||F===null){E.removeAttribute(C)}else{if(F===true){E.setAttribute(C,C)}else{E.setAttribute(C,F)}}}return E},getHeight:function(A){return $(A).getDimensions().height},getWidth:function(A){return $(A).getDimensions().width},classNames:function(A){return new Element.ClassNames(A)},hasClassName:function(A,B){if(!(A=$(A))){return}var C=A.className;return(C.length>0&&(C==B||new RegExp("(^|\\s)"+B+"(\\s|$)").test(C)))},addClassName:function(A,B){if(!(A=$(A))){return}if(!A.hasClassName(B)){A.className+=(A.className?" ":"")+B}return A},removeClassName:function(A,B){if(!(A=$(A))){return}A.className=A.className.replace(new RegExp("(^|\\s+)"+B+"(\\s+|$)")," ").strip();return A},toggleClassName:function(A,B){if(!(A=$(A))){return}return A[A.hasClassName(B)?"removeClassName":"addClassName"](B)},cleanWhitespace:function(B){B=$(B);var C=B.firstChild;while(C){var A=C.nextSibling;if(C.nodeType==3&&!/\S/.test(C.nodeValue)){B.removeChild(C)}C=A}return B},empty:function(A){return $(A).innerHTML.blank()},descendantOf:function(D,C){D=$(D),C=$(C);var F=C;if(D.compareDocumentPosition){return(D.compareDocumentPosition(C)&8)===8}if(D.sourceIndex&&!Prototype.Browser.Opera){var E=D.sourceIndex,B=C.sourceIndex,A=C.nextSibling;if(!A){do{C=C.parentNode}while(!(A=C.nextSibling)&&C.parentNode)}if(A&&A.sourceIndex){return(E>B&&E<A.sourceIndex)}}while(D=D.parentNode){if(D==F){return true}}return false},scrollTo:function(A){A=$(A);var B=A.cumulativeOffset();window.scrollTo(B[0],B[1]);return A},getStyle:function(B,C){B=$(B);C=C=="float"?"cssFloat":C.camelize();var D=B.style[C];if(!D){var A=document.defaultView.getComputedStyle(B,null);D=A?A[C]:null}if(C=="opacity"){return D?parseFloat(D):1}return D=="auto"?null:D},getOpacity:function(A){return $(A).getStyle("opacity")},setStyle:function(B,C){B=$(B);var E=B.style,A;if(Object.isString(C)){B.style.cssText+=";"+C;return C.include("opacity")?B.setOpacity(C.match(/opacity:\s*(\d?\.?\d*)/)[1]):B}for(var D in C){if(D=="opacity"){B.setOpacity(C[D])}else{E[(D=="float"||D=="cssFloat")?(Object.isUndefined(E.styleFloat)?"cssFloat":"styleFloat"):D]=C[D]}}return B},setOpacity:function(A,B){A=$(A);A.style.opacity=(B==1||B==="")?"":(B<0.00001)?0:B;return A},getDimensions:function(C){C=$(C);var G=$(C).getStyle("display");if(G!="none"&&G!=null){return{width:C.offsetWidth,height:C.offsetHeight}}var B=C.style;var F=B.visibility;var D=B.position;var A=B.display;B.visibility="hidden";B.position="absolute";B.display="block";var H=C.clientWidth;var E=C.clientHeight;B.display=A;B.position=D;B.visibility=F;return{width:H,height:E}},makePositioned:function(A){A=$(A);var B=Element.getStyle(A,"position");if(B=="static"||!B){A._madePositioned=true;A.style.position="relative";if(window.opera){A.style.top=0;A.style.left=0}}return A},undoPositioned:function(A){A=$(A);if(A._madePositioned){A._madePositioned=undefined;A.style.position=A.style.top=A.style.left=A.style.bottom=A.style.right=""}return A},makeClipping:function(A){A=$(A);if(A._overflow){return A}A._overflow=Element.getStyle(A,"overflow")||"auto";if(A._overflow!=="hidden"){A.style.overflow="hidden"}return A},undoClipping:function(A){A=$(A);if(!A._overflow){return A}A.style.overflow=A._overflow=="auto"?"":A._overflow;A._overflow=null;return A},cumulativeOffset:function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent}while(B);return Element._returnOffset(C,A)},positionedOffset:function(B){var A=0,D=0;do{A+=B.offsetTop||0;D+=B.offsetLeft||0;B=B.offsetParent;if(B){if(B.tagName=="BODY"){break}var C=Element.getStyle(B,"position");if(C!=="static"){break}}}while(B);return Element._returnOffset(D,A)},absolutize:function(B){B=$(B);if(B.getStyle("position")=="absolute"){return}var D=B.positionedOffset();var F=D[1];var E=D[0];var C=B.clientWidth;var A=B.clientHeight;B._originalLeft=E-parseFloat(B.style.left||0);B._originalTop=F-parseFloat(B.style.top||0);B._originalWidth=B.style.width;B._originalHeight=B.style.height;B.style.position="absolute";B.style.top=F+"px";B.style.left=E+"px";B.style.width=C+"px";B.style.height=A+"px";return B},relativize:function(A){A=$(A);if(A.getStyle("position")=="relative"){return}A.style.position="relative";var C=parseFloat(A.style.top||0)-(A._originalTop||0);var B=parseFloat(A.style.left||0)-(A._originalLeft||0);A.style.top=C+"px";A.style.left=B+"px";A.style.height=A._originalHeight;A.style.width=A._originalWidth;return A},cumulativeScrollOffset:function(B){var A=0,C=0;do{A+=B.scrollTop||0;C+=B.scrollLeft||0;B=B.parentNode}while(B);return Element._returnOffset(C,A)},getOffsetParent:function(A){if(A.offsetParent){return $(A.offsetParent)}if(A==document.body){return $(A)}while((A=A.parentNode)&&A!=document.body){if(Element.getStyle(A,"position")!="static"){return $(A)}}return $(document.body)},viewportOffset:function(D){var A=0,C=0;var B=D;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;if(B.offsetParent==document.body&&Element.getStyle(B,"position")=="absolute"){break}}while(B=B.offsetParent);B=D;do{if(!Prototype.Browser.Opera||B.tagName=="BODY"){A-=B.scrollTop||0;C-=B.scrollLeft||0}}while(B=B.parentNode);return Element._returnOffset(C,A)},clonePosition:function(B,D){var A=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});D=$(D);var E=D.viewportOffset();B=$(B);var F=[0,0];var C=null;if(Element.getStyle(B,"position")=="absolute"){C=B.getOffsetParent();F=C.viewportOffset()}if(C==document.body){F[0]-=document.body.offsetLeft;F[1]-=document.body.offsetTop}if(A.setLeft){B.style.left=(E[0]-F[0]+A.offsetLeft)+"px"}if(A.setTop){B.style.top=(E[1]-F[1]+A.offsetTop)+"px"}if(A.setWidth){B.style.width=D.offsetWidth+"px"}if(A.setHeight){B.style.height=D.offsetHeight+"px"}return B}};Element.Methods.identify.counter=1;Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:"class",htmlFor:"for"},values:{}}};if(Prototype.Browser.Opera){Element.Methods.getStyle=Element.Methods.getStyle.wrap(function(D,B,C){switch(C){case"left":case"top":case"right":case"bottom":if(D(B,"position")==="static"){return null}case"height":case"width":if(!Element.visible(B)){return null}var E=parseInt(D(B,C),10);if(E!==B["offset"+C.capitalize()]){return E+"px"}var A;if(C==="height"){A=["border-top-width","padding-top","padding-bottom","border-bottom-width"]}else{A=["border-left-width","padding-left","padding-right","border-right-width"]}return A.inject(E,function(F,G){var H=D(B,G);return H===null?F:F-parseInt(H,10)})+"px";default:return D(B,C)}});Element.Methods.readAttribute=Element.Methods.readAttribute.wrap(function(C,A,B){if(B==="title"){return A.title}return C(A,B)})}else{if(Prototype.Browser.IE){Element.Methods.getOffsetParent=Element.Methods.getOffsetParent.wrap(function(C,B){B=$(B);var A=B.getStyle("position");if(A!=="static"){return C(B)}B.setStyle({position:"relative"});var D=C(B);B.setStyle({position:A});return D});$w("positionedOffset viewportOffset").each(function(A){Element.Methods[A]=Element.Methods[A].wrap(function(E,C){C=$(C);var B=C.getStyle("position");if(B!=="static"){return E(C)}var D=C.getOffsetParent();if(D&&D.getStyle("position")==="fixed"){D.setStyle({zoom:1})}C.setStyle({position:"relative"});var F=E(C);C.setStyle({position:B});return F})});Element.Methods.getStyle=function(A,B){A=$(A);B=(B=="float"||B=="cssFloat")?"styleFloat":B.camelize();var C=A.style[B];if(!C&&A.currentStyle){C=A.currentStyle[B]}if(B=="opacity"){if(C=(A.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){if(C[1]){return parseFloat(C[1])/100}}return 1}if(C=="auto"){if((B=="width"||B=="height")&&(A.getStyle("display")!="none")){return A["offset"+B.capitalize()]+"px"}return null}return C};Element.Methods.setOpacity=function(B,E){function F(G){return G.replace(/alpha\([^\)]*\)/gi,"")}B=$(B);var A=B.currentStyle;if((A&&!A.hasLayout)||(!A&&B.style.zoom=="normal")){B.style.zoom=1}var D=B.getStyle("filter"),C=B.style;if(E==1||E===""){(D=F(D))?C.filter=D:C.removeAttribute("filter");return B}else{if(E<0.00001){E=0}}C.filter=F(D)+"alpha(opacity="+(E*100)+")";return B};Element._attributeTranslations={read:{names:{"class":"className","for":"htmlFor"},values:{_getAttr:function(A,B){return A.getAttribute(B,2)},_getAttrNode:function(A,C){var B=A.getAttributeNode(C);return B?B.value:""},_getEv:function(A,B){B=A.getAttribute(B);return B?B.toString().slice(23,-2):null},_flag:function(A,B){return $(A).hasAttribute(B)?B:null},style:function(A){return A.style.cssText.toLowerCase()},title:function(A){return A.title}}}};Element._attributeTranslations.write={names:Object.extend({cellpadding:"cellPadding",cellspacing:"cellSpacing"},Element._attributeTranslations.read.names),values:{checked:function(A,B){A.checked=!!B},style:function(A,B){A.style.cssText=B?B:""}}};Element._attributeTranslations.has={};$w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc").each(function(A){Element._attributeTranslations.write.names[A.toLowerCase()]=A;Element._attributeTranslations.has[A.toLowerCase()]=A});(function(A){Object.extend(A,{href:A._getAttr,src:A._getAttr,type:A._getAttr,action:A._getAttrNode,disabled:A._flag,checked:A._flag,readonly:A._flag,multiple:A._flag,onload:A._getEv,onunload:A._getEv,onclick:A._getEv,ondblclick:A._getEv,onmousedown:A._getEv,onmouseup:A._getEv,onmouseover:A._getEv,onmousemove:A._getEv,onmouseout:A._getEv,onfocus:A._getEv,onblur:A._getEv,onkeypress:A._getEv,onkeydown:A._getEv,onkeyup:A._getEv,onsubmit:A._getEv,onreset:A._getEv,onselect:A._getEv,onchange:A._getEv})})(Element._attributeTranslations.read.values)}else{if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(A,B){A=$(A);A.style.opacity=(B==1)?0.999999:(B==="")?"":(B<0.00001)?0:B;return A}}else{if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(A,B){A=$(A);A.style.opacity=(B==1||B==="")?"":(B<0.00001)?0:B;if(B==1){if(A.tagName=="IMG"&&A.width){A.width++;A.width--}else{try{var D=document.createTextNode(" ");A.appendChild(D);A.removeChild(D)}catch(C){}}}return A};Element.Methods.cumulativeOffset=function(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;if(B.offsetParent==document.body){if(Element.getStyle(B,"position")=="absolute"){break}}B=B.offsetParent}while(B);return Element._returnOffset(C,A)}}}}}if(Prototype.Browser.IE||Prototype.Browser.Opera){Element.Methods.update=function(B,C){B=$(B);if(C&&C.toElement){C=C.toElement()}if(Object.isElement(C)){return B.update().insert(C)}C=Object.toHTML(C);var A=B.tagName.toUpperCase();if(A in Element._insertionTranslations.tags){$A(B.childNodes).each(function(D){B.removeChild(D)});Element._getContentFromAnonymousElement(A,C.stripScripts()).each(function(D){B.appendChild(D)})}else{B.innerHTML=C.stripScripts()}C.evalScripts.bind(C).defer();return B}}if("outerHTML" in document.createElement("div")){Element.Methods.replace=function(C,E){C=$(C);if(E&&E.toElement){E=E.toElement()}if(Object.isElement(E)){C.parentNode.replaceChild(E,C);return C}E=Object.toHTML(E);var D=C.parentNode,B=D.tagName.toUpperCase();if(Element._insertionTranslations.tags[B]){var F=C.next();var A=Element._getContentFromAnonymousElement(B,E.stripScripts());D.removeChild(C);if(F){A.each(function(G){D.insertBefore(G,F)})}else{A.each(function(G){D.appendChild(G)})}}else{C.outerHTML=E.stripScripts()}E.evalScripts.bind(E).defer();return C}}Element._returnOffset=function(B,C){var A=[B,C];A.left=B;A.top=C;return A};Element._getContentFromAnonymousElement=function(C,B){var D=new Element("div"),A=Element._insertionTranslations.tags[C];if(A){D.innerHTML=A[0]+B+A[1];A[2].times(function(){D=D.firstChild})}else{D.innerHTML=B}return $A(D.childNodes)};Element._insertionTranslations={before:function(A,B){A.parentNode.insertBefore(B,A)},top:function(A,B){A.insertBefore(B,A.firstChild)},bottom:function(A,B){A.appendChild(B)},after:function(A,B){A.parentNode.insertBefore(B,A.nextSibling)},tags:{TABLE:["<table>","</table>",1],TBODY:["<table><tbody>","</tbody></table>",2],TR:["<table><tbody><tr>","</tr></tbody></table>",3],TD:["<table><tbody><tr><td>","</td></tr></tbody></table>",4],SELECT:["<select>","</select>",1]}};(function(){Object.extend(this.tags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD})}).call(Element._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(A,C){C=Element._attributeTranslations.has[C]||C;var B=$(A).getAttributeNode(C);return B&&B.specified}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);if(!Prototype.BrowserFeatures.ElementExtensions&&document.createElement("div").__proto__){window.HTMLElement={};window.HTMLElement.prototype=document.createElement("div").__proto__;Prototype.BrowserFeatures.ElementExtensions=true}Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtensions){return Prototype.K}var A={},B=Element.Methods.ByTag;var C=Object.extend(function(F){if(!F||F._extendedByPrototype||F.nodeType!=1||F==window){return F}var D=Object.clone(A),E=F.tagName,H,G;if(B[E]){Object.extend(D,B[E])}for(H in D){G=D[H];if(Object.isFunction(G)&&!(H in F)){F[H]=G.methodize()}}F._extendedByPrototype=Prototype.emptyFunction;return F},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(A,Element.Methods);Object.extend(A,Element.Methods.Simulated)}}});C.refresh();return C})();Element.hasAttribute=function(A,B){if(A.hasAttribute){return A.hasAttribute(B)}return Element.Methods.Simulated.hasAttribute(A,B)};Element.addMethods=function(C){var I=Prototype.BrowserFeatures,D=Element.Methods.ByTag;if(!C){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{FORM:Object.clone(Form.Methods),INPUT:Object.clone(Form.Element.Methods),SELECT:Object.clone(Form.Element.Methods),TEXTAREA:Object.clone(Form.Element.Methods)})}if(arguments.length==2){var B=C;C=arguments[1]}if(!B){Object.extend(Element.Methods,C||{})}else{if(Object.isArray(B)){B.each(H)}else{H(B)}}function H(F){F=F.toUpperCase();if(!Element.Methods.ByTag[F]){Element.Methods.ByTag[F]={}}Object.extend(Element.Methods.ByTag[F],C)}function A(L,K,F){F=F||false;for(var N in L){var M=L[N];if(!Object.isFunction(M)){continue}if(!F||!(N in K)){K[N]=M.methodize()}}}function E(L){var F;var K={OPTGROUP:"OptGroup",TEXTAREA:"TextArea",P:"Paragraph",FIELDSET:"FieldSet",UL:"UList",OL:"OList",DL:"DList",DIR:"Directory",H1:"Heading",H2:"Heading",H3:"Heading",H4:"Heading",H5:"Heading",H6:"Heading",Q:"Quote",INS:"Mod",DEL:"Mod",A:"Anchor",IMG:"Image",CAPTION:"TableCaption",COL:"TableCol",COLGROUP:"TableCol",THEAD:"TableSection",TFOOT:"TableSection",TBODY:"TableSection",TR:"TableRow",TH:"TableCell",TD:"TableCell",FRAMESET:"FrameSet",IFRAME:"IFrame"};if(K[L]){F="HTML"+K[L]+"Element"}if(window[F]){return window[F]}F="HTML"+L+"Element";if(window[F]){return window[F]}F="HTML"+L.capitalize()+"Element";if(window[F]){return window[F]}window[F]={};window[F].prototype=document.createElement(L).__proto__;return window[F]}if(I.ElementExtensions){A(Element.Methods,HTMLElement.prototype);A(Element.Methods.Simulated,HTMLElement.prototype,true)}if(I.SpecificElementExtensions){for(var J in Element.Methods.ByTag){var G=E(J);if(Object.isUndefined(G)){continue}A(D[J],G.prototype)}}Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.refresh){Element.extend.refresh()}Element.cache={}};document.viewport={getDimensions:function(){var A={};var C=Prototype.Browser;$w("width height").each(function(E){var B=E.capitalize();A[E]=(C.WebKit&&!document.evaluate)?self["inner"+B]:(C.Opera)?document.body["client"+B]:document.documentElement["client"+B]});return A},getWidth:function(){return this.getDimensions().width},getHeight:function(){return this.getDimensions().height},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)}};var Selector=Class.create({initialize:function(A){this.expression=A.strip();this.compileMatcher()},shouldUseXPath:function(){if(!Prototype.BrowserFeatures.XPath){return false}var A=this.expression;if(Prototype.Browser.WebKit&&(A.include("-of-type")||A.include(":empty"))){return false}if((/(\[[\w-]*?:|:checked)/).test(this.expression)){return false}return true},compileMatcher:function(){if(this.shouldUseXPath()){return this.compileXPathMatcher()}var e=this.expression,ps=Selector.patterns,h=Selector.handlers,c=Selector.criteria,le,p,m;if(Selector._cache[e]){this.matcher=Selector._cache[e];return}this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){this.matcher.push(Object.isFunction(c[i])?c[i](m):new Template(c[i]).evaluate(m));e=e.replace(m[0],"");break}}}this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join("\n"));Selector._cache[this.expression]=this.matcher},compileXPathMatcher:function(){var E=this.expression,F=Selector.patterns,B=Selector.xpath,D,A;if(Selector._cache[E]){this.xpath=Selector._cache[E];return}this.matcher=[".//*"];while(E&&D!=E&&(/\S/).test(E)){D=E;for(var C in F){if(A=E.match(F[C])){this.matcher.push(Object.isFunction(B[C])?B[C](A):new Template(B[C]).evaluate(A));E=E.replace(A[0],"");break}}}this.xpath=this.matcher.join("");Selector._cache[this.expression]=this.xpath},findElements:function(A){A=A||document;if(this.xpath){return document._getElementsByXPath(this.xpath,A)}return this.matcher(A)},match:function(H){this.tokens=[];var L=this.expression,A=Selector.patterns,E=Selector.assertions;var B,D,F;while(L&&B!==L&&(/\S/).test(L)){B=L;for(var I in A){D=A[I];if(F=L.match(D)){if(E[I]){this.tokens.push([I,Object.clone(F)]);L=L.replace(F[0],"")}else{return this.findElements(document).include(H)}}}}var K=true,C,J;for(var I=0,G;G=this.tokens[I];I++){C=G[0],J=G[1];if(!Selector.assertions[C](H,J)){K=false;break}}return K},toString:function(){return this.expression},inspect:function(){return"#<Selector:"+this.expression.inspect()+">"}});Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:"/following-sibling::*",tagName:function(A){if(A[1]=="*"){return""}return"[local-name()='"+A[1].toLowerCase()+"' or local-name()='"+A[1].toUpperCase()+"']"},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:function(A){A[1]=A[1].toLowerCase();return new Template("[@#{1}]").evaluate(A)},attr:function(A){A[1]=A[1].toLowerCase();A[3]=A[5]||A[6];return new Template(Selector.xpath.operators[A[2]]).evaluate(A)},pseudo:function(A){var B=Selector.xpath.pseudos[A[1]];if(!B){return""}if(Object.isFunction(B)){return B(A)}return new Template(Selector.xpath.pseudos[A[1]]).evaluate(A)},operators:{"=":"[@#{1}='#{3}']","!=":"[@#{1}!='#{3}']","^=":"[starts-with(@#{1}, '#{3}')]","$=":"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']","*=":"[contains(@#{1}, '#{3}')]","~=":"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]","|=":"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{"first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","only-child":"[not(preceding-sibling::* or following-sibling::*)]",empty:"[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]",checked:"[@checked]",disabled:"[@disabled]",enabled:"[not(@disabled)]",not:function(B){var H=B[6],G=Selector.patterns,A=Selector.xpath,E,C;var F=[];while(H&&E!=H&&(/\S/).test(H)){E=H;for(var D in G){if(B=H.match(G[D])){C=Object.isFunction(A[D])?A[D](B):new Template(A[D]).evaluate(B);F.push("("+C.substring(1,C.length-1)+")");H=H.replace(B[0],"");break}}}return"[not("+F.join(" and ")+")]"},"nth-child":function(A){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",A)},"nth-last-child":function(A){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",A)},"nth-of-type":function(A){return Selector.xpath.pseudos.nth("position() ",A)},"nth-last-of-type":function(A){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",A)},"first-of-type":function(A){A[6]="1";return Selector.xpath.pseudos["nth-of-type"](A)},"last-of-type":function(A){A[6]="1";return Selector.xpath.pseudos["nth-last-of-type"](A)},"only-of-type":function(A){var B=Selector.xpath.pseudos;return B["first-of-type"](A)+B["last-of-type"](A)},nth:function(E,C){var F,G=C[6],B;if(G=="even"){G="2n+0"}if(G=="odd"){G="2n+1"}if(F=G.match(/^(\d+)$/)){return"["+E+"= "+F[1]+"]"}if(F=G.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(F[1]=="-"){F[1]=-1}var D=F[1]?Number(F[1]):1;var A=F[2]?Number(F[2]):0;B="[((#{fragment} - #{b}) mod #{a} = 0) and ((#{fragment} - #{b}) div #{a} >= 0)]";return new Template(B).evaluate({fragment:E,a:D,b:A})}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c);   c = false;',className:'n = h.className(n, r, "#{1}", c);  c = false;',id:'n = h.id(n, r, "#{1}", c);      c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}", c); c = false;',attr:function(A){A[3]=(A[5]||A[6]);return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}", c); c = false;').evaluate(A)},pseudo:function(A){if(A[6]){A[6]=A[6].replace(/"/g,'\\"')}return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(A)},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descendant:/^\s/,tagName:/^\s*(\*|[\w\-]+)(\b|$)?/,id:/^#([\w\-\*]+)(\b|$)/,className:/^\.([\w\-\*]+)(\b|$)/,pseudo:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s|[:+~>]))/,attrPresence:/^\[([\w]+)\]/,attr:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/},assertions:{tagName:function(A,B){return B[1].toUpperCase()==A.tagName.toUpperCase()},className:function(A,B){return Element.hasClassName(A,B[1])},id:function(A,B){return A.id===B[1]},attrPresence:function(A,B){return Element.hasAttribute(A,B[1])},attr:function(B,C){var A=Element.readAttribute(B,C[1]);return A&&Selector.operators[C[2]](A,C[5]||C[6])}},handlers:{concat:function(B,A){for(var C=0,D;D=A[C];C++){B.push(D)}return B},mark:function(A){var D=Prototype.emptyFunction;for(var B=0,C;C=A[B];B++){C._countedByPrototype=D}return A},unmark:function(A){for(var B=0,C;C=A[B];B++){C._countedByPrototype=undefined}return A},index:function(A,D,G){A._countedByPrototype=Prototype.emptyFunction;if(D){for(var B=A.childNodes,E=B.length-1,C=1;E>=0;E--){var F=B[E];if(F.nodeType==1&&(!G||F._countedByPrototype)){F.nodeIndex=C++}}}else{for(var E=0,C=1,B=A.childNodes;F=B[E];E++){if(F.nodeType==1&&(!G||F._countedByPrototype)){F.nodeIndex=C++}}}},unique:function(B){if(B.length==0){return B}var D=[],E;for(var C=0,A=B.length;C<A;C++){if(!(E=B[C])._countedByPrototype){E._countedByPrototype=Prototype.emptyFunction;D.push(Element.extend(E))}}return Selector.handlers.unmark(D)},descendant:function(A){var D=Selector.handlers;for(var C=0,B=[],E;E=A[C];C++){D.concat(B,E.getElementsByTagName("*"))}return B},child:function(A){var E=Selector.handlers;for(var D=0,C=[],F;F=A[D];D++){for(var B=0,G;G=F.childNodes[B];B++){if(G.nodeType==1&&G.tagName!="!"){C.push(G)}}}return C},adjacent:function(A){for(var C=0,B=[],E;E=A[C];C++){var D=this.nextElementSibling(E);if(D){B.push(D)}}return B},laterSibling:function(A){var D=Selector.handlers;for(var C=0,B=[],E;E=A[C];C++){D.concat(B,Element.nextSiblings(E))}return B},nextElementSibling:function(A){while(A=A.nextSibling){if(A.nodeType==1){return A}}return null},previousElementSibling:function(A){while(A=A.previousSibling){if(A.nodeType==1){return A}}return null},tagName:function(A,H,C,B){var I=C.toUpperCase();var E=[],G=Selector.handlers;if(A){if(B){if(B=="descendant"){for(var F=0,D;D=A[F];F++){G.concat(E,D.getElementsByTagName(C))}return E}else{A=this[B](A)}if(C=="*"){return A}}for(var F=0,D;D=A[F];F++){if(D.tagName.toUpperCase()===I){E.push(D)}}return E}else{return H.getElementsByTagName(C)}},id:function(B,A,H,F){var G=$(H),D=Selector.handlers;if(!G){return[]}if(!B&&A==document){return[G]}if(B){if(F){if(F=="child"){for(var C=0,E;E=B[C];C++){if(G.parentNode==E){return[G]}}}else{if(F=="descendant"){for(var C=0,E;E=B[C];C++){if(Element.descendantOf(G,E)){return[G]}}}else{if(F=="adjacent"){for(var C=0,E;E=B[C];C++){if(Selector.handlers.previousElementSibling(G)==E){return[G]}}}else{B=D[F](B)}}}}for(var C=0,E;E=B[C];C++){if(E==G){return[G]}}return[]}return(G&&Element.descendantOf(G,A))?[G]:[]},className:function(B,A,C,D){if(B&&D){B=this[D](B)}return Selector.handlers.byClassName(B,A,C)},byClassName:function(C,B,F){if(!C){C=Selector.handlers.descendant([B])}var H=" "+F+" ";for(var E=0,D=[],G,A;G=C[E];E++){A=G.className;if(A.length==0){continue}if(A==F||(" "+A+" ").include(H)){D.push(G)}}return D},attrPresence:function(C,B,A,G){if(!C){C=B.getElementsByTagName("*")}if(C&&G){C=this[G](C)}var E=[];for(var D=0,F;F=C[D];D++){if(Element.hasAttribute(F,A)){E.push(F)}}return E},attr:function(A,I,H,J,C,B){if(!A){A=I.getElementsByTagName("*")}if(A&&B){A=this[B](A)}var K=Selector.operators[C],F=[];for(var E=0,D;D=A[E];E++){var G=Element.readAttribute(D,H);if(G===null){continue}if(K(G,J)){F.push(D)}}return F},pseudo:function(B,C,E,A,D){if(B&&D){B=this[D](B)}if(!B){B=A.getElementsByTagName("*")}return Selector.pseudos[C](B,E,A)}},pseudos:{"first-child":function(B,F,A){for(var D=0,C=[],E;E=B[D];D++){if(Selector.handlers.previousElementSibling(E)){continue}C.push(E)}return C},"last-child":function(B,F,A){for(var D=0,C=[],E;E=B[D];D++){if(Selector.handlers.nextElementSibling(E)){continue}C.push(E)}return C},"only-child":function(B,G,A){var E=Selector.handlers;for(var D=0,C=[],F;F=B[D];D++){if(!E.previousElementSibling(F)&&!E.nextElementSibling(F)){C.push(F)}}return C},"nth-child":function(B,C,A){return Selector.pseudos.nth(B,C,A)},"nth-last-child":function(B,C,A){return Selector.pseudos.nth(B,C,A,true)},"nth-of-type":function(B,C,A){return Selector.pseudos.nth(B,C,A,false,true)},"nth-last-of-type":function(B,C,A){return Selector.pseudos.nth(B,C,A,true,true)},"first-of-type":function(B,C,A){return Selector.pseudos.nth(B,"1",A,false,true)},"last-of-type":function(B,C,A){return Selector.pseudos.nth(B,"1",A,true,true)},"only-of-type":function(B,D,A){var C=Selector.pseudos;return C["last-of-type"](C["first-of-type"](B,D,A),D,A)},getIndices:function(B,A,C){if(B==0){return A>0?[A]:[]}return $R(1,C).inject([],function(D,E){if(0==(E-A)%B&&(E-A)/B>=0){D.push(E)}return D})},nth:function(A,L,N,K,C){if(A.length==0){return[]}if(L=="even"){L="2n+0"}if(L=="odd"){L="2n+1"}var J=Selector.handlers,I=[],B=[],E;J.mark(A);for(var H=0,D;D=A[H];H++){if(!D.parentNode._countedByPrototype){J.index(D.parentNode,K,C);B.push(D.parentNode)}}if(L.match(/^\d+$/)){L=Number(L);for(var H=0,D;D=A[H];H++){if(D.nodeIndex==L){I.push(D)}}}else{if(E=L.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(E[1]=="-"){E[1]=-1}var O=E[1]?Number(E[1]):1;var M=E[2]?Number(E[2]):0;var P=Selector.pseudos.getIndices(O,M,A.length);for(var H=0,D,F=P.length;D=A[H];H++){for(var G=0;G<F;G++){if(D.nodeIndex==P[G]){I.push(D)}}}}}J.unmark(A);J.unmark(B);return I},empty:function(B,F,A){for(var D=0,C=[],E;E=B[D];D++){if(E.tagName=="!"||(E.firstChild&&!E.innerHTML.match(/^\s*$/))){continue}C.push(E)}return C},not:function(A,D,I){var G=Selector.handlers,J,C;var H=new Selector(D).findElements(I);G.mark(H);for(var F=0,E=[],B;B=A[F];F++){if(!B._countedByPrototype){E.push(B)}}G.unmark(H);return E},enabled:function(B,F,A){for(var D=0,C=[],E;E=B[D];D++){if(!E.disabled){C.push(E)}}return C},disabled:function(B,F,A){for(var D=0,C=[],E;E=B[D];D++){if(E.disabled){C.push(E)}}return C},checked:function(B,F,A){for(var D=0,C=[],E;E=B[D];D++){if(E.checked){C.push(E)}}return C}},operators:{"=":function(B,A){return B==A},"!=":function(B,A){return B!=A},"^=":function(B,A){return B.startsWith(A)},"$=":function(B,A){return B.endsWith(A)},"*=":function(B,A){return B.include(A)},"~=":function(B,A){return(" "+B+" ").include(" "+A+" ")},"|=":function(B,A){return("-"+B.toUpperCase()+"-").include("-"+A.toUpperCase()+"-")}},split:function(B){var A=[];B.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(C){A.push(C[1].strip())});return A},matchElements:function(F,G){var E=$$(G),D=Selector.handlers;D.mark(E);for(var C=0,B=[],A;A=F[C];C++){if(A._countedByPrototype){B.push(A)}}D.unmark(E);return B},findElement:function(B,C,A){if(Object.isNumber(C)){A=C;C=false}return Selector.matchElements(B,C||"*")[A||0]},findChildElements:function(E,G){G=Selector.split(G.join(","));var D=[],F=Selector.handlers;for(var C=0,B=G.length,A;C<B;C++){A=new Selector(G[C].strip());F.concat(D,A.findElements(E))}return(B>1)?F.unique(D):D}});if(Prototype.Browser.IE){Object.extend(Selector.handlers,{concat:function(B,A){for(var C=0,D;D=A[C];C++){if(D.tagName!=="!"){B.push(D)}}return B},unmark:function(A){for(var B=0,C;C=A[B];B++){C.removeAttribute("_countedByPrototype")}return A}})}function $$(){return Selector.findChildElements(document,$A(arguments))}var Form={reset:function(A){$(A).reset();return A},serializeElements:function(G,B){if(typeof B!="object"){B={hash:!!B}}else{if(Object.isUndefined(B.hash)){B.hash=true}}var C,F,A=false,E=B.submit;var D=G.inject({},function(H,I){if(!I.disabled&&I.name){C=I.name;F=$(I).getValue();if(F!=null&&(I.type!="submit"||(!A&&E!==false&&(!E||C==E)&&(A=true)))){if(C in H){if(!Object.isArray(H[C])){H[C]=[H[C]]}H[C].push(F)}else{H[C]=F}}}return H});return B.hash?D:Object.toQueryString(D)}};Form.Methods={serialize:function(B,A){return Form.serializeElements(Form.getElements(B),A)},getElements:function(A){return $A($(A).getElementsByTagName("*")).inject([],function(B,C){if(Form.Element.Serializers[C.tagName.toLowerCase()]){B.push(Element.extend(C))}return B})},getInputs:function(G,C,D){G=$(G);var A=G.getElementsByTagName("input");if(!C&&!D){return $A(A).map(Element.extend)}for(var E=0,H=[],F=A.length;E<F;E++){var B=A[E];if((C&&B.type!=C)||(D&&B.name!=D)){continue}H.push(Element.extend(B))}return H},disable:function(A){A=$(A);Form.getElements(A).invoke("disable");return A},enable:function(A){A=$(A);Form.getElements(A).invoke("enable");return A},findFirstElement:function(B){var C=$(B).getElements().findAll(function(D){return"hidden"!=D.type&&!D.disabled});var A=C.findAll(function(D){return D.hasAttribute("tabIndex")&&D.tabIndex>=0}).sortBy(function(D){return D.tabIndex}).first();return A?A:C.find(function(D){return["input","select","textarea"].include(D.tagName.toLowerCase())})},focusFirstElement:function(A){A=$(A);A.findFirstElement().activate();return A},request:function(B,A){B=$(B),A=Object.clone(A||{});var D=A.parameters,C=B.readAttribute("action")||"";if(C.blank()){C=window.location.href}A.parameters=B.serialize(true);if(D){if(Object.isString(D)){D=D.toQueryParams()}Object.extend(A.parameters,D)}if(B.hasAttribute("method")&&!A.method){A.method=B.method}return new Ajax.Request(C,A)}};Form.Element={focus:function(A){$(A).focus();return A},select:function(A){$(A).select();return A}};Form.Element.Methods={serialize:function(A){A=$(A);if(!A.disabled&&A.name){var B=A.getValue();if(B!=undefined){var C={};C[A.name]=B;return Object.toQueryString(C)}}return""},getValue:function(A){A=$(A);var B=A.tagName.toLowerCase();return Form.Element.Serializers[B](A)},setValue:function(A,B){A=$(A);var C=A.tagName.toLowerCase();Form.Element.Serializers[C](A,B);return A},clear:function(A){$(A).value="";return A},present:function(A){return $(A).value!=""},activate:function(A){A=$(A);try{A.focus();if(A.select&&(A.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(A.type))){A.select()}}catch(B){}return A},disable:function(A){A=$(A);A.blur();A.disabled=true;return A},enable:function(A){A=$(A);A.disabled=false;return A}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(A,B){switch(A.type.toLowerCase()){case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(A,B);default:return Form.Element.Serializers.textarea(A,B)}},inputSelector:function(A,B){if(Object.isUndefined(B)){return A.checked?A.value:null}else{A.checked=!!B}},textarea:function(A,B){if(Object.isUndefined(B)){return A.value}else{A.value=B}},select:function(D,A){if(Object.isUndefined(A)){return this[D.type=="select-one"?"selectOne":"selectMany"](D)}else{var C,F,G=!Object.isArray(A);for(var B=0,E=D.length;B<E;B++){C=D.options[B];F=this.optionValue(C);if(G){if(F==A){C.selected=true;return}}else{C.selected=A.include(F)}}}},selectOne:function(B){var A=B.selectedIndex;return A>=0?this.optionValue(B.options[A]):null},selectMany:function(D){var A,E=D.length;if(!E){return null}for(var C=0,A=[];C<E;C++){var B=D.options[C];if(B.selected){A.push(this.optionValue(B))}}return A},optionValue:function(A){return Element.extend(A).hasAttribute("value")?A.value:A.text}};Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,A,B,C){$super(C,B);this.element=$(A);this.lastValue=this.getValue()},execute:function(){var A=this.getValue();if(Object.isString(this.lastValue)&&Object.isString(A)?this.lastValue!=A:String(this.lastValue)!=String(A)){this.callback(this.element,A);this.lastValue=A}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=Class.create({initialize:function(A,B){this.element=$(A);this.callback=B;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=="form"){this.registerFormCallbacks()}else{this.registerCallback(this.element)}},onElementEvent:function(){var A=this.getValue();if(this.lastValue!=A){this.callback(this.element,A);this.lastValue=A}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this)},registerCallback:function(A){if(A.type){switch(A.type.toLowerCase()){case"checkbox":case"radio":Event.observe(A,"click",this.onElementEvent.bind(this));break;default:Event.observe(A,"change",this.onElementEvent.bind(this));break}}}});Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element)}});if(!window.Event){var Event={}}Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{},relatedTarget:function(B){var A;switch(B.type){case"mouseover":A=B.fromElement;break;case"mouseout":A=B.toElement;break;default:return null}return Element.extend(A)}});Event.Methods=(function(){var A;if(Prototype.Browser.IE){var B={0:1,1:4,2:2};A=function(D,C){return D.button==B[C]}}else{if(Prototype.Browser.WebKit){A=function(D,C){switch(C){case 0:return D.which==1&&!D.metaKey;case 1:return D.which==1&&D.metaKey;default:return false}}}else{A=function(D,C){return D.which?(D.which===C+1):(D.button===C)}}}return{isLeftClick:function(C){return A(C,0)},isMiddleClick:function(C){return A(C,1)},isRightClick:function(C){return A(C,2)},element:function(D){var C=Event.extend(D).target;return Element.extend(C.nodeType==Node.TEXT_NODE?C.parentNode:C)},findElement:function(D,F){var C=Event.element(D);if(!F){return C}var E=[C].concat(C.ancestors());return Selector.findElement(E,F,0)},pointer:function(C){return{x:C.pageX||(C.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)),y:C.pageY||(C.clientY+(document.documentElement.scrollTop||document.body.scrollTop))}},pointerX:function(C){return Event.pointer(C).x},pointerY:function(C){return Event.pointer(C).y},stop:function(C){Event.extend(C);C.preventDefault();C.stopPropagation();C.stopped=true}}})();Event.extend=(function(){var A=Object.keys(Event.Methods).inject({},function(B,C){B[C]=Event.Methods[C].methodize();return B});if(Prototype.Browser.IE){Object.extend(A,{stopPropagation:function(){this.cancelBubble=true},preventDefault:function(){this.returnValue=false},inspect:function(){return"[object Event]"}});return function(B){if(!B){return false}if(B._extendedByPrototype){return B}B._extendedByPrototype=Prototype.emptyFunction;var C=Event.pointer(B);Object.extend(B,{target:B.srcElement,relatedTarget:Event.relatedTarget(B),pageX:C.x,pageY:C.y});return Object.extend(B,A)}}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents").__proto__;Object.extend(Event.prototype,A);return Prototype.K}})();Object.extend(Event,(function(){var B=Event.cache;function C(J){if(J._prototypeEventID){return J._prototypeEventID[0]}arguments.callee.id=arguments.callee.id||1;return J._prototypeEventID=[++arguments.callee.id]}function G(J){if(J&&J.include(":")){return"dataavailable"}return J}function A(J){return B[J]=B[J]||{}}function F(L,J){var K=A(L);return K[J]=K[J]||[]}function H(K,J,L){var O=C(K);var N=F(O,J);if(N.pluck("handler").include(L)){return false}var M=function(P){if(!Event||!Event.extend||(P.eventName&&P.eventName!=J)){return false}Event.extend(P);L.call(K,P)};M.handler=L;N.push(M);return M}function I(M,J,K){var L=F(M,J);return L.find(function(N){return N.handler==K})}function D(M,J,K){var L=A(M);if(!L[J]){return false}L[J]=L[J].without(I(M,J,K))}function E(){for(var K in B){for(var J in B[K]){B[K][J]=null}}}if(window.attachEvent){window.attachEvent("onunload",E)}return{observe:function(L,J,M){L=$(L);var K=G(J);var N=H(L,J,M);if(!N){return L}if(L.addEventListener){L.addEventListener(K,N,false)}else{L.attachEvent("on"+K,N)}return L},stopObserving:function(L,J,M){L=$(L);var O=C(L),K=G(J);if(!M&&J){F(O,J).each(function(P){L.stopObserving(J,P.handler)});return L}else{if(!J){Object.keys(A(O)).each(function(P){L.stopObserving(P)});return L}}var N=I(O,J,M);if(!N){return L}if(L.removeEventListener){L.removeEventListener(K,N,false)}else{L.detachEvent("on"+K,N)}D(O,J,M);return L},fire:function(L,K,J){L=$(L);if(L==document&&document.createEvent&&!L.dispatchEvent){L=document.documentElement}var M;if(document.createEvent){M=document.createEvent("HTMLEvents");M.initEvent("dataavailable",true,true)}else{M=document.createEventObject();M.eventType="ondataavailable"}M.eventName=K;M.memo=J||{};if(document.createEvent){L.dispatchEvent(M)}else{L.fireEvent(M.eventType,M)}return Event.extend(M)}}})());Object.extend(Event,Event.Methods);Element.addMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObserving});Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Element.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.methodize(),loaded:false});(function(){var B;function A(){if(document.loaded){return}if(B){window.clearInterval(B)}document.fire("dom:loaded");document.loaded=true}if(document.addEventListener){if(Prototype.Browser.WebKit){B=window.setInterval(function(){if(/loaded|complete/.test(document.readyState)){A()}},0);Event.observe(window,"load",A)}else{document.addEventListener("DOMContentLoaded",A,false)}}else{document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");$("__onDOMContentLoaded").onreadystatechange=function(){if(this.readyState=="complete"){this.onreadystatechange=null;A()}}}})();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(A,B){return Element.insert(A,{before:B})},Top:function(A,B){return Element.insert(A,{top:B})},Bottom:function(A,B){return Element.insert(A,{bottom:B})},After:function(A,B){return Element.insert(A,{after:B})}};var $continue=new Error('"throw $continue" is deprecated, use "return" instead');var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},within:function(B,A,C){if(this.includeScrollOffsets){return this.withinIncludingScrolloffsets(B,A,C)}this.xcomp=A;this.ycomp=C;this.offset=Element.cumulativeOffset(B);return(C>=this.offset[1]&&C<this.offset[1]+B.offsetHeight&&A>=this.offset[0]&&A<this.offset[0]+B.offsetWidth)},withinIncludingScrolloffsets:function(B,A,D){var C=Element.cumulativeScrollOffset(B);this.xcomp=A+C[0]-this.deltaX;this.ycomp=D+C[1]-this.deltaY;this.offset=Element.cumulativeOffset(B);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+B.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+B.offsetWidth)},overlap:function(B,A){if(!B){return 0}if(B=="vertical"){return((this.offset[1]+A.offsetHeight)-this.ycomp)/A.offsetHeight}if(B=="horizontal"){return((this.offset[0]+A.offsetWidth)-this.xcomp)/A.offsetWidth}},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(A){Position.prepare();return Element.absolutize(A)},relativize:function(A){Position.prepare();return Element.relativize(A)},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(B,C,A){A=A||{};return Element.clonePosition(C,B,A)}};if(!document.getElementsByClassName){document.getElementsByClassName=function(B){function A(C){return C.blank()?null:"[contains(concat(' ', @class, ' '), ' "+C+" ')]"}B.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(C,E){E=E.toString().strip();var D=/\s/.test(E)?$w(E).map(A).join(""):A(E);return D?document._getElementsByXPath(".//*"+D,C):[]}:function(E,F){F=F.toString().strip();var G=[],H=(/\s/.test(F)?$w(F):null);if(!H&&!F){return G}var C=$(E).getElementsByTagName("*");F=" "+F+" ";for(var D=0,J,I;J=C[D];D++){if(J.className&&(I=" "+J.className+" ")&&(I.include(F)||(H&&H.all(function(K){return !K.toString().blank()&&I.include(" "+K+" ")})))){G.push(Element.extend(J))}}return G};return function(D,C){return $(C||document.body).getElementsByClassName(D)}}(Element.Methods)}Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(A){this.element=$(A)},_each:function(A){this.element.className.split(/\s+/).select(function(B){return B.length>0})._each(A)},set:function(A){this.element.className=A},add:function(A){if(this.include(A)){return}this.set($A(this).concat(A).join(" "))},remove:function(A){if(!this.include(A)){return}this.set($A(this).without(A).join(" "))},toString:function(){return $A(this).join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);Element.addMethods();var css_browser_selector = function() {var t=this;var ua=navigator.userAgent.toLowerCase();var is=function(x){ return ua.indexOf(x) != -1; };var h=document.getElementsByTagName('html')[0]var b=(ua.indexOf("opera/9")>-1)?'opera opera9':(ua.indexOf("opera 8")>-1)?'opera opera8':(ua.indexOf("opera 7")>-1)?'opera opera7':(ua.indexOf("msie 8")>-1)?'ie ie8':(ua.indexOf("msie 7")>-1)?'ie ie7':(ua.indexOf("msie 6")>-1)?'ie ie6':(ua.indexOf("msie 5.5")>-1)?'ie ie55':(ua.indexOf("msie 5.23")>-1)?'ie ie523':(ua.indexOf("msie 5.0")>-1)?'ie ie5':(ua.indexOf("chrome")>-1)?'safari chrome':(ua.indexOf("safari")>-1&&ua.indexOf("version/3.")>-1&&ua.indexOf("version/3.")<ua.indexOf("safari"))?'safari safari3':(ua.indexOf("safari")>-1)?'safari safari2':(ua.indexOf("seamonkey")>-1)?'seamonkey gecko':(ua.indexOf("netscape")>-1)?'netscape gecko':(ua.indexOf("firefox")>-1)?'firefox gecko':(ua.indexOf("gecko")>-1)?'gecko':'',os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';var c=b+os+' js';h.className += h.className?' '+c:c;t.ver=navigator.appVersion;t.agent=navigator.userAgent;t.mac=ua.indexOf("mac")>-1;t.pc=ua.indexOf("win")>-1;t.opera=ua.indexOf("opera")>-1;t.opera9=ua.indexOf("opera/9")>-1;t.opera8=ua.indexOf("opera 8")>-1;t.opera7=ua.indexOf("opera 7")>-1;t.ie8=(ua.indexOf("msie 8")>-1 && !t.opera)?1:0;t.ie7=(ua.indexOf("msie 7")>-1 && !t.opera)?1:0;t.ie6=(ua.indexOf("msie 6")>-1 && !t.opera)?1:0;t.ie55 =(ua.indexOf("msie 5.5")>-1 && !t.opera)?1:0;t.ie523 =(ua.indexOf("msie 5.23")>-1)?1:0;t.ie4 =(ua.indexOf("msie 4")>-1)?1:0;t.ie3 =(ua.indexOf("msie 3")>-1)?1:0;t.ie5 =(ua.indexOf("msie 5.0")>-1 && !t.ie55 && !t.ie523)?1:0;t.ns71=(ua.indexOf("netscape/7.1")>-1)?1:0;t.safari3=(ua.indexOf("safari")>-1&&ua.indexOf("version/3.")>-1&&ua.indexOf("version/3.")<ua.indexOf("safari"))?1:0;t.safari2=(ua.indexOf("safari")>-1&&ua.indexOf("version/")==-1)?1:0;t.chrome=(ua.indexOf("chrome")>-1)?1:0;t.safari=(t.safari2||t.safari3);t.ie=(t.ie8||t.ie7||t.ie55||t.ie5||t.ie6||t.ie523||t.ie4||t.ie3);t.gecko=(ua.indexOf("gecko")>-1 &!t.ie)?1:0;t.ns=(t.ns71);t.ieOld=(t.ie55||t.ie5||t.ie523||t.ie4||t.ie3);t.ajaxaware =(t.opera||t.ie8||t.ie7||t.ie6||t.safari||t.gecko||t.chrome)?1:0}();if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);if(_8+""!=""){this.addParam("base",_8);}this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};deconcept.SWFObject.prototype={useExpressInstall:function(_e){this.xiSWFPath=!_e?"expressinstall.swf":_e;this.setAttribute("useExpressInstall",true);},setAttribute:function(_f,_10){this.attributes[_f]=_10;},getAttribute:function(_11){return this.attributes[_11];},addParam:function(_12,_13){this.params[_12]=_13;},getParams:function(){return this.params;},addVariable:function(_14,_15){this.variables[_14]=_15;},getVariable:function(_16){return this.variables[_16];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _17=new Array();var key;var _19=this.getVariables();for(key in _19){_17[_17.length]=key+"="+_19[key];}return _17;},getSWFHTML:function(){var _1a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_1a="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_1a+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1b=this.getParams();for(var key in _1b){_1a+=[key]+"=\""+_1b[key]+"\" ";}var _1d=this.getVariablePairs().join("&");if(_1d.length>0){_1a+="flashvars=\""+_1d+"\"";}_1a+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_1a="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_1a+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1b=this.getParams();for(var key in _1b){_1a+="<param name=\""+key+"\" value=\""+_1b[key]+"\" />";}var _1d=this.getVariablePairs().join("&");if(_1d.length>0){_1a+="<param name=\"flashvars\" value=\""+_1d+"\" />";}_1a+="</object>";}return _1a;},write:function(_1e){if(this.getAttribute("useExpressInstall")){var _1f=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_1f)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _1e=="string")?document.getElementById(_1e):_1e;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _21=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_21=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _24=3;while(axo){try{_24++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_24);_21=new deconcept.PlayerVersion([_24,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_21=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_21.major==6){return _21;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_21=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _21;};deconcept.PlayerVersion=function(_25){this.major=_25[0]!=null?parseInt(_25[0]):0;this.minor=_25[1]!=null?parseInt(_25[1]):0;this.rev=_25[2]!=null?parseInt(_25[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_27){var q=document.location.search||document.location.hash;if(_27==null){return q;}if(q){var _29=q.substring(1).split("&");for(var i=0;i<_29.length;i++){if(_29[i].substring(0,_29[i].indexOf("="))==_27){return _29[i].substring((_29[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2b=document.getElementsByTagName("OBJECT");for(var i=_2b.length-1;i>=0;i--){_2b[i].style.display="none";for(var x in _2b[i]){if(typeof _2b[i][x]=="function"){_2b[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;Element.addMethods('form',{getCheckedRadioValue:function (formElement,name) {formElement=$(formElement);var checkedElement=formElement.select('input[name='+name+'][type=radio]') //gather all radio inputs with provided /name/.find(function(inputElem){ return inputElem.checked;});//find first checked elementif(checkedElement)return checkedElement.getValue();//return iths value if foundelsereturn null;}//end of getCheckedRadioValue,getCheckedBoxesValue:function (formElement,name) {formElement=$(formElement);var checkedElements=formElement.select('input[name='+name+'][type=checkbox]').findAll(function(el) { return el.checked;});//find ALL checked elementsif(checkedElements) {var retVal=new Array();for (var ix=0,len=checkedElements.length;ix<len;++ix) {retVal.push(checkedElements[ix].getValue());}return retVal;}else {return null;}}//end of getCheckedBoxesValue});var FormValidate=Class.create();FormValidate.prototype={initialize:function (p){this.params=p;for(i=0;i<p.length;i++){var e=p[i];if(this.isRequired(e))$(e.label).addClassName('required');}this.erList=new Array();this.errClass='validateError';},checkSpecialCharacter:function(v,chkSpecial){if(!chkSpecial) return false;var p=new RegExp("[^A-Za-z_???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????0-9.\\'\\.\\-]","g");patmatch=p.test(v);return patmatch;},checkText:function(id,required,chkSpecial,minL,maxL){if(minL<0) minL=0;if(required&&minL<1) minL=1;var v=$F(id);if(required){if(v==null||v==undefined)return false;else{if(v.length<minL)return false;if(v.length>maxL)return false;if(this.checkSpecialCharacter(v,chkSpecial))return false;}}else{if(v!=null&&v!=undefined&&v.length>0){if(v.length>maxL)return false;if(this.checkSpecialCharacter(v,chkSpecial))return false;}}return true;},checkNumber:function(id,required,onlyInt,minV,maxV){var v=$F(id);if(required||v.length>0){if(v==undefined||v==null||isNaN(v)||v!=parseFloat(v))return false;else{if(onlyInt&&(parseInt(v)!=v||v.indexOf('.')!=-1)) return false;if(v<minV) return false;if(v>maxV) return false;}}return true;},checkEmail:function(id,required){var v=$F(id);var moreExt=new Array("info","aero","museum","name");if(required||v.length>0){var p=new RegExp("^(\\w|-|\\.)+@(\\w|-|\\.)+\\.[a-z]{2,3}$","i");pMatch=p.test(v);if(pMatch)return true;else{for(var i=0;i<moreExt.length;i++){p.compile("^(\\w|-|\\.)+@(\\w|-|\\.)+\\." + moreExt[i] +"$");pMatch=p.test(v);if(pMatch)return true;}}return false;}return true;},checkEmailString:function(emailAddress){var p=new RegExp("^(\\w|-|\\.)+@(\\w|-|\\.)+\\.[a-z]{2,3}$","i");return p.test(emailAddress);},checkDate:function(idD,idM,idY){var vD=$F(idD);var vM=$F(idM);var vY=$F(idY);var v=vD+'/'+vM+'/'+vY;var re= /(\d{1,2})(-|\/)+(\d{1,2})(-|\/)+(\d{4}|\d{2})/;if(!re.test(v))return false;var res=null;if(v.match(/\-/)!=null)res=v.split(/\-/);elseres=v.split(/\//);if(res!=null){if(res.length!=3) return false;var d=new Date(vY,vM-1,vD);if(d.getDate()!=vD||d.getMonth()!=vM-1||d.getFullYear()!=vY) return false;return true;}return false;},checkCompare:function (e){if(e.idCompare==null||e.idCompare==undefined) return true;if($F(e.id)!=$F(e.idCompare)) return false;return true;},checkOption:function (id){if($(id).selectedIndex>0) return true;return false;},isRequired:function (e){if(e.required==null||e.required==undefined) return true;return e.required;},min:function (e){if(e.min==null||e.min==undefined) return Number.MIN_VALUE;return e.min;},max:function (e){if(e.max==null||e.max==undefined) return Number.MAX_VALUE;return e.max;},setError:function (e){var t=this;t.valid=false;t.erList.push(e.message);try {if(!$(e.label).hasClassName(t.errClass)) $(e.label).addClassName(t.errClass)if(e.type=='date'){if(!$(e.idD).hasClassName(t.errClass)) $(e.idD).addClassName(t.errClass)if(!$(e.idM).hasClassName(t.errClass)) $(e.idM).addClassName(t.errClass)if(!$(e.idY).hasClassName(t.errClass)) $(e.idY).addClassName(t.errClass)}elseif(!$(e.id).hasClassName(t.errClass)) $(e.id).addClassName(t.errClass)}catch(e){};},setErrorCompare:function (e){var t=this;t.valid=false;t.erList.push(e.messageCompare);try {if(!$(e.label).hasClassName(t.errClass)) $(e.label).addClassName(t.errClass)if(!$(e.id).hasClassName(t.errClass)) $(e.id).addClassName(t.errClass)if(!$(e.idCompare).hasClassName(t.errClass)) $(e.idCompare).addClassName(t.errClass)if(!$(e.labelCompare).hasClassName(t.errClass)) $(e.labelCompare).addClassName(t.errClass)}catch(e){};},cleanError:function (e){var t=this;try{if($(e.label).hasClassName(t.errClass)) $(e.label).removeClassName(t.errClass)if(e.type=='date'){if($(e.idD).hasClassName(t.errClass)) $(e.idD).removeClassName(t.errClass)if($(e.idM).hasClassName(t.errClass)) $(e.idM).removeClassName(t.errClass)if($(e.idY).hasClassName(t.errClass)) $(e.idY).removeClassName(t.errClass)}elseif($(e.id).hasClassName(t.errClass)) $(e.id).removeClassName(t.errClass)}catch(e){};},addErrorMessage:function (msg){this.erList.push(msg);},setErrorClass:function (id){if(!$(id).hasClassName(this.errClass)) $(id).addClassName(this.errClass)},resetErrorClass:function (id){if($(id).hasClassName(this.errClass)) $(id).removeClassName(this.errClass)},setErrorState:function (){this.valid=false;},getValidationStatus:function (){return this.valid;},getValidationErrorList:function (){var el=this.erList;if(el==null||el==undefined||el.length==0) return '';var t='<ul>';for (i=0;i<el.length;i++)t +='<li>'+el[i]+'</li>';t+='</ul>';return t;},validate:function (){var t=this;var p=t.params;t.valid=true;t.erList=new Array();for(i=0;i<p.length;i++){var e=p[i];switch (e.type){case 'text':{if(!t.checkText(e.id,t.isRequired(e),true,t.min(e),t.max(e))) t.setError(e)else if(!t.checkCompare(e)) t.setErrorCompare(e)elset.cleanError(e);}break;case 'any-text':{if(!t.checkText(e.id,t.isRequired(e),false,t.min(e),t.max(e))) t.setError(e)else if(!t.checkCompare(e)) t.setErrorCompare(e)elset.cleanError(e);}break;case 'int':{if(!t.checkNumber(e.id,t.isRequired(e),true,t.min(e),t.max(e))) t.setError(e)else if(!t.checkCompare(e)) t.setErrorCompare(e)elset.cleanError(e);}break;case 'number':{if(!t.checkNumber(e.id,t.isRequired(e),false,t.min(e),t.max(e))) t.setError(e)else if(!t.checkCompare(e)) t.setErrorCompare(e)elset.cleanError(e);}break;case 'date':{if(t.isRequired(e)&&(!t.checkDate(e.idD,e.idM,e.idY))) t.setError(e)else if(!t.checkCompare(e)) t.setErrorCompare(e)elset.cleanError(e);}break;case 'email':{if(!t.checkEmail(e.id,t.isRequired(e))) t.setError(e)else if(!t.checkCompare(e)) t.setErrorCompare(e)elset.cleanError(e);}break;case 'option':{if(t.isRequired(e)&&(!t.checkOption(e.id))) t.setError(e)elset.cleanError(e);}break;case 'check':{if(!t.isRequired(e)){if($F(e.id)==null) t.setError(e)elset.cleanError(e)}elset.cleanError(e);}break;}}return t.valid;}}function getFromQueryString(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null) return "";else return results[1];}function getHostName() {var s=document.location.href;s=s.replace(/(^[a-zA-z0-9]*:\/\/)/,'');s=s.replace(/(\/.*)/,'');return s;}function getUrlParams() {var s=document.location.href;if(s.indexOf('?')!=-1) return s.substring(s.indexOf('?')+1);if(s.indexOf('#')!=-1) return s.substring(s.indexOf('#')+1);return '';}function fnClearInput(inp,ot){if(inp.value.toLowerCase()==ot.toLowerCase()) inp.value='';}function getPopUpHeight(height) {if(arguments.length<=0) {return getPercentageScreenHeight();}else {if((String(arguments[0]).indexOf("%")!=-1)&&(arguments[0].length>=2)) {if(!isNaN(parseInt(String(arguments[0]).substring(0,String(arguments[0]).indexOf("%"))))) {return getPercentageScreenHeight(parseInt(String(arguments[0]).substring(0,String(arguments[0]).indexOf("%"))));}else {return getPercentageScreenHeight();}}else if(!isNaN(parseInt(arguments[0]))) {return height;}else {return getPercentageScreenHeight();}}}function getPercentageScreenHeight(percent) {var percentageScreenHeight;var defaultPercentage=80;if(arguments.length>0) {if(!isNaN(parseInt(arguments[0]))) {percentageScreenHeight=Math.round(screen.height*(parseInt(arguments[0])/100));}}else {percentageScreenHeight=Math.round(screen.height*(defaultPercentage/100));}return percentageScreenHeight;}function fnOpenWindow(address,target,toolbar,location,directories,status,menubar,scrollbars,resizable,width,height,top,left){var _scrollbars=scrollbars;if(scrollbars=='yes'){width=parseInt(width) + 17;}else{_scrollbars='no';}if(!(top>'0')){top=(window.screen.availHeight / 2) - (height / 2);}if(!(left>'0')){left=(window.screen.availWidth / 2) - (width / 2);}var option="toolbar="+toolbar+",location="+location+"directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+_scrollbars+",resizable="+resizable+",width="+width+",height="+height+",top="+top+",left="+left;objWindow=window.open(address,target,option);objWindow.focus();}function openPopup(address,target,width,height,top,left){if(top==null) top='';if(left==null) left='';fnOpenWindow(address,target,'no','no','no','no','no','no','no',width,height,top,left);}function magazineVideoPopup(address) {if(navigator.userAgent.indexOf('Safari')>0)openPopup(address,'Video','845','448');elseopenPopup(address,'Video','845','443');}function TotyVideoPopupNoScroll(address) {if(navigator.userAgent.indexOf('Safari')>0)openPopup(address,'Video','512','313');elseopenPopup(address,'Video','512','308');}Array.prototype.randomize=function() {var i=this.length;if(i==0) return;while (--i){var j=Math.floor(Math.random()*(i+1));var tmp1=this[i];var tmp2=this[j];this[i]=tmp2;this[j]=tmp1;}return this;}function getUrlParamsToty() {var strUrl=document.location.href;if(strUrl.indexOf('t=')!=-1) {strUrl=strUrl.substring(strUrl.indexOf('t=') + 2);return strUrl;}else{return "null";}}if(!window.unFocus) var unFocus={};if(!unFocus.Utilities) unFocus.Utilities={};unFocus.Utilities.EventManager=function() {this._listeners={};for (var i=0;i<arguments.length;i++) {this._listeners[arguments[i]]=[];}};unFocus.Utilities.EventManager.prototype={addEventListener:function($name,$listener) {for (var i=0;i<this._listeners[$name].length;i++)if(this._listeners[$name][i]==$listener) return;this._listeners[$name].push($listener);},removeEventListener:function($name,$listener) {for (var i=0;i<this._listeners[$name].length;i++) {if(this._listeners[$name][i]==$listener) {this._listeners.splice(i,1);return;}}},notifyListeners:function($name,$data) {for (var i=0;i<this._listeners[$name].length;i++)this._listeners[$name][i]($data);}};unFocus.History=(function() {function Keeper() {var _this=this,_pollInterval=200,_intervalID,_currentHash;var _getHash=function() {return location.hash.substring(1);};_currentHash=_getHash();var _setHash=function($newHash) {window.location.hash=$newHash;}function _watchHash() {var $newHash=_getHash();if(_currentHash!=$newHash) {_currentHash=$newHash;_this.notifyListeners("historyChange",$newHash);}}if(setInterval) _intervalID=setInterval(_watchHash,_pollInterval);function _createAnchor($newHash) {if(!_checkAnchorExists($newHash)) {var $anchor=document.createElement("a");$anchor.setAttribute("name",$newHash);if(/MSIE/.test(navigator.userAgent)&&!window.opera)$anchor=document.createElement('<a name="'+$newHash+'">'+$newHash+"</a>");with ($anchor.style) {position="absolute";display="block";top=getScrollY()+"px";left=getScrollX()+"px";}document.body.insertBefore($anchor,document.body.firstChild);}}function _checkAnchorExists($name) {if(document.getElementsByName($name).length>0)return true;}if(typeof self.pageYOffset=="number") {function getScrollY() {return self.pageYOffset;}} else if(document.documentElement&&document.documentElement.scrollTop) {function getScrollY() {return document.documentElement.scrollTop;}} else if(document.body) {function getScrollY() {return document.body.scrollTop;}}eval(String(getScrollY).toString().replace(/Top/g,"Left").replace(/Y/g,"X"));_this.getCurrent=function() {return _currentHash;};_this.addHistory=function($newHash) { // adds history and bookmark hash_createAnchor(_currentHash);_this.addHistory=function($newHash) {if(_currentHash!=$newHash) {_createAnchor($newHash);_currentHash=$newHash;_setHash($newHash);_this.notifyListeners("historyChange",$newHash);}return true;};return _this.addHistory($newHash);};if(/WebKit\/\d+/.test(navigator.appVersion)&&navigator.appVersion.match(/WebKit\/(\d+)/)[1]<420) {var _unFocusHistoryLength=history.length,_historyStates={},_form,_recentlyAdded=false;function _createSafariSetHashForm() {_form=document.createElement("form");_form.id="unFocusHistoryForm";_form.method="get";document.body.insertBefore(_form,document.body.firstChild);}_setHash=function($newHash) {_historyStates[_unFocusHistoryLength]=$newHash;_form.action="#" + _getHash();_form.submit();}_getHash=function() {return _historyStates[_unFocusHistoryLength];};_historyStates[_unFocusHistoryLength]=_currentHash;_this.addHistory=function($newHash) { // adds history and bookmark hash_createAnchor(_currentHash);_createSafariSetHashForm();_this.addHistory=function($newHash) {if(_currentHash!=$newHash) {_createAnchor($newHash);_currentHash=$newHash;_unFocusHistoryLength=history.length+1;_recentlyAdded=true;_setHash($newHash);_this.notifyListeners("historyChange",$newHash);_recentlyAdded=false;}return true;};return _this.addHistory($newHash);};function _watchHistoryLength() {if(!_recentlyAdded) {var _historyLength=history.length;if(_historyLength!=_unFocusHistoryLength) {_unFocusHistoryLength=_historyLength;var $newHash=_getHash();if(_currentHash!=$newHash) {_currentHash=$newHash;_this.notifyListeners("historyChange",$newHash);}}}};clearInterval(_intervalID);_intervalID=setInterval(_watchHistoryLength,_pollInterval);} else if(typeof ActiveXObject!="undefined"&&window.print&&!window.opera&&navigator.userAgent.match(/MSIE (\d\.\d)/)[1]>=5.5) {var _historyFrameObj,_historyFrameRef;function _createHistoryFrame() {var $historyFrameName="unFocusHistoryFrame";_historyFrameObj=document.createElement("iframe");_historyFrameObj.setAttribute("name",$historyFrameName);_historyFrameObj.setAttribute("id",$historyFrameName);_historyFrameObj.setAttribute("src",'javascript:;');_historyFrameObj.style.position="absolute";_historyFrameObj.style.top="-900px";document.body.insertBefore(_historyFrameObj,document.body.firstChild);_historyFrameRef=frames[$historyFrameName];_createHistoryHTML(_currentHash,true);}function _createHistoryHTML($newHash) {with (_historyFrameRef.document) {open("text/html");write("<html><head></head><body onl",'oad="parent.unFocus.History._updateFromHistory(\''+$newHash+'\');">',$newHash+"</body></html>");close();}}_this._updateFromHistory=function() {_this._updateFromHistory=function($hash) {_currentHash=$hash;_this.notifyListeners("historyChange",$hash);};};_this.addHistory=function($newHash) {_createHistoryFrame();_this.addHistory=function($newHash) { // adds history and bookmark hashif(_currentHash!=$newHash) {_currentHash=$newHash;_createHistoryHTML($newHash);}return true;};return _this.addHistory($newHash);};_this.addEventListener("historyChange",function($hash) { _setHash($hash) });}}Keeper.prototype=new unFocus.Utilities.EventManager("historyChange");return new Keeper();})();Event.observe(window,'load',function(){Submenu.prepareSubMenus();Submenu.getOpenLinks().each (function(link){Event.observe(link,'mouseover',Submenu.open_Click);});Submenu.getCloseLinks().each (function(link){Event.observe(link,'click',Submenu.close_Click);});});var Submenu ={getOpenLinks:function(){return $$('a.SubmenuOpen');},getCloseLinks:function(){return $$('a.SubmenuClose');},prepareSubMenus:function(){$$('.SubMenuHidden').each (function(elem){elem.hide();elem.removeClassName('SubMenuHidden');elem.addClassName('SubMenu');});},open_Click:function(event){var menu=Event.element(event).up().down('div.SubMenu');var openMenuLink=menu.up().down('a.SubmenuOpen');var TIMER_ID;openMenuLink.addClassName('highlight');if(Submenu.isOpen(menu)){}else{Submenu.open(menu);$$('.ie6 select').invoke('hide');Event.observe(menu,'mouseout',function() {clearTimeout(TIMER_ID);TIMER_ID=setTimeout(function(){Submenu.close(menu);},1)});Event.observe(menu.up(),'mouseout',function() {clearTimeout(TIMER_ID);TIMER_ID=setTimeout(function(){Submenu.close(menu);},1)});Event.observe(menu.up(),'mouseover',function() {clearTimeout(TIMER_ID);});};},close_Click:function(event){var menu=event.element().up().up();Submenu.close(menu);},isOpen:function(menu){return menu.visible();},close:function(menu){var openMenuLink=menu.up().down('a.SubmenuOpen');menu.hide();openMenuLink.removeClassName('highlight');$$('.ie6 select').invoke('show');},open:function(menu){menu.show();}};var Scriptaculous={Version:'1.8.0',require:function(libraryName) {document.write('<script type="text/javascript" src="'+libraryName+'"><\/script>');},REQUIRED_PROTOTYPE:'1.6.0',load:function() {function convertVersionString(versionString){var r=versionString.split('.');return parseInt(r[0])*100000 + parseInt(r[1])*1000 + parseInt(r[2]);}if((typeof Prototype=='undefined')||(typeof Element=='undefined')||(typeof Element.Methods=='undefined')||(convertVersionString(Prototype.Version)<convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))throw("script.aculo.us requires the Prototype JavaScript framework>=" +Scriptaculous.REQUIRED_PROTOTYPE);$A(document.getElementsByTagName("script")).findAll(function(s) {return (s.src&&s.src.match(/scriptaculous\.js(\?.*)?$/))}).each(function(s) {var path=s.src.replace(/scriptaculous\.js(\?.*)?$/,'');var includes=s.src.match(/\?.*load=([a-z,]*)/);(includes ? includes[1]:'builder,effects,dragdrop,controls,slider,sound').split(',').each(function(include) { Scriptaculous.require(path+include+'.js') });});}}Scriptaculous.load();var Email={idNews:'',d:'',dMsg:'',viewFrmEmail:function(newsid,dN){if(Email.d!='')$(Email.d).update('');Email.idNews=newsid;Email.d=dN;var u='/news/module/email/newsid=' + Email.idNews + '/_email.html';var a=new Ajax.Request(u,{method:'get',evalScripts:true,onComplete:Email.displayFrmEmail});},displayFrmEmail:function(originalResponse){$(Email.d).update(originalResponse.responseText);var fe=$('c_from');var fn=$('c_fromname');var c=Cookie.get('Euro2008');if(c!=null&&c!==undefined&&fe!==undefined&&fe!=null&&fn!==undefined&&fn!=null){fn.value=c.toQueryParams().un;fe.value=c.toQueryParams().em;}$('c_urln').value=document.location.href;$(Email.d).show();},sendEmail:function(idNews){Email.clearAllErrors();if(($('c_from').value=='')||($('c_fromname').value=='')||($('c_to').value=='')||($('c_message').value=='')){$('c_errorMsg').show();return;}var frm=new FormValidate(new Array(0));if(!frm.checkEmail('c_from',true)){if($('c_errorMsgEmailFrom')!=null){$('c_errorMsgEmailFrom').show();}return;}var strTo=$F('c_to');if(strTo.lastIndexOf(',')==strTo.length-1){strTo=strTo.substring(0,strTo.length-1);$('c_to').value=strTo;}var toArr=strTo.split(',');for(var i=0;i<toArr.length;i++){if(!frm.checkEmailString(toArr[i])){if($('c_errorMsgEmailTo')!=null){$('c_errorMsgEmailTo').show();}return;}}var u="/news/module/email/_email.htmx?" + $('f_sendEmail').serialize()var a=new Ajax.Updater('frmEmail',encodeURI(u),{method:'get'});},clsForm:function(){$(this.d).update('');},clearAllErrors:function(){$('c_errorMsg').hide();if($('c_errorMsgEmailFrom')!=null){$('c_errorMsgEmailFrom').hide();}if($('c_errorMsgEmailTo')!=null){$('c_errorMsgEmailTo').hide();}}}var Cookie={set:function(name,value,expires,path,domain,secure) {var today=new Date();today.setTime(today.getTime());if(expires){expires=expires * 1000 * 60 * 60 * 24;}var expires_date=new Date(today.getTime() + (expires));var d=(domain!==undefined&&domain!=null&&domain!='')?";domain="+domain:((cookieDomain!==undefined&&cookieDomain!=null&&cookieDomain!='')?";domain="+cookieDomain:"");document.cookie=name + "=" +escape(value) +((expires) ? ";expires=" + expires_date.toGMTString():"") +((path) ? ";path=" + path:";path=" + "/") +d +((secure) ? ";secure":"");},get:function(name) {var cookie=document.cookie.match(new RegExp('(^|;)\\s*' + escape(name) + '=([^;\\s]*)'));return (cookie ? unescape(cookie[2]):null);},erase:function(name) {var cookie=Cookie.get(name)||true;Cookie.set(name,'',-1);return cookie;},accept:function() {if(typeof navigator.cookieEnabled=='boolean') {return navigator.cookieEnabled;}Cookie.set('_test','1');return (Cookie.erase('_test')==='1');}};var StringHelper={Replace:function() {var argL=arguments.length;if(argL==0)return '';if(argL==1)return arguments[0];var returnString=arguments[0];for(var i=1;i<argL;++i){var re=new RegExp("\\{" + (i - 1) + "\\}","g");returnString=returnString.replace(re,arguments[i]);}return returnString;}};var User=Class.create({initialize:function () {this.cookieNameS='SCKUefa';this.cookieNameP='PCKUefa';this.cookieNameTalkFootball='TalkFootballTandC';this.cookieNameShare='TalkFootballShare';this.ckLogOrigin='uefa__ckLogOrigin';this.ckRegOrigin='uefa__ckRegOrigin';this.Data=null;this.loadData();},isLogged:function(){var c=Cookie.get(this.cookieNameS);if(c===undefined||c==null||c=='') return false;return true;},loadData:function(){if(this.isLogged())this.Data=Cookie.get(this.cookieNameS).toQueryParams();},logout:function(){Cookie.set(this.cookieNameS,'',-1,'/','.uefa.com');Cookie.set(this.cookieNameP,'',-1,'/','.uefa.com');history.go(0);},getAvatar:function(){if(this.isLogged())if(this.Data.Avatar!==undefined&&this.Data.Avatar!=null&&this.Data.Avatar!='')return 'http://img.uefa.com/ml/images/avatar/' + this.Data.Avatar + '.gif';elsereturn 'http://img.uefa.com/ml/images/avatar/null.gif';elsereturn 'http://img.uefa.com/ml/images/avatar/null.gif';},setTalkFootballTandC:function(value){if(value!='1') value='0';Cookie.set(this.cookieNameTalkFootball,value,365,'/','.uefa.com');},getTalkFootballTandC:function(){var c=Cookie.get(this.cookieNameTalkFootball);if((c===undefined)||(c==null)||(c=='null'))c='0';return c;},setTalkFootballShare:function(value){if(value!='1') value='0';Cookie.set(this.cookieNameShare,value,365,'/','.uefa.com');},getTalkFootballShare:function(){var c=Cookie.get(this.cookieNameShare);if((c===undefined)||(c==null)||(c=='null'))c='-1';return c;},fillOmnitureProperties:function(){if(this.isLogged()){s.prop25='Logged in';s.prop24=this.Data.UserID;s.prop27=this.Data.BirthDateStr.substr(this.Data.BirthDateStr.length - 4,4);s.prop28=this.Data.Gender;s.prop29=this.Data.Lang;if(this.Data.Avatar)s.prop31='Y';elses.prop31='N';s.prop32=this.Data.CountryCode;s.prop43='web';if((this.Data.NewsLetter)&&(this.Data.NewsLetter>0))s.prop33='yes';elses.prop33='no';if(this.Data.RefService)s.prop26=this.Data.RefService;if(this.Data.FavTeamNames)s.prop30=this.Data.FavTeamNames;if(this.Data.FavClubsNames)s.prop46=this.Data.FavClubsNames;}else{s.prop25='Not logged in';}var c=Cookie.get(this.ckLogOrigin);if(c) {s.eVar36=c;if(s.events)s.events += ",";elses.events="";s.events += "event7";Cookie.erase(this.ckLogOrigin);}var referrer=getFromQueryString('referrer');if(referrer!='') {s.eVar45=referrer;}}});var ButtonLayer=Class.create({initialize:function () {this.btnContainer=$('hcbButtonsBox');this.buttons=new Hash();},createButton:function(id,text) {var btn=new Element('input',{ 'id':id,'type':'button','value':text,'class':'hcbButton' });this.btnContainer.appendChild(btn);this.buttons.set(id,btn);return btn;},clearButtons:function() {this.buttons=new Hash();this.btnContainer.update('');},assignTeam:function(t) {this.buttons.each(function(pair) {pair.value.className='hcbButton t' + t;});}});var TeamData=Class.create({initialize:function () {this.teamsName= $w('aut cro cze fra ger gre ita ned pol por rou  rus  esp sui swe  tur');this.teamsId= $w('8  56370 58837 43 47 49 66 95 109 110 113  57451 122 128 127  135');this.teamsFontColor=$w('#FFF #FFF #FFF #FFF black #FFF #FFF #FFF #FFF #FFF #325491 #3B5DA4 #FFF #FFF #3C63B0 #FFF ');},getName:function(id){if(this.teamsId.indexOf(id)>=0)return this.teamsName[this.teamsId.indexOf(id)];else return '';},getId:function(name){if(this.teamsName.indexOf(name)>=0)return this.teamsId[this.teamsName.indexOf(name)];else return '';},getFontColor:function(idOrName){if(this.teamsId.indexOf(idOrName)>=0)return this.getName(idOrName);else{if(this.teamsName.indexOf(name)>=0)return this.getId(idOrName);else return '';}}});var Header=Class.create({initialize:function () {this.pathImages='http://img.uefa.com/ml/e8/header/mascot/{0}.png';this.pathFlags='http://img.uefa.com/ml/e8/flags/23x20/{0}.png';this.pathBackgroundBig='http://img.uefa.com/ml/e8/header/slogans/{0}.jpg';this.pathBackgroundSmall='http://img.uefa.com/ml/e8/header/slogans/small/{0}.jpg';this.pathTeam='/tournament/teams/team={0}/index.html';this.pathAjaxUrl='/module/header/team={0}/_content.html';this.absoluteUrl='';this.proxyUrl='';this.currentLanguage='';this.styleIE="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop src='{0}')";this.style="url({0})";this.cookieName='euro2008myteam';var v=Cookie.get(this.cookieName);if(v!==undefined&&v!=null&v!=''){Cookie.set(this.cookieName,'',-1,'/','.uefa.com');Cookie.set(this.cookieName,v,365,'/','.euro2008.uefa.com');}this.divContainerLoader=$('hFanLoader');this.divContainerTeamSelection=$('hFan');this.divContainerCustom=$('hFanCustom');this.divTrixFlixKit=$('hTrixFlix');this.divConfirmationBox=$('hcbConfirmation');this.divTeamSelection=$('hcbTeamSelection');this.spanSubtitle=$('hcbTitle');this.spanTeamName=$('hcbTeamName');this.strMsg=new Hash();this.step=1;this.personalizedTeam='';this.userLogged=false;this.userName='';this.user=new User();this.buttonLayer=new ButtonLayer();this.teamData=new TeamData();this.observers={elementsToObserve:null,elOnTeamHover:this.onTeamHover.bindAsEventListener(this),elOnTeamClick:this.onTeamClick.bindAsEventListener(this),elOnTeamLeave:this.onTeamLeave.bindAsEventListener(this),onTeamGo:this.btnGoToTeam.bindAsEventListener(this)};},start:function(){var languages=new Hash({"http://en.euro2008.uefa.com":"en","http://it.euro2008.uefa.com":"it","http://fr.euro2008.uefa.com":"fr","http://de.euro2008.uefa.com":"de","http://es.euro2008.uefa.com":"es","http://pt.euro2008.uefa.com":"pt","http://ru.euro2008.uefa.com":"ru","http://jp.euro2008.uefa.com":"jp","http://cn.euro2008.uefa.com":"cn","http://kr.euro2008.uefa.com":"kr","http://www.euro2008.uefa.com":"en"});this.currentLanguage=languages.get(this.absoluteUrl);if(this.absoluteUrl.substr(this.absoluteUrl.length - 4,4)=='8301') this.currentLanguage='en';this.personalizedTeam=this.checkCookie();if(this.personalizedTeam!='')this.step=3;else{this.observers.elementsToObserve=$$('#hcbFanTeamSelector li');for(var i=0;i<this.observers.elementsToObserve.length;i++){this.observers.elementsToObserve[i].observe('mouseover',this.observers.elOnTeamHover);this.observers.elementsToObserve[i].observe('click', this.observers.elOnTeamClick);this.observers.elementsToObserve[i].observe('mouseout',this.observers.elOnTeamLeave);}var l=this.teamData.teamsName.length;for (i=0;i<l;++i) { var img=new Image();img.src=StringHelper.Replace(this.pathImages,this.teamData.teamsName[i]);}}this.personalize();},setupButtons:function() {this.buttonLayer.clearButtons();var btn=null;if(this.user.isLogged()){btn=this.buttonLayer.createButton('btnwelcome',this.strMsg.get('welcome') + ':');btn.setStyle({marginRight:'-15px'});btn.onclick=this.btnProfile.bind(this);btn=this.buttonLayer.createButton('btnprofile',this.user.Data.UserName.toString());btn.setStyle({marginLeft:'0px'});if(Prototype.Browser.IE) btn.setStyle({marginLeft:'-4px'});if(Prototype.Browser.WebKit) btn.setStyle({marginLeft:'4px'});if(Prototype.Browser.Opera) btn.setStyle({marginLeft:'4px'});btn.setStyle({fontWeight:'bold'});btn.onclick=this.btnProfile.bind(this);btn=this.buttonLayer.createButton('btnmypage',this.strMsg.get('mypage'));btn.onclick=this.btnMyPage.bind(this);btn=this.buttonLayer.createButton('btnlogout',this.strMsg.get('logout'));btn.onclick=this.btnLogout.bind(this);}else{btn=this.buttonLayer.createButton('btnlogin',this.strMsg.get('login'));btn.onclick=this.btnLogin.bind(this);btn=this.buttonLayer.createButton('btnregister',this.strMsg.get('register'));btn.onclick=this.btnRegister.bind(this);}},personalize:function() {switch (this.step){case 1:this.divContainerLoader.hide();this.divContainerTeamSelection.show();this.divContainerCustom.hide();this.spanSubtitle.update(this.strMsg.get('selectteam'));this.divContainerTeamSelection.className='customizationBox';this.divConfirmationBox.hide();this.setupButtons();this.buttonLayer.assignTeam('0');this.setShirt('trixflix');this.divTeamSelection.show();$('hTrixFlixContainer').stopObserving('click',this.observers.onTeamGo);break;case 2:this.divContainerLoader.hide();this.divContainerTeamSelection.show();this.divContainerCustom.hide();this.setShirt(this.personalizedTeam);this.spanSubtitle.update(this.strMsg.get('confirmteam'));this.divContainerTeamSelection.className='customizationBox ' + this.personalizedTeam + ' t' + this.teamData.getId(this.personalizedTeam);this.buttonLayer.clearButtons();var btn=null;btn=this.buttonLayer.createButton('btncancel',this.strMsg.get('cancel'));btn.setStyle({float:'right'});btn.onclick=this.btnCancelTeam.bind(this);btn=this.buttonLayer.createButton('btnconfirm',this.strMsg.get('confirm'));btn.setStyle({float:'right'});btn.onclick=this.btnConfirmTeam.bind(this);this.buttonLayer.assignTeam(this.teamData.getId(this.personalizedTeam));this.spanTeamName.update($$('#hcbFanTeamSelector li.' + this.personalizedTeam)[0].readAttribute('title').toUpperCase());this.divTeamSelection.hide();this.divConfirmationBox.show();$('hTrixFlixContainer').stopObserving('click',this.observers.onTeamGo);break;case 3:this.divContainerLoader.hide();this.divContainerTeamSelection.hide();this.divContainerCustom.show();this.setShirt(this.personalizedTeam);var bgUrl=StringHelper.Replace(this.pathBackgroundSmall,this.teamData.getId(this.personalizedTeam));this.divContainerCustom.setStyle({ background:'url(' + bgUrl + ')' });var pathAjax=StringHelper.Replace(this.pathAjaxUrl,this.teamData.getId(this.personalizedTeam));if(this.proxyUrl!="")pathAjax=this.proxyUrl + "?url=" + encodeURIComponent(this.absoluteUrl + pathAjax);new Ajax.Request(pathAjax,{ method:'get',onSuccess:function(originalRequest) { $('hFanCustom').update(originalRequest.responseText);} });this.setupButtons();if(!this.user.isLogged()) {var btn=null;btn=this.buttonLayer.createButton('btnchangeteam',this.strMsg.get('changeteam'));btn.setStyle({float:'right'});btn.onclick=this.btnChangeTeam.bind(this);}this.buttonLayer.assignTeam(this.teamData.getId(this.personalizedTeam));$('hTrixFlixContainer').observe('click',this.observers.onTeamGo);break;default:break;}},setTeam:function(){Cookie.set(this.cookieName,this.personalizedTeam,365,'/','.euro2008.uefa.com');},onChangeTeam:function(){},btnConfirmTeam:function(e){this.step=3;this.setTeam();if(this.user.isLogged()){var i=this.user.Data.UserID;var a=this.user.Data.ActivationCode;var pathAjax='/users/chteam.htmx?u='+i+'&a='+a+'&t='+this.teamData.getId(this.personalizedTeam);if(this.proxyUrl!="")pathAjax=this.proxyUrl + "?url=" + encodeURIComponent(this.absoluteUrl + pathAjax);new Ajax.Request(pathAjax,{ method:'get' });}this.personalize();this.onChangeTeam();},btnCancelTeam:function(e){this.step=1;this.personalizedTeam='';this.personalize();},btnGoToTeam:function(e){if(this.personalizedTeam!='')window.location=this.absoluteUrl + StringHelper.Replace(this.pathTeam,this.teamData.getId(this.personalizedTeam));},btnRegister:function(e){window.location=this.absoluteUrl + "/users/registration.html";},btnMyPage:function(e){window.location=this.absoluteUrl + "/portal/index.html";},btnLogin:function(e){window.location=this.absoluteUrl + "/users/login.htmx?url=" + location.href;},btnProfile:function(e){window.location=this.absoluteUrl + "/users/profile.htmx";},btnChangeTeam:function(e){Cookie.set(this.cookieName,'',365,'/','.euro2008.uefa.com');history.go(0);},btnLogout:function(e){ this.user.logout();},onTeamHover:function(e){e.target.style.fontWeight='bold';e.target.style.color='#FFFFFF';this.divTrixFlixKit.className='hTrixFlixKit ' + e.target.className;this.setShirt(e.target.className);},onTeamClick:function(e){this.step=2;this.personalizedTeam=e.target.className;this.personalize();},onTeamLeave:function(e){e.target.style.fontWeight='normal';e.target.style.color='#CCCCCC';if(this.personalizedTeam=='')this.setShirt('trixflix');elsethis.setShirt(this.personalizedTeam);},checkCookie:function() {var c=Cookie.get(this.cookieName);if((c===undefined)||(c==null)||(c=='null'))c='';return c;},setShirt:function(kit) {var pathShirt=StringHelper.Replace(this.pathImages,kit);if(Prototype.Browser.IE)this.divTrixFlixKit.style.filter=StringHelper.Replace(this.styleIE,pathShirt);elsethis.divTrixFlixKit.style.backgroundImage=StringHelper.Replace(this.style,pathShirt);},unload:function() {if(this.observers.elementsToObserve!=null){for(var i=0;i<this.observers.elementsToObserve.length;i++){this.observers.elementsToObserve[i].stopObserving('mouseover',this.observers.elOnTeamHover);this.observers.elementsToObserve[i].stopObserving('click',this.observers.elOnTeamClick);this.observers.elementsToObserve[i].stopObserving('mouseout',this.observers.elOnTeamLeave);}}}});var HeaderUefaCom=Class.create({initialize:function () {this.absoluteUrl='';this.currentLanguage='';this.wwwUrl='';this.www1Url='';this.styleIE="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop src='{0}')";this.style="url({0})";this.userLogged=false;this.userName='';this.reloadUser();},reloadUser:function(){this.user=new User();},btnRegister:function(e){window.location=this.absoluteUrl + "/user/registration.html?referringservice=web";},btnMyPage:function(e){window.location=this.absoluteUrl + "/portal/index.html";},btnLogin:function(e){window.location=this.absoluteUrl + "/user/login.htmx?url=" + location.href;},btnProfile:function(e){window.location=this.absoluteUrl + "/user/profile.htmx";},btnLogout:function(e){this.user.logout();},doPersonalization:function() {if(this.user.isLogged()) { $('loginUserName').update(this.user.Data.UserName);$('loginButton').hide();$('loginUserLogged').show();}else { $('loginButton').show();$('loginUserLogged').hide();}},show:function() {$('loginButton').hide();$('mainNav2008').hide();$('loginForm').show();$('lff_url').value=location.href;$('lff_c_email').focus();},hide:function() {$('mainNav2008').show();$('loginButton').show();$('loginForm').hide();}});var _ObjectBrowsers=Class.create();_ObjectBrowsers.prototype={initialize:function(){this.oba=new Array();this.obh=new Array();},add:function(ob){this.oba.push(ob);},store:function(bname,ob){var x=this.getBrowserPair(bname);if(x)x.ob=ob;else this.obh.push({bname:bname,ob:ob});},getBrowserPair:function(bname){for (var i=0;i<this.obh.length;i++)if(this.obh[i].bname==bname)return this.obh[i];return null;},getBrowser:function(bname){for (var i=0;i<this.obh.length;i++)if(this.obh[i].bname==bname)return this.obh[i].ob;return null;},stopAll:function(){this.oba.each(function(n){n.stop();});},moveLeft:function(bname){try{this.getBrowser(bname).moveLeft();}catch(e){}},moveRight:function(bname){try{this.getBrowser(bname).moveRight();}catch(e){}},moveTo:function(bname,i){try{this.getBrowser(bname).moveTo(i);}catch(e){}}}var ObjectBrowsers=new _ObjectBrowsers();var BaseObjectBrowser=Class.create();BaseObjectBrowser.prototype={baseInit:function(leftArrowID,rightArrowID,bulletID){var t=this;t.firstInt=10;t.othInt=10;t.state=0t.e=new Array();t.eC=0;t.c=0;t.arrowL=leftArrowID;t.arrowR=rightArrowID;t.bullet=bulletID;ObjectBrowsers.add(t);},onTimer:function(){var t=this;t.moveNext();if(this.state==1){t.pe.stop();t.state=2;t.pe=new PeriodicalExecuter(t.onTimer.bind(t),t.othInt);t.pe.ob=t;}},start:function(){var t=this;t.pe=new PeriodicalExecuter(t.onTimer.bind(t),t.firstInt);t.pe.ob=t;t.state=1var s=0;if(arguments&&arguments.length>0) s=arguments[0];if(s==-1)s=Math.ceil(Math.random()*(t.eC-1));t.c=s;t.moveElement();},stop:function(){this.pe.stop();},moveRight:function(i){var t=this;t.pe.stop();t.c++;if(t.c>=t.eC)t.c=0;t.moveElement();},moveLeft:function(idx){var t=this;t.pe.stop();t.c--;if(t.c<0)t.c=t.eC-1;t.moveElement();},moveTo:function(i){var t=this;t.pe.stop();t.c=i;t.moveElement();},moveNext:function(){var t=this;t.c++;if(t.c>=t.eC)t.c=0;t.moveElement();},refreshControls:function(){var t=this;for (var l=0;l<t.eC;l++) $(t.bullet+l).className='';$(t.bullet+t.c).className='nbSel';}};ArticlePhotoBrowser=Class.create();Object.extend(Object.extend(ArticlePhotoBrowser.prototype,BaseObjectBrowser.prototype),{initialize:function(iID,cID,lAID,rAID,bID) {var t=this;t.baseInit(lAID,rAID,bID);t.img=iID;t.credit=cID;},addElement:function (src,h,w,alt,c) {this.eC=this.e.push({src:src,h:h,w:w,alt:alt,c:c});},moveElement:function () {var t=this;var el=t.e[t.c];$(t.img).src=unescape(el.src);$(t.img).height=el.h;$(t.img).width=el.w;$(t.img).alt=unescape(el.alt);if(t.credit!='')$(t.credit).update(el.c);t.refreshControls();}});NewsBrowser=Class.create();Object.extend(Object.extend(NewsBrowser.prototype,BaseObjectBrowser.prototype),{initialize:function(pS,nC,cID,lID,rID,bID){var t=this;t.baseInit(lID,rID,bID);t.cID=cID;t.pS=pS;t.eC=(((nC%t.pS)==1?nC-1:nC)/t.pS)+((nC%t.pS)==1?1:0);},addElement:function(){},moveElement:function(){var t=this;var xhtml='';var i,b=t.c*t.pS;for(i=0;i<t.pS;i++){try {xhtml+="<li>"+$('newsRollerE'+(i+b)).innerHTML+"</li>";}catch(e){}}$(t.cID).update(xhtml);t.refreshControls();}});PhotoBrowser=Class.create();Object.extend(Object.extend(PhotoBrowser.prototype,BaseObjectBrowser.prototype),{initialize:function(pS,nC,cID,lID,rID,bID){var t=this;t.baseInit(lID,rID,bID);t.cID=cID;t.pS=pS;t.eC=(((nC%t.pS)==1?nC-1:nC)/t.pS)+((nC%t.pS)==1?1:0);},addElement:function(){},moveElement:function(){var t=this;var xhtml='';var i,b=t.c*t.pS;for(i=0;i<t.pS;i++){try {xhtml+="<li>"+$('photoRollerE'+(i+b)).innerHTML+"</li>";}catch(e){}}$(t.cID).update(xhtml);t.refreshControls();}});function pageNavigate(st,ps){var bU=document.location.pathname;var page=parseInt(ps,10)-1;var pN=",page=";var b=bU.indexOf(pN);var nI,oI,nL;if(b>0){oI=parseInt(bU.substring(b+pN.length,bU.lastIndexOf('.')),10);}else{oI=1;b=bU.indexOf('.htm')}nI=oI+parseInt(st,10);if(nI<=0)nI=1;nL=bU.substring(0,b);if(nI>1)nL+=pN+nI+'.htmx';else nL+='.html';window.location.href=nL;}var SENewsListRoller=Class.create({initialize:function(divId) {this.contentDiv=$(divId);},doRoll:function(){var arr=$$('ul.nlrList div.nlrInvisible');if(arr.length>0){var id=Math.floor(Math.random() * arr.length);this.contentDiv.innerHTML=arr[id].innerHTML;}}});var AskAQuestion={sending:false,sendingId:0,start:function(divNotLoggedId){if(!hdr.user.isLogged()) $(divNotLoggedId).show();},setTermsAndConditions:function(obj){if(obj.checked)hdr.user.setTalkFootballTandC('1');elsehdr.user.setTalkFootballTandC('0');},checkTermsAndConditions:function(questionId){if(questionId!='')questionId='_' + questionId;if(hdr.user.isLogged()){if(hdr.user.getTalkFootballTandC()=='0')$('aaq_termsandconditions' + questionId).show();}},setShare:function(obj){if(hdr.user.getTalkFootballShare()!='1'){if(obj.checked)hdr.user.setTalkFootballShare('1');elsehdr.user.setTalkFootballShare('0');}},checkShare:function(questionId){if(questionId!='')questionId='_' + questionId;if(hdr.user.isLogged()){if(hdr.user.getTalkFootballShare()=='1')$$('.aaq_acceptshare').each(function(s) { s.hide();});else$$('.aaq_acceptshare').each(function(s) { s.show();});}},submitQuestion:function(topicId){if(!hdr.user.isLogged()) return;if(AskAQuestion.sending&&hdr.user.isLogged()) return;if(hdr.user.getTalkFootballTandC()=='0') return;var question=$('aaq_form_question').value.strip();if(question!='') {AskAQuestion.sending=true;AskAQuestion.setShare($('aaq_form_acceptshare'));AskAQuestion.checkShare('');$('aaq_termsandconditions').hide();$('aaq_sending').show();$('aaq_sendResult').hide();var additionalData='';if(hdr.user.getTalkFootballShare()=='1')additionalData='&optin=1';var u="/competitions/ucl/talkfootball/ask/module/_question.htmx?a=save&t=" + topicId + "&q="+ escape(question)+additionalData;var a=new Ajax.Request(encodeURI(u),{method:'get',onComplete:AskAQuestion.onPostQuestion});}},onPostQuestion:function(originalResponse){var d=$('aaq_sendResult');if(originalResponse.responseText.indexOf('error')!=-1){var s=originalResponse.responseText.toQueryParams().error.gsub('\'','');d.update(s);d.writeAttribute("class","aaq_sendResult error");d.show();}else if(originalResponse.responseText.indexOf('warning')!=-1){$('aaq_form_question').value='';var s=originalResponse.responseText.toQueryParams().warning.gsub('\'','');d.writeAttribute("class","aaq_sendResult warning");d.update(s);d.show();}else$('aaq_form_question').value='';AskAQuestion.sending=false;$('aaq_sending').hide();},openAnswer:function(questionId){if(!hdr.user.isLogged()) return;if(AskAQuestion.sending&&hdr.user.isLogged()) return;AskAQuestion.checkTermsAndConditions(questionId);AskAQuestion.checkShare(questionId);$('aaq_answerbox_' + questionId).show();$('aaq_answerbutton_' + questionId).hide();},submitAnswer:function(topicId,questionId){if(!hdr.user.isLogged()) return;if(AskAQuestion.sending&&hdr.user.isLogged()) return;if(hdr.user.getTalkFootballTandC()=='0') return;var answer=$('aaq_answer_' + questionId).value.strip();if(answer!='') {AskAQuestion.sending=true;AskAQuestion.sendingId=questionId;AskAQuestion.setShare($('aaq_form_acceptshare_' + questionId));AskAQuestion.checkShare(questionId);$('aaq_termsandconditions_' + questionId).hide();$('aaq_sending_' + questionId).show();$('aaq_sendResult_' + questionId).hide();var additionalData='';if(hdr.user.getTalkFootballShare()=='1')additionalData='&optin=1';var u="/competitions/ucl/talkfootball/ask/module/_question.htmx?a=save&t=" + topicId + "&i=" + questionId + "&q=" + escape(answer) + additionalData;var a=new Ajax.Request(encodeURI(u),{method:'get',onComplete:AskAQuestion.onPostAnswer});}},onPostAnswer:function(originalResponse){var d=$('aaq_sendResult_' + AskAQuestion.sendingId);if(originalResponse.responseText.indexOf('error')!=-1){var s=originalResponse.responseText.toQueryParams().error.gsub('\'','');d.update(s);d.writeAttribute("class","aaq_sendResult error");d.show();}else if(originalResponse.responseText.indexOf('warning')!=-1){$('aaq_answer_'+ AskAQuestion.sendingId).value='';var s=originalResponse.responseText.toQueryParams().warning.gsub('\'','');d.writeAttribute("class","aaq_sendResult warning");d.update(s);d.show();$('aaq_answerbox_' + AskAQuestion.sendingId).hide();}else$('aaq_answer_' + AskAQuestion.sendingId).value='';AskAQuestion.sending=false;$('aaq_sending_' + AskAQuestion.sendingId).hide();}}var News={stepIncrease:3,stepDecrease:1,fontSize:11,fontSizeMax:26,fontSizeMin:9,setFontSize:function(size) {var pars=$$("div#newstext p");pars.each(function(p){p.style.fontSize=size+'px';});},increaseStyleFont:function() {if(parseFloat(this.fontSize)<parseFloat(this.fontSizeMax)) {if(parseFloat(News.fontSize)<11)this.stepIncrease=1;elsethis.stepIncrease=3;this.fontSize += this.stepIncrease;News.setFontSize(this.fontSize);}},decreaseStyleFont:function() {if(parseFloat(this.fontSizeMin)<parseFloat(this.fontSize)) {if(parseFloat(this.fontSize)>12)this.stepDecrease=3;elsethis.stepDecrease=1;this.fontSize -= this.stepDecrease;this.setFontSize(News.fontSize);}}}var Comment={newsId:0,requiresTandC:false,allComments:false,init:function(newsId,startOpened,requiresTandC){if(requiresTandC===undefined||requiresTandC==null||requiresTandC=='')Comment.requiresTandC=false;elseComment.requiresTandC=requiresTandC;Comment.newsId=newsId;$('c_comment').value='';Comment.viewComments();if(startOpened===undefined||startOpened==null||startOpened=='') startOpened=false;if(startOpened) Comment.addComment(newsId);if(Comment.requiresTandC){if(hdr.user.getTalkFootballTandC()!='1')$('d_chkTermsAndConditions').show();if(hdr.user.getTalkFootballShare()!='1')$('d_chkTalkFootballShare').show();}},setTermsAndConditions:function(obj){if(obj.checked)hdr.user.setTalkFootballTandC('1');elsehdr.user.setTalkFootballTandC('0');},viewComments:function(){Comment.allComments=false;var u="/news/module/comment/newsid="+Comment.newsId+"/_comments.html";var a=new Ajax.Request(u,{method:'get',onComplete:Comment.displayComments});},viewAllComments:function(){Comment.allComments=true;var u="/news/module/comment/newsid="+Comment.newsId+"/_allcomments.html";var a=new Ajax.Request(u,{method:'get',onComplete:Comment.displayComments});},displayComments:function(r){var d=$('commentsList');d.update(r.responseText);if(r.responseText!='')d.show();},addComment:function(newsid){if(hdr.user.isLogged()){$('commentPostResult').hide();$('frmInsertComment').toggle();$('commentAvatar').writeAttribute('src',hdr.user.getAvatar());}else{$('needLogin').show();}},submitComment:function(){var additionalData='';if(Comment.requiresTandC){if(hdr.user.getTalkFootballTandC()!='1') return;$('d_chkTermsAndConditions').hide();var obj=$('talkFootballShare');if((hdr.user.getTalkFootballShare()!='1')&&(obj.checked)){hdr.user.setTalkFootballShare('1');$('d_chkTalkFootballShare').hide();}if(hdr.user.getTalkFootballShare()=='1')additionalData='&optin=1';}var comment=$('c_comment').value.strip();if(comment!='') {$('commentPostResult').hide();var u="/news/module/comment/_comment.htmx?a=save&n="+Comment.newsId+"&c="+escape(comment)+additionalData;var a=new Ajax.Request(encodeURI(u),{method:'get',onComplete:Comment.onSaveComments});}},onSaveComments:function(originalResponse){var d=$('commentPostResult');if(originalResponse.responseText.indexOf('error')!=-1){var s=originalResponse.responseText.toQueryParams().error.gsub('\'','');d.update(s);d.writeAttribute("class","error");d.show();}else if(originalResponse.responseText.indexOf('warning')!=-1){Comment.closeForm();$('c_comment').value='';var s=originalResponse.responseText.toQueryParams().warning.gsub('\'','');d.writeAttribute("class","warning");d.update(s);d.show();if(Comment.allComments)Comment.viewAllComments();elseComment.viewComments();}else{Comment.closeForm();$('c_comment').value='';}},closeForm:function(){$('frmInsertComment').hide();},doLogin:function(){window.location='/user/login.htmx?url='+location.href;}}function linkclick(section,comp,lang){if(lang=='E'){baseURL="http://video.uefa.com";}else{if(lang=='I')baseURL="http://it.video.uefa.com";if(lang=='F')baseURL="http://fr.video.uefa.com";if(lang=='D')baseURL="http://de.video.uefa.com";if(lang=='S')baseURL="http://es.video.uefa.com";if(lang=='P')baseURL="http://pt.video.uefa.com";}if(section=='replay'){$$('div.highlighted').each(function(e){e.removeClassName('highlighted')});$$('div.fake').each(function(e){e.addClassName('clickable')});$('replay').addClassName('highlighted');$('replay').removeClassName('clickable');document.location.href=baseURL + "/video/vod/competitions/index.html";}else if(section=='live'){$$('div.highlighted').each(function(e){e.removeClassName('highlighted')});$$('div.fake').each(function(e){e.addClassName('clickable')});$('live').addClassName('highlighted');$('live').removeClassName('clickable');document.location.href=baseURL + "/video/live/competitions/"+comp+"/index.html";}else if(section=='liveaudio'){$$('div.highlighted').each(function(e){e.removeClassName('highlighted')});$$('div.fake').each(function(e){e.addClassName('clickable')});$('liveaudio').addClassName('highlighted');$('liveaudio').removeClassName('clickable');document.location.href=baseURL + "/video/live/competitions/"+comp+"/audiomatchlist.html";}else if(section=='magazine'){$$('div.highlighted').each(function(e){e.removeClassName('highlighted')});$$('div.fake').each(function(e){e.addClassName('clickable')});$('magazine').addClassName('highlighted');$('magazine').removeClassName('clickable');if(lang=='E'){document.location.href="http://www1.uefa.com/magazine/index2.html";}else{if(lang=='I')document.location.href="http://www1.it.uefa.com/magazine/index2.html";if(lang=='F')document.location.href="http://www1.fr.uefa.com/magazine/index2.html";if(lang=='D')document.location.href="http://www1.de.uefa.com/magazine/index2.html";if(lang=='S')document.location.href="http://www1.es.uefa.com/magazine/index2.html";if(lang=='P')document.location.href="http://www1.pt.uefa.com/magazine/index2.html";}}}var s_account="uefageneralprod"var s=s_gi(s_account)s.currencyCode="EUR"s.trackDownloadLinks=trues.trackExternalLinks=trues.trackInlineStats=trues.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx,m4v,ics"s.linkInternalFilters="javascript:,uefa.com"s.linkLeaveQueryString=falses.linkTrackVars="None"s.linkTrackEvents="None"s.dstStart="03/29/"+new Date().getFullYear();s.dstEnd="10/25/"+new Date().getFullYear();s.currentYear=+new Date().getFullYear();s.usePlugins=true;function s_doPlugins(s) {s.events=s.apl(s.events,"event2",",",1);if(s.prop10){s.prop10=s.prop10.toLowerCase();s.eVar1=s.prop10;var t_search=s.getValOnce(s.eVar1,'ev1',0);if(t_search){s.events=s.apl(s.events,'event1',',',1);if(!s.products) s.products=';';}}var oMetaData=document.getElementsByTagName("META");if(oMetaData&&oMetaData.length>0){for(var i=0;i<oMetaData.length;i++){if(oMetaData[i].content.indexOf('charset=')>-1){var sCSet=oMetaData[i].content.split('=');s.charSet=sCSet[1];}}} else {s.charSet="UTF-8";}if(s.hier1&&s.prop11) s.hier2=s.prop11+","+s.hier1;if(s.pageName&&s.prop11) s.prop12=s.prop11+","+s.pageName;s.eVar2=s.getQueryParam('int_cmp');if(s.prop5 && !s.eVar5) s.eVar5 = s.prop5;if(s.prop11 && !s.eVar11) s.eVar11 = s.prop11;if(s.prop13 && !s.eVar13) s.eVar13 = s.prop13;if(s.prop14 && !s.eVar14) s.eVar14 = s.prop14;if(s.prop15 && !s.eVar15) s.eVar15 = s.prop15;if(s.prop16 && !s.eVar16) s.eVar16 = s.prop16;if(s.prop17 && !s.eVar17) s.eVar17 = s.prop17;if(s.prop18 && !s.eVar18) s.eVar18 = s.prop18;if(s.prop19 && !s.eVar19) s.eVar19 = s.prop19;if(s.prop20 && !s.eVar20) s.eVar20 = s.prop20;if(s.prop21 && !s.eVar21) s.eVar21 = s.prop21;if(s.prop22 && !s.eVar22) s.eVar22 = s.prop22;if(s.prop23 && !s.eVar23) s.eVar23 = s.prop23;if(s.prop25 && !s.eVar25) s.eVar25 = s.prop25;if(s.prop26 && !s.eVar26) s.eVar26 = s.prop26;if(s.prop27 && !s.eVar27) s.eVar27 = s.prop27;if(s.prop28 && !s.eVar28) s.eVar28 = s.prop28;if(s.prop29 && !s.eVar29) s.eVar29 = s.prop29;if(s.prop30 && !s.eVar30) s.eVar30 = s.prop30;if(s.prop31 && !s.eVar31) s.eVar31 = s.prop31;if(s.prop32 && !s.eVar32) s.eVar32 = s.prop32;if(s.prop33 && !s.eVar33) s.eVar33 = s.prop33;if(s.prop34 && !s.eVar34) s.eVar34 = s.prop34;if(s.prop44 && !s.eVar44) s.eVar44 = s.prop44;s.campaign=s.getQueryParam('cid');s.campaign=s.getValOnce(s.campaign,'s_campaign',0);//s.eVar45=s.getPreviousNValue(s.pageName,2,'gpnv_e45','event18');if(s.pageName && !s.eVar8) s.eVar8 = s.pageName;if(s.channel && !s.eVar9) s.eVar9 = s.channel;s.prop38=s.getTimeParting('d','+1'); // Set hours.prop39=s.getTimeParting('w','+1'); // Set days.prop40=s.getTimeParting('w','+1'); // Set Weekend / Weekdayif(s.prop38 && !s.eVar38) s.eVar38 = s.prop38;if(s.prop39 && !s.eVar39) s.eVar39 = s.prop39;if(s.prop40 && !s.eVar40) s.eVar40 = s.prop40;}s.doPlugins=s_doPluginss.getPreviousNValue=new Function("v","n","c","el",""+"var s=this,t=new Date(),e,i,j,r='',rv='',ml=5,cl=0,wr='',cr='';t.se"+"tTime(t.getTime()+1800000);if(n>ml)return'ERROR: index out of range"+"';if(isNaN(n))return'ERROR: the previous value index must be a numb"+"er';if(s.c_r(c)){r=s.c_r(c);cl=(s.split(r,'~')).length}if(n>cl){if("+"v){if(s.c_r(c)){r=s.c_r(c);wr=s.apl(r,v,'~',2)}else wr=s.pageName}e"+"lse wr='no value'}else{cr=s.c_r(c);r=s.split(cr,'~');if(el){if(s.ev"+"ents){rv='';wr=s.apl(cr,v,'~',2);i=s.split(el,',');j=s.split(s.even"+"ts,',');for(x in i){for(y in j){if(i[x]==j[y])rv=r[r.length-n]}}}el"+"se{rv=r[r.length-n];wr=s.apl(cr,v,'~',2)}}else{rv=r[r.length-n];wr="+"s.apl(cr,v,'~',2)}}if(ml<=cl+1){var tmp=s.split(wr,'~');wr=tmp.slic"+"e(1,tmp.length);wr=wr.join('~')}s.c_w(c,wr,t);return rv;");s.split=new Function("l","d",""+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");s.apl=new Function("l","v","d","u",""+"var s=this,m=0;if(!l)l='';if(u){var i,n,a=s.split(l,d);for(i=0;i<a."+"length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCas"+"e()));}}if(!m)l=l?l+d+v:v;return l");s.getTimeParting=new Function("t","z",""+"var s=this,cy;var dc=new Date('1/1/2000');"+"if(dc.getDay()!=6||dc.getMonth()!=0){return'Data Not Available'}"+"else{;z=parseFloat(z);var dsts=new Date(s.dstStart);"+"var dste=new Date(s.dstEnd);fl=dste;cd=new Date();if(cd>dsts&&cd<fl)"+"{z=z+1}else{z=z};utc=cd.getTime()+(cd.getTimezoneOffset()*60000);"+"tz=new Date(utc + (3600000*z));thisy=tz.getFullYear();"+"var days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday',"+"'Saturday'];if(thisy!=s.currentYear){return'Data Not Available'}else{;"+"thish=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();"+"var dow=days[thisd];var ap='AM';var dt='Weekday';var mint='00';"+"if(thismin>30){mint='30'}if(thish>=12){ap='PM';thish=thish-12};"+"if (thish==0){thish=12};if(thisd==6||thisd==0){dt='Weekend'};"+"var timestring=thish+':'+mint+ap;if(t=='h'){return timestring}"+"if(t=='d'){return dow};if(t=='w'){return dt}}};");s.getQueryParam=new Function("p","d","u",""+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-"+"1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i="+"=p.length?i:i+1)}return v");s.p_gpv=new Function("k","u",""+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"+"=s.pt(q,'&','p_gvf',k)}return v");s.p_gvf=new Function("t","k",""+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."+"epa(v)}return ''");s.getValOnce=new Function("v","c","e",""+"var s=this,v=v?v:'',k=s.c_r(c),a=new Date,e=e?e:0;if(v){a.setTime(a"+".getTime()+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");s.visitorNamespace="uefa"s.trackingServer="metrics.uefa.com"s.dc="122"var s_code='',s_objectID;function s_gi(un,pg,ss){var c="=fun`o(~.substring(~){`Ps=^O~.indexOf(~#2 ~;$2~`b$2~=new Fun`o(~.length~.toLowerCase()~`Ps#8c_#k^an+'],~=new Object~};s.~`YMigrationServer~.toU"+"pperCase~){$2~','~s.wd~);s.~')q='~=new Array~ookieDomainPeriods~.location~^LingServer~dynamicAccount~var ~link~s.m_~=='~s.apv~BufferedRequests~Element~)$2x^b!Object#WObject.prototype#WObject.protot"+"ype[x])~etTime~visitor~$w@c(~referrer~else ~s.pt(~s.maxDelay~}c#E(e){~#i+~=''~.lastIndexOf(~^wc_i~}$2~.protocol~=new Date~^wobjectID=s.ppu=$I=$Iv1=$Iv2=$Iv3~for(i=~ction~javaEnabled~onclick~Name~te"+"rnalFilters~javascript~s.dl~@6s.b.addBehavior(\"# default# ~=parseFloat(~typeof(v)==\"~window~cookie~while(~s.vl_g~Type~;i#U{~tfs~s.un~&&s.~o^woid~browser~.parent~document~colorDepth~String~.host~s"+".fl(~s.rep(~s.eo~'+tm@S~s.sq~parseInt(~t=s.ot(o)~track~nload~j='1.~this~#PURL~}else{~s.vl_l~lugins~'){q='~dynamicVariablePrefix~');~;for(~Sampling~s.rc[un]~Event~._i~&&(~loadModule~resolution~s.c_r"+"(~s.c_w(~s.eh~s.isie~\"m_\"+n~Secure~Height~tcf~isopera~ismac~escape(~'s_~.href~screen.~s#8gi(~Version~harCode~variableProvider~.s_~)s_sv(v,n[k],i)}~')>=~){s.~)?'Y':'N'~u=m[t+1](~i)clearTimeout(~e&"+"&l$bSESSION'~name~home#P~;try{~,$m)~s.ssl~s.oun~s.rl[u~Width~o.type~s.vl_t~=s.sp(~Lifetime~s.gg('objectID~sEnabled~'+n+'~.mrq(@wun+'\"~ExternalLinks~charSet~lnk~onerror~http~currencyCode~.src~disab"+"le~.get~MigrationKey~(''+~&&!~f',~){t=~r=s[f](~u=m[t](~Opera~Math.~s.ape~s.fsg~s.ns6~conne~InlineStats~&&l$bNONE'~Track~'0123456789~true~+\"_c\"]~s.epa(~t.m_nl~s.va_t~m._d~n=s.oid(o)~,'sqs',q);~Lea"+"veQuery~?'&~'=')~n){~\"'+~){n=~'_'+~'+n;~\",''),~,255)}~if(~vo)~s.sampled~=s.oh(o);~+(y<1900?~n]=~1);~&&o~:'';h=h?h~;'+(n?'o.~sess~campaign~lif~ in ~s.co(~ffset~s.pe~m._l~s.c_d~s.brl~s.nrs~s[mn]~,'"+"vo~s.pl~=(apn~space~\"s_gs(\")~vo._t~b.attach~2o7.net'~Listener~Year(~d.create~=s.n.app~)}}}~!='~'||t~)+'/~s()+'~){p=~():''~a['!'+t]~&&c){~://')i+=~){v=s.n.~channel~100~rs,~.target~o.value~s_si(t)~"+"')dc='1~\".tl(\")~etscape~s_')t=t~omePage~='+~&&t~[b](e);~\"){n[k]~';s.va_~a+1,b):~return~mobile~height~events~random~code~=s_~=un~,pev~'MSIE ~'fun~floor(~atch~transa~s.num(~m._e~s.c_gd~,'lt~tm.g~."+"inner~;s.gl(~,f1,f2~',s.bc~page~Group,~.fromC~sByTag~')<~++)~)){~||!~+';'~i);~y+=~l&&~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li=0`5f`F!`ui)`ui=s`Xout(`ut,`d)}`b`ul=0'`Idl`0vo`2,d`l`5!$3vo`B;`c^1,`G$O2',$3;$T=d.g`X()`5!`ul)`ul`K;`ul[`ul`8]=vo`5!`d)`d=250;`ut()`Ct`0vo,id`2,trk=1,tm`l,sed=Math&&@b#6?@b#D@b#6()*$m000000"+"00000):#K`X(),$C='s'+@b#D#K`X()/10800000)%10+sed,y=tm@S$X),vt=tm@SDate($d^HMonth($d'$6y+1900:y)+' ^HHour$e:^HMinute$e:^HSecond$e ^HDay()+#f#K`XzoneO$H(),^l,^4=s.g^4(),ta`g,q`g,qs`g,#7`g,vb`B#M^1`Iu"+"ns(`Im_ll()`5!s.td){`Ptl=^4`M,a,o,i,x`g,c`g,v`g,p`g,bw`g,bh`g,^N0',k=^f^pcc`G@k',0@0,hp`g,ct`g,pn=0,ps`5^C&&^C.prototype){^N1'`5j.m#E){^N2'`5tm.setUTCDate){^N3'`5^h^6^n&&`T#h^N4'`5pn.toPrecisio@v^N"+"5';a`K`5a.forEach){^N6';i=0;o`B;^l`7'o`G`Pe,i=0@6i=new Iterator(o)`e}`4i^Vi=^l(o)`5i&&i.next)^N7'}}}}`j`T>=4)x=^rwidth+'x'+^r#4`5s.isns||s.^m`F`T>=3$k`p(@0`5`T>=4){c=^rpixelDepth;bw=`H#L@B;bh=`H#L^"+"k}}$P=s.n.p^S}`6^h`F`T>=4$k`p(@0;c=^r^B`5`T#h{bw=s.d.^A`V.o$H@B;bh=s.d.^A`V.o$H^k`5!s.^n^6b){^l`7's`Gtl`G`Pe,hp=0`vh$v\");hp=s.b.isH$v(tl)?\"Y\":\"N\"`e}`4hp^Vhp=^l(s,tl);^l`7's`G`Pe,ct=0`vclientCa"+"ps\");ct=s.b.@f`o^2`e}`4ct^Vct=^l(s$a`br`g`j$P)^0pn<$P`8&&pn<30){ps=^E$P[pn].@4@7#X`5p`3ps)<0)p+=ps;pn++}s.^d=x;s.^B=c;s.`t^t=j;s.`p=v;s.`z@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($3}`5pg){`H^wco`0o){`P^s\"_\",1,$8`4$Go)`Cwd^wgs`0u@v`P^sun,1,$8`4s.t()`Cwd^wdc`0u@v`P^sun,$8`4s.t()}}@8=(`H`M`k`9`3'@Os^y0`Id=^A;s.b=s.d.body`5s.d@S`V#S`r^zh=s.d@S`V#S`r('HEAD')`5s.h"+")s.h=s.h[0]}s.n=navigator;s.u=s.n.userAgent;@e=s.u`3'N$t6/^V`Papn$Z`r,v$Z^t,ie=v`3#B'),o=s.u`3'@a '),i`5v`3'@a^y0||o>0)apn='@a';^h$Q`SMicrosoft Internet Explorer'`Iisns$Q`SN$t'`I^m$Q`S@a'`I^n=(s.u`"+"3'Mac^y0)`5o>0)`T`ws.u`1o+6));`6ie>0){`T=^Ji=v`1ie+5))`5`T>3)`T`wi)}`6@e>0)`T`ws.u`1@e+10));`b`T`wv`Iem=0`5^C#R^u){i=^o^C#R^u(256))`E(`Iem=(i`S%C4%80'?2:(i`S%U0$m'?1:0))}s.sa(un`Ivl_l='^U,`YID,vmk,"+"`Y@T,`D,`D^j,ppu,@L,`Y`r$R,c`L,`z@F,#P`r,^P,`a,@P#0l@E^R,`G`Ivl_t=^R+',^v,$l,server,#P^2,#F`oID,purchaseID,$D,state,zip,#5,products,`Q`r,`Q^2'^W`Pn=1;n<51;n#U@D+=',prop@I,eVar@I,hier@I,list@z^R2=',"+"tnt,pe#A1#A2#A3,^d,^B,`t^t,`p,`z@H,^8@B,^8^k,@f`o^2,@5,p^S';@D+=^R2;@o@E@D,`G`Ivl_g=@D+',`N,`N^j,`NBase,fpC`L,@R`U,#3,`Y^X,`Y^X#Q`OSele`o,`OList,`OM#E,^LDow^MLinks,^L@K,^L@g,`Q@s^C,`QDow^MFile^2s,`"+"QEx`s,`QIn`s,`Q@iVa$n`Q@i^Zs,`Q`rs,@M,eo,_1_`a#0g@E^1,`G`Ipg=pg#M^1)`5!ss)`Hs()",w=window,l=w.s_c_il,n=navigator,u=n.userAgent,v=n.appVersion,e=v.indexOf('MSIE '),m=u.indexOf('Netscape6/'),a,i,s;if(un){un=un.toLowerCase();if(l)for(i=0;i<l.length;i++){s=l[i];if(!s._c||s._c=='s_c'){if(s.oun==un)return s;else if(s.fs&&s.sa&&s.fs(s.oun,un)){s.sa(un);return s}}}}w.s_an='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';w.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.subst"+"ring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");w.s_jn=new Function("a","d","var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");w.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");w.s_d=new Function("x","var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d"+"=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn("+"x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");w.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");w.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':"+"a");w.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){i"+"f(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")"+"'+c.substring(e+1);s=c.indexOf('=function(')}return c;");c=s_d(c);if(e>0){a=parseInt(i=v.substring(e+5));if(a>3)a=parseFloat(i)}else if(m>0)a=parseFloat(u.substring(m+10));else a=parseFloat(v);if(a>=5&&v.indexOf('Opera')<0&&u.indexOf('Opera')<0){w.s_c=new Function("un","pg","ss","var s=this;"+c);return new s_c(un,pg,ss)}else s=new Function("un","pg","ss","var s=new Object;"+s_ft(c)+";return s");return s(un,pg,ss)}var SCW={ContentProperties:null,EVars:null,Props:null,FlashPage:false,Active:true,Events:null,AllowedJSContent:null,Initialize:function(properties) {SCW.Events=new Array();SCW.EVars={};SCW.Props={};SCW.ContentProperties={};//the CustomSCW will know how to handle themSCW.AllowedJSContent=new Array();//this list the content properties that can be set via js},Execute:function(){if(!SCW.Active) return;CustomSCW.Execute();if(!SCW.FlashPage) {var s_code=s.t();if(s_code)document.write(s_code);}},AddContent:function(contentName,contentValue,ignoreCheck){if((ignoreCheck)||(SCW.AllowedJSContent.indexOf(contentName)>-1))SCW.ContentProperties[contentName]=contentValue;},AddEvent:function(name){if(SCW.Events.indexOf(name)<0)SCW.Events.push(name);},GetEventString:function(){var retVal="";for (var index=0,len=SCW.Events.length;index<len;++index) {retVal += SCW.Events[index];retVal += ",";}return retVal.substring(0,retVal.length-1);},AddEVar:function(n,val){SCW.EVars[n]=val;},AddProp:function(n,val){SCW.Props[n]=val;},TL:function(linkObject,kind,friendlyName,options){if(!SCW.Active) return;if(!options) options={};var stl=s_gi(s_account);for (key in options) { stl[key]=options[key];}stl.tl(linkObject,kind,friendlyName);}}var CustomSCW={subsectionCount:4,fillUserDetails:function() {var u=new User();u.fillOmnitureProperties();},chainProps:function(ht,count,separator){if(!separator)separator=":";var retVal=ht["sec"] + separator;for (var ix=1;ix<=count;ix++){if(ht["subsec" + ix]){retVal += ht["subsec" + ix];retVal += separator;}}return retVal.substring(0,retVal.length-1);},fillCommonPageProperties:function(ht){s.channel=ht["sec"];s.pageType=ht["pagetype"];for (var ix=1;ix<=CustomSCW.subsectionCount;ix++){if(ht["subsec" + ix]) {var val=CustomSCW.chainProps(ht,ix);val=this.onPropSave(ix,val);s["prop" + ix]=val;} else {break;}}s.prop5=ht["type"];s.hier1=CustomSCW.chainProps(ht,CustomSCW.subsectionCount,",");s.hier1=ANSICharConverter(s.hier1);s.pageName=CustomSCW.chainProps(ht,CustomSCW.subsectionCount);if(ht["type"]){s.pageName += ":";s.pageName += ht["type"];}s.pageName=ANSICharConverter(s.pageName);s.prop11=ht["lang"];},Execute:function(){CustomSCW.fillUserDetails();CustomSCW.fillCommonPageProperties(SCW.ContentProperties);if(SCW.ContentProperties["title"]){s.prop8=SCW.ContentProperties["title"];s.pageName += ":";s.pageName += SCW.ContentProperties["title"];}if(SCW.ContentProperties["id"])s.prop7=SCW.ContentProperties["id"];if(SCW.ContentProperties["author"])s.prop9=SCW.ContentProperties["author"];if(SCW.ContentProperties["comp"])s.prop13=SCW.ContentProperties["comp"];if(SCW.ContentProperties["round"])s.prop17=SCW.ContentProperties["round"];if(SCW.ContentProperties["match"])s.prop16=SCW.ContentProperties["match"];if(SCW.ContentProperties["club"])s.prop19=SCW.ContentProperties["club"];if(SCW.ContentProperties["season"])s.prop14=SCW.ContentProperties["season"];if(SCW.ContentProperties["group"])s.prop18=SCW.ContentProperties["group"];if(SCW.ContentProperties["player"])s.prop20=SCW.ContentProperties["player"];var sEvents=SCW.GetEventString();if(sEvents.length>0) {if(s.events)s.events += ",";elses.events="";s.events += sEvents;}for (key in SCW.EVars) { s["eVar" + key]=SCW.EVars[key];}for (key in SCW.Props) { s["prop" + key]=SCW.Props[key];}},onPropSave:function(n,val) {if(n==2) val=ANSICharConverter(val);return val;}}function ANSICharConverter(s) {var charList=new Array(206,238,234,202,158,138,192,193,196,197,229,224,225,227,228,198,230,201,203,200,232,233,235,204,205,207,236,237,239,338,211,214,216,243,246,248,244,220,218,252,250,268,269,199,231,262,263,209,241,353,352,223,221,253,381,382,351);var mappingList=new Array("I","i","e","E","z","S","A","A","A","A","a","a","a","a","a","AE","ae","E","E","E","e","e","e","I","I","I","i","i","i","OE","O","O","O","o","o","o","o","U","U","u","u","C","c","C","c","c","c","N","n","s","S","ss","Y","y","Z","z","s");s='' + s;var stringBuilder='';for (var n=0;n<s.length;n++) {var c_old=s.charCodeAt(n);var pos=charList.indexOf(c_old);var c_new=String.fromCharCode(c_old);if(pos!=-1) c_new=mappingList[ pos ];stringBuilder += c_new;}return stringBuilder;}
