// JavaScript Document

$(function(){
	// corners	   
	//$("#menuSaison li").corner("tl 10px");
	$("#directeurs").corner("bl 7px");
	$(".cornerOffre").corner("bl round 8px").parent().css('padding', '3px').corner("bl round 10px").corner("tl round 8px") ;
	$("#colG .bouton").corner("7px");
	$("#colG .orange").corner("tl tr 7px");
	$("#colG .rose").corner("7px");
	$("#colG #blocRecherche").corner("bl br 7px");	
	$(".wrapPromotion").corner("7px");	
	$("#blocActu").corner("7px");
	$("#telPied").corner("7px");
	$("#selection").corner("7px");
	$("#atout").corner("7px");
	$("#espaceCe").corner("7px");
	
	$("#conteneurPopUp").corner("12px");
	$(".blocPromo").corner("12px");
	
	$("#topSelection h2").corner("tl tr 7px");
	$("#topSelection").corner("tl tr 7px");
	$("#footerSelection").corner("bl br 7px");
	//$('.date-pick').datePicker();

	/*$("#typeSejourNouveautes").corner("7px");
	$("#typeSejourComplet").corner("7px");
	$("#typeSejourDernierePlace").corner("7px");*/
	
$('#captcha1')
  .simpleCaptcha({
    numImages: 4,
    introText: '<p>Pour des mesures de sécurité Anti-Spam, \n merci de cliquer sur : <strong class="captchaText"></strong></p>'
  });


	
	
	$('#mycarousel').jcarousel({visible: 3});
	$('#mycarousel2').jcarousel({visible: 3});

	var titreSejour = $('#titreSejour');
	
	$('.lightbox').lightBox({fixedNavigation:true});
	/*$('#mycarousel a').lightBox({fixedNavigation:true});
	$('#mycarousel2 a').lightBox({fixedNavigation:true});*/
	
	if(titreSejour.length > 0){
		//Dans la page séjour
		titreSejour.corner("tl 10px");
		$("#tabs").tabs();
		
	}
	$(".print").click(function(){imprimer();});
	
	// menu
	$('#menuSaison li').mouseenter(function(){
	//$("#sound").sound( {swf: "/flash/soundPlayer.swf", file: "/flash/691.mp3"} );
		
		$(this).animate({marginTop : '-10px'}, 200,"swing");
	});
	$('#menuSaison li').mouseleave(function(){
		$(this).animate({marginTop : '0px'}, 200,"swing");
	});
	
	$("#emailFormLogin").focus(function(){
		if($(this).val() == "Votre email"){
			$(this).val("");
		}
	});
	$("#emailFormLogin").blur(function(){
		if($(this).val() == ""){
			$(this).val("Votre email") ;
		}
	});		
	$("#passFormLogin").focus(function(){
		if($(this).val() == "Mot de passe"){
			$(this).val("");
		}
	});
	$("#passFormLogin").blur(function(){
		if($(this).val() == ""){
			$(this).val("Mot de passe") ;
		}
	});
	



	
});