$(document).ready(function(){
	$('.acc_container').hide();
	/*$('.acc_trigger:first').addClass('active').next().show();*/
	$("#actif").parents("ul").show();
	$('.acc_trigger').click(function(){
		if( $(this).next().is(':hidden') ) {
			$('.acc_trigger').removeClass('active').next().slideUp();
			$(this).toggleClass('active').next().slideDown();
		}
		return false;
	});

	$("#formtest").validate({

		messages: {
				NOM: " <span style='color: #FF0000;font-size: 12px;font-weight: bold;'>*</span>",
				PAYS: " <span style='color: #FF0000;font-size: 12px;font-weight: bold;'>*</span>",
				premier_EMAIL: " <span style='color: #FF0000;font-size: 12px;font-weight: bold;'>adresse@domaine.com</span>",
				budget_total_avec_vol: " <span style='color: #FF0000;font-size: 12px;font-weight: bold;'>650</span>",
				DATE_DU_SEJOUR: " <span style='color: #FF0000;font-size: 12px;font-weight: bold;'> *</span>",
				code: " <span style='color: #FF0000;font-size: 12px;font-weight: bold;'> * 4 Lettres de l'image</span>"
		}

	});

	$("#formtest").bind("invalid-form.validate", function(){ $("#erreur").html("Vous devez renseigner le(s) champ(s) comportant(s) une *."); });

	/*   DEBUT CODE OUVERTURE PAGE   */	
	
	var params = location.href.split('#');
	if (params.length <= 1)
		{
			TopUp.host = 'http://www.kenya-safari.com';
			TopUp.images_path = '/libs/images/top_up/';
			TopUp.display('pub.html', {shaded: 1, overlayClose: 1, type:'iframe', width:800, height:500, modal:0, resizable:0, layout:'dashboard'});
		}
	else
		{
			TopUp.host = 'http://www.kenya-safari.com';
			TopUp.images_path = '/libs/images/top_up/';
			TopUp.display('tri-pour-formulaire.php', {shaded: 1, overlayClose: 1, type:'iframe', width:800, height:420, modal:0, resizable:0, layout:'dashboard'});
		}	

	/*  FIN DU CODE  */		
	
	});
