// JavaScript Document

function NameDiv(id){
	if(document.all){ doc = document.all[id]; }
	if(document.getElementById){ doc = document.getElementById(id);}
	return doc;
}

function SetObjVisibility(id, prop){
	NameDiv(id);
	doc.style.visibility=prop;
}

function SetObjDisplay(id, prop){
	NameDiv(id);
	doc.style.display=prop;
}
function Showlayer(id){
	$(id).show();
}

function Hidelayer(id){
	$(id).hide();
}

function ShowMentions(){
	$('Mentions').show();
}

function ShowConditions(){
	$('Conditions').show();
}

function ShowCredits(){
	$('Credits').show();
}

function ShowNewsletter(){
	$('Newsletter').show();
}

/* FCT checkMail */
function checkMail(str) {
	var verif = /^[a-zA-Z0-9\-\_]{1,}[a-zA-Z0-9\.\-\_]*[a-zA-Z0-9\-\_]{1,}@[a-zA-Z0-9]{1,}[a-zA-Z0-9\.\-\_]*[a-zA-Z0-9]{1,}[.][a-zA-Z]{2,4}$/;
	if(verif.test(str)) return true;
	else return false;
}
