//----------------- LES STYLES -----------------------------------------------



//-- commun Win

commun_win  = '\n';

commun_win = '.bghome  {  background-image:url(library/img/home.jpg); background-repeat:no-repeat; background-position:center top ; background-color:#E6CF9E }\n';

commun_win += '.bg      {  background-image:url(img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';

commun_win += '.bg2     {  background-image:url(../img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';

commun_win += '.bg3     {  background-image:url(../../img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';

commun_win += '.bg4     {  background-image:url(../../../img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';

commun_win += '.bg5     {  background-image:url(../../../../img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';

commun_win += '.bg6     {  background-image:url(../../../../../img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';



//-- internet explorer 4.x Win 

ie4win = commun_win

ie4win += 'td 	       { font-family:"arial"; text-decoration:none; font-size:9pt; color:#000000 }\n';

ie4win += '.petit      { font-family:"arial"; text-decoration:none; font-size:8pt; color:#000000 }\n';

ie4win += '.titre1     { font-family:"arial"; font-size:10pt; color:#834444 }\n';

ie4win += '.titre_noir { font-family:"arial"; font-size:10pt; color:#000000; font-weight:bold }\n';

ie4win += '.titre 	   { font-family:"arial"; text-decoration:none; font-size:12pt; color:#652002 }\n';

ie4win += 'a:link      { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ie4win += 'a:visited   { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ie4win += 'a:active    { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ie4win += 'a:hover     { font-family:"arial"; text-decoration:underline; font-weight:bold; color:#560000 }\n';



//-- internet explorer 5.x Win & Netscape 4.x Win

ns4win = commun_win;

ns4win += 'td 	       { font-family:"arial"; text-decoration:none; font-size:10pt; color:#000000 }\n';

ns4win += '.petit      { font-family:"arial"; text-decoration:none; font-size:9pt; color:#000000 }\n';

ns4win += '.titre_noir { font-family:"arial"; font-size:11pt; color:#000000; font-weight:bold }\n';

ns4win += '.titre1     { font-family:"arial"; font-size:11pt; color:#834444 }\n';

ns4win += '.titre 	   { font-family:"arial"; text-decoration:none; font-size:13pt; color:#652002 }\n';

ns4win += 'a:link      { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ns4win += 'a:visited   { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';



ie5win = ie4win;





//-- commun Mac 

commun_mac = '.bghome  {  background-image:url(library/img/home.jpg); background-repeat:no-repeat; background-color:#AE8B4D }\n';

commun_mac += '.bg      {  background-image:url(img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';

commun_mac += '.bg2     {  background-image:url(../img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';

commun_mac += '.bg3     {  background-image:url(../../img/bandeau.jpg); background-repeat:no-repeat; background-color:#FFFFFF }\n';





//-- internet explorer 4.x Mac

ie4mac = commun_mac

ie4mac += 'td 	       { font-family:"arial"; text-decoration:none; font-size:12pt; color:#000000 }\n';

ie4mac += '.petit      { font-family:"arial"; text-decoration:none; font-size:10pt; color:#000000 }\n';

ie4mac += '.titre1     { font-family:"arial"; font-size:12pt; color:#834444 }\n';

ie4mac += '.titre_noir { font-family:"arial"; font-size:12pt; color:#000000; font-weight:bold }\n';

ie4mac += '.titre 	   { font-family:"arial"; text-decoration:none; font-size:15pt; color:#652002 }\n';

ie4mac += 'a:link      { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ie4mac += 'a:visited   { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ie4mac += 'a:active    { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ie4mac += 'a:hover     { font-family:"arial"; text-decoration:underline; font-weight:bold; color:#560000 }\n';



//-- Netscape 4.x Mac

ns4mac = ie4mac;

ns4mac += 'td 	       { font-family:"arial"; text-decoration:none; font-size:12pt; color:#000000 }\n';

ns4mac += '.petit      { font-family:"arial"; text-decoration:none; font-size:10pt; color:#000000 }\n';

ns4mac += '.titre1     { font-family:"arial"; font-weight:bold; font-size:12pt; color:#834444 }\n';

ns4mac += '.titre_noir { font-family:"arial"; font-size:12pt; color:#000000; font-weight:bold }\n';

ns4mac += '.titre 	   { font-family:"arial"; text-decoration:none; font-size:15pt; color:#652002 }\n';

ns4mac += 'a:link      { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\n';

ns4mac += 'a:visited   { font-family:"arial"; text-decoration:none; font-weight:bold; color:#560000 }\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 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;



 } 

}







