/*
 * Developpement 2010, Xplicit-Prod
 */
function navigation(){$("#siteContent").append('<ul class="_navigation"><li class="_prev"><a href="#prev"><span>Page précédente</span></a></li><li class="_next"><a href="#next"><span>Page suivante</span></a></li></ul>').find("._photos li:first").addClass("current").fadeIn().end().each(function(){var a=$(this).find("._photos li").length;var c=$(this).find("._navigation ._prev");var b=$(this).find("._navigation ._next");if(a>1){b.fadeIn()}b.find("a").click(function(){$("#siteContent ._photos li.current").hide().removeClass("current").each(function(){c.fadeIn()}).next().addClass("current").fadeIn().each(function(){if(!$(this).next().length){b.fadeOut()}});return false});c.find("a").click(function(){$("#siteContent ._photos li.current").hide().removeClass("current").each(function(){b.fadeIn()}).prev().addClass("current").fadeIn().each(function(){if(!$(this).prev().length){c.fadeOut()}});return false})})}function contact(){$("#siteNavigation .contact a").click(function(){$("#siteContent ._contact").fadeIn();return false});$("#siteContent ._contact").append('<span class="close">Fermer</span>').find(".close").click(function(){$(this).parent().fadeOut()})}$(function(){contact();navigation();$("#mainContainer").wrap('<div id="global"></div>').each(function(){reloadSize()})});
