
$(document).ready(function(){$("body").removeClass("hover-css");$(".ptdefault").removeClass("ptdefault");var C={current:$("#-non-existing-"),timeoutID:0,timerOn:false,prev:-1};function switchcurrent(num,speed){speed=typeof(speed)!='undefined'?speed:'slow';if(num==C.prev)return;C.prev=num;newcurrent=$("#page #wrapper ol li.point"+num)
C.current.find("a").fadeOut(speed);C.current.find(".aux-target").fadeOut(speed);C.current=newcurrent;C.current.find(".aux-target").fadeIn(speed);C.current.find("a").fadeIn(speed).css("display","block");}
function stoptimer(){if(C.timerOn){clearTimeout(C.timeoutID);C.timerOn=false;}}
function starttimer(){if(!C.timerOn){C.timeoutID=setTimeout("$.advance_timer()",7000);C.timerOn=true;}}
$.advance_timer=function(){next=C.prev+1;if(next>4)next=1;switchcurrent(next,1000);if(C.timerOn){C.timeoutID=setTimeout("$.advance_timer()",7000);}}
for(j=1;j<=4;j++){x=function(){var i=j;var the_li_selector="#page #wrapper ol li.point"+i;$(the_li_selector).hover(function(){stoptimer();switchcurrent(i,300);},function(){starttimer();});$(the_li_selector+" a").hide();$(the_li_selector+" span").css("display","block");};x();}
switchcurrent(1,0);starttimer();});