//----------------- LES STYLES -----------------------------------------------

//-- commun Win
commun_win  = 'td 	  	  { font-family:"verdana"; font-size: 8pt; color:#585858 }\n';
commun_win += '.menu    { font-family:"verdana"; font-size: 7pt; color:#414141 }\n';
commun_win += '.or         { font-family:"verdana"; font-size: 7pt; color:#CAB44E; font-weight:bold }\n';
commun_win += '.tit         { font-family:"verdana"; font-size: 8pt; color:#B03D3D; font-weight:bold }\n';
commun_win += '.titre         { font-family:"verdana"; font-size: 8pt; color:#000000; font-weight:bold }\n';
commun_win += '.hum      { font-family:"verdana"; font-size:10pt; color:#B03D3D; font-weight:bold }\n';
commun_win += '.lien       { font-family:"verdana"; font-size: 8pt; text-decoration:underline; color:#B03D3D }\n';
commun_win += '.ps         { font-family:"verdana"; font-size: 7pt; color:#B03D3D }\n';
commun_win += '.son        { font-family:"verdana"; font-size: 8pt; color:#b03d3d }\n';

//-- internet explorer 4.x Win 
ie4win = commun_win
ie4win += 'a:link		{ font-family:"verdana";  text-decoration:none;  color:#B03D3D }\n';
ie4win += 'a:visited { font-family:"verdana"; text-decoration:none;  color:#B03D3D }\n';
ie4win += 'a:active	{ font-family:"verdana"; text-decoration:none;  color:#B03D3D }\n';
ie4win += 'a:hover 	{ font-family:"verdana"; text-decoration:none;  color:#B03D3D }\n';

//-- internet explorer 5.x Win & Netscape 4.x Win
ns4win = commun_win;
ns4win += 'a:link	 { font-family:"verdana"; text-decoration:none; color:#FF6600 }\n';
ns4win += '.adresse{ font-family:"verdana"; font-size: 7pt; color:#363636; text-align: center }\n';
ns4win += '.menu    { font-family:"verdana"; font-size: 7.5pt; color:#414141 }\n';

ie5win = ie4win;


//-- commun Mac 
commun_mac = 'td 	       { font-family:"verdana"; font-size: 9pt; text-align:justify; color:#363636 }\n';
commun_mac += '.menu   { font-family:"verdana"; font-size: 7pt; color:#414141 }\n';
commun_mac += '.or        { font-family:"verdana"; font-size: 7pt; color:#CAB44E; font-weight:bold }\n';
commun_mac += '.tit        { font-family:"verdana"; font-size: 8pt; color:#B03D3D; font-weight:bold}\n';
commun_mac += '.titre         { font-family:"verdana"; font-size: 8pt; color:#000000; font-weight:bold }\n';
commun_mac += '.hum      { font-family:"verdana"; font-size:10pt; color:#B03D3D; font-weight:bold }\n';
commun_mac += '.lien      { font-family:"verdana"; font-size: 8pt; color:#B03D3D }\n';
commun_mac += '.ps        { font-family:"verdana"; font-size: 7pt; color:#B03D3D }\n';

//-- internet explorer 4.x Mac
ie4mac = commun_mac
ie4mac += 'a:link		{ font-family:"verdana"; text-decoration:none; color:#B03D3D }\n';
ie4mac += 'a:visited   { font-family:"verdana"; text-decoration:none; color:#B03D3D }\n';
ie4mac += 'a:active	{ font-family:"verdana"; text-decoration:none; color:#B03D3D }\n';
ie4mac += 'a:hover 	{ font-family:"verdana"; text-decoration:none; color:#B03D3D }\n';

//-- Netscape 4.x Mac
ns4mac = ie4mac;
commun_mac += 'td 	       { font-family:"verdana"; font-size: 10pt; text-align:justify; color:#363636 }\n';
ns4mac += 'a:link	{ font-family:"verdana"; text-decoration:none; color:#B03D3D }\n';
ns4mac += '.menu    { font-family:"verdana"; font-size: 9pt; color:#414141 }\n';
ns4mac += '.or        { font-family:"verdana"; font-size: 8pt; color:#CAB44E; font-weight:bold }\n';
ns4mac += '.tit        { font-family:"verdana"; font-size: 8pt; color:#B03D3D; font-weight:bold}\n';
ns4mac += '.titre         { font-family:"verdana"; font-size: 8pt; color:#000000; font-weight:bold }\n';
ns4mac += '.hum      { font-family:"verdana"; font-size:10pt; color:#B03D3D; font-weight:bold }\n';
ns4mac += '.lien      { font-family:"verdana"; font-size: 8pt; color:#B03D3D }\n';
ns4mac += '.ps        { font-family:"verdana"; font-size: 8pt; color:#B03D3D }\n';

//-- internet explorer 5.x Mac 
ie5mac = commun_mac
ie5mac += '\n';

//-------------------- CODE -----------------------------------------------
//-- variables ------
var path 	= '/library/css/';
var unknown	= 0;
var win		= 1;
var mac		= 2;
var ie		= 1;
var ns		= 2;

var hstyle = '<style type="text/css">\n<!--\n';
var fstyle = '//-->\n</style>\n';

//-- init --------------
var browser = new Object();
browser.is5 = navigator.userAgent.indexOf("5.")
browser.Navigator = unknown;
browser.plateform = unknown;

//-- Quel Navigateur ---
if (navigator.appName.indexOf("Netscape") != -1) browser.navigator = ns;
else if (navigator.appName.indexOf("Microsoft") != -1) browser.navigator = ie;

//-- Quelle Plateforme ---
if (navigator.userAgent.indexOf("Win")!=-1) browser.plateform = win ;
else if (navigator.userAgent.indexOf("Mac")!=-1) browser.plateform = mac ;

with (browser) {
 switch (plateform) {
 //--- environnement WINDOWS ---
 case 1 :
  switch (navigator) {
   case 1 : //--- Internet Explorer
    	if (is5!=-1) {
    	  document.write (hstyle+ie5win+fstyle);
 	 }
    	else {
    	  document.write (hstyle+ie4win+fstyle);
    	 }

   	break;
   case 2: //-- Netscape
    	document.write (hstyle+ns4win+fstyle);
    	break;
  }
  break;
 //--- environnement MAC ---
 case 2:
  switch (navigator) {
   case 1 : //--- Internet Explorer
    	if (is5!=-1) {
          document.write (hstyle+ie5mac+fstyle);
    	 }
    	else {
          document.write (hstyle+ie4mac+fstyle);
    	 }
   	break;
   case 2 : //-- Netscape
   	document.write (hstyle+ns4mac+fstyle);
    	break;
  }
  break;

 } 
}