function goDemo(a,b){$("#login").val(a),$("#password").val(b),$("#gotopage").val("clientpage"),$("#loginform input.button").trigger("click")}function drawCircle(a,b,c,d,e,f,g,h){var i=a.distanceFrom(new GLatLng(a.lat()+.1,a.lng()))/a.distanceFrom(new GLatLng(a.lat(),a.lng()+.1)),j=[],k=parseInt(360/c)||10,l=Math.PI/180;for(var m=0;m<=360;m+=k){var n=m*l;j.push(new GLatLng(a.lat()+b*Math.cos(n),a.lng()+b*i*Math.sin(n)))}g=g||d||"#0055ff",e=e||1,h=h||.1;return new GPolygon(j,d,e,f,g,h)}function midArrows(a){var b=Math.floor(a.length/100)+1;for(var c=1;c<a.length-1;c+=b){var d=a[c-1],e=a[c+1],f=bearing(d,e),f=Math.round(f/3)*3;while(f>=120)f-=120;arrowIcon.image="http://www.google.com/intl/en_ALL/mapfiles/dir_"+f+".png",map.addOverlay(new GMarker(a[c],arrowIcon))}}function arrowHead(a){var b=a[a.length-1],c=a[a.length-2],d=bearing(c,b),d=Math.round(d/3)*3;while(d>=120)d-=120;arrowIcon.image="http://www.google.com/intl/en_ALL/mapfiles/dir_"+d+".png",map.addOverlay(new GMarker(b,arrowIcon))}function bearing(a,b){var c=180/Math.PI,d=a.latRadians(),e=a.lngRadians(),f=b.latRadians(),g=b.lngRadians(),h=-Math.atan2(Math.sin(e-g)*Math.cos(f),Math.cos(d)*Math.sin(f)-Math.sin(d)*Math.cos(f)*Math.cos(e-g));h<0&&(h+=Math.PI*2),h=h*c,h=h.toFixed(1);return h}function calcGoogleMapsZoom(a,b,c,d){a=parseFloat(a),b=parseFloat(b),c=parseFloat(c);if(a==-1)return 2;if(a==0)return 10;var e=Math.sqrt(a*a/2);return d.getBoundsZoomLevel(new GLatLngBounds(new GLatLng(b-e,c-e),new GLatLng(b+e,c+e)))}function initGoogleMapsCallBackAll(){typeof initGoogleMapsCallBack=="function"&&initGoogleMapsCallBack(),typeof initGoogleMapsCallBackAdmin=="function"&&initGoogleMapsCallBackAdmin()}function initGoogleMaps(){google.load("maps","2.242",{callback:initGoogleMapsCallBackAll,other_params:"sensor=false&hl="+language}),$("body").attr("onunload","if (typeof GUnload == 'function') GUnload();")}function initGoogleLoader(){if(typeof google=="object"&&typeof google.maps=="object")initGoogleMapsCallBackAll();else{var a=document.createElement("script");a.src="http://www.google.com/jsapi?key=";switch(document.domain.substr(4,1)){case"p":a.src+="ABQIAAAAPVwJ2TSIhVRKH08tkYKXiRTogFJL32BGWYsv_UzFPh7khKm_yxSYg_x1wWZd6pMAPfhpno4j4jU7Ww";break;case"l":a.src+="ABQIAAAAPVwJ2TSIhVRKH08tkYKXiRSpZ_fDgSqXO6FEUy5FGHD1dQ0DjBRltovZR-s2l6IkbuMZ2hDXpiWMeA";break;default:a.src+="ABQIAAAAPVwJ2TSIhVRKH08tkYKXiRRPFkMlFObZYwhFCIx1Bm3uNHfsZBRcu55k3BlKey0aLC8nlg_WTHUqWw"}a.src+="&callback=initGoogleMaps",a.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(a)}}jQuery(function(a){function b(){if(a.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}a.fn.acronym=function(b){var c=a.extend({dict:acronyms},b);return this.each(function(){var b=a(this),d=b.attr("title");typeof c.dict!="undefined"&&typeof c.dict[d]!="undefined"?b.attr("title",'<h3 class="sectiontitle">'+c.dict[d][0]+'</h3><p class="plh15">'+c.dict[d][1]+"</p>").tooltip({cssClass:"tooltip-green",duration:500}):b.replaceWith(d)})},a.fn.cBlock=function(b){var c=a.extend({hidden:!0,noframe:!1,cursor:"ui-grid-pointer"},b);return this.each(function(){var b=a(this),d=b.children(":first-child"),e=d.attr("class"),f=d.remove().html();b.children().wrapAll('<div class="'+(c.noframe?"":"greyframe padding5")+(c.hidden?" hidden":"")+'"></div>'),b.prepend('<div class="'+c.cursor+'"><div class="lfloat '+e+'">'+f+'</div><div class="ui-icon ui-icon-triangle-1-'+(c.hidden?"s":"n")+' lfloat"></div><div class="cfloat"></div></div>'),b.children(":first-child").bind("click",function(){a(this).children(".ui-icon").toggleClass("ui-icon-triangle-1-s").toggleClass("ui-icon-triangle-1-n"),a(this).next("div").toggleClass("hidden");return!1})})},a.fn.Mask=function(b){var c=a.extend({maskclass:"mask-block"},b);return this.each(function(){var b=a(this),d=b.offset().top,e=b.offset().left,f=b.outerWidth(),g=b.outerHeight();a("<div>").html("<div>&nbsp;</div>").addClass(c.maskclass).css({position:"absolute",top:0,left:0,width:f,height:g}).appendTo(a("body"))})},a.fn.unMask=function(b){var c=a.extend({maskclass:"mask-block"},b);return a("body").children("."+c.maskclass).remove()},a.fn.Maxlength=function(b){var c=a.extend({maxChars:255,leftChars:"Chars left:",showChars:!0},b);return this.each(function(){var b=a(this),d=c.maxChars;b.bind("keyup",function(a){b.val().length>c.maxChars&&b.val(b.val().substr(0,c.maxChars)),d=c.maxChars-b.val().length,c.showChars&&b.next("div").html(c.leftChars+" "+d)}),c.showChars?b.after('<div class="div_maxlen" style="margin-bottom:0px">'+c.leftChars+" "+c.maxChars+"</div>"):b.after('<div class="div_maxlen"></div>')})},a.fn.ajaxSubmit=function(c){function r(){function t(){r=i.contentWindow?i.contentWindow.document:i.contentDocument?i.contentDocument:i.document;if(!!r&&r.location.href!=e.iframeSrc){i.detachEvent?i.detachEvent("onload",t):i.removeEventListener("load",t,!1);var c=!0;try{if(m)throw"timeout";var d=e.dataType=="xml"||r.XMLDocument||a.isXMLDoc(r);b("isXml="+d);if(!d&&window.opera&&(r.body==null||r.body.innerHTML=="")&&--s){b("requeing onLoad callback, DOM not available"),setTimeout(t,250);return}j.responseText=r.body?r.body.innerHTML:r.documentElement?r.documentElement.innerHTML:null,j.responseXML=r.XMLDocument?r.XMLDocument:r,j.getResponseHeader=function(a){var b={"content-type":e.dataType};return b[a]};var f=/(json|script)/.test(e.dataType);if(f||e.textarea){var g=r.getElementsByTagName("textarea")[0];if(g)j.responseText=g.value;else if(f){var l=r.getElementsByTagName("pre")[0],n=r.getElementsByTagName("body")[0];l?j.responseText=l.textContent:n&&(j.responseText=n.innerHTML)}}else e.dataType=="xml"&&!j.responseXML&&j.responseText!=null&&(j.responseXML=u(j.responseText));q=w(j,e.dataType,e)}catch(o){b("error caught:",o),c=!1,j.error=o,e.error&&e.error.call(e.context,j,"error",o),k&&a.event.trigger("ajaxError",[j,e,o])}j.aborted&&(b("upload aborted"),c=!1),c&&(e.success&&e.success.call(e.context,q,"success",j),k&&a.event.trigger("ajaxSuccess",[j,e])),k&&a.event.trigger("ajaxComplete",[j,e]),k&&!--a.active&&a.event.trigger("ajaxStop"),e.complete&&e.complete.call(e.context,j,c?"success":"error"),setTimeout(function(){h.removeData("form-plugin-onload"),h.remove(),j.responseXML=null},100)}}function p(){var b=l.attr("target"),c=l.attr("action");d.setAttribute("target",f),d.getAttribute("method")!="POST"&&d.setAttribute("method","POST"),d.getAttribute("action")!=e.url&&d.setAttribute("action",e.url),e.skipEncodingOverride||l.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),e.timeout&&setTimeout(function(){m=!0,t()},e.timeout);var g=[];try{if(e.extraData)for(var j in e.extraData)g.push(a('<input type="hidden" name="'+j+'" value="'+e.extraData[j]+'" />').appendTo(d)[0]);h.appendTo("body"),i.attachEvent?i.attachEvent("onload",t):i.addEventListener("load",t,!1),d.submit()}finally{d.setAttribute("action",c),b?d.setAttribute("target",b):l.removeAttr("target"),a(g).remove()}}var d=l[0];if(a(":input[name=submit],:input[id=submit]",d).length)alert('Error: Form elements must not have name or id of "submit".');else{var e=a.extend(!0,{},a.ajaxSettings,c);e.context=e.context||e;var f="jqFormIO"+(new Date).getTime(),g="_"+f,h=a('<iframe id="'+f+'" name="'+f+'" src="'+e.iframeSrc+'" />'),i=h[0];h.css({position:"absolute",top:"-1000px",left:"-1000px"});var j={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1,h.attr("src",e.iframeSrc)}},k=e.global;k&&!(a.active++)&&a.event.trigger("ajaxStart"),k&&a.event.trigger("ajaxSend",[j,e]);if(e.beforeSend&&e.beforeSend.call(e.context,j,e)===!1){e.global&&a.active--;return}if(j.aborted)return;var m=0,n=d.clk;if(n){var o=n.name;o&&!n.disabled&&(e.extraData=e.extraData||{},e.extraData[o]=n.value,n.type=="image"&&(e.extraData[o+".x"]=d.clk_x,e.extraData[o+".y"]=d.clk_y))}e.forceSync?p():setTimeout(p,10);var q,r,s=50,u=a.parseXML||function(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&b.documentElement.nodeName!="parsererror"?b:null},v=a.parseJSON||function(a){return window.eval("("+a+")")},w=function(b,c,d){var e=b.getResponseHeader("content-type")||"",f=c==="xml"||!c&&e.indexOf("xml")>=0,g=f?b.responseXML:b.responseText;f&&g.documentElement.nodeName==="parsererror"&&a.error&&a.error("parsererror"),d&&d.dataFilter&&(g=d.dataFilter(g,c)),typeof g=="string"&&(c==="json"||!c&&e.indexOf("json")>=0?g=v(g):(c==="script"||!c&&e.indexOf("javascript")>=0)&&a.globalEval(g));return g}}}if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}typeof c=="function"&&(c={success:c});var d=this.attr("action"),e=typeof d=="string"?a.trim(d):"";e&&(e=(e.match(/^([^#]+)/)||[])[1]),e=e||window.location.href||"",c=a.extend(!0,{url:e,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c);var f={};this.trigger("form-pre-serialize",[this,c,f]);if(f.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(c.beforeSerialize&&c.beforeSerialize(this,c)===!1){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var g,h,i=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(g in c.data)if(c.data[g]instanceof Array)for(var j in c.data[g])i.push({name:g,value:c.data[g][j]});else h=c.data[g],h=a.isFunction(h)?h():h,i.push({name:g,value:h})}if(c.beforeSubmit&&c.beforeSubmit(i,this,c)===!1){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[i,this,c,f]);if(f.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var k=a.param(i);c.type.toUpperCase()=="GET"?(c.url+=(c.url.indexOf("?")>=0?"&":"?")+k,c.data=null):c.data=k;var l=this,m=[];c.resetForm&&m.push(function(){l.resetForm()}),c.clearForm&&m.push(function(){l.clearForm()});if(!c.dataType&&c.target){var n=c.success||function(){};m.push(function(b){var d=c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(n,arguments)})}else c.success&&m.push(c.success);c.success=function(a,b,d){var e=c.context||c;for(var f=0,g=m.length;f<g;f++)m[f].apply(e,[a,b,d||l,l])};var o=a("input:file",this).length>0,p="multipart/form-data",q=l.attr("enctype")==p||l.attr("encoding")==p;c.iframe!==!1&&(o||c.iframe||q)?c.closeKeepAlive?a.get(c.closeKeepAlive,r):r():a.ajax(c),this.trigger("form-submit-notify",[this,c]);return this},a.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!a.isReady&&d.s){b("DOM not ready, queuing ajaxForm"),a(function(){a(d.s,d.c).ajaxForm(c)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(b){b.isDefaultPrevented()||(b.preventDefault(),a(this).ajaxSubmit(c))}).bind("click.form-plugin",function(b){var c=b.target,d=a(c);if(!d.is(":submit,input:image")){var e=d.closest(":submit");if(e.length==0)return;c=e[0]}var f=this;f.clk=c;if(c.type=="image")if(b.offsetX!=undefined)f.clk_x=b.offsetX,f.clk_y=b.offsetY;else if(typeof a.fn.offset=="function"){var g=d.offset();f.clk_x=b.pageX-g.left,f.clk_y=b.pageY-g.top}else f.clk_x=b.pageX-c.offsetLeft,f.clk_y=b.pageY-c.offsetTop;setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})},a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},a.fn.formToArray=function(b){var c=[];if(this.length===0)return c;var d=this[0],e=b?d.getElementsByTagName("*"):d.elements;if(!e)return c;var f,g,h,i,j,k,l;for(f=0,k=e.length;f<k;f++){j=e[f],h=j.name;if(!h)continue;if(b&&d.clk&&j.type=="image"){!j.disabled&&d.clk==j&&(c.push({name:h,value:a(j).val()}),c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y}));continue}i=a.fieldValue(j,!0);if(i&&i.constructor==Array)for(g=0,l=i.length;g<l;g++)c.push({name:h,value:i[g]});else i!==null&&typeof i!="undefined"&&c.push({name:h,value:i})}if(!b&&d.clk){var m=a(d.clk),n=m[0];h=n.name,h&&!n.disabled&&n.type=="image"&&(c.push({name:h,value:m.val()}),c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y}))}return c},a.fn.formSerialize=function(b){return a.param(this.formToArray(b))},a.fn.fieldSerialize=function(b){var c=[];this.each(function(){var d=this.name;if(!!d){var e=a.fieldValue(this,b);if(e&&e.constructor==Array)for(var f=0,g=e.length;f<g;f++)c.push({name:d,value:e[f]});else e!==null&&typeof e!="undefined"&&c.push({name:this.name,value:e})}});return a.param(c)},a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;d<e;d++){var f=this[d],g=a.fieldValue(f,b);if(g===null||typeof g=="undefined"||g.constructor==Array&&!g.length)continue;g.constructor==Array?a.merge(c,g):c.push(g)}return c},a.fieldValue=function(b,c){var d=b.name,e=b.type,f=b.tagName.toLowerCase();c===undefined&&(c=!0);if(c&&(!d||b.disabled||e=="reset"||e=="button"||(e=="checkbox"||e=="radio")&&!b.checked||(e=="submit"||e=="image")&&b.form&&b.form.clk!=b||f=="select"&&b.selectedIndex==-1))return null;if(f=="select"){var g=b.selectedIndex;if(g<0)return null;var h=[],i=b.options,j=e=="select-one",k=j?g+1:i.length;for(var l=j?g:0;l<k;l++){var m=i[l];if(m.selected){var n=m.value;n||(n=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value);if(j)return n;h.push(n)}}return h}return a(b).val()},a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})},a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();a=="text"||a=="password"||b=="textarea"?this.value="":a=="checkbox"||a=="radio"?this.checked=!1:b=="select"&&(this.selectedIndex=-1)})},a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})},a.fn.enable=function(a){a===undefined&&(a=!0);return this.each(function(){this.disabled=!a})},a.fn.selected=function(b){b===undefined&&(b=!0);return this.each(function(){var c=this.type;if(c=="checkbox"||c=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){var d=a(this).parent("select");b&&d[0]&&d[0].type=="select-one"&&d.find("option").selected(!1),this.selected=b}})},a.fn.tooltip=function(b){var c={cssClass:"",delay:0,duration:500,xOffset:15,yOffset:15,opacity:0,fadeDuration:400},b=a.extend(c,b);return this.each(function(c){var d=a(this);$tooltip=a("#divTooltip"),$tooltip.length==0&&($tooltip=a('<div id="divTooltip"></div>'),a("body").append($tooltip),$tooltip.hide()),d.mouseover(function(c){c=c?c:window.event,clearTimeout($tooltip.data("hideTimeoutId")),$tooltip.removeClass($tooltip.attr("class")),$tooltip.css("width",""),$tooltip.css("height",""),$tooltip.addClass(b.cssClass),$tooltip.css("opacity",1-b.opacity/100),$tooltip.css("position","absolute"),$tooltip.data("title",d.attr("title")),d.attr("title",""),$tooltip.data("alt",d.attr("alt")),d.attr("alt",""),$tooltip.html($tooltip.data("title")),winw=a(window).width(),w=$tooltip.width(),xOffset=b.xOffset,w+xOffset+50<winw-c.clientX?$tooltip.css("left",a(document).scrollLeft()+c.clientX+xOffset):w+xOffset+50<c.clientX?$tooltip.css("left",a(document).scrollLeft()+c.clientX-(w+xOffset)):c.clientX>winw/2?($tooltip.width(c.clientX-50),$tooltip.css("left",a(document).scrollLeft()+25)):($tooltip.width(winw-c.clientX-50),$tooltip.css("left",a(document).scrollLeft()+c.clientX+xOffset)),winh=a(window).height(),h=$tooltip.height(),yOffset=b.yOffset,h+yOffset+50<c.clientY?$tooltip.css("top",a(document).scrollTop()+c.clientY-(h+yOffset)):h+yOffset+50<winh-c.clientY?$tooltip.css("top",a(document).scrollTop()+c.clientY+yOffset):$tooltip.css("top",a(document).scrollTop()+10),$tooltip.data("showTimeoutId",setTimeout("$tooltip.fadeIn("+b.fadeDuration+")",b.delay))}),d.mouseout(function(a){d.attr("title",$tooltip.data("title")),d.attr("alt",$tooltip.data("alt")),clearTimeout($tooltip.data("showTimeoutId")),$tooltip.data("hideTimeoutId",setTimeout("$tooltip.fadeOut("+b.fadeDuration+")",b.duration))}),d.click(function(a){a.preventDefault()})})}});var language=$("head").children("meta")[1].content;PolylineEncoder=function(a,b,c,d){var e;a||(a=18),b||(b=2),c||(c=1e-5),d||(d=!0),this.numLevels=a,this.zoomFactor=b,this.verySmall=c,this.forceEndpoints=d,this.zoomLevelBreaks=Array(a);for(e=0;e<a;e++)this.zoomLevelBreaks[e]=c*Math.pow(b,a-e-1)},PolylineEncoder.prototype.dpEncode=function(a){var b=0,c=[],d=Array(a.length),e,f,g,h,i,j,k,l,m,n;if(a.length>2){c.push([0,a.length-1]);while(c.length>0){j=c.pop(),e=0,n=Math.pow(a[j[1]].lat()-a[j[0]].lat(),2)+Math.pow(a[j[1]].lng()-a[j[0]].lng(),2);for(k=j[0]+1;k<j[1];k++)g=this.distance(a[k],a[j[0]],a[j[1]],n),g>e&&(e=g,f=k,e>b&&(b=e));e>this.verySmall&&(d[f]=e,c.push([j[0],f]),c.push([f,j[1]]))}}l=this.createEncodings(a,d),m=this.encodeLevels(a,d,b);return{encodedPoints:l,encodedLevels:m,encodedPointsLiteral:l.replace(/\\/g,"\\\\")}},PolylineEncoder.prototype.dpEncodeToJSON=function(a,b,c,d){var e;d||(d=.7),c||(c=2),b||(b="#0000ff"),e=this.dpEncode(a);return{color:b,weight:c,opacity:d,points:e.encodedPoints,levels:e.encodedLevels,numLevels:this.numLevels,zoomFactor:this.zoomFactor}},PolylineEncoder.prototype.dpEncodeToGPolyline=function(a,b,c,d){d||(d=.7),c||(c=2),b||(b="#0000ff");return new GPolyline.fromEncoded(this.dpEncodeToJSON(a,b,c,d))},PolylineEncoder.prototype.dpEncodeToGPolygon=function(a,b,c,d,e,f,g,h){var i,j;b||(b="#0000ff"),c||(c=2),d||(d=.7),e||(e=b),f||(f=d/3),g==undefined&&(g=!0),h==undefined&&(h=!0),j=Array(0);for(i=0;i<a.length;i++)j.push(this.dpEncodeToJSON(a[i],b,c,d));return new GPolygon.fromEncoded({polylines:j,color:e,opacity:f,fill:g,outline:h})},PolylineEncoder.prototype.distance=function(a,b,c,d){var e,f;b.lat()===c.lat()&&b.lng()===c.lng()?f=Math.sqrt(Math.pow(c.lat()-a.lat(),2)+Math.pow(c.lng()-a.lng(),2)):(e=((a.lat()-b.lat())*(c.lat()-b.lat())+(a.lng()-b.lng())*(c.lng()-b.lng()))/d,e<=0&&(f=Math.sqrt(Math.pow(a.lat()-b.lat(),2)+Math.pow(a.lng()-b.lng(),2))),e>=1&&(f=Math.sqrt(Math.pow(a.lat()-c.lat(),2)+Math.pow(a.lng()-c.lng(),2))),0<e&&e<1&&(f=Math.sqrt(Math.pow(a.lat()-b.lat()-e*(c.lat()-b.lat()),2)+Math.pow(a.lng()-b.lng()-e*(c.lng()-b.lng()),2))));return f},PolylineEncoder.prototype.createEncodings=function(a,b){var c,d,e,f=0,g=0,h="";for(c=0;c<a.length;c++)if(b[c]!=undefined||c==0||c==a.length-1){var i=a[c],j=i.lat(),k=i.lng(),l=Math.floor(j*1e5),m=Math.floor(k*1e5);d=l-f,e=m-g,f=l,g=m,h+=this.encodeSignedNumber(d)+this.encodeSignedNumber(e)}return h},PolylineEncoder.prototype.computeLevel=function(a){var b;if(a>this.verySmall){b=0;while(a<this.zoomLevelBreaks[b])b++;return b}},PolylineEncoder.prototype.encodeLevels=function(a,b,c){var d,e="";this.forceEndpoints?e+=this.encodeNumber(this.numLevels-1):e+=this.encodeNumber(this.numLevels-this.computeLevel(c)-1);for(d=1;d<a.length-1;d++)b[d]!=undefined&&(e+=this.encodeNumber(this.numLevels-this.computeLevel(b[d])-1));this.forceEndpoints?e+=this.encodeNumber(this.numLevels-1):e+=this.encodeNumber(this.numLevels-this.computeLevel(c)-1);return e},PolylineEncoder.prototype.encodeNumber=function(a){var b="",c,d;while(a>=32)c=(32|a&31)+63,b+=String.fromCharCode(c),a>>=5;d=a+63,b+=String.fromCharCode(d);return b},PolylineEncoder.prototype.encodeSignedNumber=function(a){var b=a<<1;a<0&&(b=~b);return this.encodeNumber(b)},PolylineEncoder.latLng=function(a,b){this.y=a,this.x=b},PolylineEncoder.latLng.prototype.lat=function(){return this.y},PolylineEncoder.latLng.prototype.lng=function(){return this.x},PolylineEncoder.pointsToLatLngs=function(a){var b,c;c=Array(0);for(b=0;b<a.length;b++)c.push(new PolylineEncoder.latLng(a[b][0],a[b][1]));return c},PolylineEncoder.pointsToGLatLngs=function(a){var b,c;c=Array(0);for(b=0;b<a.length;b++)c.push(new GLatLng(a[b][0],a[b][1]));return c}
