    var BLANK_URL = 'js/blank.html';
    var BLANK_IMG = 'js/spacer.gif");?>';

function mycarousel_agence_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(1);
        return false;
    });
		

    jQuery('.jcarousel-scroll select').bind('change', function() {
        carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
        return false;
    });

    jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};
		

	function mycarousel_initCallback(carousel)
	{
	

		// Disable autoscrolling if the user clicks the prev or next button.
		carousel.buttonNext.bind('click', function() {
			carousel.startAuto(0);
		});

		carousel.buttonPrev.bind('click', function() {
			carousel.startAuto(0);
		});

		// Pause autoscrolling if the user moves with the cursor over the clip.
		carousel.clip.hover(function() {
			carousel.stopAuto();
		}, function() {
			carousel.startAuto();
		});
	};
		
	jQuery(document).ready(function() {
	
	if (document.getElementById("mycarousel")!=null)
	{	
	jQuery('#mycarousel').jcarousel({
			vertical: true,
			scroll: 1,
			auto:2,
			initCallback: mycarousel_initCallback,
			wrap: 'last'		
			});
	}
	
	if (document.getElementById("gallery")!=null)
	{			
		jQuery('#gallery a').lightBox({
			overlayBgColor: '#000',
			overlayOpacity: 0.6,
			imageLoading: 	'includes/languages/french/images/loading.gif>',
			imageBtnClose: 	'includes/languages/french/images/lightbox-btn-close.gif',
			imageBtnPrev: 	'includes/languages/french/images/lightbox-btn-prev.gif',
			imageBtnNext: 	'includes/languages/french/images/lightbox-btn-next.gif',			
			containerResizeSpeed: 350
		});	
	}
	
	});
	
function show_agence (id, count)
{	
	for (var i=1 ; i<=count ; i++)
	{
		document.getElementById("agence"+i).style.display = 'none';
	}
		document.getElementById(id).style.display = 'block';
}

