var objBanner;
jQuery(function($) {
	objBanner = new Banner();

	objBanner.slideshow();
	$(".updateNumClickBanner").click(function(){
		objBanner.updateNumClick($(this).attr("rel"));
	});
});

function Banner() {
	this.updateNumClick = function(id) {
		$.ajax({
  			type: "POST",
  			url: urlModule+'/banner/update-num-click',
  			data: { "id": id },
  			async: false,
  			success: function(result) {
  				return true;
  			}
  		});
	};
	this.slideshow = function(id) {		
		$("#slider").easySlider({
			auto: true, 
			continuous: true,
			numeric: true,
			pause: 5000,
			orientation: 'horizontal'
		});
	};
}
