// JavaScript Document

$(function() {
	 /*pngfix*/
	 $(document).pngFix(); 
	
	/*	if($('select#departement,select#region').length > 0){
	 $('select#departement,select#region').selectmenu({
				maxHeight: 150,
				style:'popup', 
				width: 125,
				menuWidth: 200
			});
	}*/
	if($('select#departement,select#region').length > 0){
		$('select#region,select#departement').selectmenu({
				style:'dropdown',
				maxHeight: 120,
				width: 140,
				menuWidth: 200
		});
	}
	/* TEXT Shadow */
	if($('.pastelShadow').length > 0){
		$(".pastelShadow").PastelShadow({
			x: 1,
			y: 2,
			blur: 5,
			color: "#000"			
		});
	}
	if($('.scroll-pane').length > 0){
	$('.scroll-pane').jScrollPane({showArrows:true});
	}
	
	if($('#imgProtections').length > 0){
		$('#imgProtections').crossSlide({
		  sleep: 2,
		  fade: 1
			}, [
			  { src: 'images/mep/travailledanslebruit.jpg' },
			  { src: 'images/mep/discotheque.jpg'   }
			]);
	}
	
/*	$("#accordion").accordion({
			autoHeight: false,
			collapsible: true,
			active: 0,
			header: "h3" 
	});*/
	
	/* Fancybox */
	if($("a[rel=fancybox],.lightbox").length > 0){
		$("a[rel=fancybox],.lightbox").fancybox({'titleShow' : false});
	}
	
});
