var xFactor=3,SlideWidth=161,SlideSpeed=1E3,nrElems=0,nrMaxElemsVisible=6,lastDateTimeInNextSlide,lastDateTimeInPreviousSlide,lastDateTimeResize,originalNr,lastAvailableWidth,availableWidth,availableWidthAfterSlide,rtime=new Date(1,1,2E3,12,0,0),timeout=!1,delta=200;
function initCounters(a){function b(){new Date-rtime<delta?setTimeout(b,delta):(timeout=!1,$("#feedbackLinksSliderWrapper").animate({marginLeft:0},SlideSpeed,function(){Update()}),nrElems=originalNr,$("#feedbackLinksSliderWrapper").animate({marginLeft:0},SlideSpeed,function(){SetNavigationDisplay()}))}$(".PageContainer").ready(function(){lastDateTimeResize=new Date;nrElems=originalNr=a;Update();SetNavigationDisplay()});$(window).resize(function(){rtime=new Date;!1===timeout&&(timeout=!0,setTimeout(b,
delta))});$(document).ajaxSuccess(function(a,c,d){availableWidth=Math.floor($("#feedbackLinksSliderWrapper").width()/nrMaxElemsVisible);if(null==lastAvailableWidth||lastAvailableWidth!=availableWidth)b(),lastAvailableWidth=availableWidth})}function Update(){availableWidth=Math.floor($("#feedbackLinksContainer").width()/nrMaxElemsVisible);$(".feedbackLinkCounters").css("width",availableWidth-33+"px");SlideWidth=availableWidth*xFactor}
function CurrentMargin(){var a=$("#feedbackLinksSliderWrapper").css("margin-left");"auto"==a&&(a=0);return parseInt(a)}function SetNavigationDisplay(){0<=CurrentMargin()?$("#flc_IconMoveLeft").hide():$("#flc_IconMoveLeft").show();nrElems<=nrMaxElemsVisible?$("#flc_IconMoveRight").hide():$("#flc_IconMoveRight").show()}
function NextSlide(){var a=new Date;500>a-lastDateTimeInNextSlide?lastDateTimeInNextSlide=a:(lastDateTimeInNextSlide=a,nrElems-=xFactor,a=CurrentMargin()-SlideWidth,0==CurrentMargin()&&(a=a+14+3*xFactor,availableWidth=Math.floor(($("#feedbackLinksContainer").width()-14)/nrMaxElemsVisible),SlideWidth=availableWidth*xFactor,$(".feedbackLinkCounters").css("width",availableWidth-33+"px")),$("#feedbackLinksSliderWrapper").animate({marginLeft:a},SlideSpeed,function(){SetNavigationDisplay()}))}
function PreviousSlide(){var a=new Date;500>a-lastDateTimeInPreviousSlide?lastDateTimeInPreviousSlide=a:(lastDateTimeInPreviousSlide=a,nrElems+=xFactor,a=CurrentMargin()+SlideWidth,a>=14-3*xFactor-(xFactor-1)*availableWidth&&(a=0,availableWidth=Math.floor($("#feedbackLinksContainer").width()/nrMaxElemsVisible),SlideWidth=availableWidth*xFactor,$(".feedbackLinkCounters").css("width",availableWidth-33+"px")),$("#feedbackLinksSliderWrapper").animate({marginLeft:a},SlideSpeed,function(){SetNavigationDisplay()}))}
;
