J(document).ready(function(){
	
    J(".content .carousel").jCarouselLite({
        btnPrev: ".controls .left-arrow, .controls .left-count ",
        btnNext: ".controls .right-arrow, .controls .right-count",
        speed: 2000,
        visible:1,
        afterEnd: function(a) {
			resetEnlarge('#current-image img','#current-image');
			J(".content .controls .zoom").addClass('minus').html('+ zoom');
			J(".content .carousel LI").removeAttr('id');
			J(a).attr('id','current-image');
            J('.controls .left-count').html(J(a).attr('class'));                    
        } 
    });
    
    J(".content .controls .zoom").click(function(){
        if (J(this).hasClass('minus')){
            J("#current-image img").css('width','100%');
            J(this).removeClass('minus').html('+ zoom');
			/*  Reset Image  Moveable  */
			resetEnlarge('#current-image img','#current-image');
        } else {
            J("#current-image img").css('width','150%');
            J(this).addClass('minus').html('- zoom');
			/*  Make Image  Moveable  */
			makeImageMovable('#current-image img','#current-image');
        }
    });

	
});


