$(document).ready(function() {
    $('#txtd').animate({'opacity':'hide'},function() {
	});
	$('#f').animate({'opacity':'hide'},function() {
	});
	$('#texte').animate({'opacity':'hide'},function() {
	});
	$('#texten').animate({'opacity':'hide'},function() {
	});
	$('#soustitre').animate({'opacity':'hide'},function() {
	});
	$('#menu').animate({'opacity':'hide'},function() {
	});
	$('#menuen').animate({'opacity':'hide'},function() {
	});
	$('#langue').animate({'opacity':'hide'},function() {
	});
});

	setTimeout(
		    '$("#feminance").animate({"opacity": "show"},3000,"easeInQuart");',
		100
	);
		setTimeout(
		    '$("#langue").animate({"opacity": "show"},3000,"easeInQuart");',
		2500
	);
	
$(document).ready(function() {	


	$('#langue .fr').click(function() {
			 '$(".fr").animate({"opacity": "hide"},3000,"easeInQuart");'					
			setTimeout(
					'$("#langue").animate({"opacity": "hide"},500,"easeInQuart");',
				400
			);
			
			setTimeout(
					'$("#txtd").animate({"opacity": "show"},2000,"easeInQuart");',
				1000
			);
		
			setTimeout(
					'$("#feminance").animate({"width": 993},3000,"easeOutQuart");$("#f").animate({className:"f2"},3000,"easeOutQuart");',
				7000
			);	
		
			setTimeout(
					'$("#soustitre").animate({"opacity": "show"},3000,"easeOutQuart");$("#texte").animate({"opacity": "show"},3000,"easeOutQuart");$("#f img").animate({"width": 366,"height": 366},3000,"easeOutQuart");$("#f").animate({className:"f3"},3000,"easeOutQuart");$("#robe img").animate({"width": 280,"height": 308},3000,"easeOutQuart");$("#robe").animate({"top": 130,"left": 140},3000,"easeOutQuart");$("#menu").animate({"opacity": "show"},3000,"easeOutQuart");$("#txtd").animate({"opacity": "hide"},1000,"easeOutQuart");$("#d").animate({"opacity": "hide"},1000,"easeOutQuart");	slide("#sliding-navigation", 25, 0, 150, .8);',
				10000
			)
											  
	});
	
	
	$('#langue .en').click(function() {
			 '$(".en").animate({"opacity": "hide"},3000,"easeInQuart");'					
			setTimeout(
					'$("#langue").animate({"opacity": "hide"},500,"easeInQuart");',
				400
			);
			
			setTimeout(
					'$("#txtd").animate({"opacity": "show"},2000,"easeInQuart");',
				1000
			);
		
			setTimeout(
					'$("#feminance").animate({"width": 993},3000,"easeOutQuart");$("#f").animate({className:"f2"},3000,"easeOutQuart");',
				7000
			);	
		
			setTimeout(
					'$("#soustitre").animate({"opacity": "show"},3000,"easeOutQuart");$("#texten").animate({"opacity": "show"},3000,"easeOutQuart");$("#f img").animate({"width": 366,"height": 366},3000,"easeOutQuart");$("#f").animate({className:"f3"},3000,"easeOutQuart");$("#robe img").animate({"width": 280,"height": 308},3000,"easeOutQuart");$("#robe").animate({"top": 130,"left": 140},3000,"easeOutQuart");$("#menuen").animate({"opacity": "show"},3000,"easeOutQuart");$("#txtd").animate({"opacity": "hide"},1000,"easeOutQuart");$("#d").animate({"opacity": "hide"},1000,"easeOutQuart");	slide("#sliding-navigation", 25, 0, 150, .8);',
				10000
			)
											  
	});
	
	
	
});

	
	/*	setTimeout(
		    '$("#txtd").animate({"opacity": "show"},2000,"easeInQuart");',
		4000
	);

	setTimeout(
		    '$("#feminance").animate({"width": 993},3000,"easeOutQuart");$("#f").animate({className:"f2"},3000,"easeOutQuart");',
		11000
	);	

	setTimeout(
		    '$("#soustitre").animate({"opacity": "show"},3000,"easeOutQuart");$("#texte").animate({"opacity": "show"},3000,"easeOutQuart");$("#f img").animate({"width": 366,"height": 366},3000,"easeOutQuart");$("#f").animate({className:"f3"},3000,"easeOutQuart");$("#robe img").animate({"width": 280,"height": 308},3000,"easeOutQuart");$("#robe").animate({"top": 130,"left": 140},3000,"easeOutQuart");$("#menu").animate({"opacity": "show"},3000,"easeOutQuart");$("#txtd").animate({"opacity": "hide"},1000,"easeOutQuart");$("#d").animate({"opacity": "hide"},1000,"easeOutQuart");	slide("#sliding-navigation", 25, 0, 150, .8);',
		14000
	); */
	
	
/*$(document).ready(function()
{
	slide("#sliding-navigation", 25, 15, 150, .8);
});*/

function slide(navigation_id, pad_out, pad_in, time, multiplier)
{
	// creates the target paths
	var list_elements = navigation_id + " li.sliding-element";
	var link_elements = list_elements + " a";
	
	// initiates the timer used for the sliding animation
	var timer = 0;
	
	// creates the slide animation for all list elements 
	$(list_elements).each(function(i)
	{
		// margin left = - ([width of element] + [total vertical padding of element])
		$(this).css("margin-left","-180px");
		// updates timer
		timer = (timer*multiplier + time);
		$(this).animate({ marginLeft: "0" }, timer);
		$(this).animate({ marginLeft: "15px" }, timer);
		$(this).animate({ marginLeft: "0" }, timer);
	});

	// creates the hover-slide effect for all link elements 		
	$(link_elements).each(function(i)
	{
		$(this).hover(
		function()
		{
			$(this).animate({ paddingLeft: pad_out }, 150);
		},		
		function()
		{
			$(this).animate({ paddingLeft: pad_in }, 150);
		});
	});
}

$(document).ready(function()
{
	slide("#sliding-navigationen", 25, 15, 150, .8);
});/**/
	
/*
$(document).ready(function() {
	
    $('#d').animate({opacity:'show',   'left': 100},2000,'easeOutBack', function() {//Expo
    });
    $('#g').animate({opacity:'show'},200,'easeOutQint', function() {
    });
  
});


$(document).ready(function() {
  $('.trigger2').click(function() {

	
    $('div.feminance').animate({className:'feminance', opacity:0.7, width: 300,},2000,'easeOutQuart', function() {
    });
    $('div.f').animate({className:'f',top:222},2000,'easeInExpo', function() {
    });
  
  });
});*/
//    $('div.f').animate({opacity: 'show'},2000,'easeOutQuart', function() {

/*$("p").animate({
   height: 'toggle', opacity: 'toggle',left: 50
 }, "slow");
 
 ou:
 
   $('#example-effects-animate .trigger').click(function() {
    $('#example-effects-animate .target').animate({
      'width': 300,
      'left': 100,
      'opacity': 0.25
    }, 'slow', function() {
      $(this).log('Effect complete.');
    });
  });
 
 // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
 $('body').removeClass('narrow')
 ; $('body').addClass('large');
 
 // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
 var toggleStyleSwitcher = function() { 
 $('#switcher .button').toggleClass('hidden'); 
 }; 
 $('#switcher').click(toggleStyleSwitcher);
  // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
  $('#switcher').trigger('click');
  // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
  .css('property','value')
.css({property1: 'value1', 'property-2': 'value2'})
  */
