//----------------- LES STYLES -----------------------------------------------

//-- internet explorer 4.x Win 

ie4win= 'body 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; }\n';
ie4win+= 'td			{ font-size: 10px; text-align: default; }\n';
ie4win+= 'p 			{ font-size: 10px; text-align: justify; } \n';
ie4win+= 'li 			{ font-size: 10px; text-align: justify; }\n';
ie4win+= 'th 			{ font-size: 10px; font-weight: bold; text-align: left; }\n';
ie4win+= 'h1 			{ font-size: 18px; font-weight: bold; color: #5a79bc; }\n';
ie4win+= '.date 		{ font-size: 10px; font-weight: bolder; text-align: center;}\n';
ie4win+= '.offresNoirGras	{ font-size: 10px; font-weight: bolder; color: #000000}\n';
ie4win+= '.offresBlancGras	{ font-weight: bolder; color: #FFFFFF}\n';
ie4win+= '.offresNoir 		{ font-weight: normal; color: #000000}\n';
ie4win+= '.texteBleuRoi		{ font-weight: bold; color: #5a79bc; }\n';
ie4win+= '.texteNoir 		{ font-weight: normal; color: #000000; }\n';
ie4win+= '.texteRougeGras       { font-weight: bold; color: #FF0000; }\n';
ie4win+= '.texteBlancGras 	{ font-weight: bold; color: #FFFFFF; }\n';
ie4win+= '.texteNoirGras 	{ font-weight: bold; color: #000000; }\n';
ie4win+= '.texteBleuRoi10	{ font-weight: bold; color: #5a79bc; }\n';
ie4win+= '.bgOmbre 			{ background-image: url(ombre.gif); background-repeat: repeat-y; background-position: right top}\n';
ie4win+= '.textField 		{ color: #5a79bc; font-size: 10px }\n';
ie4win+= 'a.bleu:link     	{ color:#5a79bc; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.bleu:visited 	{ color:#5a79bc; text-decoration: none; font-weight:bold;  }\n';
ie4win+= 'a.bleu:active    	{ color:#5a79bc; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.bleu:hover     	{ color:#FFFFFF; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.blanc:link     	{ color:#FFFFFF; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.blanc:visited 	{ color:#FFFFFF; text-decoration: none; font-weight:bold;  }\n';
ie4win+= 'a.blanc:active    { color:#FFFFFF; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.blanc:hover     { color:#FFFFFF; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.noir:link     	{ color:#000000; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.noir:visited 	{ color:#000000; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.noir:active     { color:#000000; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a.noir:hover      { color:#000000; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a:link     		{ color:#5a79bc; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a:visited 		{ color:#5a79bc; text-decoration: none; font-weight:bold; }\n';
ie4win+= 'a:active    		{ color:#5a79bc; text-decoration: underline; }\n';
ie4win+= 'a:hover     	 	{ color:#5a79bc; text-decoration: underline; }\n';



//-- internet explorer 5.x Win & Netscape 4.x Win (+1)
ns4win = 'body			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; text-decoration: none }\n';
ns4win+= 'td 			{ font-size: 10px; color: #000000}\n';
ns4win+= 'p 			{ lor: #000000; text-align: justify; text-decoration: none}\n';
ns4win+= 'li 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; text-align: justify; text-decoration: none}\n';
ns4win+= 'th			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; text-decoration: none;font-weight: bold;}\n';
ns4win+= 'h1 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; color: #5a79bc; }\n';
ns4win+= '.date 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #000000}\n';
ns4win+= '.offresNoirGras 	{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #000000}\n';
ns4win+= '.offresBlancGras	{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #FFFFFF}\n';
ns4win+= '.offresNoir 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000}\n';
ns4win+= '.texteBleuRoi 	{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #5a79bc; text-decoration: none}\n';
ns4win+= '.texteNoir 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000; text-decoration: none }\n';
ns4win+= '.texteBlancGras 	{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-decoration: none}\n';
ns4win+= '.texteNoirGras 	{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000; text-decoration: none}\n';
ns4win+= '.texteBleuRoi10	{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #5a79bc; text-decoration: none }\n';
ns4win+= '.bgOmbre 		{ background-image: url(ombre.gif); background-repeat: repeat-y; background-position: right top}\n';
ns4win+= '.textField 		{ font-family: Verdana, Arial, Helvetica, sans-serif; color: #5a79bc; font-size: 10 }\n';
ns4win += 'a.bleu:link     	{ font-family: verdana; font-size:10px; font-weight: bold; color:#5a79bc; text-decoration: none; }\n';
ns4win += 'a.bleu:visited 	{ font-family: verdana; font-size:10px; font-weight: bold; color:#5a79bc; text-decoration: none; }\n';
ns4win += 'a.bleu:active    	{ font-family: verdana; font-size:10px; font-weight: bold; color:#5a79bc; text-decoration: none; }\n';
ns4win += 'a.bleu:hover     	{ font-family: verdana; font-size:10px; font-weight: bold; color:#FFFFFF; text-decoration: none; }\n';
ns4win += 'a:link     		{ font-family: Arial; font-size:9pt; color:#000000; text-decoration: none; }\n';
ns4win += 'a:visited 	 	{ font-family: Arial; font-size:9pt; color:#000000; text-decoration: none; }\n';
ns4win += 'a:active    		{ font-family: Arial; font-size:9pt; color:#000000; text-decoration: underline; }\n';
ns4win += 'a:hover     	 	{ font-family: Arial; font-size:9pt; color:#011643; text-decoration: underline; }\n';


ie5win = ie4win;

//-- internet explorer 4.x Mac (+2)
ie4mac = '.date {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #000000}\n';
ie4mac+= '.offresNoirGras {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #000000}\n';
ie4mac+= '.offresBlancGras { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #FFFFFF}\n';
ie4mac+= '.offresNoir { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000}\n';
ie4mac+= '.texteBleuRoi { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #5a79bc; text-decoration: none}\n';
ie4mac+= '.texteNoir { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000; text-decoration: none }\n';
ie4mac+= '.texteBlancGras {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-decoration: none}\n';
ie4mac+= '.texteNoirGras {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000; text-decoration: none}\n';
ie4mac+= '.texteBleuRoi10 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #5a79bc; text-decoration: none }\n';
ie4mac+= '.bgOmbre {  background-image: url(ombre.gif); background-repeat: repeat-y; background-position: right top}\n';
ie4mac+= '.textField {  font-family: Verdana, Arial, Helvetica, sans-serif; color: #5a79bc; font-size: 10 }\n';


//-- Netscape 4.x Mac (+4)
ns4mac = '.date {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #000000}\n';
ns4mac+= '.offresNoirGras {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #000000}\n';
ns4mac+= '.offresBlancGras { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bolder; color: #FFFFFF}\n';
ns4mac+= '.offresNoir { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000}\n';
ns4mac+= '.texteBleuRoi { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #5a79bc; text-decoration: none}\n';
ns4mac+= '.texteNoir { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000; text-decoration: none }\n';
ns4mac+= '.texteBlancGras {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #FFFFFF; text-decoration: none}\n';
ns4mac+= '.texteNoirGras {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000; text-decoration: none}\n';
ns4mac+= '.texteBleuRoi10 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #5a79bc; text-decoration: none }\n';
ns4mac+= '.bgOmbre {  background-image: url(ombre.gif); background-repeat: repeat-y; background-position: right top}\n';
ns4mac+= '.textField {  font-family: Verdana, Arial, Helvetica, sans-serif; color: #5a79bc; font-size: 10 }\n';


//-- internet explorer 5.x Mac 
ie5mac = ie4win
ie5mac += '\n';

//-------------------- CODE -----------------------------------------------
//-- variables ------
var path 	= '/library/css/';
var unknown	= 0;
var win		= 1;
var mac		= 2;
var unix	= 3;
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 ;
else if (navigator.userAgent.indexOf("Linux")!=-1) browser.plateform = unix;

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
	if (is5!=-1) { //-- Mozilla 1.x Netscape 7.x
          document.write (hstyle+ie5win+fstyle);
         }
        else {
          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
        if (is5!=-1) { //-- Mozilla 1.x Netscape 7.x
          document.write (hstyle+ie5mac+fstyle);
         }
        else {
          document.write (hstyle+ns4mac+fstyle);
         }
	break;
   } 
 break;


 //--- Environnement Linux / UNIX
 case 3:
  switch (navigator) {
	case 2: //-- Netscape         
	if (is5!=-1) { //-- Mozilla 1.x Netscape 7.x
          document.write (hstyle+ie5win+fstyle);
         }
        else {
          document.write (hstyle+ns4win+fstyle);
         }
   break;
   }
  
 }



}
