// JavaScript Document


// NIVO SLIDER

$(window).load(function() {
    $('.slider').nivoSlider();
});


// FIN NIVO SLIDER

//SLIDER EASYSLIDER

$(document).ready(function(){	
			$("#offres_premium").easySlider({
				auto: false, 
				continuous: true,
				nextId: "slider1next",
				nextText: 		'SUIVANT'

			});
		});	

// FIN EASY SLIDER

//TOGGLER

$(document).ready(function(){
	
	
	//POPUPFLY
	  
	  $('#popup_content').popup(
		{
			setcookie: false, 
			selfclose: 300,
			centered: false,
			top: 100,
			left: '100%',
			popup_div	: 'popup_content',
			fly_in		: true,
			fly_from 	: 'right',
			floating_speed : 15,
			overlay: false,
			opacity_level: 0.6
		}
	);
	
	

	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$(".inactive").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
		return false; //Prevent the browser jump to the link anchor
	});
	
$(".region_departements").hover(function () { 			 
		      $(this).prev(".departements").stop(true, true).fadeIn();
			  })
$(".departements").mouseout( function () {
	
				  $(".departements").stop(true, true).fadeOut(); 
			  }
			  )			  
			  
			  
});


//FIN TOGGLER

//CARTE DEPARTEMENTS AU SURVOL

// LIGHTBOX

jQuery(document).ready(function(){
      jQuery('.lightbox').lightbox();
    });

//LIGHTBOX

//DROP SHADOW

window.onload = function()  
      {
        $(".image_diaporama img").dropShadow({left: 1, top: 1, opacity: 0.4, blur: 1});
	  }

//DROP SHADOW

/*  suppression styles dans les blocks */
window.onload = function()  
      {		
		$(".block font").removeAttr("size");
	  }
	  
	  
//MENU TOP	  
window.onload = function()  
      {		
$('#nav li').hover(
		function () {
			//show its submenu
			$('ul', this).slideDown(100);

		}, 
		function () {
			//hide its submenu
			$('ul', this).slideUp(100);			
		}
	);
 
	}
	


