/*Fontions pour plateforme et navigateur*/
function IsMac() 
{ 
return (navigator.platform.indexOf("Mac") > -1); 
} 
function IsPC()
{
return (navigator.platform.indexOf("Win") > -1); 
}
function IsIE()
{
return (navigator.appName.indexOf("Microsoft") > -1) ;
}



/*Fontion pour afficher le jour et l'heure*/
navvers = navigator.appVersion.substring(0,1);
if (navvers > 3)
	navok = true;
else
	navok = false;

today = new Date;
jour = today.getDay();
numero = today.getDate();
if (numero<10)
	numero = "0"+numero;
mois = today.getMonth();
if (navok)
	annee = today.getFullYear();
else
	annee = today.getYear();
//TabJour = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
TabMois = new Array("janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre");
messageDate = numero + " " + TabMois[mois] + " " + annee;


/*variables serent à tester le navigateur pour eventuellement ecrire un popup*/

NavName = navigator.appName;
NavVers = navigator.appVersion;
Navigateur = NavName + " " + NavVers;

/*haut de la page*/
document.write('<table width="100%" border="1" height="100%" cellspacing="0" cellpadding="0" bordercolor="#003366"> <tr>');

/*bandeau emath bonjour le tableau sans saut de ligne*/
document.write('<tr> <td bgcolor="#d8e0e9"  colspan="3"><div align="center"><table border=0 cellspacing=0 cellpadding=0><tr><td bgcolor="#baefcd">&nbsp;<a class="texte" href="http://www.emath.fr/index.php?l=fr"> <b>Accueil emath.fr&nbsp;:</b></a>&nbsp;</td> <td>&nbsp;</td> <td><a class="texte" href="http://annuaire.emath.fr/"><b>Annuaire</b></a> </td><td>&nbsp;&nbsp;</td> <td><a class="texte" href="http://www.emath.fr/calendar.php"><b>Calendrier</b></a> </td> <td>&nbsp;&nbsp;</td> <td><a class="texte" href="http://www.emath.fr/instances.php"><b>Liens</b></a> </td><td>&nbsp;&nbsp;</td> <td><a class="texte" href="http://matexo.smai.emath.fr/"><b>MATEXO</b></a></td><td>&nbsp;&nbsp;</td> <td><a class="texte" href="http://mathdoc.emath.fr/"><b>MathDoc</b></a> </td><td>&nbsp;&nbsp;</td> <td><a class="texte" href="http://postes.smai.emath.fr/"><b>Postes</b></a> </td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td> <td bgcolor="#baefcd"><a class="texte" href="http://sfds.emath.fr/104-Presentation_du_Groupe_Statistique_Mathematique"><b>SFdS</b></a> </td><td>-</td> <td bgcolor="#baefcd"><a class="texte" href="http://smai.emath.fr/"><b>SMAI</b></a> </td><td>-</td> <td bgcolor="#baefcd"><a class="texte" href="http://smf.emath.fr/"><b>SMF</b></a></td></tr></table></div> </td> </tr>');

document.write ('<td bgcolor="#003366" ><img src="/images/space.gif">&nbsp;<td colspan="2" align="left"><img src="/images/banniere.gif" alt="banniere portail" VSPACE="0" HSPACE="0"> </td></tr>');

document.write ('<tr><td colspan="3" bgcolor="#d8e0e9" align="center" ><p> <a href="/">Accueil</a> | <a href="/Lettre/">Lettre d\'information</a> | <a href="/plansite.htm">Plan du site</a> | <a href="mailto:accueil@mathdoc.ujf-grenoble.fr">Contactez-nous</a> | <a href="/rss/portail.xml" style="text-decoration:none"><img src="./images/rss.png" alt="fil rss de la Cellule MathDoc" title="fil rss de la Cellule MathDoc" border="0">&nbsp;RSS 2.0</a></p></td></tr>');
/*debut cellule gauche*/

 document.write(' <tr> <td width="15%" valign="top" bgcolor="#003263" height="532"><font face="Arial, Helvetica, sans-serif" color="#d8e0e9" size="1">Bonjour,<br>nous sommes le ');

/*Affichage de la date*/
document.write(messageDate);

document.write('</font>');

/*BG en test*/
document.write('<br><br><img src="/images/bg.gif" width="110" height="2">');

/*bricolage pour IE sur mac*/
if ((IsMac())&&(IsIE()))
{
bgcolor='#d8e0e9';

document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=100><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=25>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' HEIGHT=40><A CLASS="macmenu" href="/"> Accueil</a></TD></TR>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+'  HEIGHT=40><A   href="/Biblio/" CLASS=macmenu>Bases Bibliographiques</a></TD></TR>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+'  HEIGHT=40><A   href="/Ouvrages/" CLASS=macmenu>Ouvrages</a></TD></TR>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+'  HEIGHT=40><A   href="/Periodiques/" CLASS=macmenu>Périodiques</a></TD></TR>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' HEIGHT=40  ><A  href="/Prepub/" CLASS=macmenu>Prépublications</a></TD></TR>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' HEIGHT=40 ><A   href="/Theses/" CLASS=macmenu>Thèses</a></TD></TR>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+'  HEIGHT=40><A  href="/Fondsnum/" CLASS=macmenu>Fonds numérisés</a></TD></TR>')

document.write('<TR><TD nowrap WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+'  HEIGHT=40><A href="/Annuaires/" CLASS=macmenu>Annuaires</a></TD></TR>')

document.write('</TABLE></TD></TR></TABLE>')
document.write('<br><font face="Arial, Helvetica, sans-serif" color="#d8e0e9" size="1">Vous utilisez IE sur Mac. Pour une consultation optimale de ce site, netscape ou mozilla sont préférables</FONT>')
}
else {
document.write('')
}
