﻿//same-height, ...
//$(document).ready(function($){
//	$(function(){
//		$('div.two-columns > div.fixed-left-column, div.three-columns > div.fixed-left-column').each(function(){
//			$('div.elastic-column', this.parentNode).css('margin-left', $(this).css('width'))
//		});
		
//		$('div.two-columns > div.fixed-right-column, div.three-columns > div.fixed-right-column').each(function(){
//			$('div.elastic-column', this.parentNode).css('margin-right', $(this).css('width'))
//		});
		
//		$('div.same-height').each(function(){
//			var height = $(this).outerHeight(true) - ( $(this).outerHeight(true) - $(this).height() );
//			$('> div', this).each(function(){
//				$(this).css('min-height', height);
//			});
//		});
		
//		$('div.full-height').each(function(){
//			$(this).css('min-height', $(this.parentNode).height() - ( $(this).outerHeight(true) - $(this).height() ));
//		});
//	});
//});


$(document).ready(function($){
		
		$('.menu_head, ul.menu_body').hover(
			function() { $('ul.menu_body').css('display', 'block'); },
			function() { $('ul.menu_body').css('display', 'none'); });


		/*scrollpane
		--------------------------------------------------*/
		$(function()
		{
			$('#pane1').jScrollPane({scrollbarWidth:10, scrollbarMargin:1});
		});
		$(function()
		{
			$('#pane1Legal').jScrollPane({scrollbarWidth:10, scrollbarMargin:10});
		});

		/*draggable
		--------------------------------------------------*/
		$(function() {		
			$(".draggable").draggable({ containment: 'body', scroll: false });
		});

		/*supersized
		--------------------------------------------------*/
		$(function(){
			$.fn.supersized.options = {  
				startwidth: 640,  
				startheight: 480,
				vertical_center: 1,
				slideshow: 1,
				navigation: 1,
				transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
				pause_hover: 0,
				slide_counter: 1,
				slide_captions: 1,
				slide_interval: 8000  
			};
			$('#supersize').supersized(); 
		});

		Cufon.replace('.cufon');

		/*braderie
		--------------------------------------------------*/
	/*	$(".bandeauBraderie").hide(); 

		$(".ctaBraderie, .tooltip").click( function () { 
				$(".bandeauBraderie").slideDown("fast");
				$(".ctaBraderie, .tooltip").hide();
			return false;
		}); 
		$(".bandeauBraderie").click( function () { 
				$(".bandeauBraderie").slideUp("fast");
				$(".ctaBraderie, .tooltip").show();
			return false;
		});
		$('.tooltip').fadeTo(1000, 0.3).fadeTo(1000, 1).fadeTo(1000, 0.3).fadeTo(1000, 1).fadeTo(1000, 0.3).fadeTo(1000, 1).fadeTo(1000, 0.3).fadeTo(1000, 1);
	*/

});
