function cz(eI){var red="C8";var green="C8";var blue="C8";if(eI!=null&&eI.length>0){var hX=eI[0].getElementsByTagName("red");var fL=eI[0].getElementsByTagName("green");var ds=eI[0].getElementsByTagName("blue");if(hX!=null&&hX.length>0&&hX[0].firstChild!=null){red=parseInt(hX[0].firstChild.data).toString(16);}if(fL!=null&&fL.length>0&&fL[0].firstChild!=null){green=parseInt(fL[0].firstChild.data).toString(16);}if(ds!=null&&ds.length>0&&ds[0].firstChild!=null){blue=parseInt(ds[0].firstChild.data).toString(16);}if(red.length==1)red="0"+red;if(green.length==1)green="0"+green;if(blue.length==1)blue="0"+blue;}var routeColor="#"+red+green+blue;return routeColor;};function D(gM,errorCode,ji){if(gM==null||gM.length==0){if(ji)A("We are sorry, but we are unable to process your request at this time. Please try again later. ("+errorCode+"-MT)");t();return true;}var fx=gM[0].getElementsByTagName("error");if(fx!=null&&fx.length>0){if(ji)A("We are sorry, but we are unable to process your request at this time. Please try again later. ("+errorCode+"-ET)");t();return true;}return false;};function aq(){var cK=map.getCurrentMapType().getProjection().fromLatLngToPixel(map.fromDivPixelToLatLng(new GPoint(0,0),true),map.getZoom());var gZ=map.getCurrentMapType().getProjection().fromLatLngToPixel(tooltip.marker.getPoint(),map.getZoom());var anchor=tooltip.marker.getIcon().iconAnchor;var width=tooltip.marker.getIcon().iconSize.width;var height=tooltip.clientHeight;var x=gZ.x-cK.x-anchor.x+width;var y=gZ.y-cK.y-anchor.y-height;var center=map.getCenter();var eE=map.getCurrentMapType().getProjection().fromLatLngToPixel(center,map.getZoom());var size=map.getSize();var gH=size.width;var gG=size.height;var jo=300;if(gZ.y-height-anchor.y<eE.y-gG/2){y=y+height+anchor.y;}if(gZ.x+jo-anchor.x+width>eE.x+gH/2){x=x-jo-width;}var pos=new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(x,y));pos.apply(tooltip);tooltip.style.visibility="visible";tooltip.style.zIndex=100;};function fQ(){var cK=map.getCurrentMapType().getProjection().fromLatLngToPixel(map.fromDivPixelToLatLng(new GPoint(0,0),true),map.getZoom());var gZ=map.getCurrentMapType().getProjection().fromLatLngToPixel(fl.marker.getPoint(),map.getZoom());var anchor=fl.marker.getIcon().iconAnchor;var width=fl.marker.getIcon().iconSize.width;var height=fl.clientHeight;var x=gZ.x-cK.x-anchor.x+width;var y=gZ.y-cK.y-anchor.y-height;var center=map.getCenter();var eE=map.getCurrentMapType().getProjection().fromLatLngToPixel(center,map.getZoom());var size=map.getSize();var gH=size.width;var gG=size.height;var jo=300;if(gZ.y-height-anchor.y<eE.y-gG/2){y=y+height+anchor.y;}if(gZ.x+jo-anchor.x+width>eE.x+gH/2){x=x-jo-width;}var pos=new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(x,y));pos.apply(fl);fl.style.visibility="visible";fX=true;hB=x;hm=y;jC=fl.clientHeight;ib=fl.clientWidth;if(fl.type=="bus"){var latlng=map.fromDivPixelToLatLng(new GPoint(hB+100,hm+100));map.panTo(latlng);}fl.totalBuses=null;}