$(document).ready(function(){
	
	$('img[@src$=.png]').ifixpng();
	$('#logo').ifixpng();
	$('#newsletterform').ifixpng();
	$('#contenu').ifixpng();
	
	
	
	
	
	$(".sousmenu:not(.select)").hide();
	
	$(".sssmenu:not(.selected)").hide();
	$(".racine").mouseover(function(){	
			
			var cible=$("+ .sssmenu",this);
			testvis=$("+ .sssmenu:visible",this);
			
			if(testvis.size()==0){
				$(".sssmenu:visible").hide();
				cible.show();
			
			}
		});
	
	$("#contenu, #body, html").click(function(){
			$(".sssmenu").hide();
			})
	

function ScanCookie(variable)
   {
   cook = document.cookie;
   variable += "=";
   place = cook.indexOf(variable,0);
   if (place <= -1)
      return("0");
   else
      {
      end = cook.indexOf(";",place)
      if (end <= -1)
         return(unescape(cook.substring(place+variable.length,cook.length)));
      else
         return(unescape(cook.substring(place+variable.length,end)));
      }
   }
   
function CreationCookie(nom,valeur,permanent)
   {
   if(permanent)
      {
      dateExp = new Date(2020,11,11);
      dateExp = dateExp.toGMTString();
      ifpermanent = '; expires=' + dateExp + ';';
      }
   else
      ifpermanent = '';
   document.cookie = nom + '=' + escape(valeur) + ifpermanent;
   }
if(ScanCookie("dejapopup")==0)
   {
$(document).ready(function() {
tb_show('', 'gulliver.html?height=640&width=910&inlineId=myOnPageContent', 'false');
});
   CreationCookie("dejapopup","oui",false)
}


});
