//jquery version//console.log($().jquery);$(document).ready(function(){	/*##################################################################################################*///Active les galeries d images (lightbox plugin)/*##################################################################################################*/$(function() {	// Use this example, or...	//$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel	// This, or...	$('.galeriePhotos a').lightBox(); // Select all links in object with gallery ID	// This, or...	//$('a.lightbox').lightBox(); // Select all links with lightbox class	// This, or...	//$('a').lightBox(); // Select all links in the page	// ... The possibility are many. Use your creative or choose one in the examples above	$('a.agrandir').lightBox();});/*##################################################################################################*///Nouveau slideshow sur l'accueil, depend de scripts/diaporama.js//http://landofcoder.com/jquery-plugins/*##################################################################################################*/var buttons = { 	next:$('#lofslidecontent45 .lof-previous'),/*D Ruzicka 18.08.2011: inversion des deux pour une meilleure ergonomie */	previous:$('#lofslidecontent45 .lof-next') 	};						$obj = $('#lofslidecontent45').lofJSidernews( { 	interval : 4000,	direction		: 'opacitys',		easing			: 'easeInOutExpo',	duration		: 1200,	auto		 	: false,	maxItemDisplay  : 5,	navPosition     : 'horizontal', // horizontal	navigatorHeight : 235,	navigatorWidth  : 178,	mainWidth		: 960,	buttons			: buttons});	/*##################################################################################################*///quelques jolis effets sur les liens avec des images dedans/*##################################################################################################*/function hover_link(selector) {	$(selector).hover(		function() {	$(this).stop().animate({	opacity: 0.75	}, {	duration: 300	})},		function() {	$(this).stop().animate({	opacity: 1		}, {	duration: 200	})}	);}hover_link("ul.lof-navigator li div.extraitActu");hover_link(".menuTop li a img");hover_link("h1#logoFRC");hover_link("#div_sections ul li a img");/*##################################################################################################*///Reordonner une table en cliquant sur le header (observatoire du sel id 1138 - cosmétiques signalés id 1210)/*##################################################################################################*/$("#observatoire-sel").tablesorter({         // sort on the first column and third column, order asc         sortList: [[1,0]],        widgets: ['zebra'],        headers: {             // assign the first column (we start counting zero)             0: {                 // disable it by setting the property sorter to false                 sorter: false             }        } });     $("#cosmetiques-fabricants-reponses").tablesorter({         // sort on the first column and third column, order asc         sortList: [[0,0]],        widgets: ['zebra'],        headers: {             // disable the second column             1: {                 // disable it by setting the property sorter to false                 sorter: false             }        }}); /*##################################################################################################*///hauteur du body/*##################################################################################################*/bodyHauteur = $('body').height();/*Ajustement de la hauteur du div contenant des messages lorsqu'on retourne sur l'accueil depuis l'inscription ou le shop*/$('#messageImportant').height(bodyHauteur);$('.fermeMoi').click(function() {	$('#messageImportant').fadeOut('fast'); return false; });});//end document ready
