// JavaScript Document
$(document).ready(function(){
var counter=0;

    $("a#next-alt").click(function (){
    if(counter<3){
        $(".alt-views-ul").animate({"left": "-=118.5px"});
        counter=counter+1;
    }
    });

    $("a#previous-alt").click(function (){
    if(counter>0) {
        $(".alt-views-ul").animate({"left": "+=118.5px"});
        counter=counter-1;
    }
    });
});
 // used for magic zoom so the alt image will be displayed in the magic zoom
function changeZoomImage() {
	// Step 1
	// Stop Magic Zoom
	MagicZoom_stopZooms();
	// Step 2
	// Re-initialize Magic Zoom
	MagicZoom_findZooms();
}

