//BLINK - IE does not understand the blink css
var text_timer;
var text_visible = 1;
var text_tmp;


function blink()
{
   if (text_visible)
	 {
	    text_tmp = document.formulaire.mot.value;
			document.formulaire.mot.value = '';
			text_visible = false;
	 }
   else
	 {
	    document.formulaire.mot.value = text_tmp;
			text_visible = true;
	 }
}

function start_blink()
{
   if (document.formulaire.mot.value=='votre recherche ici')
	 {
	    text_timer = setInterval('blink()', 500);
	 }
}

function stop_blink()
{
   if (text_timer)
    {
	    clearInterval(text_timer);
	 }
 }
 
 
function mot_focus()
{
   stop_blink();
	 e = document.formulaire.mot;
	 if (e.value == 'votre recherche ici') e.value = '';
}

function mot_blur()
{
   e = document.formulaire.mot;
	 if (e.value == 'votre recherche ici' || e.value == '')
	 {
	    e.value = 'votre recherche ici';
	    start_blink();
	 }
}


if (window.addEventListener) window.addEventListener("load", start_blink, false);
else if (window.attachEvent) window.attachEvent("onload", start_blink);
else if (document.getElementById) window.onload=start_blink;
