var currentprogramme=1;$(document).ready(function(){$.post("includes/ajax/programmeinfo.ajax",function(_1){$("div#home-programme-holder").empty();$("div#home-programme-holder").append(_1);$("div#home-programme-holder ul").css("left",((-((currentprogramme-1)*326)))+"px");$("div#programmeselector .next").click(function(){currentprogramme++;if(currentprogramme==6){$("div#programmeselector .next").css("visibility","hidden");}if(currentprogramme==2){$("div#programmeselector .previous").css("visibility","visible");}$("div#home-programme-holder ul").animate({left:-((currentprogramme-1)*326)},1000);return false;});$("div#programmeselector .previous").click(function(){currentprogramme--;if(currentprogramme==1){$("div#programmeselector .previous").css("visibility","hidden");}if(currentprogramme==5){$("div#programmeselector .next").css("visibility","visible");}$("div#home-programme-holder ul").animate({left:(-((currentprogramme-1)*326))},1000);return false;});if(currentprogramme==1){$("div#programmeselector .next").css("visibility","visible");}if(currentprogramme>=6){$("div#programmeselector .previous").css("visibility","visible");}if(currentprogramme<6&&currentprogramme>1){$("div#programmeselector .previous").css("visibility","visible");$("div#programmeselector .next").css("visibility","visible");}});});