var currentBigImage;var changerFunction=function(){$('.bigimage').fadeOut(500,function(){oldBigImage=currentBigImage;currentBigImage=currentBigImage%4+1;$(this).removeClass('image'+oldBigImage).addClass('image'+currentBigImage).fadeIn(500,function(){setTimeout(changerFunction,8000);});});};$(document).ready(function(){$('.News_NewsItemPanel .newsItem a').click(function(event){urlEnding=$(this).attr('href').split('/');urlEnding=urlEnding[urlEnding.length-3]+'/'+urlEnding[urlEnding.length-2];params={'urlEnding':urlEnding};ajaxRequest.make('News','NewsItemViewer','getNewsItem',params,function(response){$(response.html).popup('open');});event.preventDefault();});$('.News_NewsItemPanel .testimonialItem a').click(function(event){id=$(this).attr('href').split('#');ajaxRequest.make('Etonbridge','TestimonialPanel','getTestimonial',{'id':id[1]},function(response){$(response).popup('open');});event.preventDefault();});});