/*
Nom du fichier : moteur_css.js
Auteur : JC. Hautbois, G. Leroy
Version actuelle : 2.1
*/
var fonteStyle='';
//-------------------------------------------------------------------------------------------------
function crstyle(){
	var styleref;var fp;var fs;var na="";var nf="";var nd="";var bgcolord="";var lienst="";
	var milieu="";var boldf="";var italic="";var underl="";var fin='}\n';var lineH = "";var family="";

       
//Tri sur nav
	if (is.ns){
		if(is.mac){fp=1;}
		else if(is.linux){fp=6;}
		else {fp=2}
	}
	if (is.ie){
		if(is.mac){fp=3;}
		else if (is.ie40 || is.ie45){fp=4;}
		else if (is.ie50){fp=5;}
		else if	(is.ie55){fp=6;}
		else if	(is.ie60){fp=6;}
		else if	(is.ie70){fp=6;}
	}
	if(is.konq){fp=7;}
//	
//Construction
	for (var i=0; i< list_styl.length; i++){
		boldf="";
		italic="";
		underl="; text-decoration:none ";
		bgcolord="";
		milieu='{font-size:'+ eval(list_styl[i][fp])+'px';
		if(list_styl[i][9]!=""){milieu+='; color:'+ list_styl[i][9]}
		if(list_styl[i][10]!=""){bgcolord='; background-color:'+ list_styl[i][10]}
		if(is.ns && list_styl[i][11]){boldf='; font-weight:bold'}
		if(is.ie && list_styl[i][11]){boldf='; font-weight:bold'}
		if(list_styl[i][13]){italic='; font-style:italic'}
		if(list_styl[i][14]){underl='; text-decoration:underline'}
		if(list_styl[i][15]){lineH='; line-height:'+list_styl[i][15]}
		if(list_styl[i][16]!= null){family='; font-family:'+fontFamily[list_styl[i][16]]}		
		
		nd+='.'+ list_styl[i][0]+ milieu + family + boldf + italic + underl + bgcolord + fin +"\n";
	}
	
	if (llink!=''){lienst += '\na:link{color:'+ llink +'}\n'}
	if (alink!=''){lienst += 'a:active{color:'+ alink +'}\n'}
	if (vlink!=''){lienst += 'a:visited{color:'+ vlink +'}\n'}
	
	if(TYPdev) {fonteStyle += "\n<STYLE TYPE='text/css'>\n";}
	fonteStyle += "a {"+ ndec +"}\n";
	fonteStyle += "\nbody{ background-color:"+ fdc +"}"+ "\n" + lienst +"\n";
	fonteStyle += nd;
        fonteStyle += "\n.formField {width: 90px; height: 18px; }  \n "
        
        fonteStyle += "\n#spanMenu { 	width: 120px; 	height:	24px; 	border: solid 1px #CCCCCC; } \n ";        
        fonteStyle += ".menuItem { width: 115px; margin-left: 5px; padding-left: 5px;}\n";
        
	if(TYPdev) {fonteStyle += "</STYLE>\n";}       
}
//-------------------------------------------------------------------------------------------------
