		// MetroLine Buttons Click
		function showMetro() {
			if (polyline_M1.map == null) {
				polyline_M1.setMap(map);
				polyline_M2.setMap(map);
				polyline_M3.setMap(map);
				polyline_M4.setMap(map);
				polyline_M5.setMap(map);
				polyline_M6.setMap(map);
				polyline_M7.setMap(map);
				polyline_M8.setMap(map);
				polyline_M9.setMap(map);
				polyline_M10_1.setMap(map);
				polyline_M10_2.setMap(map);
				polyline_M11.setMap(map);
				polyline_M12.setMap(map);
				polyline_M13_1.setMap(map);
				polyline_M13_2.setMap(map);
				polyline_M14.setMap(map);
				refreshAllLines();
			}
			else {
				polyline_M1.setMap(null);
				polyline_M2.setMap(null);
				polyline_M3.setMap(null);
				polyline_M4.setMap(null);
				polyline_M5.setMap(null);
				polyline_M6.setMap(null);
				polyline_M7.setMap(null);
				polyline_M8.setMap(null);
				polyline_M9.setMap(null);
				polyline_M10_1.setMap(null);
				polyline_M10_2.setMap(null);
				polyline_M11.setMap(null);
				polyline_M12.setMap(null);
				polyline_M13_1.setMap(null);
				polyline_M13_2.setMap(null);
				polyline_M14.setMap(null);
			}
		}
		
		// function MetroLine_ButtonClick(i) {
			// switch (i) {
                    // case 1: { 
						// if (polyline_M1.map == null) {
							// polyline_M1.setMap(map);
							// refreshM1();
						// }
						// else {
							// polyline_M1.setMap(null);
						// }; 
						// break;
					// }
                    // case 2: { 
						// if (polyline_M2.map == null) {
							// polyline_M2.setMap(map);
							// refreshM2();
						// }
						// else {
							// polyline_M2.setMap(null);
						// }; 
						// break;
					// }
                    // case 3: { 
						// if (polyline_M3.map == null) {
							// polyline_M3.setMap(map);
							// refreshM3();
						// }
						// else {
							// polyline_M3.setMap(null);
						// }; 
						// break;
					// }
                    // case 4: { 
						// if (polyline_M4.map == null) {
							// polyline_M4.setMap(map);
							// refreshM4();
						// }
						// else {
							// polyline_M4.setMap(null);
						// }; 
						// break;
					// }
                    // case 5: { 
						// if (polyline_M5.map == null) {
							// polyline_M5.setMap(map);
							// refreshM5();
						// }
						// else {
							// polyline_M5.setMap(null);
						// }; 
						// break;
					// }
                    // case 6: { 
						// if (polyline_M6.map == null) {
							// polyline_M6.setMap(map);
							// refreshM6();
						// }
						// else {
							// polyline_M6.setMap(null);
						// }; 
						// break;
					// }
                    // case 7: { 
						// if (polyline_M7.map == null) {
							// polyline_M7.setMap(map);
							// refreshM7();
						// }
						// else {
							// polyline_M7.setMap(null);
						// }; 
						// break;
					// }
                    // case 8: { 
						// if (polyline_M8.map == null) {
							// polyline_M8.setMap(map);
							// refreshM8();
						// }
						// else {
							// polyline_M8.setMap(null);
						// }; 
						// break;
					// } 
					// case 9: { 
						// if (polyline_M9.map == null) {
							// polyline_M9.setMap(map);
							// refreshM9();
						// }
						// else {
							// polyline_M9.setMap(null);
						// }; 
						// break;
					// } 
					// case 10: { 
						// if (polyline_M10.map == null) {
							// polyline_M10.setMap(map);
							// refreshM10();
						// }
						// else {
							// polyline_M10.setMap(null);
						// }; 
						// break;
					// } 
					// case 11: { 
						// if (polyline_M11.map == null) {
							// polyline_M11.setMap(map);
							// refreshM11();
						// }
						// else {
							// polyline_M11.setMap(null);
						// }; 
						// break;
					// } 
					// case 12: { 
						// if (polyline_M12.map == null) {
							// polyline_M12.setMap(map);
							// refreshM12();
						// }
						// else {
							// polyline_M12.setMap(null);
						// }; 
						// break;
					// } 
					// case 13: { 
						// if (polyline_M13.map == null) {
							// polyline_M13.setMap(map);
							// refreshM13();
						// }
						// else {
							// polyline_M13.setMap(null);
						// }; 
						// break;
					// } 
					// case 14: { 
						// if (polyline_M14.map == null) {
							// polyline_M14.setMap(map);
							// refreshM14();
						// }
						// else {
							// polyline_M14.setMap(null);
						// }; 
						// break;
					// } 
                    // default: { alert('an Error occured - could not identify this button \"'); break; }
                // }
        // }


        //#endregion

		
		
		
        //#region refresh Metro functions

        function refreshStrokeWeight() {
			
            if (myZoomLevel <= 10) {
                myStrokeWeight = 0;
            }
            else {
                switch (myZoomLevel) {
                    default: { myStrokeWeight = 5; break; }
                    case 11: { myStrokeWeight = 1; break; }
                    case 12: { myStrokeWeight = 2; break; }
                    case 13: { myStrokeWeight = 3; break; }
                    case 14: { myStrokeWeight = 4; break; }
                    case 15: { myStrokeWeight = 5; break; }
                    case 16: { myStrokeWeight = 6; break; }
                    case 17: { myStrokeWeight = 7; break; }
                    case 18: { myStrokeWeight = 8; break; }
                    case 19: { myStrokeWeight = 8; break; }
                    case 20: { myStrokeWeight = 8; break; }
                }
            }
        }

        function refreshM1() { 
            polyline_M1.setOptions({
                path: coordsM1,
                strokeColor: "#ffcd02",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM2() {
            polyline_M2.setOptions({
                path: coordsM2,
                strokeColor: "#006db8",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM3() {
            polyline_M3.setOptions({
                path: coordsM3,
                strokeColor: "#9b993b",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM4() {
            polyline_M4.setOptions({
                path: coordsM4,
                strokeColor: "#bb4a9b",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM5() {
            polyline_M5.setOptions({
                path: coordsM5,
                strokeColor: "#f78f4b",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM6() {
            polyline_M6.setOptions({
                path: coordsM6,
                strokeColor: "#77c696",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM7() {
            polyline_M7.setOptions({
                path: coordsM7,
                strokeColor: "#f59eb3",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM8() {
            polyline_M8.setOptions({
                path: coordsM8,
                strokeColor: "#c5a3cd",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM9() {
            polyline_M9.setOptions({
                path: coordsM9,
                strokeColor: "#cec92b",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM10() {
            polyline_M10_1.setOptions({
                path: coordsM10_1,
                strokeColor: "#e0b03b",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
            polyline_M10_2.setOptions({
                path: coordsM10_2,
                strokeColor: "#e0b03b",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM11() {
            polyline_M11.setOptions({
                path: coordsM11,
                strokeColor: "#8d6539",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM12() {
            polyline_M12.setOptions({
                path: coordsM12,
                strokeColor: "#008c5a",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM13() {
            polyline_M13_1.setOptions({
                path: coordsM13_1,
                strokeColor: "#88d3df",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
            polyline_M13_2.setOptions({
                path: coordsM13_2,
                strokeColor: "#88d3df",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }

        function refreshM14() {
            polyline_M14.setOptions({
                path: coordsM14,
                strokeColor: "#662d91",
                strokeOpacity: 1,
                strokeWeight: myStrokeWeight
            });
        }
		
		function refreshAllLines() {
            refreshM1();
            refreshM2();
            refreshM3();
            refreshM4();
            refreshM5();
            refreshM6();
            refreshM7();
            refreshM8();
            refreshM9();
            refreshM10();
            refreshM11();
            refreshM12();
            refreshM13();
            refreshM14();
        }

        // function refreshAllLines() {
            // if (polyline_M1.map != null) {
                // refreshM1();
            // }
            // if (polyline_M2.map != null) {
                // refreshM2();
            // }
            // if (polyline_M3.map != null) {
                // refreshM3();
            // }
            // if (polyline_M4.map != null) {
                // refreshM4();
            // }
            // if (polyline_M5.map != null) {
                // refreshM5();
            // }
            // if (polyline_M6.map != null) {
                // refreshM6();
            // }
            // if (polyline_M7.map != null) {
                // refreshM7();
            // }
            // if (polyline_M8.map != null) {
                // refreshM8();
            // }
            // if (polyline_M9.map != null) {
                // refreshM9();
            // }
            // if (polyline_M10_1.map != null) {
                // refreshM10();
            // }
            // if (polyline_M10_2.map != null) {
                // refreshM10();
            // }
            // if (polyline_M11.map != null) {
                // refreshM11();
            // }
            // if (polyline_M12.map != null) {
                // refreshM12();
            // }
            // if (polyline_M13_1.map != null) {
                // refreshM13();
            // }
            // if (polyline_M13_2.map != null) {
                // refreshM13();
            // }
            // if (polyline_M14.map != null) {
                // refreshM14();
            // }
        // }
        //#endregion
