// JavaScript Document
function afficher3()
{

$("#popupArticle").animate({ 
		height:'720px',
		top:'140px',
		opacity:100
      }, 1000 );
$("#popupContArticle").animate({ 
		height:'700px',
		opacity:100
      }, 1000 );
$("select").hide(); 	  
	
}
function cacher3()
{	
window.popupContArticle.location.href='blank.html';
 $("#popupContArticle").animate({ 
		height:'0px',
		opacity:0
      }, 1000 );
$("#popupArticle").animate({ 
		height:'0px',
		top:'-10000px',
		opacity:0
      }, 1000 );
	  $("select").show(); 
	
}
function cacher3b()
{	
window.popupContArticle.location.href='blank.html';
 $("#popupContArticle").animate({ 
		height:'0px',
		opacity:0
      }, 1 );
$("#popupArticle").animate({ 
		height:'0px',
		top:'-10000px',
		opacity:0
      }, 1);
	  
	
}


$(document).ready(function()
{

	cacher3b();
	$("#cnil").fadeOut(1);
    
	$("a.lightwindow").click(function(event){
		window.location.href="#";
		window.popupContArticle.location.href=$(this).attr('href');
			afficher3();
			return false;
					
	});
	$("#btFermer").click(function(event){
		$("#cnil").fadeOut();
			return false;
					
	});
	$("#newsletterBloc a").click(function(event){
		$("#cnil").fadeIn();
			return false;
					
	});
	$(".plus a").click(function(event){
		window.location.href="#";
		window.popupContArticle.location.href=$(this).attr('href');
			afficher3();
			return false;
					
	});
	$("a.lien").click(function(event){
		window.location.href="#";
		window.popupContArticle.location.href=$(this).attr('href');
			afficher3();
			return false;
					
	});
	
$('#rechercherForm').submit(function() {
$valeur = $('#search').val();
	window.popupContArticle.location.href="recherche.php?search="+$valeur;

  afficher3();
  return false;
});
	$("a.plus").click(function(event){
		window.popupContArticle.location.href=$(this).attr('href');
			afficher3();
			return false;
					
	});
	
	$("#fermerArticle").click(function(event){
			cacher3();
			return false;
					
	});	
	
	
});
