NomNavigateur = navigator.appName;
VersionNavigateur = parseInt(navigator.appVersion);
//alert(NomNavigateur+'\n'+VersionNavigateur);


function addFav()
{
	if (NomNavigateur == "Microsoft Internet Explorer" && VersionNavigateur >= 4)
	{
		window.external.AddFavorite(location.href, document.title);
	}
	else
	{
		alert('Faites CTRL+D pour ajouter ce site à vos favoris!')
	}
}

function rechgenerale(){
        ok=0 ;
		go_ajouter = true;

		if(document.form.recherche.value == "" && go_ajouter == true){
                alert("Veuillez saisir un critère de recherche !");
                document.form.recherche.focus();
                go_ajouter = false;
				ok=1 ;
        }
		if(go_ajouter == true && ok==0 ){
				document.form.submit();
        }
	}
function menuhaut()
{
	var url = '/site2/';
	var url2 = '/index.php3';
	document.write('<link href="'+url+'includes/formulaire.css" rel="stylesheet" type="text/css">');
	document.write('	<table width="751" border="0" cellpadding="0" cellspacing="0" background="'+url+'images/fond_rouge.gif">');
	document.write('	  <tr>');
	document.write('	    <td width="2"><img src="'+url+'images/mh_02.gif" width="323" height="19"></td>');
	document.write('	    <td width="100%">&nbsp;</td>');
	document.write('	    <td width="2"><img src="'+url+'images/mh_01.gif" width="19" height="19"></td>');
	document.write('	    <td><a href="contact.php3" class="MenuHaut">Nous&nbsp;contacter</a></td>');
	document.write('	    <td width="2"><img src="'+url+'images/mh_01.gif" width="19" height="19"></td>');
	document.write('	    <td><a href="liens.php3" class="MenuHaut">Liens&nbsp;utiles</a></td>');
	document.write('	    <td width="2"><img src="'+url+'images/mh_01.gif" width="19" height="19"></td>');
	document.write('	    <td><a href="plan.php3" class="MenuHaut">Plan&nbsp;du&nbsp;Site</a></td>');
	document.write('	    <td width="2"><img src="'+url+'images/mh_01.gif" width="19" height="19"></td>');
	document.write('	    <td><a href="javascript:addFav();" class="MenuHaut">Ajouter&nbsp;&agrave;&nbsp;mes&nbsp;favoris</a></td>');
	document.write('	  </tr>');
	document.write('	</table>');
	document.write('	<table width="751" border="0" cellspacing="0" cellpadding="0">');
	document.write('<form name="form" method="post" action="recherche.php3">');

	document.write('	  <tr>');
	document.write('	    <td width="2"><img src="'+url+'images/mh_03.gif" width="384" height="29"></td>');
	document.write('	    <td width="100%" bgcolor="#FFFFFF">&nbsp;</td>');
	document.write('	    <td width="2" align="right" bgcolor="#FFFFFF" class="Menu3">Recherche&nbsp;:&nbsp;&nbsp;</td>');
	document.write('	    <td width="2" align="right" bgcolor="#FFFFFF"> ');
	document.write('	      <input name="recherche" type="text" size="15" class="text"  onFocus="this.className=\'textover\'" onBlur="this.className=\'text\'">');
	document.write('	    </td>');
	document.write('	    <td width="2" align="right"><a href="javascript:rechgenerale();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image7\',\'\',\''+url+'images/mh_04r.gif\',1)"><img src="'+url+'images/mh_04.gif" name="Image7" width="64" height="29" border="0"></a></td>');
	document.write('	  </tr>');
	document.write('</form>');
	document.write('	</table>');

	document.write('	<table width="751" border="0" cellpadding="0" cellspacing="0">');
	document.write('	  <tr>');
	document.write('	    <td width="2"><img src="'+url+'images/mh_05bis.gif" width="250" height="102"></td>');
	document.write('	    <td width="100%" align="left" valign="top" background="'+url+'images/mh_05.gif"> ');
	document.write('	      <p><br>');
	document.write('		<a href="'+url2+'" class="Menu1">&lt; Accueil</a></p>');
	document.write('	    </td>');
	document.write('	  </tr>');
	document.write('    </table>');

}