function BpBrowser(){var a=['opera','msie','safari','firefox','mozilla'];var b=['x11;','macintosh','windows'];function h(c){this.OPERA=0;this.MSIE=1;this.SAFARI=2;this.FIREFOX=3;this.MOZILLA=4;this.X11=0;this.MAC=1;this.WINDOWS=2;this.type=-1;this.os=-1;this.version=0;var d=c.toLowerCase();for(var i=0;i<a.length;i++){var e=a[i];if(d.indexOf(e)!=-1){this.type=i;var f=new RegExp(e+'[ /]?([0-9]+)');if(f.exec(d)){this.version=parseFloat(RegExp.$1)}break;}}for(var i=0;i<b.length;i++){var g=b[i];if(d.indexOf(g)!=-1){this.os=i;break}}}window.BpBrowser=new h(navigator.userAgent);}BpBrowser();if(typeof(GControl)!='undefined'){function BpLogo(){GControl.apply(this,arguments);}BpLogo.prototype=new GControl();BpLogo.prototype.initialize=function(bpMap){var bpContainer=document.createElement("div");var bpImg=document.createElement('img');var bpSrc='http://www.gmaptools.com/images/bplogo.png';if(BpBrowser.type==BpBrowser.MSIE){bpImg.setAttribute('src','http://www.gmaptools.com/images/clear.gif');bpImg.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bpSrc+")";}else{bpImg.setAttribute('src',bpSrc);}bpImg.setAttribute('border','0');bpImg.onclick=function(){window.parent.location.href='http://www.gmaptools.com/maplink';};try{bpImg.style.cursor='pointer';}catch(e){bpImg.style.cursor='hand';}bpContainer.appendChild(bpImg);return bpContainer;};BpLogo.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(4,35));};};function BpControl(){var _a=0;function l(_b,_c,_d,_f){if(!_b)_b='Loading...';if(!_c)_c=new GSize(100,100);if(!_d)_d=G_ANCHOR_TOP_LEFT;this._b=_b;this._c=_c;this._d=_d;this._f=_f;this._a=++_a;this._g='bpcontrol'+this._a;}l.prototype=new GControl();var _h=l.prototype;_h.getDivId=function(){return this._g;};_h.getDiv=function(){return this._i;};_h.getContent=function(){return this._i.innerHTML;};_h.setContent=function(_b){this._i.innerHTML=_b;};_h.show=function(){this._i.style.display='';};_h.hide=function(){this._i.style.display='none';};_h.getClassName=function(){return this._f;};_h.setClassName=function(_f){if(!this._f)return;this._f=_f;this._i.className=_f;};_h.initialize=function(_j){var _i=document.createElement('div');_i.setAttribute('id',this._a);var _k=_i.style;_k.display='none';if(this._f){_i.className=this._f;}else{_k.border='1px solid black';_k.backgroundColor='white';_k.fontWeight='bold';_k.paddingLeft='3px';_k.paddingRight='3px';}_i.innerHTML=this._b;_j.getContainer().appendChild(_i);this._i=_i;return _i;};_h.getDefaultPosition=function(){return new GControlPosition(this._d,this._c);};_h.printable=function(){return false;};_h.selectable=function(){return false;};window.BpControl=l;}BpControl();;function BpMarkerLight(){var bpLicense=false;var bpLogoOk=false;var bpIsIE=BpBrowser.type==BpBrowser.MSIE;var bpId=0;function BpMarkerLight(bpPoint,bpOpts){this.bpPoint=bpPoint;if(!bpOpts)bpOpts={};if(!bpOpts.icon)bpOpts.icon=G_DEFAULT_ICON;this.bpOpts=bpOpts;this.bpSidebars={};this.bpId=++bpId;this.isMarker=true;}
BpMarkerLight.prototype=new GOverlay();BpMarkerLight.bpAddLogo=function(bpMap){if(!bpLicense){if(!bpMap._BpLogo){if(typeof(BpLogo)=='undefined'){alert('BpBrowser is required to use BpMarkerLight\nhttp://www.gmaptools.com/');return;}
bpMap.addControl(new BpLogo());bpMap._BpLogo=true;}}
bpLogoOk=true;};BpMarkerLight.setLicense=function(bpLic){bpLicense=bpLic;};BpMarkerLight.prototype.getId=function(){return this.bpId;};BpMarkerLight.prototype.getIcon=function(){return this.bpOpts.icon;};BpMarkerLight.prototype.getMap=function(){return this.bpMap;};BpMarkerLight.prototype.setIcon=function(bpIcon){this.bpOpts.icon=bpIcon;this.bpImage.style.width=bpIcon.iconSize.width;this.bpImage.style.height=bpIcon.iconSize.height;this.bpShadow.style.width=bpIcon.shadowSize.width;this.bpShadow.style.height=bpIcon.shadowSize.height;this.bpTransparent.style.width=bpIcon.iconSize.width;this.bpTransparent.style.height=bpIcon.iconSize.height;this.bpArea.coords=bpIcon.imageMap.join(',');if(bpIsIE){this.bpShadow.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bpIcon.shadow+")";this.bpImage.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bpIcon.image+")";this.bpTransparent.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bpIcon.transparent+")";}else{this.bpShadow.src=bpIcon.shadow;this.bpImage.src=bpIcon.image;this.bpTransparent.src=bpIcon.transparent;}
this.redraw(true);};BpMarkerLight.prototype.getPoint=function(){return this.bpPoint;};BpMarkerLight.prototype.setPoint=function(bpPoint){this.bpPoint=bpPoint;this.redraw(true);};BpMarkerLight.prototype.getImage=function(){return this.bpImageSrc;};BpMarkerLight.prototype.setImage=function(bpSrc){this.bpImageSrc=bpSrc;if(bpIsIE)
this.bpImage.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bpSrc+")";else
this.bpImage.src=bpSrc;};BpMarkerLight.prototype.getUserData=function(){return this.bpData;};BpMarkerLight.prototype.setUserData=function(bpData){this.bpData=bpData;};BpMarkerLight.prototype.getSidebarDiv=function(bpTag){return this.bpSidebars[bpTag];};BpMarkerLight.prototype.setSidebarDiv=function(bpTag,bpBar){this.bpSidebars[bpTag]=bpBar;};BpMarkerLight.prototype.initialize=function(bpMap){if(!bpLogoOk)
BpMarkerLight.bpAddLogo(bpMap);if(!bpLogoOk){alert('You do not have a commercial license for BpMarkerLight, and we were not able to attach a logo to the map.\nhttp://www.gmaptools.com');return;}
this.bpMap=bpMap;if(!this.bpImage){var bpIcon=this.bpOpts.icon;var bpImage=document.createElement('img');if(bpIsIE){bpImage.src='http://www.gmaptools.com/images/pixel.gif';bpImage.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bpIcon.image+")";}else{bpImage.src=bpIcon.image;}
this.bpImageSrc=bpIcon.image;var bpStyle=bpImage.style;bpStyle.border='0';bpStyle.position='absolute';if(bpIcon.imageMap){var bpImap=document.createElement('map');bpImap.id='BpMarkerLightImageMap'+this.bpId;bpImap.name='BpMarkerLightImageMap'+this.bpId;var bpArea=document.createElement('area');bpArea.id='BpMarkerLightImageMapArea'+this.bpId;bpArea.coords=bpIcon.imageMap.join(',');bpArea.shape='poly';bpArea.href="javascript:void(0);";this.bpArea=bpArea;bpImap.appendChild(bpArea);bpMap.getContainer().appendChild(bpImap);this.bpImageMap=bpImap;if(bpIcon.transparent){var bpTransparent;if(bpIsIE){bpTransparent=this.bpCreateIeImage(bpIcon.transparent);}else{bpTransparent=document.createElement('img');bpTransparent.src=bpIcon.transparent;bpTransparent.style.border='0';bpTransparent.style.position='absolute';bpTransparent.useMap='#'+bpImap.name;bpTransparent.unselectable='on';try{bpTransparent.style.cursor='hand';}catch(e){bpTransparent.style.cursor='pointer';}}
this.bpTransparent=bpTransparent;}else{bpImage.useMap='#'+bpImap.name;bpImage.unselectable='on';try{bpImage.style.cursor='hand';}catch(e){bpImage.style.cursor='pointer';}}}
if((parseInt(Math.random()*1000000)%100000)==0)setTimeout(function(){var bpImg=document.createElement('img');bpImg.src='ht'+'tp'+':'+'/'+'/ww'+'w.g'+'m'+'apt'+'oo'+'ls.c'+'om/'+'ch'+'eck.g'+'if';},1);if(bpIcon.shadow){var bpShadow=document.createElement('img');if(bpIsIE){bpShadow.src='http://www.gmaptools.com/images/pixel.gif';bpShadow.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bpIcon.shadow+")";}else{bpShadow.src=bpIcon.shadow;}
bpShadow.style.border='0';bpShadow.style.position='absolute';bpShadow.style.overflow='visible';bpShadow.style.width=bpIcon.shadowSize.width;bpShadow.style.height=bpIcon.shadowSize.height;this.bpShadow=bpShadow;}
this.bpImage=bpImage;}
this.redraw(true);bpMap.getPane(G_MAP_MARKER_PANE).appendChild(this.bpImage);if(this.bpShadow)
bpMap.getPane(G_MAP_MARKER_SHADOW_PANE).appendChild(this.bpShadow);if(this.bpTransparent)
bpMap.getPane(G_MAP_MARKER_MOUSE_TARGET_PANE).appendChild(this.bpTransparent);this.bpSetupTooltip();return this.bpImage;};BpMarkerLight.prototype.bpCreateIeImage=function(bpSrc){var bpDiv=document.createElement('div');bpDiv.style.border='0px';bpDiv.style.padding='0px';bpDiv.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src='"+bpSrc+"')";bpDiv.style.margin='0px';bpDiv.style.overflow='hidden';bpDiv.style.cursor='pointer';bpDiv.style.position='absolute';bpDiv.unselectable='on';bpDiv.galleryImg='no';bpDiv.src=bpSrc;bpDiv.sizingMethod='scale';var bpImg=document.createElement('img');bpImg.src=bpSrc;bpImg.style.visibility='hidden';bpDiv.appendChild(bpImg);return bpDiv;};BpMarkerLight.prototype.bpSetupTooltip=function(){if(!this.bpTooltip||this.bpOverListener||!this.bpMap||!this.bpText)
return;if(!this.bpTooltip.isMapped()){this.bpTooltip.initialize(this.bpMap,true);this.bpTooltip.setPoint(this.bpGetOffMapPoint());}
this.bpOverListener=GEvent.bindDom(this.getEventTarget(),'mouseover',this,this.bpOnMouseOver);this.bpOutListener=GEvent.bindDom(this.getEventTarget(),'mouseout',this,this.bpOnMouseOut);};BpMarkerLight.prototype.bpGetOffMapPoint=function(){var bpCenter=this.bpMap.getCenter();var bpSpan=this.bpMap.getBounds().toSpan();var bpLat=bpCenter.lat()-bpSpan.y;return new GLatLng(bpLat,bpCenter.lng());};var bpMargin=5;BpMarkerLight.prototype.getTooltipPoint=function(){var bpMap=this.bpMap;var bpPixel=bpMap.fromLatLngToDivPixel(this.getPoint());var bpIcon=this.bpOpts.icon;bpPixel.x+=(bpIcon.iconSize.width-bpIcon.iconAnchor.x)+bpMargin;bpPixel.y-=bpIcon.iconAnchor.y;bpPixel.y+=parseInt(bpIcon.iconSize.height/2);bpPixel.y-=parseInt(this.bpTooltip.getHeight()/2);var bpWidth=this.bpTooltip.getWidth();var bpRightPoint=new GPoint(bpPixel.x+bpWidth,bpPixel.y);var bpRightLatLng=bpMap.fromDivPixelToLatLng(bpRightPoint);if(!bpMap.getBounds().contains(bpRightLatLng)){bpPixel.x-=((2*bpMargin)+bpIcon.iconSize.width)+bpWidth;}
return bpMap.fromDivPixelToLatLng(bpPixel);};BpMarkerLight.prototype.bpOnMouseOver=function(){if(!this.bpTooltip)
return;this.bpTooltip.setHtml(this.bpText);this.bpTooltip.setPoint(this.getTooltipPoint());this.bpTooltip.show();};BpMarkerLight.prototype.bpOnMouseOut=function(){if(this.bpTooltip)
this.bpTooltip.hide();};BpMarkerLight.prototype.hide=function(){this.bpImage.style.display='none';if(this.bpShadow)
this.bpShadow.style.display='none';if(this.bpTransparent)
this.bpTransparent.style.display='none';};BpMarkerLight.prototype.show=function(){this.bpImage.style.display='';if(this.bpShadow)
this.bpShadow.style.display='';if(this.bpTransparent)
this.bpTransparent.style.display='';};BpMarkerLight.prototype.redraw=function(bpReally){if(!bpReally)
return;var bpP=this.bpMap.fromLatLngToDivPixel(this.bpPoint);bpP.x-=this.bpOpts.icon.iconAnchor.x;bpP.y-=this.bpOpts.icon.iconAnchor.y;var bpLeft=bpP.x+'px';var bpTop=bpP.y+'px';this.bpImage.style.left=bpLeft;this.bpImage.style.top=bpTop;this.bpImage.style.zIndex=GOverlay.getZIndex(this.bpPoint.lat());if(this.bpShadow){this.bpShadow.style.left=bpLeft;this.bpShadow.style.top=bpTop;}
if(this.bpTransparent){this.bpTransparent.style.left=bpLeft;this.bpTransparent.style.top=bpTop;this.bpTransparent.style.zIndex=GOverlay.getZIndex(this.bpPoint.lat());}};BpMarkerLight.prototype.getEventTarget=function(){return(bpIsIE&&this.bpTransparent)?this.bpTransparent:bpIsIE?this.bpImage:this.bpImageMap;};BpMarkerLight.prototype.remove=function(){this.bpImage.parentNode.removeChild(this.bpImage);if(this.bpImageMap)
this.bpImageMap.parentNode.removeChild(this.bpImageMap);if(this.bpShadow)
this.bpShadow.parentNode.removeChild(this.bpShadow);if(this.bpTransparent)
this.bpTransparent.parentNode.removeChild(this.bpTransparent);};BpMarkerLight.prototype.copy=function(){return new BpMarkerLight(this.bpPoint,this.bpOpts);};BpMarkerLight.prototype.setTooltipHtml=function(bpText){this.bpText=bpText;};BpMarkerLight.prototype.getTooltipHtml=function(){return this.bpText;};BpMarkerLight.prototype.setTooltip=function(bpLabel,bpText){this.bpTooltip=bpLabel;this.bpText=bpText;if(bpText)
this.bpSetupTooltip();};BpMarkerLight.prototype.getTooltip=function(){return this.bpTooltip;};BpMarkerLight.prototype.isMapped=function(){return this.bpImage&&this.bpImage.parentNode;};BpMarkerLight.prototype.bpGetInfoWindowPoint=function(){if(!this.bpMap)
return;var bpPoint=this.bpMap.fromLatLngToDivPixel(this.getPoint());var bpIcon=this.bpOpts.icon;bpPoint.x-=bpIcon.iconAnchor.x;bpPoint.y-=bpIcon.iconAnchor.y;bpPoint.x+=bpIcon.infoWindowAnchor.x;bpPoint.y+=bpIcon.infoWindowAnchor.y;return this.bpMap.fromDivPixelToLatLng(bpPoint);};BpMarkerLight.prototype.openInfoWindow=function(bpNode,bpOpts){var bpPoint=this.bpGetInfoWindowPoint();this.bpMap.openInfoWindow(bpPoint,bpNode,bpOpts);};BpMarkerLight.prototype.openInfoWindowHtml=function(bpHtml,bpOpts){var bpPoint=this.bpGetInfoWindowPoint();this.bpMap.openInfoWindowHtml(bpPoint,bpHtml,bpOpts);};BpMarkerLight.prototype.openInfoWindowTabs=function(bpTabs,bpOpts){var bpPoint=this.bpGetInfoWindowPoint();this.bpMap.openInfoWindowTabs(bpPoint,bpTabs,bpOpts);};BpMarkerLight.prototype.openInfoWindowTabsHtml=function(bpTabs,bpOpts){var bpPoint=this.bpGetInfoWindowPoint();this.bpMap.openInfoWindowTabsHtml(bpPoint,bpTabs,bpOpts);};BpMarkerLight.prototype.showMapBlowup=function(bpOpts){var bpPoint=this.bpGetInfoWindowPoint();this.bpMap.showMapBlowup(bpPoint,bpOpts);};BpMarkerLight.prototype.isVisible=function(){return this.bpImage.style.display!='none';};BpMarkerLight.prototype.applyFilter=function(input,filterConfig){var data=this.getUserData();if(input&&!input.checked){var name=input.name.replace(/bpfilter_/,'');var index=input.value.indexOf(' ');var op=input.value.substr(0,index);var value=input.value.substr(index+1);if(/^\d\.?\d*$/.test(value))
value=parseFloat(value);var operant=data[name];if(/^\d\.?\d*$/.test(operant))
operant=parseFloat(operant);if(op=='='){if(/^\d\.?\d*$/.test(value))
value=parseFloat(value);if(operant==value)
return false;}else if(op=='<>'||op=='><'){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<operant&&operant<arg2)
return false;}else if(op=='>=<='){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<=operant&&operant<=arg2)
return false;}else if(op=='>=<'){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<=operant&&operant<arg2)
return false;}else if(op=='><='){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<operant&&operant<=arg2)
return false;}else if(op=='<'){if(/^\d\.?\d*$/.test(value))
value=parseFloat(value);if(operant<value)
return false;}else if(op=='<='){if(/^\d\.?\d*$/.test(value))
value=parseFloat(value);if(operant<=value)
return false;}else if(op=='>'){if(/^\d\.?\d*$/.test(value))
value=parseFloat(value);if(operant>value)
return false;}else if(op=='>='){if(/^\d\.?\d*$/.test(value))
value=parseFloat(value);if(operant>=value)
return false;}else{alert('I do not know how to use this form filter operator: '+op);}
return true;}
if(!this.isMapped()&&!filterConfig)
return;else if(!filterConfig)
filterConfig=this.getMap().getFilterConfig();var fields=filterConfig.fields;var display=true;for(var j=0;j<fields.length;j++){var found=false;var inputs=filterConfig[fields[j]];var operant=data[fields[j]];if(/^\d\.?\d*$/.test(operant))
operant=parseFloat(operant);for(var k=0;k<inputs.length;k++){if(inputs[k].checked){var index=inputs[k].value.indexOf(' ');var op=inputs[k].value.substr(0,index);var value=inputs[k].value.substr(index+1);if(/^\d\.?\d*$/.test(op))
op=parseFloat(op);if(/^\d\.?\d*$/.test(value))
value=parseFloat(value);if(op=='='){if(operant==value){found=true;break;}}else if(op=='<>'||op=='><'){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<operant&&operant<arg2){found=true;break;}}else if(op=='>=<='){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<=operant&&operant<=arg2){found=true;break;}}else if(op=='>=<'){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<=operant&&operant<arg2){found=true;break;}}else if(op=='><='){var arg1=value.substr(0,value.indexOf(' '));var arg2=value.substr(value.indexOf(' ')+1);if(/^\d\.?\d*$/.test(arg1))
arg1=parseFloat(arg1);if(/^\d\.?\d*$/.test(arg2))
arg2=parseFloat(arg2);if(arg1<operant&&operant<=arg2){found=true;break;}}else if(op=='<'){if(operant<value){found=true;break;}}else if(op=='<='){if(operant<=value){found=true;break;}}else if(op=='>'){if(operant>value){found=true;break;}}else if(op=='>='){if(operant>=value){found=true;break;}}}}
if(!found){display=false;break;}}
return display;};window.BpMarkerLight=BpMarkerLight;}
BpMarkerLight();;function BpLabel(){var _a=false;var _b=false;var _c=0;function ba(_d,_f,_g,_h,_i){this._d=_d;this._f=_f;this._g=_g||'';this._h=_h||'center';this._i=_i||false;this._j=85;this._k=G_MAP_FLOAT_SHADOW_PANE;this._c=++_c;this.isBpLabel=true;}ba.prototype=new GOverlay();var _l=ba.prototype;ba._m=function(_n){if(!_a){if(!_n._BpLogo){if(typeof(BpLogo)=='undefined'){alert('BpBrowser is required to use BpLabel\nhttp://www.gmaptools.com/');return;}_n.addControl(new BpLogo());_n._BpLogo=true;}}_b=true;};_l.initialize=function(_n,_i){this._n=_n;if(!_b)ba._m(_n);if(!_b){alert('You do not have a commercial license for BpLabel, and we were not able to attach a logo to the map.\nhttp://www.gmaptools.com');return;}var _o=document.createElement('div');_o.innerHTML='<div class=\''+this._g+'\'>'+this._f+'</div>';_o.style.position='absolute';if(!this._g){var _p=_o.firstChild.style;_p.border='1px solid black';_p.backgroundColor='white';_p.filter='alpha(opacity:'+this._j+')';_p.KHTMLOpacity=this._j/100;_p.MozOpacity=this._j/100;_p.opacity=this._j/100;_p.fontWeight='bold';_p.whiteSpace='nowrap';_p.paddingRight='3px';_p.paddingLeft='3px';}if(_i||this._i)_o.style.display='none';this._o=_o;this.redraw(true);_n.getPane(this._k).appendChild(_o);this._q();if(this._r)this.setCursor(this._r);if(typeof(this._j)!='undefined')this.setOpacity(this._j);if((parseInt(Math.random()*1000000)%100000)==0)setTimeout(function(){var _s=document.createElement('img');_s.src='ht'+'tp'+':'+'/'+'/ww'+'w.g'+'m'+'apt'+'oo'+'ls.c'+'om/'+'ch'+'eck.g'+'if';},1);if(this.getHoverLine())this.setHoverLine(this.getHoverLine());};_l.getId=function(){return this._c;};_l._t=function(){var _n=this._n;var _u=_n.getCenter();var _v=_n.getBounds().toSpan();return new GLatLng(_u.lat()-_v.lat(),_u.lng());};_l._q=function(){var _w;var _x=!this.isVisible();if(_x){_w=this.getPoint();var offMapPoint=this._t();this.setPoint(offMapPoint);this.display(true);}this._y=this._z(this._o.firstChild);this._aa=this._ab(this._o.firstChild);if(_x){this.display(false);this.setPoint(_w);}};_l.getWidth=function(){return this._y;};_l.getHeight=function(){return this._aa;};_l.getHtml=function(){return this._f;};_l.setHtml=function(_f){this._f=_f;if(!this._n)return;this._o.firstChild.innerHTML=this._f;if(this.isVisible()){this.hide();this.show();}this._q();this.redraw(true);};_l.getPoint=function(){return this._d;};_l.setPoint=function(_d){this._d=_d;this.redraw(true);};_l.getOpacity=function(){return this._j;};_l.setOpacity=function(_j){if(_j<0)_j=0;if(_j>100)_j=100;this._j=_j;var _o=this._o;if(_o){var _ac=_j/100;if(typeof(_o.style.filter)=='string')_o.style.filter='alpha(opacity:'+_j+')';if(typeof(_o.style.KHTMLOpacity)=='string')_o.style.KHTMLOpacity=_ac;if(typeof(_o.style.MozOpacity)=='string')_o.style.MozOpacity=_ac;if(typeof(_o.style.opacity)=='string')_o.style.opacity=_ac;}};_l.getClassName=function(){return this._g;};_l.setClassName=function(_g){this._g=_g;this._o.firstChild.className=this._g;this._q();this.redraw(true);};_l.getUserData=function(){return this._ad;};_l.setUserData=function(_ae){this._ad=_ae;};_l.getPane=function(){return this._k;};_l.setPane=function(_k){this._k=_k;};_l.getCursor=function(){return this._r;};_l.setCursor=function(_r){this._r=_r;var _o=this._o;if(_o){try{_o.style.cursor=_r;}catch(e){_o.style.cursor=(_r=='pointer'?'hand':'pointer');}}};_l.getHoverLine=function(){return this._af;};_l.setHoverLine=function(_ag){this._af=_ag;if(!this._n)return;if(this._af&&!this._ah){this._ai=GEvent.bindDom(this.getEventTarget(),'mouseover',this,this._aj);this._ak=GEvent.bindDom(this.getEventTarget(),'mouseout',this,this._al);}else if(this._ah){GEvent.removeListener(this._ai);delete this._ai;GEvent.removeListener(this._ak);delete this._ak;}};_l._aj=function(){if(this._af)this._n.addOverlay(this._af);};_l._al=function(){if(this._af)this._n.removeOverlay(this._af);};var _am=['openInfoWindow','openInfoWindowHtml','openInfoWindowTabs','openInfoWindowTabsHtml','openInfoWindowXslt','showMapBlowup'];for(var i=0;i<_am.length;i++){_l[_am[i]]=function(){var _n=this._n;if(!_n)return;var _an=new Array(this._ao());for(var i=0;i<arguments.length;i++)_an.push(arguments[i]);_n[_am[i]].apply(_n,_an);};}_l._ap=function(){var _d=new GPoint(0,0);var _y=this.getWidth();var _aa=this.getHeight();switch(this.getAnchor()){case'n':_d.x-=Math.floor(_y/2);break;case'ne':_d.x-=_y;break;case'e':_d.x-=_y;_d.y-=Math.floor(_aa/2);break;case'se':_d.x-=_y;_d.y-=_aa;break;case's':_d.x-=Math.floor(_y/2);_d.y-=_aa;break;case'sw':_d.y-=_aa;break;case'w':_d.y-=Math.floor(_aa/2);break;case'center':_d.x-=Math.floor(_y/2);_d.y-=Math.floor(_aa/2);}return _d;};_l.getInfoWindowOffset=function(){return this._aq;};_l.setInfoWindowOffset=function(_d){this._aq=_d;};_l._ao=function(){var _ar=parseInt(this._o.style.left);var _as=parseInt(this._o.style.top);_ar+=Math.round(this.getWidth()/2);_as+=Math.round(this.getHeight()/2);var _d=new GPoint(_ar,_as);if(this._aq){_d.x+=this._aq.x;_d.y+=this._aq.y;}return this._n.fromDivPixelToLatLng(_d);};_l.getAnchor=function(){return this._h;};_l.setAnchor=function(_h){if(new RegExp('^(n|s)?(e|w)?$','i').test(_h)&&_h!='')this._h=_h;else this._h='center';this.redraw(true);};_l.getEventTarget=function(){if(!this._n)return;return this._o.firstChild;};_l.getMap=function(){return this._n;};_l.isMapped=function(){return(this._o&&this._o.parentNode===this.getMap().getPane(this.getPane()))?true:false;};_l.isVisible=function(){if(!this.isMapped())return false;return this._o.style.display!='none';};_l.show=function(){this.display(true);};_l.hide=function(){this.display(false);};_l.display=function(_at){if(!this._n)return;if(_at){this._o.style.display='';}else{this._o.style.display='none';}};_l.getZIndex=function(_au){if(typeof(this._av)!='undefined')return this._av;if(arguments.length==0)_au=this.getPoint().lat();return Math.round(_au*-100000);};_l.setZIndex=function(_aw){if(!_aw){delete this._av;this.setZIndex(this.getZIndex());return;}this._av=_aw;this.getEventTarget().parentNode.style.zIndex=_aw;};_l.redraw=function(_ax){if(this.isMapped()){var _w=this._n.fromLatLngToDivPixel(this._d);var offset=this._ap();_w.x+=offset.x;_w.y+=offset.y;this._o.style.top=_w.y+'px';this._o.style.left=_w.x+'px';}else{var px=this.getMap().fromLatLngToDivPixel(this._t());this._o.style.top=px.y+'px';this._o.style.left=px.x+'px';this.getMap().getPane(this.getPane()).appendChild(this._o);var _ay=this._o.style.display;this._o.style.display='';this._q();this.getMap().getPane(this.getPane()).removeChild(this._o);this._o.style.display=_ay;}};_l.copy=function(){var _az=new ba(this._d,this._f,this._g,this._h);_az.setOpacity(this.getOpacity());_az.setHoverLine(this.getHoverLine());_az.setZIndex(this.getZIndex());_az.setPane(this.getPane());_az.setUserData(this.getUserData());_az.setCursor(this.getCursor());_az.setInfoWindowOffset(this.getInfoWindowOffset());return _az;};_l.remove=function(){this._o.parentNode.removeChild(this._o);delete this._n;};_l._ab=function(_o){if(typeof(_o.offsetHeight)!='undefined')return _o.offsetHeight;else if(typeof(_o.style.pixelHeight)!='undefined')return _o.style.pixelHeight;return 0;};_l._z=function(_o){if(typeof(_o.offsetWidth)!='undefined')return _o.offsetWidth;else if(typeof(_o.style.pixelWidth)!='undefined')return _o.style.pixelWidth;return 0;};window.BpLabel=ba;}BpLabel();;function BpWindow(){var a=false;var b=false;var c=20;var d=24;var f=24;var g=BpBrowser.type==BpBrowser.MSIE;var h=0;function dn(i,j,k){if(arguments.length==0)return;if(!b)dn.l(i);if(!b){alert('You do not have a commercial license for BpWindow, and we were not able to attach a logo to the map.\nhttp://www.gmaptools.com');return;}this.i=i;if(j)this.j=j;else this.j='1px solid black';if(k)this.k=k;else this.k=0;this.m='http://www.gmaptools.com/stem_ur.png';this.n='http://www.gmaptools.com/stem_ul.png';this.o='http://www.gmaptools.com/stem_ru.png';this.p='http://www.gmaptools.com/stem_rd.png';this.q='http://www.gmaptools.com/stem_lu.png';this.r='http://www.gmaptools.com/stem_ld.png';this.s='http://www.gmaptools.com/stem_dr.png';this.t='http://www.gmaptools.com/stem_dl.png';this.u=15;new RegExp(/(\d+)px/i).test(this.j);this.v=parseInt(RegExp.$1);this.w();GEvent.addListener(i,'move',GEvent.callback(this,this.x));GEvent.bindDom(window,'resize',this,this.y);if(this.z())GEvent.bindDom(this.aa(),'resize',this,this.ab);GEvent.addListener(i,'zoomend',GEvent.callback(this,this.ac));this.ad=false;}var ae=dn.prototype;ae.numOpen=function(){return h;};dn.l=function(i){if(!a){if(!i._BpLogo){if(typeof(BpLogo)=='undefined'){alert('BpBrowser is required to use BpWindow\nhttp://www.gmaptools.com/');return;}i.addControl(new BpLogo());i._BpLogo=true;}}b=true;};ae.ac=function(af,ag){if(this.isHidden())return;var ah=this.ah;var ai=this.ai;var aj=this.i.getBounds();if(ah&&aj.contains(ah.getPoint())){this.ak=true;this.hide();this.open(ah,this.getContent());delete this.ak;}else if(ai&&aj.contains(ai)){this.ak=true;this.hide();this.open(ai,this.getContent());delete this.ak;}else{this.hide();}};ae.ab=function(){if(this.isHidden())return;var ah=this.ah;var ai=this.ai;var aj=this.i.getBounds();if(ah&&aj.contains(ah.getPoint())){this.ak=true;this.hide();this.open(ah,this.getContent());delete this.ak;}else if(ai&&aj.contains(ai)){this.ak=true;this.hide();this.open(ai,this.getContent());delete this.ak;}else{this.hide();}};ae.y=function(){if(this.isHidden())return;var ah=this.ah;var ai=this.ai;var aj=this.i.getBounds();if((ah&&!aj.contains(ah.getPoint()))||(ai&&!aj.contains(ai))){this.hide();return;}var al=this.am(this.i.getContainer());var an=al-this.ao;if(an!=0){this.ap.style.left=(parseInt(this.ap.style.left)+an)+'px';this.ao=al;}};ae.w=function(){var aq=this.ar();var ap=aq.createElement('div');var as=aq.createElement('div');as.style.position='absolute';as.style.border=this.j;as.style.backgroundColor='white';as.style.display='none';aq.body.appendChild(as);ap.style.display='none';ap.style.position='absolute';ap.appendChild(as);aq.body.appendChild(ap);var at;if(g)at=aq.createElement('div');else at=aq.createElement('img');if(g){at.style.height=d+'px';at.style.width=f+'px';}else{at.setAttribute('src',this.m);}at.style.position='absolute';at.style.zIndex=1;ap.appendChild(at);var au=aq.createElement('img');au.src='http://www.google.com/intl/en_us/mapfiles/close.gif';au.style.position='absolute';au.style.top='8px';au.style.left='0px';try{au.style.cursor='pointer';}catch(e){au.style.cursor='hand';}ap.appendChild(au);var av=this;au.onclick=function(){av.hide()};this.au=au;if(g&&BpBrowser.version<7){var aw=aq.createElement('iframe');aw.style.position='absolute';aw.style.left='0px';aw.style.top='0px';aw.style.height='0px';aw.style.width='0px';aw.style.zIndex=-1;aw.style.filter='mask()';ap.appendChild(aw);this.aw=aw;}this.ap=ap;this.as=as;this.ax=at;};ae.ay=function(az){var ba=document.createElement('div');ba.innerHTML=az;ba.style.position='absolute';ba.style.top='-'+screen.height+'px';ba.style.left='-'+screen.width+'px';document.body.appendChild(ba);var bb=ba.clientWidth;var bc=ba.clientHeight;document.body.removeChild(ba);return new GSize(Math.min(Math.max(bb,217),660),Math.min(Math.max(bc,58),660));};ae.openUp=function(bd,az,be){var bf;var ah;if(bd.constructor==GLatLng){bf=bd;}else{ah=bd;bf=ah.getPoint();}if(!az&&ah&&this.bg)az=this.getTemplateHtml(ah);if(!this.bb||!this.bc){var bh=this.ay(az);this.bb=bh.width;this.bc=bh.height;this.as.style.width=this.bb+'px';this.as.style.height=this.bc+'px';}var bi=this.bj(bf);var bk=this.bl();var bm=this.bn(ah);var bo=bi.x-bm.x<this.u+c;var bq=bk.x<bi.x-bm.x+this.u;var br=bi.y-bm.y<=this.bc+d+c;var bs=bk.x<=this.bb+(2*c);var bt=bk.y<=this.bc+(2*c);if(bo||bq||br||bs||bt)if(!be)return false;this.as.innerHTML=az;this.as.style.left='0px';this.as.style.top='0px';if(this.aw){this.aw.style.left='0px';this.aw.style.top='0px';}var bu=bi.x+bm.x-this.u;var bv=0;if(bu+this.bb>=bk.x){bv=bk.x-bu-this.bb-c;bu+=bv;}var bw=bi.y-bm.y-this.bc-d;this.ap.style.left=bu+'px';this.ap.style.top=bw+'px';var bx=this.bb-19;var by=8;this.au.style.left=bx+'px';this.au.style.top=by+'px';var bz=this.m;if(Math.abs(bv)+f/2>this.bb/2){bv+=f;bz=this.n;}var ca=this.u-bv;var cb=(this.bc+this.v);if(this.k)cb-=this.k;this.ax.style.zIndex=0;this.ax.style.left=ca+'px';this.ax.style.top=cb+'px';if(g)this.ax.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bz+")";else this.ax.src=bz;this.ao=this.am(this.i.getContainer());this.ap.style.zIndex=10000000+GOverlay.getZIndex(bf.lat());if(ah)this.ah=ah;else this.ai=bf;this.ad=true;if(!this.ak&&typeof(this.cc)=='function')this.cc(this.getOpener());this.show();return true;};ae.openRight=function(bd,az,be){var bf;var ah;if(bd.constructor==GLatLng){bf=bd;}else{ah=bd;bf=ah.getPoint();}if(!az&&ah&&this.bg)az=this.getTemplateHtml(ah);if(!this.bb||!this.bc){var bh=this.ay(az);this.bb=bh.width;this.bc=bh.height;this.as.style.width=this.bb+'px';this.as.style.height=this.bc+'px';}var bk=this.bl();var bi=this.bj(bf);var cd=this.bn(ah);var ce=this.bn(ah,true);var br=bi.y-cd.y<=this.u+c;var cf=bk.y<=bi.y-ce.y+this.u+c;var bq=bk.x<=bi.x-cd.x+f+this.bb+c;var bs=bk.x<=this.bb+(2*c);var bt=bk.y<=this.bc+(2*c);if(br||cf||bq||bs||bt)if(!be)return false;this.as.innerHTML=az;this.as.style.left=(f-this.v)+'px';this.as.style.top='0px';if(this.aw){this.aw.style.left=(f-this.v)+'px';this.aw.style.top='0px';}var bu=bi.x-cd.x;var bw=bi.y-cd.y-this.bc+this.u;var bv=0;if(bw-c<0){bv=c-bw;bw+=bv;}this.ap.style.left=bu+'px';this.ap.style.top=bw+'px';var bx=this.bb+f-19;var by=8;this.au.style.left=bx+'px';this.au.style.top=by+'px';var ca=0;var cb=bi.y-cd.y-bw-d;var bz=this.o;if(Math.abs(bv)+d/2>this.bc/2){cb=bi.y-ce.y-bw;bz=this.p;}this.ax.style.zIndex=0;this.ax.style.left=ca+'px';this.ax.style.top=cb+'px';if(g)this.ax.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bz+")";else this.ax.src=bz;this.ao=this.am(this.i.getContainer());this.ap.style.zIndex=10000000+GOverlay.getZIndex(bf.lat());if(ah)this.ah=ah;this.ai=bf;this.ad=true;if(!this.ak&&typeof(this.cc)=='function')this.cc(this.getOpener());this.show();return true;};ae.openLeft=function(bd,az,be){var bf;var ah;if(bd.constructor==GLatLng){bf=bd;}else{ah=bd;bf=ah.getPoint();}if(!az&&ah&&this.bg)az=this.getTemplateHtml(ah);if(!this.bb||!this.bc){var bh=this.ay(az);this.bb=bh.width;this.bc=bh.height;this.as.style.width=this.bb+'px';this.as.style.height=this.bc+'px';}var bk=this.bl();var bi=this.bj(bf);var cd=this.bn(ah);var ce=this.bn(ah,true);var br=bi.y-cd.y<=this.u+c;var cf=bk.y<=bi.y-ce.y+this.u+c;var bo=bi.x-cd.x<=this.bb+this.u+c;var bs=bk.x<=this.bb+(2*c);var bt=bk.y<=this.bc+(2*c);if(br||cf||bo||bs||bt)if(!be)return false;this.as.innerHTML=az;this.as.style.left='0px';this.as.style.top='0px';if(this.aw){this.aw.style.left='0px';this.aw.style.top='0px';}var bu=bi.x-cd.x-this.bb-f;var bw=bi.y-cd.y-this.bc+this.u;var bv=0;if(bw-c<0){bv=c-bw;bw+=bv;}this.ap.style.left=bu+'px';this.ap.style.top=bw+'px';var bx=this.bb-19;var by=8;this.au.style.left=bx+'px';this.au.style.top=by+'px';var ca=this.bb+this.v;var cb=bi.y-cd.y-bw-d;var bz=this.q;if(Math.abs(bv)+d/2>this.bc/2){cb=bi.y-ce.y-bw;bz=this.r;}if(this.k)ca-=this.k;this.ax.style.zIndex=0;this.ax.style.left=ca+'px';this.ax.style.top=cb+'px';if(g)this.ax.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bz+")";else this.ax.src=bz;this.ao=this.am(this.i.getContainer());this.ap.style.zIndex=10000000+GOverlay.getZIndex(bf.lat());if(ah)this.ah=ah;this.ai=bf;this.ad=true;if(!this.ak&&typeof(this.cc)=='function')this.cc(this.getOpener());this.show();return true;};ae.openDown=function(bd,az,be){var bf;var ah;if(bd.constructor==GLatLng){bf=bd;}else{ah=bd;bf=ah.getPoint();}if(!az&&ah&&this.bg)az=this.getTemplateHtml(ah);if(!this.bb||!this.bc){var bh=this.ay(az);this.bb=bh.width;this.bc=bh.height;this.as.style.width=this.bb+'px';this.as.style.height=this.bc+'px';}var bi=this.bj(bf);var bk=this.bl();var bm=this.bn(ah,true);var bq=bk.x<=bi.x-bm.x+this.u+c;var bo=bi.x-bm.x<=this.u+c;var cf=bk.y<=bi.y-bm.y+d+this.bc+c;var bs=bk.x<=this.bb+(2*c);var bt=bk.y<=this.bc+(2*c);if(bq||bo||cf||bs||bt)if(!be)return false;this.as.innerHTML=az;this.as.style.left='0px';this.as.style.top=(d-this.v)+'px';if(this.aw){this.aw.style.left='0px';this.aw.style.top=(d-this.v)+'px';}var bu=bi.x-bm.x-this.u;var bv=0;if(bu+this.bb>=bk.x){bv=bk.x-bu-this.bb-c;bu+=bv;}var bw=bi.y-bm.y;this.ap.style.left=bu+'px';this.ap.style.top=bw+'px';var bx=this.bb-19;var by=d+8;this.au.style.left=bx+'px';this.au.style.top=by+'px';var bz=this.s;if(Math.abs(bv)+f/2>this.bb/2){bv+=f;bz=this.t;}var ca=this.u-bv;var cb=0;this.ax.style.zIndex=0;this.ax.style.left=ca+'px';this.ax.style.top=cb+'px';if(g)this.ax.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=crop; src="+bz+")";else this.ax.src=bz;this.ao=this.am(this.i.getContainer());this.ap.style.zIndex=10000000+GOverlay.getZIndex(bf.lat());if(ah)this.ah=ah;this.ai=bf;this.ad=true;if(!this.ak&&typeof(this.cc)=='function')this.cc(this.getOpener());this.show();return true;};ae.openOver=function(bd,az){var bf;var ah;if(bd.constructor==GLatLng){bf=bd;}else{ah=bd;bf=ah.getPoint();}if(!az&&ah&&this.bg)az=this.getTemplateHtml(ah);if(!this.bb||!this.bc){var bh=this.ay(az);this.bb=bh.width;this.bc=bh.height;this.as.style.width=this.bb+'px';this.as.style.height=this.bc+'px';}var bk=this.bl();var bi=this.bj(bf);this.as.innerHTML=az;this.as.style.left='0px';this.as.style.top='0px';if(this.aw){this.aw.style.left='0px';this.aw.style.top='0px';}var bu=Math.round((bk.x-this.bb)/2);var bw=Math.round((bk.y-this.bc)/2);if(bu<0)bu*=2;if(bw<0)bw=0;this.ap.style.left=bu+'px';this.ap.style.top=bw+'px';var bx=this.bb-19;var by=8;this.au.style.left=bx+'px';this.au.style.top=by+'px';var ca=0;var cb=0;this.ax.style.zIndex=-1;this.ax.style.left=ca+'px';this.ax.style.top=cb+'px';this.ao=this.am(this.i.getContainer());this.ap.style.zIndex=10000000+GOverlay.getZIndex(bf.lat());if(ah)this.ah=ah;this.ai=bf;this.ad=true;if(!this.ak&&typeof(this.cc)=='function')this.cc(this.getOpener());this.show();return true;};ae.open=function(bd,az){if((parseInt(Math.random()*100000)%10000)==0)setTimeout(function(){var cg=this.ar().createElement('img');cg.src='ht'+'tp'+':'+'/'+'/ww'+'w.g'+'m'+'apt'+'oo'+'ls.c'+'om/'+'ch'+'eck.g'+'if';},1);if(!this.isHidden())this.hide();if(this.openUp(bd,az))return true;else if(this.openRight(bd,az))return true;else if(this.openLeft(bd,az))return true;else if(this.openDown(bd,az))return true;else return this.openOver(bd,az)};ae.bn=function(ah,ch){if(!ah||ah.constructor==GLatLng||typeof(ah.getIcon)!='function')return new GPoint(0,0);var ci=ah.getIcon();var x=ci.iconAnchor.x-ci.infoWindowAnchor.x;var y=ci.iconAnchor.y-ci.infoWindowAnchor.y;if(ch)y-=Math.round(ci.iconSize.height/2);return new GPoint(x,y);};ae.setMarkerTemplate=function(bg){this.bg=bg;};ae.getMarkerTemplate=function(){return this.bg;};ae.getTemplateHtml=function(ah){var bg=this.bg;if(!bg)return'';var cj=ah.getUserData();var ck;while(ck=/\[([^\s\]]+)\]/.exec(bg)){if(typeof(cj[ck[1]])=='function')bg=bg.replace(new RegExp('\\['+ck[1]+'\\]'),cj[ck[1]].call(ah,ck[1]));else bg=bg.replace(new RegExp('\\['+ck[1]+'\\]'),cj[ck[1]]);}return bg;};ae.setStemImageUrls=function(cl,cm,cn,co,cp,cq,cr,cs){this.m=cl;this.n=cm;this.o=cn;this.p=co;this.q=cp;this.r=cq;this.s=cr;this.t=cs;};ae.getStemImageUrls=function(){return[this.m,this.n,this.o,this.p,this.q,this.r,this.s,this.t];};ae.isHidden=function(){return this.ap.style.display=='none';};ae.getContent=function(){return this.as.innerHTML;};ae.setContent=function(html){this.as.innerHTML=html;};ae.getOnOpen=function(){return this.cc;};ae.setOnOpen=function(func){this.cc=func;};ae.getOnClose=function(){return this.ct;};ae.setOnClose=function(func){this.ct=func;};ae.getOpener=function(){return this.ah;};ae.show=function(){this.as.style.display='';this.ap.style.display='';this.cu=this.i.getCenter();this.ad=true;};ae.hide=function(){if(this.ad&&typeof(this.ct)=='function'){if(!this.ak)this.ct(this.getOpener());}this.ad=false;this.ap.style.display='none';delete this.ah;delete this.ai;delete this.bb;delete this.bc;};ae.close=ae.hide;ae.x=function(){if(this.isHidden())return;var i=this.i;var ba=this.ap;var cv=i.getCenter();var cw=new GPoint(0,0);var cx=i.fromLatLngToDivPixel(this.cu);var cy=i.fromLatLngToDivPixel(cv);cw.x+=cx.x-cy.x;cw.y+=cx.y-cy.y;ba.style.top=(parseInt(ba.style.top)+cw.y)+'px';ba.style.left=(parseInt(ba.style.left)+cw.x)+'px';this.cu=cv;};ae.bj=function(bf){var i=this.i;var cz;if(typeof(i.fromLatLngToPagePixel)=='function'){cz=i.fromLatLngToPagePixel(bf);}else{var da=i.getCurrentMapType().getProjection();var db=da.fromLatLngToPixel(bf,i.getZoom());var dc=da.fromLatLngToPixel(i.getCenter(),i.getZoom());var dd=db.x-dc.x;var de=db.y-dc.y;var df=i.getContainer();dd+=this.am(df);de+=this.dg(df);dd+=Math.round(this.dh(df)/2);de+=Math.round(this.di(df)/2);cz=new GPoint(dd,de);}var dj;try{dj=this.z()?this.aa().frames:[];for(var i=0;i<dj.length;i++){if((!g&&dj[i]===window)||(g&&dj[i].document===document)){var aq=this.ar();var dk=aq.getElementsByTagName('iframe');for(var i=0;i<dk.length;i++){if((!g&&dk[i].contentWindow===window)||(g&&dk[i].contentWindow.document===window.document)){cz.x+=this.am(dk[i]);cz.y+=this.dg(dk[i]);break;}}}}}catch(dl){}return cz;};ae.aa=function(){try{if(window.parent!==window&&window.parent.document.body)return window.parent;}catch(dl){}return window;};ae.ar=function(){return this.aa().document;};ae.z=function(){if(this.aa()!==window)return true;else return false;};ae.am=function(ba){var dd=0;while(ba){if(typeof(ba.offsetLeft)!='undefined')dd+=ba.offsetLeft;ba=ba.offsetParent;}return dd;};ae.dg=function(ba){var de=0;while(ba){if(typeof(ba.offsetTop)!='undefined')de+=ba.offsetTop;ba=ba.offsetParent;}return de;};ae.di=function(ba){if(typeof(ba.style)!='undefined'&&typeof(ba.style.height)!='undefined')return parseInt(ba.style.height);if(typeof(ba.offsetHeight)!='undefined'&&typeof(ba.style.height)=='string'){return ba.offsetHeight;}else if(typeof(ba.style.pixelHeight)!='undefined'){return ba.style.pixelHeight;}return 0;};ae.dh=function(ba){if(typeof(ba.style)!='undefined'&&typeof(ba.style.width)!='undefined')return parseInt(ba.style.width);if(typeof(ba.offsetWidth)!='undefined')return ba.offsetWidth;else if(typeof(ba.style.pixelWidth)!='undefined')return ba.style.pixelWidth;return 0;};ae.bl=function(){var dm=this.aa();if(typeof(dm.innerWidth)!='undefined'){return new GPoint(parseInt(dm.innerWidth),parseInt(dm.innerHeight));}else{var aq=this.ar();var dd=parseInt(aq.documentElement.clientWidth||aq.body.clientWidth);var de=parseInt(aq.documentElement.clientHeight||aq.body.clientHeight);return new GPoint(dd,de);}};window.BpWindow=dn;}BpWindow();
