
$(document).ready(function(){  
	$("a").click(function() {
      if($(this).hasClass('interne')){ 					  
        $("a").trigger('click');
	  }
   });
					
	$('.interne a').click(function(){   
		page=($(this).attr("href")); 
	 	$.ajax({ 
			url: page, 
			cache: false, 
			success:function(html){ 
			afficher(html);     
	 		},
	 		error:function(XMLHttpRequest, textStatus, errorThrows){ 
   	}
	});
		
return false; // on desactive le lien
});
});function afficher(donnees){ 
$("#contenu").empty(); 
$("#contenu").append(donnees); 
}


$( function() {

  $(".accordc").next("div").hide();
  
  $(".accordc").click(function() {
	   $(".accordc").next("div:visible").hide();
     $(".accordc.folderopen").removeClass("folderopen").addClass("folderclosed");
     $(".accordc").css('color', '#000');
	   $(this).next("div").slideDown(300);
     $(this).addClass("folderopen");
  });
   
});

$( function() {

	$('#dialog').dialog({
		autoOpen: false,
		width: 600,
		buttons: {
			"Annuler": function() { 
				$(this).dialog("close"); 
			} ,
			"Ok": function() { 
				$(this).dialog("close"); 
			}
				}
	});
 
  $('#cont1').click(function() {
      $('#column_right').hide().load('con1/contact.html', function() {   
      $(this).fadeIn();
     });
    return false;
  }); 

});
