function initAnim()
{
	document.getElementById('flashintro').style.display="block";
	document.getElementById('flashintro').style.width="520";
	document.getElementById('flashintro').style.height="470";
}

function enleveAnim()
{
	if( document.getElementById )
	{
		document.getElementById('flashintro').style.display="none";
		document.getElementById('flashintro').style.width="0";
		document.getElementById('flashintro').style.height="0";
		d = document.getElementById("anim");
		d_nested = document.getElementById("flashintro");
		d.removeChild(d_nested);
	}
}

function redoAnim()
{
	document.cookie = "nbvisit=0; expires=Thu, 01-Jan-70 00:00:01 GMT";
	window.location.reload( false );
	
}

function detection()
{
	if (detectCookie()>1)
	{
		enleveAnim();
	}
}

function detectCookie()
{
	var nb=1;
	var cook=document.cookie;
	plac2 = cook.indexOf("nbvisit=",0);
	if (plac2 > -1)
	{
		end2 = cook.indexOf(";",plac2)
		if (end2 <= -1)
		{
			nb = cook.substring(plac2+8,cook.length);
		}
		else
		{
			nb = cook.substring(plac2+8,end2);
		}
		nb ++;
	}
	CreateCookie(nb);
	return nb;
}

function CreateCookie(nb)
{
	today=new Date();
	if (today.getMinutes()+15>60)
	{
		today.setHours(today.getHours()+1);
	}
	today.setMinutes(today.getMinutes()+15);
	expire = today.toGMTString();

	document.cookie = 'nbvisit=' + nb + '; expires=' + expire + ';';
}


if( document.getElementById )
{
	window.onload = detection;
}