Cufon.replace('#side_menu > li > a');
Cufon.replace('.pagination_title');


var gotoPage = function() {

	page_id = $(this).attr("id");
	
	pageInfo = page_id.split("_");
	
	valueA = parseInt(pageInfo[1])-1;
		
	newMargin = txtC((valueA*720)*-1)
	
	$("#events_container_internal").animate({marginLeft:newMargin},1000);
	
	$(".page_number").removeClass("current_page");
	
	$("#page_"+pageInfo[1]).addClass("current_page");
	$("#page2_"+pageInfo[1]).addClass("current_page");
		
	}


$(document).ready(function() {
	
	$("#side_menu > li > a").each(function() {
		var hta_code = $(this).attr("id");
		
		$(this).parent().css({"background-image":"url(img/eventinfo/categories/"+hta_code+"_tag.png)"});
	
	});
	
	
	$(".event_image").imgZoom({opacity:0,showOverlay:true});
	
	
	$(".page_number").each(function () {
	
		
		
		$(this).bind("click",gotoPage);
	
	
	
		});
	
	
	
	
	});
