/*
 * feuillet-styles.js
 * Définition de styles nommés pour l'affichage de couches cartographiques
 * Ces styles peuvent être modifiés par l'administrateur du site.
 */
 
var stylesFeuilletPredefinis = [
   	   // Contours
   	   { "name":"contour-rouge",    "style": { "color": "#FF0000", "weight": 3.5, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"contour-orange",   "style": { "color": "#FF9700", "weight": 3.5, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"contour-bleu",     "style": { "color": "#0000FF", "weight": 3.5, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"contour-violet",   "style": { "color": "#FF00FF", "weight": 3.5, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"contour-vert",     "style": { "color": "#00FF00", "weight": 3.5, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"contour-jaune",    "style": { "color": "#FFFF1C", "weight": 3.5, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"contour-turquoise","style": { "color": "#1CFFFF", "weight": 3.5, "opacity": .75, "fillOpacity": 0 } },

   	   	// Traces
   	   { "name":"trace-rouge",    "style": { "color": "#FF0000", "weight": 7, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"trace-orange",   "style": { "color": "#FF9700", "weight": 7, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"trace-bleu",     "style": { "color": "#0000FF", "weight": 7, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"trace-violet",   "style": { "color": "#FF00FF", "weight": 7, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"trace-vert",     "style": { "color": "#00FF00", "weight": 7, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"trace-jaune",    "style": { "color": "#FFFF1C", "weight": 7, "opacity": .75, "fillOpacity": 0 } },
   	   { "name":"trace-turquoise","style": { "color": "#1CFFFF", "weight": 7, "opacity": .75, "fillOpacity": 0 } },
   	   
   	   // Zones rouges
   	   { "name":"zone-rouge-1",     "style": { "color": "#FFCFCF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-rouge-2",     "style": { "color": "#FF9797", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-rouge-3",     "style": { "color": "#FF1C1C", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-rouge-4",     "style": { "color": "#CD0000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-rouge-5",     "style": { "color": "#890000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-rouge-6",     "style": { "color": "#400000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	                                                                          
   	   // Zones bleues
   	   { "name":"zone-bleu-1",      "style": { "color": "#CFCFFF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-bleu-2",      "style": { "color": "#9797FF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-bleu-3",      "style": { "color": "#1C1CFF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-bleu-4",      "style": { "color": "#0000CD", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-bleu-5",      "style": { "color": "#000089", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-bleu-6",      "style": { "color": "#000040", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	    
   	   // Zones vert
   	   { "name":"zone-vert-1",      "style": { "color": "#CFFFCF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-vert-2",      "style": { "color": "#97FF97", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-vert-3",      "style": { "color": "#1CFF1C", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-vert-4",      "style": { "color": "#00CD00", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-vert-5",      "style": { "color": "#008900", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-vert-6",      "style": { "color": "#004000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },

   	    // Zones jaune
   	   { "name":"zone-jaune-1",      "style": { "color": "#FFFFCF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-jaune-2",      "style": { "color": "#FFFF97", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-jaune-3",      "style": { "color": "#FFFF1C", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-jaune-4",      "style": { "color": "#CDCD00", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-jaune-5",      "style": { "color": "#898900", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-jaune-6",      "style": { "color": "#404000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },

   	    // Zones turquoise
   	   { "name":"zone-turquoise-1",      "style": { "color": "#CFFFFF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-turquoise-2",      "style": { "color": "#97FFFF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-turquoise-3",      "style": { "color": "#1CFFFF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-turquoise-4",      "style": { "color": "#00CDCD", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-turquoise-5",      "style": { "color": "#008989", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-turquoise-6",      "style": { "color": "#004040", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },

   	    // Zones violet
   	   { "name":"zone-violet-1",      "style": { "color": "#FFCFFF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-violet-2",      "style": { "color": "#FF97FF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-violet-3",      "style": { "color": "#FF1CFF", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-violet-4",      "style": { "color": "#CD00CD", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-violet-5",      "style": { "color": "#890089", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-violet-6",      "style": { "color": "#400040", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },

   	   // Zones orange
   	   { "name":"zone-orange-1",      "style": { "color": "#FFCF00", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-orange-2",      "style": { "color": "#FF9700", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-orange-3",      "style": { "color": "#F06600", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-orange-4",      "style": { "color": "#AA4000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-orange-5",      "style": { "color": "#772000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } },
   	   { "name":"zone-orange-6",      "style": { "color": "#331000", "weight": 2.5, "opacity": .75, "fillOpacity": 0.35 } }

   ];  

/*
** Ne pas modifier ce qui suit 
*/

if(typeof lesStylesFeuillet ===  'undefined') {
	function styleFeuillet(docid) {
		return "inconnu";
	}		
} else {
	function styleFeuillet(docid) {
		if(typeof lesStylesFeuillet[docid] ===  'undefined') {
			return "inconnu";
		} else {
			return lesStylesFeuillet[docid];
		}
	}	
}

