/*function url_expo(page,numero){
	var pos_liste=$('.jspPane').css('top');
	window.location='index.php?page='+page+'&numero='+numero+'&pos_liste='+pos_liste;
}*/
jQuery(function ($) {
/*
// Initialisation PrettyPhoto
*/
	$("a[rel^='prettyPhoto']").prettyPhoto({
		theme:'facebook',
		opacity: 0.50,
		show_title: false
	});
	
/*
// Initialisation Scrollpane
*/
	$('#liste').jScrollPane({
		showArrows: true
	});
	
/*
//Liens Exposition
*/

	$('.lien_expo').live('click',function(){
		var lien = $(this).attr('href');
		$('.lien_expo').each(function(){
			$(this).removeClass('actif');
		});
		$(this).addClass('actif');
		$('#expos .images').hide();
		$('#loading').show();
		$.ajax({
			url:lien,
			success: function(html){
				$('#expos .images').empty();
				$('#expos .images').append(html);
				$("a[rel^='prettyPhoto']").prettyPhoto({
					theme:'facebook',
					opacity: 0.50,
					show_title: false
				});
				$('#loading').fadeOut(500,function(){
					$('#expos .images').show();
				});
			}
		});
		return false;
	});
});
