if(typeof String.prototype.escapeHTML=="undefined")String.prototype.escapeHTML=function(){var d=document.createElement("div"),f=document.createTextNode(this);d.appendChild(f);return d.innerHTML};
if(typeof Maps=="undefined")var Maps=function(){var d={};d.Google=function(a,b,e,c,g,h,i){this.title=a;this.cityName=b;this.cityZip=e;this.addressOverride=false;this.style=c||null;this.width=g||null;this.height=h||null;this.zoomLevel=i||14};d.Google.initialize=function(){};d.Google.prototype.load=function(){if(GBrowserIsCompatible()){var a,b,e,c;a=document.getElementById(this.generateMapId());b=new GMap2(a);e=new GClientGeocoder;addressLookup=this.addressOverride?this.addressOverride:this.cityName+
" "+this.cityZip;e.getLatLng(addressLookup,function(g){if(g){b.setCenter(g,this.zoomLevel);b.addControl(new GSmallMapControl);b.addControl(new GMapTypeControl);c=new GMarker(b.getCenter());b.addOverlay(c);c.openInfoWindowHtml(this.getTooltipHtml())}else alert("Maps: "+addressLookup+" not found")}.bind(this));a.style.backgroundImage=""}};d.Google.prototype.generateMapId=function(a){a=a||"-";return"map"+a+this.cityZip.replace(/[^a-z0-9_-]+/i,a).toUpperCase()};d.Google.prototype.getHtml=function(){var a,
b,e,c={background:"#efefef url(/ajax/images/ajax-loader.gif) no-repeat 50% 50%",border:"1px solid #ccc",clear:"right","float":"right",margin:"10px 0 10px 10px","text-align":"center"};a=[];if(this.style===null)for(b in c)a[a.length]=b+": "+c[b];else{for(b in c)if(this.style.indexOf(b+":")<0&&this.style.indexOf(b+"-")<0)a[a.length]=b+": "+c[b];a[a.length]=this.style}a=a.join("; ");b=this.width||"256px";e=this.height||"256px";if(typeof b=="number")b=b.toString()+"px";if(typeof e=="number")e=e.toString()+
"px";c=this.generateMapId();a=a.escapeHTML()+"; width: "+b.escapeHTML()+"; height: "+e.escapeHTML()+";";return'<div id="'+c+'" style="'+a.escapeHTML()+'"></div>'};d.Google.prototype.getTooltipHtml=function(){var a,b,e,c;a=this.cityZip+", UK";b=this.cityName+" "+this.cityZip;e="http://maps.google.com/maps?f=d&hl=en&saddr="+encodeURIComponent(a)+"&daddr=&ie=UTF8&z=14";c="http://maps.google.com/maps?f=d&hl=en&saddr=&daddr="+encodeURIComponent(a)+"&ie=UTF8&z=14";a="";a+='<span style="font-size: 80%; font-family: tahoma, verdana, arial, serif;">';
a+="<strong>"+this.title.escapeHTML()+"</strong><br />";a+=b.escapeHTML()+"<br /><br />";a+='<a href="'+e.escapeHTML()+"\" onclick=\"window.open(this.href, '', 'width="+(screen.width-120)+",height="+(screen.height-180)+",top="+(screen.height-(screen.height-180))/2+",left="+(screen.width-(screen.width-120))/2+",resizable=1'); return false;\"><strong>&laquo;&nbsp;Drive&nbsp;from&nbsp;here</strong></a>";a+="&nbsp;|&nbsp;";a+='<a href="'+c.escapeHTML()+"\" onclick=\"window.open(this.href, '', 'width="+
(screen.width-120)+",height="+(screen.height-180)+",top="+(screen.height-(screen.height-180))/2+",left="+(screen.width-(screen.width-120))/2+",resizable=1'); return false;\"><strong>Drive&nbsp;to&nbsp;here&nbsp;&raquo;</strong></a>";a+="</span>";return a};for(var f in d)d[f]!==null&&typeof d[f].initialize=="function"&&d[f].initialize();return d}();

