var cookieDomain='.fifa.com';var baseUrl='http://es.fifa.com';var siteLang='es';var idSplitLen=3;var numWordsComment=100;var commentsPerPage=10;jQuery.fn.extend({everyTime:function(interval,label,fn,times,belay) {return this.each(function() {jQuery.timer.add(this,interval,label,fn,times,belay);});},oneTime:function(interval,label,fn) {return this.each(function() {jQuery.timer.add(this,interval,label,fn,1);});},stopTime:function(label,fn) {return this.each(function() {jQuery.timer.remove(this,label,fn);});}});jQuery.event.specialjQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{'ms':1,'cs':10,'ds':100,'s':1000,'das':10000,'hs':100000,'ks':1000000},timeParse:function(value) {if(value==undefined||value==null)return null;var result=this.regex.exec(jQuery.trim(value.toString()));if(result[2]) {var num=parseFloat(result[1]);var mult=this.powers[result[2]]||1;return num * mult;} else {return value;}},add:function(element,interval,label,fn,times,belay) {var counter=0;if(jQuery.isFunction(label)) {if(!times)times=fn;fn=label;label=interval;}interval=jQuery.timer.timeParse(interval);if(typeof interval!='number'||isNaN(interval)||interval<=0)return;if(times&&times.constructor!=Number) {belay=!!times;times=0;}times=times||0;belay=belay||false;var timers=jQuery.data(element,this.dataKey)||jQuery.data(element,this.dataKey,{});if(!timers[label])timers[label]={};fn.timerID=fn.timerID||this.guid++;var handler=function() {if(belay&&this.inProgress)return;this.inProgress=true;if((++counter>times&&times!==0)||fn.call(element,counter)===false)jQuery.timer.remove(element,label,fn);this.inProgress=false;};handler.timerID=fn.timerID;if(!timers[label][fn.timerID])timers[label][fn.timerID]=window.setInterval(handler,interval);this.global.push(element);},remove:function(element,label,fn) {var timers=jQuery.data(element,this.dataKey),ret;if(timers) {if(!label) {for (label in timers)this.remove(element,label,fn);} else if(timers[label]) {if(fn) {if(fn.timerID) {window.clearInterval(timers[label][fn.timerID]);delete timers[label][fn.timerID];}} else {for (var fn in timers[label]) {window.clearInterval(timers[label][fn]);delete timers[label][fn];}}for (ret in timers[label]) break;if(!ret) {ret=null;delete timers[label];}}for (ret in timers) break;if(!ret)jQuery.removeData(element,this.dataKey);}}}});jQuery(window).bind("unload",function() {jQuery.each(jQuery.timer.global,function(index,item) {jQuery.timer.remove(item);});});(function($) {$.fn.galleryView=function(options) {var opts=$.extend($.fn.galleryView.defaults,options);var id;var iterator=0;var gallery_width;var gallery_height;var frame_margin=opts.frame_margin;var strip_width;var wrapper_width;var item_count=0;var slide_method;var img_path='/imgml/icons/galleryView';var paused=false;var frame_caption_size=20;var frame_margin_top=opts.frame_margin_top;var pointer_width=2;var j_gallery;var j_filmstrip;var j_frames;var j_panels;var j_pointer;function showItem(i) {$('img.nav-next').unbind('click');$('img.nav-prev').unbind('click');j_frames.unbind('click');if(has_panels) {if(opts.fade_panels) {j_panels.hide().eq(i % item_count).fadeIn(opts.transition_speed,function() {j_frames.removeClass('current');j_frames.eq(i % item_count).addClass('current');if(!has_filmstrip) {$('img.nav-prev').click(showPrevItem);$('img.nav-next').click(showNextItem);}});}}if(has_filmstrip) {if(slide_method=='strip') {j_filmstrip.stop();var distance=getPos(j_frames[i]).left - (getPos(j_pointer[0]).left + 2);var leftstr=(distance>=0 ? '-=':'+=') + Math.abs(distance) + 'px';j_filmstrip.animate({'left':leftstr},opts.transition_speed,opts.easing,function() {if(i>item_count) {i=i % item_count;iterator=i;j_filmstrip.css('left','-' + ((opts.frame_width + frame_margin) * i) + 'px');} else if(i<=(item_count - strip_size)) {i=(i % item_count) + item_count;iterator=i;j_filmstrip.css('left','-' + ((opts.frame_width + frame_margin) * i) + 'px');}if(!opts.fade_panels) {j_panels.hide().eq(i % item_count).show();}$('img.nav-prev').click(showPrevItem);$('img.nav-next').click(showNextItem);enableFrameClicking();});} else if(slide_method=='pointer') {j_pointer.stop();var pos=getPos(j_frames[i]);j_pointer.animate({'left':(pos.left - 2 + 'px')},opts.transition_speed,opts.easing,function() {if(!opts.fade_panels) {j_panels.hide().eq(i % item_count).show();}$('img.nav-prev').click(showPrevItem);$('img.nav-next').click(showNextItem);enableFrameClicking();});}if($('a',j_frames[i])[0]) {j_pointer.unbind('click').click(function() {var a=$('a',j_frames[i]).eq(0);if(a.attr('target')=='_blank') { window.open(a.attr('href'));}else { location.href=a.attr('href');}});}}};function showNextItem() {$(document).stopTime("transition");if(++iterator==j_frames.length) { try { mngHPMatchDetail.startRotation(1);} catch (e) { } iterator=0;}showItem(iterator);$(document).everyTime(opts.transition_interval,"transition",function() {showNextItem();});};function showPrevItem() {$(document).stopTime("transition");if(--iterator<0) { iterator=item_count - 1;}showItem(iterator);$(document).everyTime(opts.transition_interval,"transition",function() {showNextItem();});};function getPos(el) {var left=0,top=0;var el_id=el.id;if(el.offsetParent) {do {left += el.offsetLeft;top += el.offsetTop;} while (el=el.offsetParent);}if(el_id==id) { return { 'left':left,'top':top };}else {var gPos=getPos(j_gallery[0]);var gLeft=gPos.left;var gTop=gPos.top;return { 'left':left - gLeft,'top':top - gTop };}};function enableFrameClicking() {j_frames.each(function(i) {if($('a',this).length==0) {$(this).click(function() {$(document).stopTime("transition");showItem(i);iterator=i;$(document).everyTime(opts.transition_interval,"transition",function() {showNextItem();});});}});};function buildPanels() {if($(opts.paneloverlay_selector).length>0) { j_panels.append('<div class="overlay"></div>');}if(!has_filmstrip) {$('<img />').addClass('nav-next').attr('src',img_path + opts.nav_theme + '/next.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1100','cursor':'pointer','top':((opts.panel_height - 22) / 2) + 'px','right':'10px','display':'none'}).click(showNextItem);$('<img />').addClass('nav-prev').attr('src',img_path + opts.nav_theme + '/prev.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1100','cursor':'pointer','top':((opts.panel_height - 22) / 2) + 'px','left':'10px','display':'none'}).click(showPrevItem);$('<img />').addClass('nav-overlay').attr('src',img_path + opts.nav_theme + '/panel-nav-next.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1099','top':((opts.panel_height - 22) / 2) - 10 + 'px','right':'0','display':'none'});$('<img />').addClass('nav-overlay').attr('src',img_path + opts.nav_theme + '/panel-nav-prev.png').appendTo(j_gallery).css({'position':'absolute','zIndex':'1099','top':((opts.panel_height - 22) / 2) - 10 + 'px','left':'0','display':'none'});}j_panels.css({'width':(opts.panel_width - parseInt(j_panels.css('paddingLeft').split('px')[0],10) - parseInt(j_panels.css('paddingRight').split('px')[0],10)) + 'px','height':(opts.panel_height - parseInt(j_panels.css('paddingTop').split('px')[0],10) - parseInt(j_panels.css('paddingBottom').split('px')[0],10)) + 'px','position':'absolute','top':(opts.filmstrip_position=='top' ? (opts.frame_height + frame_margin_top + (opts.show_captions ? frame_caption_size:frame_margin_top)) + 'px':'0px'),'left':'0px','overflow':'hidden','display':'none'});$(opts.paneloverlay_selector,j_panels).css({'position':'absolute','zIndex':'999','width':(opts.panel_width - 20) + 'px','height':opts.overlay_height + 'px','top':(opts.overlay_position=='top' ? '0':opts.panel_height - opts.overlay_height + 'px'),'left':'0','padding':'0 10px','fontSize':opts.overlay_font_size});$('.overlay',j_panels).css({'position':'absolute','zIndex':'998','width':opts.panel_width + 'px','height':opts.overlay_height + 'px','top':(opts.overlay_position=='top' ? '0':opts.panel_height - opts.overlay_height + 'px'),'left':'0','background':opts.overlay_color,'opacity':opts.overlay_opacity});$('.panel iframe',j_panels).css({'width':opts.panel_width + 'px','height':(opts.panel_height - opts.overlay_height) + 'px','border':'0'});};function buildFilmstrip() {j_filmstrip.wrap('<div class="strip_wrapper"></div>');if(slide_method=='strip') {j_frames.clone().appendTo(j_filmstrip);j_frames.clone().appendTo(j_filmstrip);j_frames=$('li',j_filmstrip);}if(opts.show_captions) {j_frames.append('<div class="caption"></div>').each(function(i) {$(this).find('.caption').html($(this).find('img').attr('title'));});}j_filmstrip.css({'listStyle':'none','margin':'0','padding':'0','width':strip_width + 'px','position':'absolute','zIndex':'900','top':'0','left':'0','height':(opts.frame_height) + 'px','background':opts.background_color});j_frames.css({'float':opts.direction,'position':'relative','height':opts.frame_height + 'px','zIndex':'901','marginTop':frame_margin_top + 'px','marginBottom':'0px','marginRight':frame_margin + 'px','padding':'0','cursor':'pointer'});$('img',j_frames).css({'border':'none'});$('.strip_wrapper',j_gallery).css({'position':'absolute','top':(opts.filmstrip_position=='top' ? '0px':opts.panel_height + 'px'),'left':((gallery_width - wrapper_width) / 2) + 'px','width':wrapper_width + 'px','height':(opts.frame_height + frame_margin_top + (opts.show_captions ? frame_caption_size:frame_margin_top)) + 'px','overflow':'hidden','background':opts.background_image});$('.caption',j_gallery).css({'position':'absolute','top':opts.frame_height + 'px','left':'0','margin':'0','width':opts.frame_width + 'px','padding':'0','color':opts.caption_text_color,'textAlign':'center','fontSize':'10px','height':frame_caption_size + 'px','lineHeight':frame_caption_size + 'px'});var pointer=$('<div></div>');pointer.attr('id','pointer').appendTo(j_gallery).css({'position':'absolute','zIndex':'1000','cursor':'pointer','top':getPos(j_frames[0]).top - (pointer_width / 2) + opts.pointer_offsetY + 'px','left':getPos(j_frames[0]).left - (pointer_width / 2) + 'px','height':opts.frame_height - pointer_width + 'px','width':opts.frame_width - pointer_width + 'px','background':opts.pointerStyle});j_pointer=$('#pointer',j_gallery);if(has_panels&&opts.hasFramePointer) {var pointerArrow=$('<img />');pointerArrow.attr('src',img_path + opts.nav_theme + '/pointer' + (opts.filmstrip_position=='top' ? '-down':'') + '.png').appendTo($('#pointer')).css({'position':'absolute','zIndex':'1001','top':(opts.filmstrip_position=='bottom' ? '-' + (10 + pointer_width) + 'px':opts.frame_height + 'px'),'left':((opts.frame_width / 2) - 10) + 'px'});}if(slide_method=='strip') {j_filmstrip.css('left','-' + ((opts.frame_width + frame_margin) * item_count) + 'px');iterator=item_count;}if($('a',j_frames[iterator])[0]) {j_pointer.click(function() {var a=$('a',j_frames[iterator]).eq(0);if(a.attr('target')=='_blank') { window.open(a.attr('href'));}else { location.href=a.attr('href');}});}if(opts.showFilmStripNavigation) {$('<img />').addClass('nav-next').attr('src',img_path + opts.nav_theme + '/next.png').appendTo(j_gallery).css({'position':'absolute','cursor':'pointer','top':(opts.filmstrip_position=='top' ? 0:opts.panel_height) + frame_margin_top + ((opts.frame_height - 22) / 2) + 'px','right':(gallery_width / 2) - (wrapper_width / 2) - 10 - 22 + 'px'}).click(showNextItem);$('<img />').addClass('nav-prev').attr('src',img_path + opts.nav_theme + '/prev.png').appendTo(j_gallery).css({'position':'absolute','cursor':'pointer','top':(opts.filmstrip_position=='top' ? 0:opts.panel_height) + frame_margin_top + ((opts.frame_height - 22) / 2) + 'px','left':(gallery_width / 2) - (wrapper_width / 2) - 10 - 22 + 'px'}).click(showPrevItem);}};function mouseIsOverPanels(x,y) {var pos=getPos(j_gallery[0]);var top=pos.top;var left=pos.left;return x>left&&x<left + opts.panel_width&&y>top&&y<top + opts.panel_height;};return this.each(function() {j_gallery=$(this);$('script').each(function(i) {var s=$(this);if(s.attr('src')&&s.attr('src').match(/jquery\.galleryview/)) {img_path=s.attr('src').split('jquery.galleryview')[0] + 'themes/';}});j_gallery.css('visibility','hidden');j_filmstrip=$(opts.filmstrip_selector,j_gallery);j_frames=$('li',j_filmstrip);j_panels=$(opts.panel_selector,j_gallery);id=j_gallery.attr('id');has_panels=j_panels.length>0;has_filmstrip=j_frames.length>0;if(!has_panels) opts.panel_height=0;item_count=has_panels ? j_panels.length:j_frames.length;var navSpace=opts.showFilmStripNavigation ? 64:0strip_size=has_panels ? Math.floor((opts.panel_width - navSpace) / (opts.frame_width + frame_margin)):Math.min(item_count,opts.filmstrip_size);if(strip_size>=item_count) {slide_method='pointer';strip_size=item_count;}else { slide_method='strip';}gallery_width=has_panels ? opts.panel_width:(strip_size * (opts.frame_width + frame_margin)) - frame_margin + 64;gallery_height=(has_panels ? opts.panel_height:0) + (has_filmstrip ? opts.frame_height + frame_margin_top + (opts.show_captions ? frame_caption_size:frame_margin_top):0);if(slide_method=='pointer') { strip_width=(opts.frame_width * item_count) + (frame_margin * (item_count));}else { strip_width=(opts.frame_width * item_count * 3) + (frame_margin * (item_count * 3));}wrapper_width=((strip_size * opts.frame_width) + ((strip_size - 1) * frame_margin));j_gallery.css({'position':'relative','margin':'0','background':opts.background_color,'border':opts.border,'width':gallery_width + 'px','height':gallery_height + 'px'});if(has_filmstrip) {buildFilmstrip();}if(has_panels) {buildPanels();}if(has_filmstrip) enableFrameClicking();$().mousemove(function(e) {if(mouseIsOverPanels(e.pageX,e.pageY)) {if(opts.pause_on_hover) {$(document).oneTime(500,"animation_pause",function() {$(document).stopTime("transition");paused=true;});}if(has_panels&&!has_filmstrip) {$('.nav-overlay').fadeIn('fast');$('.nav-next').fadeIn('fast');$('.nav-prev').fadeIn('fast');}} else {if(opts.pause_on_hover) {$(document).stopTime("animation_pause");if(paused) {$(document).everyTime(opts.transition_interval,"transition",function() {showNextItem();});paused=false;}}if(has_panels&&!has_filmstrip) {$('.nav-overlay').fadeOut('fast');$('.nav-next').fadeOut('fast');$('.nav-prev').fadeOut('fast');}}});j_panels.eq(0).show();if(item_count>1) {$(document).everyTime(opts.transition_interval,"transition",function() {showNextItem();});}j_gallery.css('visibility','visible');});};$.fn.galleryView.defaults={panel_width:400,panel_height:300,frame_width:80,frame_height:80,filmstrip_size:3,overlay_height:70,overlay_font_size:'1em',transition_speed:400,transition_interval:6000,overlay_opacity:0.6,overlay_color:'',background_color:'black',overlay_text_color:'',caption_text_color:'white',border:'1px solid black',nav_theme:'light',easing:'swing',filmstrip_position:'bottom',overlay_position:'bottom',show_captions:false,fade_panels:true,pause_on_hover:false,direction:'left',filmstrip_selector:'.filmstrip',panel_selector:'.panel',paneloverlay_selector:'.panel-overlay',showFilmStripNavigation:true,hasFramePointer:true,frame_margin:10,frame_margin_top:5,pointer_offsetY:0};})(jQuery);var hpMatchDetail=Class.create()hpMatchDetail.prototype={_matchid:[],_roundid:[],_matchday:[],_viewtype:[],_boxid:[],_par1:[],_par2:[],_currentitem:-1,_currmatchid:-1,_currenttype:'',_rollInterval:0,_liveDefaultSet:0,_urlp:'/worldcup/archive/southafrica2010/matches/round={round}/match={match}/library/_hppreview.html',_urll:'/Live/Competitions/worldcup/matchday={matchday}/day=1/match={match}/_hplive.html',_urls:'/worldcup/archive/southafrica2010/matches/round={round}/match={match}/library/_hpsummary.html?ign=' + Math.floor(Math.random() * 10000000000),_urlm:'/Live/Competitions/worldcup/_hptournament.html',_urlc:'/worldcup/archive/southafrica2010/matches/round={round}/match={match}/comments.html',_urlmc:'/worldcup/archive/southafrica2010/matches/round={round}/match={match}/index.html',_previtem:-1,_tm:'',_tmperiodical:'',initialize:function() {},reset:function() {this._matchid=[];this._roundid=[];this._matchday=[];this._viewtype=[];this._boxid=[];this._par1=[];this._par2=[];},add:function(boxid,id,round,mday,type,par1,par2) {this._boxid.push(boxid);this._matchid.push(id);this._roundid.push(round);this._matchday.push(mday);this._viewtype.push(type);this._par1.push(par1);this._par2.push(par2);},show:function(id,source) {if(source==2&&this._liveDefaultSet==1) return;var i;var surl='';this.stopRotation();for (i=0;i<this._matchid.length;i++) {if(this._matchid[i]==id) {if(this._currentitem!=i) {$j('#fwcHPMatchlist li').removeClass("current");this.update(i);}else {surl=this._urlmc.replace('{round}',this._roundid[this._currentitem]);surl=surl.replace('{match}',this._matchid[this._currentitem]);surl=surl.replace('{matchday}',this._matchday[this._currentitem]);window.location=surl;}break;}}if(source==2) this._liveDefaultSet=1;this.startRotation();},update:function(item) {this._currmatchid=this._matchid[item];this._currenttype=this._viewtype[item];this._currentitem=item;var surl='';var par1='';var boxid=this._boxid[item];var viewtype=this._viewtype[item];switch (viewtype) {case 'p':surl=this._urlp.replace('{round}',this._roundid[item]);surl=surl.replace('{match}',this._matchid[item]);break;case 's':surl=this._urls.replace('{round}',this._roundid[item]);surl=surl.replace('{match}',this._matchid[item]);break;case 'l':surl=this._urll.replace('{round}',this._roundid[item]);surl=surl.replace('{match}',this._matchid[item]);surl=surl.replace('{matchday}',this._matchday[item]);break;}if(surl!='') {$j('#newsReaderMatchDetail').load(surl,function() {switch (viewtype) {case 'p':$j("#fwc_matchDetails .picture a,#fwc_matchDetails .matchHeaderTab a").click(function() { wAnalytics.onHPTop("newsreader - preview - picture");});$j("#fwc_matchDetails h2 a").click(function() { wAnalytics.onHPTop("newsreader - preview - caption");});$j("#fwc_matchDetails .quicklink a").click(function() { wAnalytics.onHPTop("newsreader - preview - related items");});mngHPMatchDetail.currentviewtype='p';break;case 's':$j("#fwc_matchDetails .picture a").click(function() { wAnalytics.onHPTop("newsreader - summary - picture");});$j("#fwc_matchDetails h2 a").click(function() { wAnalytics.onHPTop("newsreader - summary - caption");});$j("#fwc_matchDetails .quicklink a").click(function() { wAnalytics.onHPTop("newsreader - summary - related items");});$j("#fwc_matchDetails .extcontent .video a").click(function() { wAnalytics.onHPTop("newsreader - summary - highlights");});mngHPMatchDetail.currentviewtype='s';break;case 'l':$j("#fwc_matchDetails .matchHeader a").click(function() {wAnalytics.onHPTop("newsreader - match - launch matchcast");});mngHPMatchDetail.currentviewtype='l';if(par1!='') {}break;}NewsReader.showNone()$j('#newsReaderMatchDetail').show();$j('#' + boxid).addClass("current");});}},updateCurrent:function() {if(this._currentitem!=-1) {if(this._matchid[this._currentitem]!=this._currmatchid) {this._currentitem=-1;this._currmatchid=-1;this._currenttype='';}$j('#' + this._boxid[this._currentitem]).addClass("current");$j('#newsReaderMatchDetail').show();}if(this._currentitem!=-1&&(this._currenttype!=this._viewtype[this._currentitem]||this._viewtype[this._currentitem]=='l')) {this.update(this._currentitem);}},updateFanVoice:function(fanvoiceurl) {if(fanvoiceurl!='') {var commUrl=this._urlc.replace('{round}',this._roundid[this._currentitem]);commUrl=commUrl.replace('{match}',this._matchid[this._currentitem]);$j.get(fanvoiceurl,null,function(data) {for (var i=1;i<4;i++) {var parent='';parent=$j(data).next('.comment.mc' + i);if(parent!=null) {var sel="#newsReaderMatchDetail .fanvoice #comments" + i;var obj='';obj=$j(parent).find('.avatarComment');if(obj!=null&&$j(obj).html()!=null) {$j("#newsReaderMatchDetail .fanvoice").append("<div id=\"comments" + i + "\" class=\"fanvoiceComments\">");var str=$j(obj).html();str=str.replace("avatar_50.png","avatar_24.png");str=str.replace('width="50"','width="24"');str=str.replace('height="50"','height="24"');str=str.replace('avatarContainer50','avatarContainer24');$j('<div class="avatarCommentHP">' + str + '</div>').appendTo(sel);obj=$j(parent).find('.nickname');$j('<div id="userCommentsHP' + i + '" class="commentsDetails">').appendTo(sel);var user="#userCommentsHP" + i;if(obj!=null&&$j(obj).html()!=null) {$j('<div class="nicknameHP">' + $j(obj).html() + '</div>').appendTo(user);$j('#newsReaderMatchDetail .nicknameHP').replaceWith('<strong style="display:block;">' + $j('#newsReaderMatchDetail .nicknameHP strong').html() + '</strong>');}obj=$j(parent).find('.usercomment');if(obj!=null&&$j(obj).html()!=null) {$j('<div class="usercommentHP"><a href="' + commUrl + '">' + $j(obj).html().truncate(65,'...') + '</a></div>').appendTo(user);}$j('</div>').appendTo(sel);}}}if(mngHPMatchDetail.currentviewtype=='p') {$j("#fwc_matchDetails .extcontent .fanvoice a").click(function() { wAnalytics.onHPTop("newsreader - summary - fan voice");});} else if(mngHPMatchDetail.currentviewtype=='s') {$j("#fwc_matchDetails .extcontent .fanvoice a").click(function() { wAnalytics.onHPTop("newsreader - summary - fan voice");});}});}},getLiveDefaultSet:function() {return this._liveDefaultSet;},getCurrentItem:function() {return this._currentitem;},getCurrentMatch:function() {return this._currmatchid;},getCurrentType:function() {return this._currenttype;},startRotation:function(auto) {if(this._rollInterval>0) {if(auto&&this._currentitem==-1) this.show(this._matchid[0]);if(this._tm=='') this._tm=setInterval(this.onTimerRotation.bind(this),this._rollInterval);}},stopRotation:function() {clearInterval(this._tm);this._tm='';},setRotation:function(_rollInterval) {this._rollInterval=_rollInterval;},onTimer:function() {$j('#fwcHPMatchlist').load(this._urlm,function() { mngHPMatchDetail.setMatchListAnalytics() });this._tmperiodical=setTimeout(this.onTimer.bind(this),30000);},startPerioricalUpdater:function() {if(this._tmperiodical=='') {$j('#fwcHPMatchlist').load(this._urlm,function() { mngHPMatchDetail.setMatchListAnalytics() });this._tmperiodical=setTimeout(this.onTimer.bind(this),30000);}},onTimerRotation:function() {if(this._currentitem!=-1) {if(this._currentitem<this._matchid.length - 1) {var okView=0;for (var i=this._currentitem + 1;i<this._matchid.length;i++) {if(this._viewtype[i]!='') {this.show(this._matchid[i],0);okView=1;break;}}if(okView==0) this.restartNewsReader();}else {this.restartNewsReader();}}},restartNewsReader:function() {this.stopRotation();$j('#fwcHPMatchlist li').removeClass("current");this._currentitem=-1;NewsReader.showNews('1');$j('#fwcHPMatchlist').load(this._urlm,function() { mngHPMatchDetail.setMatchListAnalytics() });},deselectAll:function() {$j('#fwcHPMatchlist li').removeClass("current");this._previtem=this._currentitem;this._currentitem=-1;$j('#newsReaderMatchDetail').hide();},reselectItem:function() {this._currentitem=this._previtem;this.updateCurrent();},setMatchListAnalytics:function() {$j("#hpmatchbox_1").click(function() { wAnalytics.onHPTop("newsreader - right box 1") });$j("#hpmatchbox_2").click(function() { wAnalytics.onHPTop("newsreader - right box 2") });$j("#hpmatchbox_3").click(function() { wAnalytics.onHPTop("newsreader - right box 3") });$j("#hpmatchbox_4").click(function() { wAnalytics.onHPTop("newsreader - right box 4") });$j("#hpmatchbox_5").click(function() { wAnalytics.onHPTop("newsreader - right box 5") });}};var mngHPMatchDetail=new hpMatchDetail();

