// Standard jQuery header
;(function($) {

$(document).ready(function() {
    $('#GalleryNo-0').jcarousel({
        // Configuration goes here
    	
    });
    $('#GalleryNo-1').jcarousel({
        // Configuration goes here
    	
    });
    $('#GalleryNo-2').jcarousel({
        // Configuration goes here
    	
    });
    $('#GalleryNo-3').jcarousel({
        // Configuration goes here
    });
        
    $('a.lightwindow').zoomimage({
        opacity:0.5,
        border:0,
        controls:true,
        centered:true,
        controlsTrigger:'mouseover'
    });
    
    // Page-Slider
    var itemCount = 0;
    var actualPage = 0;
    
    var leftCount = 1;
    var rightCount = 1;
    var stripCount= 5;

    var itemWid = 100;
    var itemPad = 10;
    var lastScr = itemWid + itemPad;
    
    $(function(){
       $('.pageItem').each(function(){
         itemCount++;
       });
       // Default hide prev-Button
       $('#prevPage').hide();
       // Special Treatment for next-Button
       if (itemCount==1){
    	   $('#nextPage').hide(); 
       }
    });

    $('#nextPage').click(function () {
	   $('#Switcher').animate({left:-440*leftCount}, 'slow');
	   leftCount++;
	   rightCount--;
	   actualPage++;
	   if (actualPage==itemCount-1){
   		$('#nextPage').hide();
	   }
	   $('#prevPage').show();
    });
    
    $('#prevPage').click(function () { 
    	$('#Switcher').animate({left:440 * rightCount}, 'slow');
    	rightCount++;
    	leftCount--;
 	    actualPage--;
	    if (actualPage==0){
   		  $('#prevPage').hide();
	    }
	    $('#nextPage').show();
    });
})
})(jQuery);