/*
Start : GOOGLE Analytics
*/
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-22226950-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
/* 
End : GOOGLE Analytics
*/




// JavaScript Document
var sValue, sHide1, sHide2, tTiemout;

function showMenu(sValue, sHide1, sHide2 )
{
	clearTimeout(tTiemout);
	document.getElementById(sValue).style.visibility = "visible";
	document.getElementById(sHide1).style.visibility = "hidden";
	document.getElementById(sHide2).style.visibility = "hidden";
}

function hideMenu()
{
		document.getElementById('menuAlgebre').style.visibility = "hidden";
		document.getElementById('menuAnalyse').style.visibility = "hidden";
		document.getElementById('menuTheorie_ensemble').style.visibility = "hidden";
		
		clearTimeout(tTiemout);
}

// Resume global normal situation of the entire website
function normalStatut()
{
	hideMenu();
}

//cache les menus automatiquement apres 10 secondes
function hidetimeout()
{
	//tTiemout = setTimeout("hideMenu()", 10000);
}


function onSearchOver()
{
	normalStatut();
	/*Si la valeur est rechercher alors on supprime ce mot*/
	if( document.getElementById('inputsearch').value == "Rechercher" )
	{
		document.getElementById('inputsearch').value = "";
	}
}

function onSearchOut()
{	
	/*Si aucune valeur n'est précisée alors on remet Rechercher*/
	var sValue = document.getElementById('inputsearch').value;
	if( sValue == "" || sValue==" ")
	{
		document.getElementById('inputsearch').value = "Rechercher";
	}
}
