
		function fermePres(divsmr) {
			/* fermeture de la division presentationPage */
			$("#presentationPage[class~="+divsmr+"]").hide();
			$("#presentationPage[class~="+divsmr+"]").css({'height' : '0', 'top': '255px'});
		}
		
		$(document).ready(function(){
			/* animation qui glisse sur le coté
			$("#supersized a.activeslide img").animate({ 
				marginLeft: "-25px"
			}, 9000 );
			setInterval( function(){
				$("#supersized a img").animate({ 
					marginLeft: "-25px"
				}, 9000 );
			}, 6000 ); */

			/* test d'animation Céline */
			$("#menu li:not(:last)").click(function(){
				var idsmr = $(this).attr('id');
				$("#presentationPage").html('');
				$("#presentationPage").stop();
				
				if($("#presentationPage").css('display') != 'none'){
					
					if($.browser.msie!=true) { 
						$("#presentationPage").rotate({animateTo:0}) 
					}
					$("#presentationPage").animate({ height: '0',top: '255px'}, 400 );
					$("#presentationPage").show();
					$("#presentationPage").animate({ height: '260px',top: '170px'}, 400, function(){$("#presentationPage").html($("#sm"+idsmr).html());} );
					
					if($.browser.msie!=true) { 
						$("#presentationPage").delay(50, function(){
							$("#presentationPage").rotate({animateTo:-5});
						})
					}
				}
				else {		
					//$("#presentationPage").animate({ height: '0',top: '255px'}, 400 );			
					$("#presentationPage").show();
					$("#presentationPage").animate({ height: '260px',top: '170px'}, 400, function(){$("#presentationPage").html($("#sm"+idsmr).html());} );
					if($.browser.msie!=true) { 
						$("#presentationPage").rotate({animateTo:0}) 
					}
						
					if($.browser.msie!=true) { 
						$("#presentationPage").delay(50, function(){
							$("#presentationPage").rotate({animateTo:-5});
						})
					}
				}

				$("#presentationPage").attr('class', "sm"+idsmr);
				
			});
			
			
			
			/* fermeture de la division presentationPage */
			/*$("#presentationPage a.close").click(function() {
				$(this).parent().hide();
			});*/
			
			/* carousel */
			$('#portfolio').show();
			$('#portfolio').cycle({ 
				fx:    'scrollHorz',
				speed:    1000, 
				timeout:  5000/*,
				pager:  '#nav'*/
			});

			
			
			$("a[rel^='prettyPhoto']").prettyPhoto();


			var apiKey = '9p34o9rh4neY';
			$('a.snapshot').each(function()
			{
			  var url = encodeURIComponent( $(this).attr('href') ),

			  thumbnail = $('<img />', {
				 src: 'http://images.websnapr.com/?url=' + url + '&key=' + apiKey + '&hash=' + encodeURIComponent(websnapr_hash),
				 alt: 'Loading thumbnail...',
				 width: 202,
				 height: 152
			  });

			  $(this).qtip(
			  {
				 content: thumbnail,
				 position: {
					my: 'left center',
					at: 'right center',
					viewport: $(window) 
				 },
				 style: {
					classes: 'ui-tooltip-thumbnail ui-tooltip-dark'
				 }
			  });
			});		
		
		});
		

		function hidePage(){
			$("#SlideUp").show();
			$("#Slide").hide();	//"slide", { direction: "down" }, 1000, function  () {}
				
		}
		function showPage(){
			$("#Slide").show(); //"slide", { direction: "down", mode: "show" }, 1000, function  () {}
			$("#SlideUp").hide();
		}
