SONET.featureProviders["plugin/navNavigationPlugin"]={};SONET.featureProviders["plugin/navNavigationPlugin"].translations={"Get Help":"Hilfe aufrufen","Game Help":"Spielhilfe","Top FAQs":"Top-FAQs",Close:"Schlie\u00dfen",Shop:"Durchst\u00f6bern","Best Sellers":"Bestseller","Shop all  EA SPORTS games":"Alle EA SPORTS-Spiele durchst\u00f6bern","Shop all in-game music":"S\u00e4mtliche Spielmusik durchst\u00f6bern","Search now ...":"Jetzt suchen ...","E-mail":"E-Mail",Password:"Passwort","Forgot Password?":"Passwort vergessen?","Forgot Email?":"E-Mail-Adresse vergessen?","Sign In":"Anmelden","My Profile":"Mein Profil",Hometown:"Heimatstadt","Time Zone":"Zeitzone","Favorite Game":"Lieblingsspiel",Language:"Sprache",Gender:"Geschlecht","Player Style":"Spieler-Typ","Profile detail is currently unavailable.":"Profil-Details sind derzeit nicht verf\u00fcgbar.","Registered Members":"Registrierte Mitglieder","Online Members":"Online-Mitglieder","Fan Groups":"Fangruppen","N/A":"Nicht zutreffend","Blog Posts":"Blog-Posts","Customize Your Experience":"Sorge f\u00fcr ein ma\u00dfgeschneidertes Erlebnis",Register:"Registrieren","My Player Hub":"Meine Spieler-Zentrale",Messages:"Nachrichten",Requests:"Anfragen","Log out":"Abmelden","Sign In To Comment":"Anmelden, um einen Kommentar zu verfassen",Email:"E-Mail-Adresse","Incorrect Email/Password Combination":"Falsche E-Mail/Passwort-Kombination","Passwords are case sensitive. Please check your CAPS lock key. If you do not have an account, please register.":"Bei Passw\u00f6rtern wird zwischen Gro\u00df- und Kleinschreibung unterschieden. Bitte \u00fcberpr\u00fcfe, ob du mit der Feststelltaste auf Gro\u00dfschreibung umgeschaltet hast. Solltest du kein Konto besitzen, registriere dich bitte.","Find Games":"Spiele suchen","Buy Now":"Jetzt kaufen","Get Exclusive Updates":"Bleib immer auf dem Laufenden",Updates:"Neuigkeiten",Media:"Medien","My Football World":"Meine Football World",Home:"Startseite","Get Updates":"Nach Updates suchen","Pre-Order Now":"Jetzt vorbestellen","Available on PLAYSTATION&reg; 3, PSP&reg;, XBOX 360&reg; and Wii&trade;":"Erh\u00e4ltlich f\u00fcr PlayStation&reg;3, PSP&rtrade;, XBOX 360&reg; und Wii&trade;",Forums:"Foren",Advertise:"Werbung","Corporate Info":"Unternehmensinformationen","Privacy Policy":"Datenschutz","Legal Notices":"Rechtliches","Terms of Service":"Nutzungsbedingungen",Games:"Spiele","More Stuff to do":"Weitere M\u00f6glichkeiten",Help:"Hilfe","Popular Genres":"Beliebte Genres",Platforms:"Plattformen",Updated:"Aktualisiert","Read the Blogs":"Blogs lesen","Join the Community":"Der Community beitreten","Media Lounge":"Medien-Lounge","Game news":"Spiele-News","Games by Platform":"Spiele nach Plattform",Racing:"Rennspiele",Shooting:"Shooter",Puzzle:"Denkspiele",RPG:"Rollenspiele",Kids:"F\u00fcr Kinder",Strategy:"Strategiespiele",Simulation:"Simulationen",Mobile:"Handyspiele","Customer Support":"Kundendienst","Online Service Updates":"Neuigkeiten zum Onlinedienst","Patches and Updates":"Patches und Updates","Video Game Forums":"Videospiel-Foren","Products EULAs":"Endbenutzer-Lizenzvereinbarungen zu den Produkten","FIFA Legal":"FIFA - Rechtliches","Alfresco preview username":"Alfresco-Vorschau Benutzername","Popular Platforms":"Beliebte Plattformen","PC Games":"PC-Spiele",Sports:"Sport","Email Us":"E-Mail an uns","Patches &amp; Updates":"Patches und Updates","Billing FAQ":"FAQ Bezahlsystem","Highlighted Game":"Highlight-Spiel","ESRB Rating Information":"Information zur ESRB-Einstufung","Games By Platform":"Spiele nach Plattform","Log Out":"Abmelden","Pre-order":"Vorbestellen","Throttle Value":"Drosselwert",Submit:"Senden","We are experiencing a high level of activity on the site and log in is currently unavailable. Please try back later.":"Die Seite ist momentan ausgelastet und ein Einloggen nicht m\u00f6glich. Bitte sp\u00e4ter erneut versuchen."};SONET.featureProviders["plugin/navNavigationPlugin"].assetDirPattern="%assettype%/navNavigationPlugin";SONET.featureProviders["plugin/navNavigationPlugin"].widgetClosures={};SONET.featureProviders["plugin/navNavigationPlugin"].decoratorClosures={};SONET.featureProviders["plugin/navNavigationPlugin"].widgetClosures.worldcupHeader=function(){var _=SONET.translatorForFeatureProvider("plugin/navNavigationPlugin");var widget=new ENGINE.Widget;SONET.uwa.use(function(UWA){widget.onLoad=function(){var login=Login();login.init();try{var nav=BlogsNav();nav.init()}catch(e){}};function Login(){var createLoginBox=function(){widget.popupWidget("navNavigationPlugin","popupLogin",350,200,{redirectUrl:location.href})};var subscribeToRequireLogin=function(){SONET.MessageCenter.subscribe("requireLogin",function(oParameter,sEventName){var sMessage=oParameter.message||"";var login=Login();login.show()})};var oPublic={init:function(){subscribeToRequireLogin()},show:function(){createLoginBox()}};return oPublic}BlogsNav=function(){var handleMenuMouseOut=function(ev){var elRelTarget=YAHOO.util.Event.getRelatedTarget(ev),bInMenu=YAHOO.util.Selector.test(elRelTarget," .hovered * ");if(!bInMenu){var els=YAHOO.util.Selector.query(" .subNav ");var subNavElements=YAHOO.util.Selector.query(".hasSubnav");YAHOO.util.Dom.removeClass(subNavElements,"hovered");YAHOO.util.Dom.setStyle(els,"display","none")}};var handleMenuMouseOver=function(ev){var target=YAHOO.util.Event.getTarget(ev);var bHasSubnav=YAHOO.util.Selector.test(target," .hasSubnav * ");if(!YAHOO.util.Dom.getAncestorByClassName(target,"hovered")&&bHasSubnav){var els=YAHOO.util.Selector.query(" .subNav ");YAHOO.util.Dom.setStyle(els,"display","none");var el=YAHOO.util.Selector.query(" .subNav ",target.parentNode,true);YAHOO.util.Dom.addClass(target.parentNode,"hovered");el.style.display="block"}};return{init:function(){var subNavElements=YAHOO.util.Selector.query(".hasSubnav");YAHOO.util.Event.addListener(subNavElements,"mouseover",handleMenuMouseOver);YAHOO.util.Event.addListener(subNavElements,"mouseout",handleMenuMouseOut)}}}});return widget};YAHOO.util.Attribute=function(hash,owner){if(owner){this.owner=owner;this.configure(hash,true)}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var val=this.value;if(this.getter){val=this.getter.call(this.owner,this.name,val)}return val},setValue:function(value,silent){var beforeRetVal,owner=this.owner,name=this.name;var event={type:name,prevValue:this.getValue(),newValue:value};if(this.readOnly||(this.writeOnce&&this._written)){return false}if(this.validator&&!this.validator.call(owner,value)){return false}if(!silent){beforeRetVal=owner.fireBeforeChangeEvent(event);if(beforeRetVal===false){return false}}if(this.setter){value=this.setter.call(owner,value,this.name);if(value===undefined){}}if(this.method){this.method.call(owner,value,this.name)}this.value=value;this._written=true;event.type=name;if(!silent){this.owner.fireChangeEvent(event)}return true},configure:function(map,init){map=map||{};if(init){this._written=false}this._initialConfig=this._initialConfig||{};for(var key in map){if(map.hasOwnProperty(key)){this[key]=map[key];if(init){this._initialConfig[key]=map[key]}}}},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig,true)},refresh:function(silent){this.setValue(this.value,silent)}};(function(){var Lang=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(key){this._configs=this._configs||{};var config=this._configs[key];if(!config||!this._configs.hasOwnProperty(key)){return null}return config.getValue()},set:function(key,value,silent){this._configs=this._configs||{};var config=this._configs[key];if(!config){return false}return config.setValue(value,silent)},getAttributeKeys:function(){this._configs=this._configs;var keys=[],key;for(key in this._configs){if(Lang.hasOwnProperty(this._configs,key)&&!Lang.isUndefined(this._configs[key])){keys[keys.length]=key}}return keys},setAttributes:function(map,silent){for(var key in map){if(Lang.hasOwnProperty(map,key)){this.set(key,map[key],silent)}}},resetValue:function(key,silent){this._configs=this._configs||{};if(this._configs[key]){this.set(key,this._configs[key]._initialConfig.value,silent);return true}return false},refresh:function(key,silent){this._configs=this._configs||{};var configs=this._configs;key=((Lang.isString(key))?[key]:key)||this.getAttributeKeys();for(var i=0,len=key.length;i<len;++i){if(configs.hasOwnProperty(key[i])){this._configs[key[i]].refresh(silent)}}},register:function(key,map){this.setAttributeConfig(key,map)},getAttributeConfig:function(key){this._configs=this._configs||{};var config=this._configs[key]||{};var map={};for(key in config){if(Lang.hasOwnProperty(config,key)){map[key]=config[key]}}return map},setAttributeConfig:function(key,map,init){this._configs=this._configs||{};map=map||{};if(!this._configs[key]){map.name=key;this._configs[key]=this.createAttribute(map)}else{this._configs[key].configure(map,init)}},configureAttribute:function(key,map,init){this.setAttributeConfig(key,map,init)},resetAttributeConfig:function(key){this._configs=this._configs||{};this._configs[key].resetConfig()},subscribe:function(type,callback){this._events=this._events||{};if(!(type in this._events)){this._events[type]=this.createEvent(type)}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(e){var type="before";type+=e.type.charAt(0).toUpperCase()+e.type.substr(1)+"Change";e.type=type;return this.fireEvent(e.type,e)},fireChangeEvent:function(e){e.type+="Change";return this.fireEvent(e.type,e)},createAttribute:function(map){return new YAHOO.util.Attribute(map,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();(function(){var Dom=YAHOO.util.Dom,AttributeProvider=YAHOO.util.AttributeProvider,specialTypes={mouseenter:true,mouseleave:true};var Element=function(el,map){this.init.apply(this,arguments)};Element.DOM_EVENTS={click:true,dblclick:true,keydown:true,keypress:true,keyup:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,mouseenter:true,mouseleave:true,focus:true,blur:true,submit:true,change:true};Element.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(value,key){var el=this.get("element");if(el){el[key]=value}return value},DEFAULT_HTML_GETTER:function(key){var el=this.get("element"),val;if(el){val=el[key]}return val},appendChild:function(child){child=child.get?child.get("element"):child;return this.get("element").appendChild(child)},getElementsByTagName:function(tag){return this.get("element").getElementsByTagName(tag)},hasChildNodes:function(){return this.get("element").hasChildNodes()},insertBefore:function(element,before){element=element.get?element.get("element"):element;before=(before&&before.get)?before.get("element"):before;return this.get("element").insertBefore(element,before)},removeChild:function(child){child=child.get?child.get("element"):child;return this.get("element").removeChild(child)},replaceChild:function(newNode,oldNode){newNode=newNode.get?newNode.get("element"):newNode;oldNode=oldNode.get?oldNode.get("element"):oldNode;return this.get("element").replaceChild(newNode,oldNode)},initAttributes:function(map){},addListener:function(type,fn,obj,scope){scope=scope||this;var Event=YAHOO.util.Event,el=this.get("element")||this.get("id"),self=this;if(specialTypes[type]&&!Event._createMouseDelegate){return false}if(!this._events[type]){if(el&&this.DOM_EVENTS[type]){Event.on(el,type,function(e,matchedEl){if(e.srcElement&&!e.target){e.target=e.srcElement}if((e.toElement&&!e.relatedTarget)||(e.fromElement&&!e.relatedTarget)){e.relatedTarget=Event.getRelatedTarget(e)}if(!e.currentTarget){e.currentTarget=el}self.fireEvent(type,e,matchedEl)},obj,scope)}this.createEvent(type,{scope:this})}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){return this.addListener.apply(this,arguments)},subscribe:function(){return this.addListener.apply(this,arguments)},removeListener:function(type,fn){return this.unsubscribe.apply(this,arguments)},addClass:function(className){Dom.addClass(this.get("element"),className)},getElementsByClassName:function(className,tag){return Dom.getElementsByClassName(className,tag,this.get("element"))},hasClass:function(className){return Dom.hasClass(this.get("element"),className)},removeClass:function(className){return Dom.removeClass(this.get("element"),className)},replaceClass:function(oldClassName,newClassName){return Dom.replaceClass(this.get("element"),oldClassName,newClassName)},setStyle:function(property,value){return Dom.setStyle(this.get("element"),property,value)},getStyle:function(property){return Dom.getStyle(this.get("element"),property)},fireQueue:function(){var queue=this._queue;for(var i=0,len=queue.length;i<len;++i){this[queue[i][0]].apply(this,queue[i][1])}},appendTo:function(parent,before){parent=(parent.get)?parent.get("element"):Dom.get(parent);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:parent});before=(before&&before.get)?before.get("element"):Dom.get(before);var element=this.get("element");if(!element){return false}if(!parent){return false}if(element.parent!=parent){if(before){parent.insertBefore(element,before)}else{parent.appendChild(element)}}this.fireEvent("appendTo",{type:"appendTo",target:parent});return element},get:function(key){var configs=this._configs||{},el=configs.element;if(el&&!configs[key]&&!YAHOO.lang.isUndefined(el.value[key])){this._setHTMLAttrConfig(key)}return AttributeProvider.prototype.get.call(this,key)},setAttributes:function(map,silent){var done={},configOrder=this._configOrder;for(var i=0,len=configOrder.length;i<len;++i){if(map[configOrder[i]]!==undefined){done[configOrder[i]]=true;this.set(configOrder[i],map[configOrder[i]],silent)}}for(var att in map){if(map.hasOwnProperty(att)&&!done[att]){this.set(att,map[att],silent)}}},set:function(key,value,silent){var el=this.get("element");if(!el){this._queue[this._queue.length]=["set",arguments];if(this._configs[key]){this._configs[key].value=value}return}if(!this._configs[key]&&!YAHOO.lang.isUndefined(el[key])){this._setHTMLAttrConfig(key)}return AttributeProvider.prototype.set.apply(this,arguments)},setAttributeConfig:function(key,map,init){this._configOrder.push(key);AttributeProvider.prototype.setAttributeConfig.apply(this,arguments)},createEvent:function(type,config){this._events[type]=true;return AttributeProvider.prototype.createEvent.apply(this,arguments)},init:function(el,attr){this._initElement(el,attr)},destroy:function(){var el=this.get("element");YAHOO.util.Event.purgeElement(el,true);this.unsubscribeAll();if(el&&el.parentNode){el.parentNode.removeChild(el)}this._queue=[];this._events={};this._configs={};this._configOrder=[]},_initElement:function(el,attr){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];attr=attr||{};attr.element=attr.element||el||null;var isReady=false;var DOM_EVENTS=Element.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var event in DOM_EVENTS){if(DOM_EVENTS.hasOwnProperty(event)){this.DOM_EVENTS[event]=DOM_EVENTS[event]}}if(typeof attr.element==="string"){this._setHTMLAttrConfig("id",{value:attr.element})}if(Dom.get(attr.element)){isReady=true;this._initHTMLElement(attr);this._initContent(attr)}YAHOO.util.Event.onAvailable(attr.element,function(){if(!isReady){this._initHTMLElement(attr)}this.fireEvent("available",{type:"available",target:Dom.get(attr.element)})},this,true);YAHOO.util.Event.onContentReady(attr.element,function(){if(!isReady){this._initContent(attr)}this.fireEvent("contentReady",{type:"contentReady",target:Dom.get(attr.element)})},this,true)},_initHTMLElement:function(attr){this.setAttributeConfig("element",{value:Dom.get(attr.element),readOnly:true})},_initContent:function(attr){this.initAttributes(attr);this.setAttributes(attr,true);this.fireQueue()},_setHTMLAttrConfig:function(key,map){var el=this.get("element");map=map||{};map.name=key;map.setter=map.setter||this.DEFAULT_HTML_SETTER;map.getter=map.getter||this.DEFAULT_HTML_GETTER;map.value=map.value||el[key];this._configs[key]=new YAHOO.util.Attribute(map,this)}};YAHOO.augment(Element,AttributeProvider);YAHOO.util.Element=Element})();YAHOO.register("element",YAHOO.util.Element,{version:"2.8.1",build:"19"});(function(){var Dom=YAHOO.util.Dom,lang=YAHOO.lang,isObject=lang.isObject,isFunction=lang.isFunction,isArray=lang.isArray,isString=lang.isString;function Paginator(config){var UNLIMITED=Paginator.VALUE_UNLIMITED,attrib,initialPage,records,perPage,startIndex;config=isObject(config)?config:{};this.initConfig();this.initEvents();this.set("rowsPerPage",config.rowsPerPage,true);if(Paginator.isNumeric(config.totalRecords)){this.set("totalRecords",config.totalRecords,true)}this.initUIComponents();for(attrib in config){if(config.hasOwnProperty(attrib)){this.set(attrib,config[attrib],true)}}initialPage=this.get("initialPage");records=this.get("totalRecords");perPage=this.get("rowsPerPage");if(initialPage>1&&perPage!==UNLIMITED){startIndex=(initialPage-1)*perPage;if(records===UNLIMITED||startIndex<records){this.set("recordOffset",startIndex,true)}}}lang.augmentObject(Paginator,{id:0,ID_BASE:"yui-pg",VALUE_UNLIMITED:-1,TEMPLATE_DEFAULT:"{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}",TEMPLATE_ROWS_PER_PAGE:"{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}",ui:{},isNumeric:function(v){return isFinite(+v)},toNumber:function(n){return isFinite(+n)?+n:null}},true);Paginator.prototype={_containers:[],_batch:false,_pageChanged:false,_state:null,initConfig:function(){var UNLIMITED=Paginator.VALUE_UNLIMITED;this.setAttributeConfig("rowsPerPage",{value:0,validator:Paginator.isNumeric,setter:Paginator.toNumber});this.setAttributeConfig("containers",{value:null,validator:function(val){if(!isArray(val)){val=[val]}for(var i=0,len=val.length;i<len;++i){if(isString(val[i])||(isObject(val[i])&&val[i].nodeType===1)){continue}return false}return true},method:function(val){val=Dom.get(val);if(!isArray(val)){val=[val]}this._containers=val}});this.setAttributeConfig("totalRecords",{value:0,validator:Paginator.isNumeric,setter:Paginator.toNumber});this.setAttributeConfig("recordOffset",{value:0,validator:function(val){var total=this.get("totalRecords");if(Paginator.isNumeric(val)){val=+val;return total===UNLIMITED||total>val||(total===0&&val===0)}return false},setter:Paginator.toNumber});this.setAttributeConfig("initialPage",{value:1,validator:Paginator.isNumeric,setter:Paginator.toNumber});this.setAttributeConfig("template",{value:Paginator.TEMPLATE_DEFAULT,validator:isString});this.setAttributeConfig("containerClass",{value:"yui-pg-container",validator:isString});this.setAttributeConfig("alwaysVisible",{value:true,validator:lang.isBoolean});this.setAttributeConfig("updateOnChange",{value:false,validator:lang.isBoolean});this.setAttributeConfig("id",{value:Paginator.id++,readOnly:true});this.setAttributeConfig("rendered",{value:false,readOnly:true})},initUIComponents:function(){var ui=Paginator.ui,name,UIComp;for(name in ui){if(ui.hasOwnProperty(name)){UIComp=ui[name];if(isObject(UIComp)&&isFunction(UIComp.init)){UIComp.init(this)}}}},initEvents:function(){this.createEvent("render");this.createEvent("rendered");this.createEvent("changeRequest");this.createEvent("pageChange");this.createEvent("beforeDestroy");this.createEvent("destroy");this._selfSubscribe()},_selfSubscribe:function(){this.subscribe("totalRecordsChange",this.updateVisibility,this,true);this.subscribe("alwaysVisibleChange",this.updateVisibility,this,true);this.subscribe("totalRecordsChange",this._handleStateChange,this,true);this.subscribe("recordOffsetChange",this._handleStateChange,this,true);this.subscribe("rowsPerPageChange",this._handleStateChange,this,true);this.subscribe("totalRecordsChange",this._syncRecordOffset,this,true)},_syncRecordOffset:function(e){var v=e.newValue,rpp,state;if(e.prevValue!==v){if(v!==Paginator.VALUE_UNLIMITED){rpp=this.get("rowsPerPage");if(rpp&&this.get("recordOffset")>=v){state=this.getState({totalRecords:e.prevValue,recordOffset:this.get("recordOffset")});this.set("recordOffset",state.before.recordOffset);this._firePageChange(state)}}}},_handleStateChange:function(e){if(e.prevValue!==e.newValue){var change=this._state||{},state;change[e.type.replace(/Change$/,"")]=e.prevValue;state=this.getState(change);if(state.page!==state.before.page){if(this._batch){this._pageChanged=true}else{this._firePageChange(state)}}}},_firePageChange:function(state){if(isObject(state)){var current=state.before;delete state.before;this.fireEvent("pageChange",{type:"pageChange",prevValue:state.page,newValue:current.page,prevState:state,newState:current})}},render:function(){if(this.get("rendered")){return this}var template=this.get("template"),state=this.getState(),id_base=Paginator.ID_BASE+this.get("id")+"-",i,len;for(i=0,len=this._containers.length;i<len;++i){this._renderTemplate(this._containers[i],template,id_base+i,true)}this.updateVisibility();if(this._containers.length){this.setAttributeConfig("rendered",{value:true});this.fireEvent("render",state);this.fireEvent("rendered",state)}return this},_renderTemplate:function(container,template,id_base,hide){var containerClass=this.get("containerClass"),markers,i,len;if(!container){return}Dom.setStyle(container,"display","none");Dom.addClass(container,containerClass);container.innerHTML=template.replace(/\{([a-z0-9_ \-]+)\}/gi,'<span class="yui-pg-ui yui-pg-ui-$1"></span>');markers=Dom.getElementsByClassName("yui-pg-ui","span",container);for(i=0,len=markers.length;i<len;++i){this.renderUIComponent(markers[i],id_base)}if(!hide){Dom.setStyle(container,"display","")}},renderUIComponent:function(marker,id_base){var par=marker.parentNode,name=/yui-pg-ui-(\w+)/.exec(marker.className),UIComp=name&&Paginator.ui[name[1]],comp;if(isFunction(UIComp)){comp=new UIComp(this);if(isFunction(comp.render)){par.replaceChild(comp.render(id_base),marker)}}},destroy:function(){this.fireEvent("beforeDestroy");this.fireEvent("destroy");this.setAttributeConfig("rendered",{value:false});this.unsubscribeAll()},updateVisibility:function(e){var alwaysVisible=this.get("alwaysVisible"),totalRecords,visible,rpp,rppOptions,i,len;if(!e||e.type==="alwaysVisibleChange"||!alwaysVisible){totalRecords=this.get("totalRecords");visible=true;rpp=this.get("rowsPerPage");rppOptions=this.get("rowsPerPageOptions");if(isArray(rppOptions)){for(i=0,len=rppOptions.length;i<len;++i){rpp=Math.min(rpp,rppOptions[i])}}if(totalRecords!==Paginator.VALUE_UNLIMITED&&totalRecords<=rpp){visible=false}visible=visible||alwaysVisible;for(i=0,len=this._containers.length;i<len;++i){Dom.setStyle(this._containers[i],"display",visible?"":"none")}}},getContainerNodes:function(){return this._containers},getTotalPages:function(){var records=this.get("totalRecords"),perPage=this.get("rowsPerPage");if(!perPage){return null}if(records===Paginator.VALUE_UNLIMITED){return Paginator.VALUE_UNLIMITED}return Math.ceil(records/perPage)},hasPage:function(page){if(!lang.isNumber(page)||page<1){return false}var totalPages=this.getTotalPages();return(totalPages===Paginator.VALUE_UNLIMITED||totalPages>=page)},getCurrentPage:function(){var perPage=this.get("rowsPerPage");if(!perPage||!this.get("totalRecords")){return 0}return Math.floor(this.get("recordOffset")/perPage)+1},hasNextPage:function(){var currentPage=this.getCurrentPage(),totalPages=this.getTotalPages();return currentPage&&(totalPages===Paginator.VALUE_UNLIMITED||currentPage<totalPages)},getNextPage:function(){return this.hasNextPage()?this.getCurrentPage()+1:null},hasPreviousPage:function(){return(this.getCurrentPage()>1)},getPreviousPage:function(){return(this.hasPreviousPage()?this.getCurrentPage()-1:1)},getPageRecords:function(page){if(!lang.isNumber(page)){page=this.getCurrentPage()}var perPage=this.get("rowsPerPage"),records=this.get("totalRecords"),start,end;if(!page||!perPage){return null}start=(page-1)*perPage;if(records!==Paginator.VALUE_UNLIMITED){if(start>=records){return null}end=Math.min(start+perPage,records)-1}else{end=start+perPage-1}return[start,end]},setPage:function(page,silent){if(this.hasPage(page)&&page!==this.getCurrentPage()){if(this.get("updateOnChange")||silent){this.set("recordOffset",(page-1)*this.get("rowsPerPage"))}else{this.fireEvent("changeRequest",this.getState({page:page}))}}},getRowsPerPage:function(){return this.get("rowsPerPage")},setRowsPerPage:function(rpp,silent){if(Paginator.isNumeric(rpp)&&+rpp>0&&+rpp!==this.get("rowsPerPage")){if(this.get("updateOnChange")||silent){this.set("rowsPerPage",rpp)}else{this.fireEvent("changeRequest",this.getState({rowsPerPage:+rpp}))}}},getTotalRecords:function(){return this.get("totalRecords")},setTotalRecords:function(total,silent){if(Paginator.isNumeric(total)&&+total>=0&&+total!==this.get("totalRecords")){if(this.get("updateOnChange")||silent){this.set("totalRecords",total)}else{this.fireEvent("changeRequest",this.getState({totalRecords:+total}))}}},getStartIndex:function(){return this.get("recordOffset")},setStartIndex:function(offset,silent){if(Paginator.isNumeric(offset)&&+offset>=0&&+offset!==this.get("recordOffset")){if(this.get("updateOnChange")||silent){this.set("recordOffset",offset)}else{this.fireEvent("changeRequest",this.getState({recordOffset:+offset}))}}},getState:function(changes){var UNLIMITED=Paginator.VALUE_UNLIMITED,M=Math,max=M.max,ceil=M.ceil,currentState,state,offset;function normalizeOffset(offset,total,rpp){if(offset<=0||total===0){return 0}if(total===UNLIMITED||total>offset){return offset-(offset%rpp)}return total-(total%rpp||rpp)}currentState={paginator:this,totalRecords:this.get("totalRecords"),rowsPerPage:this.get("rowsPerPage"),records:this.getPageRecords()};currentState.recordOffset=normalizeOffset(this.get("recordOffset"),currentState.totalRecords,currentState.rowsPerPage);currentState.page=ceil(currentState.recordOffset/currentState.rowsPerPage)+1;if(!changes){return currentState}state={paginator:this,before:currentState,rowsPerPage:changes.rowsPerPage||currentState.rowsPerPage,totalRecords:(Paginator.isNumeric(changes.totalRecords)?max(changes.totalRecords,UNLIMITED):+currentState.totalRecords)};if(state.totalRecords===0){state.recordOffset=state.page=0}else{offset=Paginator.isNumeric(changes.page)?(changes.page-1)*state.rowsPerPage:Paginator.isNumeric(changes.recordOffset)?+changes.recordOffset:currentState.recordOffset;state.recordOffset=normalizeOffset(offset,state.totalRecords,state.rowsPerPage);state.page=ceil(state.recordOffset/state.rowsPerPage)+1}state.records=[state.recordOffset,state.recordOffset+state.rowsPerPage-1];if(state.totalRecords!==UNLIMITED&&state.recordOffset<state.totalRecords&&state.records&&state.records[1]>state.totalRecords-1){state.records[1]=state.totalRecords-1}return state},setState:function(state){if(isObject(state)){this._state=this.getState({});state={page:state.page,rowsPerPage:state.rowsPerPage,totalRecords:state.totalRecords,recordOffset:state.recordOffset};if(state.page&&state.recordOffset===undefined){state.recordOffset=(state.page-1)*(state.rowsPerPage||this.get("rowsPerPage"))}this._batch=true;this._pageChanged=false;for(var k in state){if(state.hasOwnProperty(k)&&this._configs.hasOwnProperty(k)){this.set(k,state[k])}}this._batch=false;if(this._pageChanged){this._pageChanged=false;this._firePageChange(this.getState(this._state))}}}};lang.augmentProto(Paginator,YAHOO.util.AttributeProvider);YAHOO.widget.Paginator=Paginator})();(function(){var Paginator=YAHOO.widget.Paginator,l=YAHOO.lang;Paginator.ui.CurrentPageReport=function(p){this.paginator=p;p.subscribe("recordOffsetChange",this.update,this,true);p.subscribe("rowsPerPageChange",this.update,this,true);p.subscribe("totalRecordsChange",this.update,this,true);p.subscribe("pageReportTemplateChange",this.update,this,true);p.subscribe("destroy",this.destroy,this,true);p.subscribe("pageReportClassChange",this.update,this,true)};Paginator.ui.CurrentPageReport.init=function(p){p.setAttributeConfig("pageReportClass",{value:"yui-pg-current",validator:l.isString});p.setAttributeConfig("pageReportTemplate",{value:"({currentPage} of {totalPages})",validator:l.isString});p.setAttributeConfig("pageReportValueGenerator",{value:function(paginator){var curPage=paginator.getCurrentPage(),records=paginator.getPageRecords();return{currentPage:records?curPage:0,totalPages:paginator.getTotalPages(),startIndex:records?records[0]:0,endIndex:records?records[1]:0,startRecord:records?records[0]+1:0,endRecord:records?records[1]+1:0,totalRecords:paginator.get("totalRecords")}},validator:l.isFunction})};Paginator.ui.CurrentPageReport.sprintf=function(template,values){return template.replace(/\{([\w\s\-]+)\}/g,function(x,key){return(key in values)?values[key]:""})};Paginator.ui.CurrentPageReport.prototype={span:null,render:function(id_base){this.span=document.createElement("span");this.span.id=id_base+"-page-report";this.span.className=this.paginator.get("pageReportClass");this.update();return this.span},update:function(e){if(e&&e.prevValue===e.newValue){return}this.span.innerHTML=Paginator.ui.CurrentPageReport.sprintf(this.paginator.get("pageReportTemplate"),this.paginator.get("pageReportValueGenerator")(this.paginator))},destroy:function(){this.span.parentNode.removeChild(this.span);this.span=null}}})();(function(){var Paginator=YAHOO.widget.Paginator,l=YAHOO.lang;Paginator.ui.PageLinks=function(p){this.paginator=p;p.subscribe("recordOffsetChange",this.update,this,true);p.subscribe("rowsPerPageChange",this.update,this,true);p.subscribe("totalRecordsChange",this.update,this,true);p.subscribe("pageLinksChange",this.rebuild,this,true);p.subscribe("pageLinkClassChange",this.rebuild,this,true);p.subscribe("currentPageClassChange",this.rebuild,this,true);p.subscribe("destroy",this.destroy,this,true);p.subscribe("pageLinksContainerClassChange",this.rebuild,this,true)};Paginator.ui.PageLinks.init=function(p){p.setAttributeConfig("pageLinkClass",{value:"yui-pg-page",validator:l.isString});p.setAttributeConfig("currentPageClass",{value:"yui-pg-current-page",validator:l.isString});p.setAttributeConfig("pageLinksContainerClass",{value:"yui-pg-pages",validator:l.isString});p.setAttributeConfig("pageLinks",{value:10,validator:Paginator.isNumeric});p.setAttributeConfig("pageLabelBuilder",{value:function(page,paginator){return page},validator:l.isFunction})};Paginator.ui.PageLinks.calculateRange=function(currentPage,totalPages,numPages){var UNLIMITED=Paginator.VALUE_UNLIMITED,start,end,delta;if(!currentPage||numPages===0||totalPages===0||(totalPages===UNLIMITED&&numPages===UNLIMITED)){return[0,-1]}if(totalPages!==UNLIMITED){numPages=numPages===UNLIMITED?totalPages:Math.min(numPages,totalPages)}start=Math.max(1,Math.ceil(currentPage-(numPages/2)));if(totalPages===UNLIMITED){end=start+numPages-1}else{end=Math.min(totalPages,start+numPages-1)}delta=numPages-(end-start+1);start=Math.max(1,start-delta);return[start,end]};Paginator.ui.PageLinks.prototype={current:0,container:null,render:function(id_base){var p=this.paginator;this.container=document.createElement("span");this.container.id=id_base+"-pages";this.container.className=p.get("pageLinksContainerClass");YAHOO.util.Event.on(this.container,"click",this.onClick,this,true);this.update({newValue:null,rebuild:true});return this.container},update:function(e){if(e&&e.prevValue===e.newValue){return}var p=this.paginator,currentPage=p.getCurrentPage();if(this.current!==currentPage||!currentPage||e.rebuild){var labelBuilder=p.get("pageLabelBuilder"),range=Paginator.ui.PageLinks.calculateRange(currentPage,p.getTotalPages(),p.get("pageLinks")),start=range[0],end=range[1],content="",linkTemplate,i;linkTemplate='<a href="#" class="'+p.get("pageLinkClass")+'" page="';for(i=start;i<=end;++i){if(i===currentPage){content+='<span class="'+p.get("currentPageClass")+" "+p.get("pageLinkClass")+'">'+labelBuilder(i,p)+"</span>"}else{content+=linkTemplate+i+'">'+labelBuilder(i,p)+"</a>"}}this.container.innerHTML=content}},rebuild:function(e){e.rebuild=true;this.update(e)},destroy:function(){YAHOO.util.Event.purgeElement(this.container,true);this.container.parentNode.removeChild(this.container);this.container=null},onClick:function(e){var t=YAHOO.util.Event.getTarget(e);if(t&&YAHOO.util.Dom.hasClass(t,this.paginator.get("pageLinkClass"))){YAHOO.util.Event.stopEvent(e);this.paginator.setPage(parseInt(t.getAttribute("page"),10))}}}})();(function(){var Paginator=YAHOO.widget.Paginator,l=YAHOO.lang;Paginator.ui.FirstPageLink=function(p){this.paginator=p;p.subscribe("recordOffsetChange",this.update,this,true);p.subscribe("rowsPerPageChange",this.update,this,true);p.subscribe("totalRecordsChange",this.update,this,true);p.subscribe("destroy",this.destroy,this,true);p.subscribe("firstPageLinkLabelChange",this.update,this,true);p.subscribe("firstPageLinkClassChange",this.update,this,true)};Paginator.ui.FirstPageLink.init=function(p){p.setAttributeConfig("firstPageLinkLabel",{value:"&lt;&lt; first",validator:l.isString});p.setAttributeConfig("firstPageLinkClass",{value:"yui-pg-first",validator:l.isString})};Paginator.ui.FirstPageLink.prototype={current:null,link:null,span:null,render:function(id_base){var p=this.paginator,c=p.get("firstPageLinkClass"),label=p.get("firstPageLinkLabel");this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=id_base+"-first-link";this.link.href="#";this.link.className=c;this.link.innerHTML=label;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=id_base+"-first-span";this.span.className=c;this.span.innerHTML=label;this.current=p.getCurrentPage()>1?this.link:this.span;return this.current},update:function(e){if(e&&e.prevValue===e.newValue){return}var par=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()>1){if(par&&this.current===this.span){par.replaceChild(this.link,this.current);this.current=this.link}}else{if(par&&this.current===this.link){par.replaceChild(this.span,this.current);this.current=this.span}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null},onClick:function(e){YAHOO.util.Event.stopEvent(e);this.paginator.setPage(1)}}})();(function(){var Paginator=YAHOO.widget.Paginator,l=YAHOO.lang;Paginator.ui.LastPageLink=function(p){this.paginator=p;p.subscribe("recordOffsetChange",this.update,this,true);p.subscribe("rowsPerPageChange",this.update,this,true);p.subscribe("totalRecordsChange",this.update,this,true);p.subscribe("destroy",this.destroy,this,true);p.subscribe("lastPageLinkLabelChange",this.update,this,true);p.subscribe("lastPageLinkClassChange",this.update,this,true)};Paginator.ui.LastPageLink.init=function(p){p.setAttributeConfig("lastPageLinkLabel",{value:"last &gt;&gt;",validator:l.isString});p.setAttributeConfig("lastPageLinkClass",{value:"yui-pg-last",validator:l.isString})};Paginator.ui.LastPageLink.prototype={current:null,link:null,span:null,na:null,render:function(id_base){var p=this.paginator,c=p.get("lastPageLinkClass"),label=p.get("lastPageLinkLabel"),last=p.getTotalPages();this.link=document.createElement("a");this.span=document.createElement("span");this.na=this.span.cloneNode(false);this.link.id=id_base+"-last-link";this.link.href="#";this.link.className=c;this.link.innerHTML=label;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=id_base+"-last-span";this.span.className=c;this.span.innerHTML=label;this.na.id=id_base+"-last-na";switch(last){case Paginator.VALUE_UNLIMITED:this.current=this.na;break;case p.getCurrentPage():this.current=this.span;break;default:this.current=this.link}return this.current},update:function(e){if(e&&e.prevValue===e.newValue){return}var par=this.current?this.current.parentNode:null,after=this.link;if(par){switch(this.paginator.getTotalPages()){case Paginator.VALUE_UNLIMITED:after=this.na;break;case this.paginator.getCurrentPage():after=this.span;break}if(this.current!==after){par.replaceChild(after,this.current);this.current=after}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null},onClick:function(e){YAHOO.util.Event.stopEvent(e);this.paginator.setPage(this.paginator.getTotalPages())}}})();(function(){var Paginator=YAHOO.widget.Paginator,l=YAHOO.lang;Paginator.ui.NextPageLink=function(p){this.paginator=p;p.subscribe("recordOffsetChange",this.update,this,true);p.subscribe("rowsPerPageChange",this.update,this,true);p.subscribe("totalRecordsChange",this.update,this,true);p.subscribe("destroy",this.destroy,this,true);p.subscribe("nextPageLinkLabelChange",this.update,this,true);p.subscribe("nextPageLinkClassChange",this.update,this,true)};Paginator.ui.NextPageLink.init=function(p){p.setAttributeConfig("nextPageLinkLabel",{value:"next &gt;",validator:l.isString});p.setAttributeConfig("nextPageLinkClass",{value:"yui-pg-next",validator:l.isString})};Paginator.ui.NextPageLink.prototype={current:null,link:null,span:null,render:function(id_base){var p=this.paginator,c=p.get("nextPageLinkClass"),label=p.get("nextPageLinkLabel"),last=p.getTotalPages();this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=id_base+"-next-link";this.link.href="#";this.link.className=c;this.link.innerHTML=label;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=id_base+"-next-span";this.span.className=c;this.span.innerHTML=label;this.current=p.getCurrentPage()===last?this.span:this.link;return this.current},update:function(e){if(e&&e.prevValue===e.newValue){return}var last=this.paginator.getTotalPages(),par=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()!==last){if(par&&this.current===this.span){par.replaceChild(this.link,this.current);this.current=this.link}}else{if(this.current===this.link){if(par){par.replaceChild(this.span,this.current);this.current=this.span}}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null},onClick:function(e){YAHOO.util.Event.stopEvent(e);this.paginator.setPage(this.paginator.getNextPage())}}})();(function(){var Paginator=YAHOO.widget.Paginator,l=YAHOO.lang;Paginator.ui.PreviousPageLink=function(p){this.paginator=p;p.subscribe("recordOffsetChange",this.update,this,true);p.subscribe("rowsPerPageChange",this.update,this,true);p.subscribe("totalRecordsChange",this.update,this,true);p.subscribe("destroy",this.destroy,this,true);p.subscribe("previousPageLinkLabelChange",this.update,this,true);p.subscribe("previousPageLinkClassChange",this.update,this,true)};Paginator.ui.PreviousPageLink.init=function(p){p.setAttributeConfig("previousPageLinkLabel",{value:"&lt; prev",validator:l.isString});p.setAttributeConfig("previousPageLinkClass",{value:"yui-pg-previous",validator:l.isString})};Paginator.ui.PreviousPageLink.prototype={current:null,link:null,span:null,render:function(id_base){var p=this.paginator,c=p.get("previousPageLinkClass"),label=p.get("previousPageLinkLabel");this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=id_base+"-prev-link";this.link.href="#";this.link.className=c;this.link.innerHTML=label;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=id_base+"-prev-span";this.span.className=c;this.span.innerHTML=label;this.current=p.getCurrentPage()>1?this.link:this.span;return this.current},update:function(e){if(e&&e.prevValue===e.newValue){return}var par=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()>1){if(par&&this.current===this.span){par.replaceChild(this.link,this.current);this.current=this.link}}else{if(par&&this.current===this.link){par.replaceChild(this.span,this.current);this.current=this.span}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null},onClick:function(e){YAHOO.util.Event.stopEvent(e);this.paginator.setPage(this.paginator.getPreviousPage())}}})();(function(){var Paginator=YAHOO.widget.Paginator,l=YAHOO.lang;Paginator.ui.RowsPerPageDropdown=function(p){this.paginator=p;p.subscribe("rowsPerPageChange",this.update,this,true);p.subscribe("rowsPerPageOptionsChange",this.rebuild,this,true);p.subscribe("totalRecordsChange",this._handleTotalRecordsChange,this,true);p.subscribe("destroy",this.destroy,this,true);p.subscribe("rowsPerPageDropdownClassChange",this.rebuild,this,true)};Paginator.ui.RowsPerPageDropdown.init=function(p){p.setAttributeConfig("rowsPerPageOptions",{value:[],validator:l.isArray});p.setAttributeConfig("rowsPerPageDropdownClass",{value:"yui-pg-rpp-options",validator:l.isString})};Paginator.ui.RowsPerPageDropdown.prototype={select:null,all:null,render:function(id_base){this.select=document.createElement("select");this.select.id=id_base+"-rpp";this.select.className=this.paginator.get("rowsPerPageDropdownClass");this.select.title="Rows per page";YAHOO.util.Event.on(this.select,"change",this.onChange,this,true);this.rebuild();return this.select},rebuild:function(e){var p=this.paginator,sel=this.select,options=p.get("rowsPerPageOptions"),opt,cfg,val,i,len;this.all=null;for(i=0,len=options.length;i<len;++i){cfg=options[i];opt=sel.options[i]||sel.appendChild(document.createElement("option"));val=l.isValue(cfg.value)?cfg.value:cfg;opt.innerHTML=l.isValue(cfg.text)?cfg.text:cfg;if(l.isString(val)&&val.toLowerCase()==="all"){this.all=opt;opt.value=p.get("totalRecords")}else{opt.value=val}}while(sel.options.length>options.length){sel.removeChild(sel.firstChild)}this.update()},update:function(e){if(e&&e.prevValue===e.newValue){return}var rpp=this.paginator.get("rowsPerPage")+"",options=this.select.options,i,len;for(i=0,len=options.length;i<len;++i){if(options[i].value===rpp){options[i].selected=true;break}}},onChange:function(e){this.paginator.setRowsPerPage(parseInt(this.select.options[this.select.selectedIndex].value,10))},_handleTotalRecordsChange:function(e){if(!this.all||(e&&e.prevValue===e.newValue)){return}this.all.value=e.newValue;if(this.all.selected){this.paginator.set("rowsPerPage",e.newValue)}},destroy:function(){YAHOO.util.Event.purgeElement(this.select);this.select.parentNode.removeChild(this.select);this.select=null}}})();YAHOO.register("paginator",YAHOO.widget.Paginator,{version:"2.8.1",build:"19"});SONET.featureProviders["plugin/wpBlogPlugin"]={};SONET.featureProviders["plugin/wpBlogPlugin"].translations={"All Posts":"Alle Posts",Football:"Fu\u00dfball",Fighting:"Kampfsport","Ice Hockey":"Eishockey",Soccer:"Fu\u00dfball",Hockey:"Eishockey","Read what EA SPORTS President Peter Moore thinks about sports, video games, and the gaming industry.":"Sieh dir an, was Peter Moore, President von EA SPORTS, \u00fcber Sport, Videospiele und die Spieleindustrie denkt.",View:"Ansehen","Access to the producers who make the games, community team members, special events and more!":"Erhalte Zugang zu den Spieleentwicklern, den Mitgliedern des Community-Teams, besonderen Events und vielem mehr!","Hit the pitch for year-round behind the scenes access from FIFA producers and designers.":"Geh auf den Platz und wage das ganze Jahr \u00fcber mit den FIFA-Producern und -Designern einen Blick hinter die Kulissen.","Get the information you need to support your Nation in the world's biggest sporting event.":"Hol dir die Informationen, die du brauchst, um deine Nation bei der gr\u00f6\u00dften Sportveranstaltung zu unterst\u00fctzen.","See how the Madden NFL dev team is making the most realistic football simulation ever.":"Sieh dir an, wie das Entwicklungsteam von Madden NFL die realistischste Football-Simulation aller Zeiten erschafft.","Read updates from the NCAA Football development team about the EA SPORTS college football franchise.":"Lies dir aktuelle Informationen des NCAA Football-Entwicklungsteam \u00fcber die EA SPORTS College-Football-Spielereihe durch.","Go in the paint with the NBA Live development team and follow their regular updates featuring basketball gaming goodness.":"Zieh mit dem NBA Live-Entwicklungsteam in die Zone und lass dich von ihm mit regelm\u00e4\u00dfigen Updates zum Basketball-Gaming versorgen.","Go in the crease to see what the development team has in store for the EA SPORTS NHL series.":"Zieh in den Torraum und sieh dir an, was das Entwicklungsteam f\u00fcr die EA SPORTS NHL-Serie geplant hat.","Find out how everyone is getting in shape with EA SPORTS Active and the 30 Day Challenge.":"Finde heraus, wie sich alle mit EA SPORTS Active und der 30-Tage-Herausforderung in Form bringen.","Step in the ring with the Fight Night development team for non-stop boxing gaming discussion.":"Steig mit dem Fight Night-Entwicklungsteam in den Ring und liefert euch endlose Boxspiel-Diskussionen.","From the tee to the green, read everything you need to know about the Tiger Woods PGA TOUR 10 series.":"Lies vom Abschlag bis zum Gr\u00fcn alles, was du \u00fcber die Tiger Woods PGA TOUR 10-Serie wissen musst.","Head onto the court for inside information from the Grand Slam Tennis development team about EA SPORTS newest franchise.":"Schnapp dir den Schl\u00e4ger und lass dich vom Grand Slam Tennis-Entwicklungsteam mit Insider-Informationen \u00fcber die neueste Spielereihe von EA SPORTS versorgen.","FIFA World Cup Off The Bench Blog":'FIFA Fussball-Weltmeisterschaft-Blog "Von der Bank"',"Share This":"Freigeben",by:"Von","Read More":"Mehr lesen","FIFA - Off the Bench":"FIFA - Raus auf den Platz"};SONET.featureProviders["plugin/wpBlogPlugin"].assetDirPattern="%assettype%/wpBlogPlugin";SONET.featureProviders["plugin/wpBlogPlugin"].widgetClosures={};SONET.featureProviders["plugin/wpBlogPlugin"].decoratorClosures={};SONET.featureProviders["plugin/wpBlogPlugin"].widgetClosures.wpBlogPost=function(){var _=SONET.translatorForFeatureProvider("plugin/wpBlogPlugin");var widget=new ENGINE.Widget;SONET.uwa.use(function(UWA){widget.onLoad=function(){Blogs.initEvents();operateBlogCommentsMailbox(widget.getValue("slug"),30100)};function operateBlogCommentsMailbox(pageSlugName,lookupId){widget.mailbox=SONET.Mailbox.open("wpBlogsMailbox",function(sendMailbox,key,data){});var oComments={pageSlugName:pageSlugName,lookupId:lookupId};var destination=widget.mailbox.get("appCommentsPluginComments");destination.send("comments",oComments)}var Selector=YAHOO.util.Selector,Paginator=YAHOO.widget.Paginator,Event=YAHOO.util.Event,Dom=YAHOO.util.Dom,lang=YAHOO.lang;var pag;var Blogs={getPosts:function(page,cat,numPage){var request={method:"get",service:"service",type:"json",onComplete:function(posts){var curPage=posts.shift();var pageSize=posts.shift();var postsContainer=widget.createElement("div",{"class":"posts-container"});var html="";for(var i=0;i<posts.length;i++){var post=widget.createElement("div",{"class":"post"});html=lang.substitute(Template.post,posts[i],function(key,value,secondString){var ret="";if(key=="shareBtn"){var dummy=widget.createElement("div");dummy.appendChild(widget.helper.button_tag("Share This",{style:"white",arrow:true}));ret=dummy.innerHTML}else{if(key=="shareThisSpan"){widget.log("shareThisSpan");var dummy=widget.createElement("div");var span=widget.createElement("span",{"class":"st_sharethis_custom",st_url:posts[i]["link"],st_title:posts[i]["title"]});span.appendChild(widget.helper.button_tag("Share This",{style:"white",arrow:true}));dummy.appendChild(span);ret=dummy.innerHTML}else{var ret=value;if(secondString!=null){ret=value[secondString]}}}return ret});post.innerHTML=html.replace("\\","");postsContainer.appendChild(post)}var cont=Selector.query(".posts-container",Selector.document,true);var containerParent=cont.parentNode;containerParent.replaceChild(postsContainer,cont);var fromNumEl=YAHOO.util.Selector.query(".from-number",Selector.document,true);if(fromNumEl){var fromNumber=((curPage-1)*pageSize)+1;fromNumEl.innerHTML=fromNumber;var toNumEl=YAHOO.util.Selector.query(".to-number",Selector.document,true);toNumEl.innerHTML=fromNumber+(posts.length-1)}window.scroll(0,0)}};var tag=arguments[3];if(tag!=null&&tag!=undefined){tagCode="&tag="+tag}else{tagCode=""}var loc=arguments[4];if(loc!=null&&loc!=undefined){locCode="&locale="+loc}else{locCode=""}var params="?category="+cat+"&page_num="+page+"&page_size="+numPage+tagCode+locCode;var restUrl="blogs/get_posts"+params;widget.doRequest(restUrl,request)},handlePagination:function(newState){var pageContent=Blogs.getPosts(newState.page,widget.getValue("category"),widget.getValue("listSize"),widget.getValue("tag"),widget.getValue("locale"));pag.setState(newState)},confirmExtLegal:function(ev){var acceptsTerms="You are about to leave the Electronic Arts website and go to a website owned by a third party.  Electronic Arts is not responsible for content on third party sites, and our privacy policy does not apply to their information collection practices.  Press OK to access the linked site or press CANCEL to return to your original page.";if(!confirm(acceptsTerms)){Event.stopEvent(ev)}},openLinkInWindow:function(ev,el){Event.stopEvent(ev);window.open(el.href,"","height=490,width=584")},initEvents:function(){var esrb=Selector.query(" .esrb-link ",document.body);Event.on(esrb,"click",this.confirmExtLegal);var emaillink=Selector.query(" .email-link ",document.body,true);Event.on(emaillink,"click",this.openLinkInWindow,emaillink)}};var Template={post:'<h1>  <a href="{link}">{title}</a> </h1><div class="thumbnail-box"><div class="thumb-class"><img src="{thumbnailSmall}"  /></div></div><div class="each-post"><div class="avatar-section"> by <span class="display-name" > {author displayName}</span> <br /> <span> {dateCreated} </span> </div><p> {excerpt} </p></div><div class="clear-both"></div><div class="share-container"><a href="{link}" class="read-more"> Read More > </a></div> <div class="clear-both"></div>'}});return widget};EASPORTS.Paginator=function(config){var oBaseConfig={template:"{PreviousPageLink} {PageLinks} {NextPageLink}",nextPageLinkLabel:SONET._("Next")+'&nbsp;<span class="sprite pagination-forward"></span>',previousPageLinkLabel:'<span class="sprite pagination-back"></span>&nbsp;'+SONET._("Prev")};var config=YAHOO.lang.merge(oBaseConfig,config);EASPORTS.Paginator.superclass.constructor.call(this,config)};YAHOO.lang.extend(EASPORTS.Paginator,YAHOO.widget.Paginator);SONET.featureProviders["plugin/appCommentsPlugin"]={};SONET.featureProviders["plugin/appCommentsPlugin"].translations={Comments:"Kommentare","Sign in to Comment":"Melde dich bitte an, um einen Kommentar zu verfassen","Leave a Comment":"Kommentar schreiben","Characters remaining":"Verbleibende Zeichen",Post:"Posten","Please login to rate media":"Melde dich bitte an, um Mediendateien zu bewerten",Rating:"Bewertung",Ratings:"Bewertungen",View:"Ansehen",Views:"Aufrufe",Unknown:"Unbekannt",Reply:"Antworten",Flag:"Kennzeichnen",Comment:"Kommentar",Cancel:"Abbrechen",Save:"Speichern","Flag this content":"Diesen Inhalt kennzeichnen","Select the category that most closely reflects your concern about the media, so that we can review it and determine whether it violates our Community Guidelines or isn't appropriate for our viewers. Abusing this feature is also a violation of the Community Guidelines, so don't do it.":"W\u00e4hle die Kategorie, der deine Bedenken hinsichtlich der Mediendatei am ehesten entsprechen. Wir k\u00f6nnen uns diese dann ansehen und entscheiden, ob sie unsere Community-Richtlinien verletzt oder f\u00fcr unsere Benutzer ungeeignet ist. Bitte beachte, dass der Missbrauch dieser Funktion ebenfalls eine Verletzung der Community-Richtlinien darstellt.","Select a Reason":"W\u00e4hle einen Grund aus","Inappropriate Name":"Unangemessener Name","Vulgar or sexually explicit language":"Vulg\u00e4re oder sexuell anst\u00f6\u00dfige Sprache",Harassment:"Bel\u00e4stigung","Hate Speech or Child Solicitation":"Hetzreden oder Bel\u00e4stigung von Kindern","Posting Cheats or Cheat sites":"Ver\u00f6ffentlichung von Cheats oder Cheat-Websites","Sexual Content":"Sexuelle Inhalte","Violent Content":"Gewaltt\u00e4tige Inhalte","Please select a reason":"W\u00e4hle bitte einen Grund aus","Please sign in to comment":"Melde dich bitte an, um einen Kommentar zu verfassen"};SONET.featureProviders["plugin/appCommentsPlugin"].assetDirPattern="%assettype%/appCommentsPlugin";SONET.featureProviders["plugin/appCommentsPlugin"].widgetClosures={};SONET.featureProviders["plugin/appCommentsPlugin"].decoratorClosures={};SONET.featureProviders["plugin/appCommentsPlugin"].widgetClosures.comments=function(){var _=SONET.translatorForFeatureProvider("plugin/appCommentsPlugin");var widget=new ENGINE.Widget;SONET.uwa.use(function(UWA){var Comments={paginator:null,elPostSpinner:null,elPager:null,elReloadSpinner:null,elContainer:null,elCaptchaError:null,oTargetRegion:null,reset:false,isCaptchaEnabled:false,InjectWidget:SONET.Injector.injectWidget,widthCommentMedia:422,widthCommentMashUpMedia:378,heightCommentMedia:237,widthThumbMedia:160,heightThumbMedia:90,hostname:"",addedMedia:[],handlePagination:function(state){if(Comments.reset==false){if(Main.config.currentPage!=state.page){Main.config.currentPage=state.page;Comments.elReloadSpinner.setStyle("display","inline");window.scroll(0,Comments.oTargetRegion.top);Comments.getComments(Main.config)}}Comments.paginator.setState(state)},showPaginator:function(){if(Comments.elPager){if(Comments.paginator==null){Comments.paginator=new EASPORTS.Paginator({rowsPerPage:Main.config.eachPageMaxNum,totalRecords:Main.config.count,containers:Comments.elPager});Comments.paginator.subscribe("changeRequest",Comments.handlePagination);Comments.paginator.render()}}},getCommentDisplay:function(oComment){var sClassName=oComment.className;if(oComment.in_reply_to!=null){sClassName+=" reply"}var elComment=widget.createElement("div",{"class":"comment clearfix"+sClassName}),elClearfix=widget.createElement("div",{"class":"comment-item-container clearfix"}),elItem=widget.createElement("div",{"class":"primary item"}),elProfile=widget.createElement("div",{"class":"profile"});elItem.setHTML(oComment.text);var elList=widget.createElement("ul");elProfile.setHTML(oComment.headshot_link);elList.appendChild(widget.createElement("li",{"class":"avatar-title"}).setContent(oComment.sGamertag));elList.appendChild(widget.createElement("li",{"class":"small"}).setContent(oComment.time));elProfile.appendChild(elList);elClearfix.appendChild(elItem);elClearfix.appendChild(elProfile);elComment.appendChild(elClearfix);if(Main.config.isAuthenticated){var elRFToolbar=widget.createElement("div",{"class":"toolbar clearfix"}),elReplyLink=widget.createElement("a",{href:"#","class":"reply-link reply-button-"+oComment.comment_id}),elReplyDiv=widget.createElement("div",{"class":"reply-edit reply-edit-"+oComment.comment_id+" clearfix"}),elFlagDiv=null,elFlagLink=null;elReplyLink.setContent(_("Reply"));elRFToolbar.appendChild(elReplyLink);var showFlagged=(oComment.flagged=="true")?false:true;if(Main.config.personaId==oComment.persona_id){showFlagged=false}if(showFlagged){elFlagLink=widget.createElement("a",{href:"#","class":"tertiary flag-button-"+oComment.comment_id});elFlagDiv=widget.createElement("div",{"class":"flag-dialog flag-dialog-"+oComment.comment_id+" clearfix"});elFlagLink.setContent(_("Flag"));elRFToolbar.appendChild(elFlagLink)}elComment.appendChild(elRFToolbar);elComment.appendChild(elReplyDiv);if(showFlagged){elComment.appendChild(elFlagDiv)}}return elComment},displayComments:function(xml){Comments.reset=false;var elCommentsBody=UWA.$element(widget.body.getElementsByClassName("comments-body")[0]);if(xml){var elCommentsDisplay=widget.body.getElementsByClassName("comment-display");var pageData=DataPeer.parsePageData(xml),comments=pageData.comments,i,elCommentsCount;Main.config.count=pageData.sum;elCommentsCount=UWA.$element(widget.body.getElementsByClassName("comment-count")[0]);elCommentsCount.setContent(pageData.sum+" "+((pageData.sum==1)?_("Comment"):_("Comments")));elCommentsBody.empty();for(i=0;i<comments.length;i++){if((i%2)==1){comments[i].className=" comment-alt"}elCommentsBody.appendChild(Comments.getCommentDisplay(comments[i]))}var commentItems=Selector.query(".comment-item-container .primary.item",elCommentsBody);var cleanText="";for(var item=0;item<commentItems.length;item++){cleanText=$(commentItems[item]).html().replace(/(<([^>]+)>)/ig," ");Comments.identifyInternalMedia(cleanText,item)}Dom.setStyle(elCommentsDisplay,"display","block");if(Main.config.count>Main.config.eachPageMaxNum){Comments.elPager.setStyle("display","block")}else{Comments.elPager.hide()}Comments.elReloadSpinner.hide();Comments.paginator.set("totalRecords",Main.config.count);for(i=0;i<comments.length;i++){var comment_id=comments[i].comment_id;var replyBtn=Selector.query("a.reply-button-"+comment_id)[0];var flagBtn=Selector.query("a.flag-button-"+comment_id)[0];Event.on(replyBtn,"click",Comments.doReply,comments[i]);Event.on(flagBtn,"click",Comments.doFlag,comments[i])}}else{elCommentsBody.setContent("")}},getComments:function(config){var request={method:"get",service:"service",type:"xml",onComplete:Comments.displayComments};var params="?topic_name="+config.topicName+"&lookup_id="+config.categoryId+"&page_num="+config.currentPage+"&page_size="+config.eachPageMaxNum;var restUrl="comments/getComments"+params;widget.doRequest(restUrl,request)},doComment:function(e){Event.preventDefault(e);var cTextArea=widget.body.getElementsByClassName("leave_comment_text_area")[0];var pBtn=widget.body.getElementsByClassName("leave_comment_button")[0];var cCaptchaText=$('input[name="recaptcha_response_field"]').val();var cCaptchaKey=$('input[name="recaptcha_challenge_field"]').val();Comments.postComment(cTextArea,0,pBtn,Comments.elPostSpinner,cCaptchaText,cCaptchaKey)},postComment:function(cTextArea,replyCommentId,elPostBtn,elSpinner,elCaptchaText,elCaptchaKey){var config=Main.config;var commentValue=lang.trim(cTextArea.value);var isReply=false;if(commentValue.length>0){var pBtn=UWA.$element(elPostBtn);elSpinner.setStyle("display","inline");pBtn.hide();var restUrl;var oPostBody={commentBody:commentValue};if(Comments.isCaptchaEnabled){oPostBody.recaptcha_response_field=elCaptchaText;oPostBody.recaptcha_challenge_field=elCaptchaKey;Comments.hideCaptchaError()}var oRequest={method:"post",service:"service",type:"xml",postBody:oPostBody,onComplete:function(response){elSpinner.hide();pBtn.setStyle("display","inline");if(replyCommentId===0){Comments.reset=true;Main.config.currentPage=1;Comments.paginator.setPage(1)}if(Comments.isCaptchaEnabled){var captchaDOMNode=response.getElementsByTagName("captcha");if(captchaDOMNode.length){Comments.showCaptchaError()}Comments.createRecaptcha()}var authenticationDOMNode=response.getElementsByTagName("authenticated");if(!authenticationDOMNode.length){Comments.displayComments(response);cTextArea.value="";Main.config.mainCharacterCounter.updateCharCountLabel()}else{location.reload()}window.scroll(0,Comments.oTargetRegion.top)}};restUrl="comments/addComment?lookup_id="+config.categoryId+"&topic_name="+config.topicName+"&persona_id="+config.personaId+"&reply_comment_id="+replyCommentId;restUrl+="&page_num="+config.currentPage+"&page_size="+config.eachPageMaxNum;restUrl=encodeURI(restUrl);widget.doRequest(restUrl,oRequest)}},doReply:function(e,comment){var target=Event.getTarget(e);Event.preventDefault(e);var config=Main.config;if(config.isAuthenticated){var id=comment.comment_id;comment.commentSize=Main.config.commentSize;var elFlagDiv=UWA.$element(Selector.query(widget.getBodySelector()+" div.flag-dialog-"+id)[0]);if(elFlagDiv){elFlagDiv.hide()}Comments.closeAllReply("div.reply-edit-"+id);var elReplyEditDiv=UWA.$element(Selector.query(widget.getBodySelector()+" div.reply-edit-"+id)[0]);if(Dom.getStyle(elReplyEditDiv,"display")=="none"){elReplyEditDiv.setStyle("display","block");if(!Dom.getFirstChild(elReplyEditDiv)){var elTxtAreaContainer=widget.createElement("div",{"class":"comment-textareas"}),elTxtArea=widget.createElement("textarea",{"class":"reply-textarea-"+id}),elCharacterCountContainer=widget.createElement("div",{"class":"character-count-container"}),elCharacterCount=widget.createElement("span",{"class":"character-count"}),elButtons=widget.createElement("div",{"class":"buttons"}),elSave=widget.helper.button_to(_("Post"),"#",{className:"reply-save"}),elCancel=widget.helper.button_to(_("Cancel"),"#",{className:"reply-clear"}),elReplySpinner=UWA.$element(widget.createElement("span",{"class":"post-spinner"}));elReplySpinner.appendChild(widget.createElement("span",{"class":"common-spinner"}));elTxtAreaContainer.appendChild(elTxtArea);var elTextRemaining=document.createTextNode(_("Characters remaining")+": ");elCharacterCountContainer.appendChild(elTextRemaining);elCharacterCountContainer.appendChild(elCharacterCount);elTxtAreaContainer.appendChild(elCharacterCountContainer);elReplyEditDiv.appendChild(elTxtAreaContainer);elButtons.appendChild(elSave);elButtons.appendChild(elReplySpinner);elButtons.appendChild(widget.createElement("br"));elButtons.appendChild(widget.createElement("br"));elButtons.appendChild(elCancel);elReplyEditDiv.appendChild(elButtons);Event.on(elSave,"click",function(e,comment){Event.preventDefault(e);var cCaptchaText=$('input[name="recaptcha_response_field"]',$(".reply-recaptcha")).val();var cCaptchaKey=$('input[name="recaptcha_challenge_field"]',$(".reply-recaptcha")).val();Comments.postComment(elTxtArea,id,elSave,elReplySpinner,cCaptchaText,cCaptchaKey)},comment);Event.on(elCancel,"click",function(e,comment){Event.preventDefault(e);elReplyEditDiv.hide();Comments.finishReply("div.reply-edit-"+id+" .reply-recaptcha")},comment);widget.helper.charCount(elTxtArea,elCharacterCount,Main.config.commentSize,null)}elReCaptchaContainer=widget.createElement("div",{"class":"reply-recaptcha captcha"});$("div.reply-edit-"+id+" .comment-textareas").after(elReCaptchaContainer);Comments.moveRecaptcha("div.reply-edit-"+id+" .reply-recaptcha")}else{elReplyEditDiv.hide();Comments.finishReply("div.reply-edit-"+id+" .reply-recaptcha")}}},doFlag:function(e,comment){var target=Event.getTarget(e);Event.preventDefault(e);var config=Main.config;if(config.isAuthenticated){var id=comment.comment_id;var contentType=widget.getValue("contentType");var elReplyEditDiv=UWA.$element(Selector.query(widget.getBodySelector()+" div.reply-edit-"+id)[0]);elReplyEditDiv.hide();var elFlagDiv=UWA.$element(Selector.query(widget.getBodySelector()+" div.flag-dialog-"+id)[0]);if(Dom.getStyle(elFlagDiv,"display")=="none"){elFlagDiv.setStyle("display","block");if(!Dom.getFirstChild(elFlagDiv)){var elFlag=widget.createElement("div",{"class":"flag clearfix"}),elHead=widget.createElement("div",{"class":"head"}),elBody=widget.createElement("div",{"class":"body"}),elToolbar=widget.createElement("div",{"class":"flagtoolbar clearfix"}),elSubmit=widget.helper.button_to(_("Save"),"#",{className:"flag-content"}),elCancel=widget.helper.button_to(_("Cancel"),"#",{className:"flag-content-cancel"});elHead.setContent(_("Flag this content"));elBody.setContent("<p>"+_("Select the category that most closely reflects your concern about the media, so that we can review it and determine whether it violates our Community Guidelines or isn't appropriate for our viewers. Abusing this feature is also a violation of the Community Guidelines, so don't do it.")+"</p>");var elSelect=widget.createElement("select");elSelect.appendChild(widget.createElement("option",{value:"0"}).setContent(_("Select a Reason")));elSelect.appendChild(widget.createElement("option",{value:"SPAM"}).setContent(_("Spam")));elSelect.appendChild(widget.createElement("option",{value:"VulgarTitleDesc"}).setContent(_("Inappropriate Name")));elSelect.appendChild(widget.createElement("option",{value:"VulgarLanguage"}).setContent(_("Vulgar or sexually explicit language")));elSelect.appendChild(widget.createElement("option",{value:"Harassment"}).setContent(_("Harassment")));elSelect.appendChild(widget.createElement("option",{value:"Hatespeech"}).setContent(_("Hate Speech or Child Solicitation")));elSelect.appendChild(widget.createElement("option",{value:"ClientHack"}).setContent(_("Posting Cheats or Cheat sites")));elSelect.appendChild(widget.createElement("option",{value:"ChildSolicitation"}).setContent(_("Sexual Content")));elSelect.appendChild(widget.createElement("option",{value:"VulgarContent"}).setContent(_("Violent Content")));elToolbar.appendChild(elSelect);elToolbar.appendChild(elSubmit);elToolbar.appendChild(elCancel);elFlag.appendChild(elHead);elFlag.appendChild(elBody);elFlag.appendChild(elToolbar);elFlagDiv.appendChild(elFlag);Event.on(elSubmit,"click",function(e,comment){Event.preventDefault(e);var request={method:"post",service:"service",type:"json",onComplete:function(oData){if(oData){Main.config.reports=oData.reports}elFlagDiv.hide()}};if(elSelect.value==0){alert(_("Please select a reason"))}else{var viewUrl=encodeURI(window.location.href);var restUrl="offensive_content/report?viewUrl="+viewUrl+"&type="+contentType+"&contentId="+id+"&complaintType="+elSelect.value;widget.doRequest(restUrl,request)}},comment);Event.on(elCancel,"click",function(e,comment){Event.preventDefault(e);elFlagDiv.hide()},comment)}}else{elFlagDiv.hide()}}},hideCaptchaError:function(){$(".captcha-error").remove()},showCaptchaError:function(){$(".captcha-prompt").hide();$("#recaptcha_widget_div").before('<span class="captcha-error">Incorrect! Please try again.</span>')},createRecaptcha:function(){Recaptcha.reload()},moveRecaptcha:function(to){var rc=$("#recaptcha_widget_div",$(".comment-recaptcha")).clone();$(".comment-display").hide();$(to).append(rc)},finishReply:function(divReply){$(divReply).remove();$(".comment-display").show()},closeAllReply:function(actualReply){$(".reply-edit").each(function(index){if($(this).get(0)!=$(actualReply).get(0)){$(this).hide()}});$(".reply-recaptcha").each(function(index){$(this).remove()})},identifyInternalMedia:function(text,index){var r=new RegExp(this.hostname+"/media/play/([^/]+)/([a-zA-Z0-9_]+)","g");Comments.addedMedia=[];while((match=r.exec(text))!==null){var url=match[0];var contentType=match[1];var mediaId=match[2];if(Comments.isAddedMedia(url)===false){Comments.setupMediaMarkup(url,contentType,mediaId,index);Comments.addMedia(url)}}},setupMediaMarkup:function(uri,contentType,mediaId,index){var request={method:"get",service:"service",type:"html",onComplete:function(thumbTemplate){var commentItems=$(".comment-item-container .primary.item",widget.body),$itemCom=$(commentItems[index]),partial=thumbTemplate;uriRegexp=uri.replace(/([\*\/\.])/g,"\\$1");var regexp=new RegExp("(<a[^>]+>)?(http://)?"+uriRegexp+"(</a>)?","gi");var hrefreg=new RegExp("href=[\"'][^ ]+"+uriRegexp+"[\"']","g");var hrefOriginalRegexp=new RegExp("href=[\"'][^ ]+"+uriRegexp+"[\"']","gi");var hrefOriginal=$itemCom.html().match(hrefOriginalRegexp);$itemCom.html($itemCom.html().replace(hrefreg,'href="----"'));$itemCom.html($itemCom.html().replace(regexp,"$1$2"+uri+"$3"+partial));$itemCom.html($itemCom.html().replace('href="----"',hrefOriginal))}};var params="?media_id="+mediaId+"&content_type="+contentType;params+="&width_thumbmedia="+Comments.widthThumbMedia+"&height_thumbmedia="+Comments.heightThumbMedia;var restUrl="media/getMedia"+params;widget.doRequest(restUrl,request)},addMedia:function(url){Comments.addedMedia.push(url)},isAddedMedia:function(url){return jQuery.inArray(url,Comments.addedMedia)>-1},registerEvent:function(){$(".comments-body").delegate(".mediabox-img span[data-id]","click",function(ev){var self=$(this);var id=self.attr("data-id");var uriMediaType=self.attr("data-urimediatype");var mediaWidth="";if(uriMediaType=="highlight-reel"||uriMediaType=="feature-highlight-reel"){mediaWidth=Comments.widthCommentMashUpMedia}else{mediaWidth=Comments.widthCommentMedia}if($(".mediabox-img-overlay",self).is(":visible")){$(".mediabox-img-overlay",self).hide();$(".media-spinner",self.parent()).show();Comments.InjectWidget("plugin/mdMediaPlugin","mediaPlayerMiniContainer",{type:uriMediaType,mediaId:id,width:mediaWidth,height:Comments.heightCommentMedia,avoidLoadComments:true},{onBodyLoaded:function(sHTML){self.parent().hide();self.parents(".mediabox-img:first").find(".content").html(sHTML)}})}})}};var Selector=YAHOO.util.Selector,Paginator=YAHOO.widget.Paginator,Event=YAHOO.util.Event,Dom=YAHOO.util.Dom,lang=YAHOO.lang;var Main={config:{},init:function(){Main.config.currentPage=1;Main.config.commentSize=widget.getValue("commentSize");Main.config.eachPageMaxNum=widget.getValue("eachPageMaxNum");Main.config.isAuthenticated=widget.getValue("isAuthenticated");Main.config.personaId=widget.getValue("esc_my_persona");Main.config.reports=[];Main.config.mainCharacterCounter=null;Comments.showPaginator();Comments.isCaptchaEnabled=widget.getValue("isCaptchaEnabled");Comments.hostname=widget.getValue("hostname");Comments.getComments(Main.config);Comments.registerEvent();if(Main.config.isAuthenticated){var pBtn=widget.body.getElementsByClassName("leave_comment_button")[0];var cTextArea=widget.body.getElementsByClassName("leave_comment_text_area")[0];var elStatusCharsCountLabel=UWA.$element(widget.body.getElementsByClassName("character-count")[0]);Main.config.mainCharacterCounter=widget.helper.charCount(cTextArea,elStatusCharsCountLabel,Main.config.commentSize,null);Event.on(pBtn,"click",Comments.doComment)}}};function loadComments(){Comments.elPostSpinner=UWA.$element(widget.body.getElementsByClassName("comment-post-spinner")[0]);Comments.elReloadSpinner=UWA.$element(widget.body.getElementsByClassName("reload-spinner")[0]);Comments.elPager=UWA.$element(widget.body.getElementsByClassName("comment-pager")[0]);Comments.elContainer=widget.body.getElementsByClassName("comments-container")[0];Comments.oTargetRegion=Dom.getRegion(Comments.elContainer);Comments.elCaptchaError=$("div.captcha-error",widget.body);if(!widget.getValue("isAuthenticated")){var elSigninBtn=widget.body.getElementsByClassName("login_button")[0];Event.on(elSigninBtn,"click",function(ev){Comments.requireLogin(_("Please sign in to comment"))})}if(widget.getValue("aLoadFromMailbox")){widget.mailbox=SONET.Mailbox.open("appCommentsPluginComments",function(sendMailbox,key,data){if(key=="comments"){Main.config.categoryId=data.lookupId;Main.config.topicName=data.pageSlugName;Main.init()}})}else{Main.config.categoryId=widget.getValue("aCommentsLookupId");Main.config.topicName=widget.getValue("topicName");Main.init()}}widget.onLoad=function(){var t=setTimeout(loadComments,widget.getValue("aDelay"))};var DataPeer={parsePageData:function(responseData){if(responseData==null){return null}else{var xmlDoc=responseData;if(xmlDoc==null){return null}else{return DataPeer._parsePageData(xmlDoc)}}},_parsePageData:function(xmlDoc){var pageData={},root=xmlDoc.getElementsByTagName("comments")[0],comments=xmlDoc.getElementsByTagName("comment"),sComment="",sGamertag,sGamertagShort,bKnown,sHeadshotUrl="",sPlatform="";pageData.sum=root.getAttribute("count")||0;pageData.comments=[];for(var i=0;i<comments.length;i++){sComment=comments[i].getElementsByTagName("text")[0].firstChild;if(sComment===null){sComment=""}else{sComment=sComment.nodeValue;sComment=encodeSpecialChars(sComment);sComment=makeInternalLinksAnchors(sComment);sComment=sComment.replace(new RegExp("\\n","g"),"<br/>")}bKnown=Boolean(parseInt(comments[i].getElementsByTagName("is-known")[0].firstChild.nodeValue));pageData.comments[i]={comment_id:comments[i].getAttribute("id"),flagged:comments[i].getAttribute("flagged"),in_reply_to:null,text:sComment,time:widget.helper.formatDateTime(comments[i].getElementsByTagName("create-date")[0].firstChild.nodeValue),known:bKnown,className:"",headshot_link:comments[i].getElementsByTagName("headshot-link")[0].firstChild.nodeValue,sGamertag:comments[i].getElementsByTagName("gamer-tag-link")[0].firstChild.nodeValue};if(comments[i].getElementsByTagName("in-reply-to")[0]!=undefined){pageData.comments[i].in_reply_to=comments[i].getElementsByTagName("in-reply-to")[0].firstChild.nodeValue}}return pageData}};function makeInternalLinksAnchors(commentBody){var regex=new RegExp("http://([a-z 0-9]+\\.)?((ea|easports|easportsworld|eafootballworld)\\.com|easportsfootball\\.(de|fr|it|es|co\\.uk))\\S*","g");var matches=commentBody.match(regex);if(matches!=null){var replaces=[];for(var j=0;j<matches.length;j++){if(jQuery.inArray(matches[j],replaces)==-1){var matchReg=new RegExp(matches[j],"g");commentBody=commentBody.replace(matchReg,matches[j].link(matches[j]));replaces.push(matches[j])}}}return commentBody}function encodeSpecialChars(s){var ss=s;ss=ss.replace(/</g,"&lt;");ss=ss.replace(/>/g,"&gt;");ss=ss.replace(/\"/g,"&quot;");return ss}});return widget};SONET.featureProviders["plugin/wpBlogPlugin"].decoratorClosures.image_widget=function(){var _=SONET.translatorForFeatureProvider("plugin/wpBlogPlugin");var decorator=new SONET.Decorator;SONET.uwa.use(function(UWA){decorator.setTitle=function(sTitle){var oNodes=$(decorator.getBodySelector()+" > div.esc-common-widget-header-wrapper > div.esc-common-widget-header > h1");var el=oNodes[0];var elHeaderNode=el;if(el.firstChild&&typeof el.firstChild.tagName!=="undefined"&&el.firstChild.tagName.toLowerCase()=="a"){elHeaderNode=el.firstChild}if(elHeaderNode){elHeaderNode.innerHTML=sTitle}};decorator.setRssLink=function(sLink){var oAllNodes=$(decorator.getBodySelector()+" > div.esc-common-widget-footer div.rss-feed > a");oAllNodes.setAttribute("href",sLink)}});return decorator};SONET.Injector.addCompiledBundleAssets("Javascripts",["{RELATIVE_URL_ROOT}/assets/306100/de_DE/plugin/navNavigationPlugin.js","{RELATIVE_URL_ROOT}/assets/306100/plugin/navNavigationPlugin/widget/worldcupHeader.js","{STATIC_ASSET_PREFIX}js/easSonetPlugin/yui/2/element/element.js","{STATIC_ASSET_PREFIX}js/easSonetPlugin/yui/2/paginator/paginator.js","{RELATIVE_URL_ROOT}/assets/306100/de_DE/plugin/wpBlogPlugin.js","{RELATIVE_URL_ROOT}/assets/306100/plugin/wpBlogPlugin/widget/wpBlogPost.js","{STATIC_ASSET_PREFIX}js/easports/paginator.js","{RELATIVE_URL_ROOT}/assets/306100/de_DE/plugin/appCommentsPlugin.js","{RELATIVE_URL_ROOT}/assets/306100/plugin/appCommentsPlugin/widget/comments.js","{RELATIVE_URL_ROOT}/assets/306100/plugin/wpBlogPlugin/decorator/image_widget.js"]);SONET.Injector.addCompiledBundleAssets("Stylesheets",["{STATIC_ASSET_PREFIX}css/template/themes/common.css","{STATIC_ASSET_PREFIX}css/template/themes/easports/easports-yui-paginator-skin.css","{STATIC_ASSET_PREFIX}css/template/themes/blogs/common.css","{STATIC_ASSET_PREFIX}css/template/themes/blogs/worldcup/main.css","{STATIC_ASSET_PREFIX}css/template/themes/utils.css","{STATIC_ASSET_PREFIX}css/template/layout-template.css","{RELATIVE_URL_ROOT}/assets/306100/plugin/wpBlogPlugin/widget/wpBlogPost.css","{RELATIVE_URL_ROOT}/assets/306100/plugin/appCommentsPlugin/widget/comments.css","{RELATIVE_URL_ROOT}/assets/306100/plugin/wpBlogPlugin/widget/wpAuthorDisplay.css","{RELATIVE_URL_ROOT}/assets/306100/plugin/wpBlogPlugin/decorator/image_widget.css","{RELATIVE_URL_ROOT}/assets/306100/plugin/adsAdsPlugin/widget/dbClick.css","{RELATIVE_URL_ROOT}/assets/306100/plugin/wpBlogPlugin/widget/wpRecentPosts.css","{RELATIVE_URL_ROOT}/assets/306100/plugin/wpBlogPlugin/widget/wpTagCloudDisplay.css"]);
