//----------------- LES STYLES -----------------------------------------------

//-- commun Win
commun_win  = 'td 	    { font-family:"verdana"; font-size: 8pt; color:#000000 }\n';
commun_win  += '.fond 	{ background-image:  url(library/images/fond_gris.jpg); background-repeat: no-repeat }\n';
commun_win  += '.fondfr { background-image:  url(../library/images/fond_gris.jpg); background-repeat: no-repeat }\n';
commun_win  += '.lien   { font-family:"verdana"; font-size: 8pt; color:#EE9748 }\n';
commun_win  += '.lien2  { font-family:"verdana"; font-size: 11pt; color:#EE9748 }\n';
commun_win  += '.lien3  { font-family:"verdana"; font-size: 9pt; color:#000000 }\n';
commun_win  += '.faq    { font-family:"verdana"; font-size: 8pt; color:#91A2B2 }\n';


//-- internet explorer 4.x Win 
ie4win = commun_win
ie4win += 'a:link		{ font-family:"verdana"; text-decoration:none; font-size:7pt; color:#000000 }\n';
ie4win += 'a:visited	{ font-family:"verdana"; text-decoration:none; font-size:7pt; color:#000000 }\n';
ie4win += 'a:active		{ font-family:"verdana"; text-decoration:none; font-size:7pt; color:#FFFFFF }\n';
ie4win += 'a:hover 		{ font-family:"verdana"; text-decoration:none; font-size:7pt; color:#FFFFFF }\n';
ie4win += '.marquee 	{ font-family:"verdana"; font-size: 8pt; color:#000000 }\n';

//-- internet explorer 5.x Win & Netscape 4.x Win
ns4win = commun_win;
ns4win += 'a:link	{ font-family:"verdana"; text-decoration:none; font-size:8pt; color:#000000 }\n';
ns4win += 'a:hover 	{ font-family:"verdana"; text-decoration:none; font-size:8pt; color:#FFFFFF }\n';
ns4win += 'a:visited	{ font-family:"verdana"; text-decoration:none; font-size:8pt; color:#000000 }\n';
ns4win += '.marquee { font-family:"verdana"; font-size: 7.9pt; color:#000000 }\n';

ie5win = ie4win;


//-- commun Mac 
commun_mac = 'td	    { font-family:"verdana"; font-size: 10pt; color:#000000 }\n';
commun_mac  += '.fond 	{ background-image:  url(library/images/bg.jpg); background-repeat: no-repeat }\n';
commun_mac  += '.fondfr { background-image:  url(../library/images/bg.jpg); background-repeat: no-repeat }\n';
commun_mac  += '.lien   { font-family:"verdana"; font-size: 10pt; color:#EE9748 }\n';
commun_mac  += '.lien2   { font-family:"verdana"; font-size: 13pt; color:#EE9748 }\n';
commun_mac  += '.lien3   { font-family:"verdana"; font-size: 11pt; color:#000000 }\n';
commun_mac  += '.faq    { font-family:"verdana"; font-size: 10pt; color:#91A2B2 }\n';

//-- internet explorer 4.x Mac
ie4mac = commun_mac
ie4mac += 'a:link	{ font-family:"verdana"; text-decoration:none; font-size:10pt; color:#000000 }\n';
ie4mac += 'a:visited	{ font-family:"verdana"; text-decoration:none; font-size:10pt; color:#000000 }\n';
ie4mac += 'a:active	{ font-family:"verdana"; text-decoration:none; font-size:10pt; color:#FFFFFF }\n';
ie4mac += 'a:hover 	{ font-family:"verdana"; text-decoration:none; font-size:10pt; color:#FFFFFF }\n';

//-- Netscape 4.x Mac
ns4mac = ie4mac;
ns4mac += 'a:link	{ font-family:"verdana"; text-decoration:none; font-size:11pt; color:#FF6600 }\n';
ns4mac += 'a:visited	{ font-family:"verdana"; text-decoration:none; font-size:11pt; color:#000000 }\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;

 } 
}