Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java	(revision 16593)
@@ -35,29 +35,15 @@
 		
 		int index = 0;
-		for (RoutesXMLRoute route:xmlLayer.getRoute()) {
-			Color color = ColorHelper.html2color(route.getColor());
-			if (color == null) {
-				color = Color.RED;
-				System.err.printf("Routes plugin - unable to convert color (%s)\n", route.getColor());
+		for (RoutesXMLRoute route:xmlLayer.getRoute()) {			
+			if (route.isEnabled()) {
+				Color color = ColorHelper.html2color(route.getColor());
+				if (color == null) {
+					color = Color.RED;
+					System.err.printf("Routes plugin - unable to convert color (%s)\n", route.getColor());
+				}
+				routes.add(new RouteDefinition(index++, color, route.getPattern()));
 			}
-			routes.add(new RouteDefinition(index++, color, route.getPattern()));
 		}
 		
-		/*routes.add(new RouteDefinition(Color.RED, 
-			"((type:relation | type:way) kct_red=*) | (color=red type=route route=hiking network=cz:kct)"));
-		
-		routes.add(new RouteDefinition(Color.YELLOW, 
-			"((type:relation | type:way) kct_yellow=*) | (color=yellow type=route route=hiking network=cz:kct)"));
-
-		routes.add(new RouteDefinition(Color.BLUE, 
-			"((type:relation | type:way) kct_blue=*) | (color=blue type=route route=hiking network=cz:kct)"));
-
-		routes.add(new RouteDefinition(Color.GREEN, 
-			"((type:relation | type:way) kct_green=*) | (color=green type=route route=hiking network=cz:kct)"));
-		
-		routes.add(new RouteDefinition(Color.MAGENTA,
-				"(type:way (ncn=* | (lcn=* | rcn=* ))) | (type:relation type=route route=bicycle)"));
-				
-				*/
 		if ("wide".equals(Main.pref.get("routes.painter"))) {
 			pathPainter = new WideLinePainter(this);
Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RoutesPlugin.java
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RoutesPlugin.java	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RoutesPlugin.java	(revision 16593)
@@ -61,5 +61,7 @@
                 new FileInputStream(getPluginDir() + File.separator + "routes.xml"));
             for (RoutesXMLLayer layer:routes.getLayer()) {
-                routeLayers.add(new RouteLayer(layer));
+            	if (layer.isEnabled()) {
+            		routeLayers.add(new RouteLayer(layer));
+            	}
             }
         } catch (Exception e) {
Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/ObjectFactory.java
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/ObjectFactory.java	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/ObjectFactory.java	(revision 16593)
@@ -3,5 +3,5 @@
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2009.07.09 at 08:14:28 odp. CEST 
+// Generated on: 2009.07.19 at 03:50:48 odp. CEST 
 //
 
Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/Routes.java
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/Routes.java	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/Routes.java	(revision 16593)
@@ -3,5 +3,5 @@
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2009.07.09 at 08:14:28 odp. CEST 
+// Generated on: 2009.07.19 at 03:50:48 odp. CEST 
 //
 
Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/RoutesXMLLayer.java
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/RoutesXMLLayer.java	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/RoutesXMLLayer.java	(revision 16593)
@@ -3,5 +3,5 @@
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2009.07.09 at 08:14:28 odp. CEST 
+// Generated on: 2009.07.19 at 03:50:48 odp. CEST 
 //
 
@@ -30,4 +30,5 @@
  *       &lt;/sequence>
  *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
  *     &lt;/restriction>
  *   &lt;/complexContent>
@@ -46,4 +47,6 @@
     @XmlAttribute
     protected String name;
+    @XmlAttribute
+    protected Boolean enabled;
 
     /**
@@ -100,3 +103,31 @@
     }
 
+    /**
+     * Gets the value of the enabled property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Boolean }
+     *     
+     */
+    public boolean isEnabled() {
+        if (enabled == null) {
+            return true;
+        } else {
+            return enabled;
+        }
+    }
+
+    /**
+     * Sets the value of the enabled property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Boolean }
+     *     
+     */
+    public void setEnabled(Boolean value) {
+        this.enabled = value;
+    }
+
 }
Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/RoutesXMLRoute.java
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/RoutesXMLRoute.java	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/RoutesXMLRoute.java	(revision 16593)
@@ -3,5 +3,5 @@
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2009.07.09 at 08:14:28 odp. CEST 
+// Generated on: 2009.07.19 at 03:50:48 odp. CEST 
 //
 
@@ -29,4 +29,5 @@
  *       &lt;/sequence>
  *       &lt;attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
  *     &lt;/restriction>
  *   &lt;/complexContent>
@@ -46,4 +47,6 @@
     @XmlAttribute
     protected String color;
+    @XmlAttribute
+    protected Boolean enabled;
 
     /**
@@ -95,3 +98,31 @@
     }
 
+    /**
+     * Gets the value of the enabled property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Boolean }
+     *     
+     */
+    public boolean isEnabled() {
+        if (enabled == null) {
+            return true;
+        } else {
+            return enabled;
+        }
+    }
+
+    /**
+     * Sets the value of the enabled property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Boolean }
+     *     
+     */
+    public void setEnabled(Boolean value) {
+        this.enabled = value;
+    }
+
 }
Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/package-info.java
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/package-info.java	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/package-info.java	(revision 16593)
@@ -3,5 +3,5 @@
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2009.07.09 at 08:14:28 odp. CEST 
+// Generated on: 2009.07.19 at 03:50:48 odp. CEST 
 //
 
Index: applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/routes.xsd
===================================================================
--- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/routes.xsd	(revision 16592)
+++ applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/xml/routes.xsd	(revision 16593)
@@ -33,4 +33,5 @@
 	</sequence>
 	<attribute name="name" type="string"/>
+	<attribute name="enabled" type="boolean" default="true"/>
 </complexType>
 
@@ -40,4 +41,5 @@
 	</sequence>
 	<attribute name="color" type="string"/>
+	<attribute name="enabled" type="boolean" default="true"/>
 </complexType>
 
