function L(a){window.console&&window.console.log&&window.console.log(a)}
function makeWindow(a,b,e,i,f,g,j,d){var c='<img class="list-photo" src="'+i+'" alt="'+a+'"><h3><a href="'+b+'">'+a+'</a></h3><p class="meta"><a href="/'+f+'/" class="nobg"><img src="/static/img/flags/'+f+'.gif"></a> '+e+'</p><p class="meta"><a href="#" onclick="zoomOn('+g+", "+j+'); return false;">Zoom to point</a></p>';if(d&&d.length){c+="<p><strong>"+(d.length==1)?"Club:":"Clubs:";c+="</strong> ";$.each(d,function(k,h){c+='<a href="'+h.url+'">'+h.name+"</a><br/>"});c+="</p>"}return c}
function makeWindow2(a){L("making a window");return"<strong>"+a+"</strong>"}function makePhotoWindow(a,b,e,i,f,g,j,d,c){a='<a href="'+b+'"><img class="list-photo" src="'+f+'" alt="'+a+'"></a><p><strong>Uploaded by<br/><a href="'+e+'">'+a+'</a></strong></p><p class="meta"><a href="/'+g+'/" class="nobg"><img src="/static/img/flags/'+g+'.gif"></a> '+i+'</p><p class="meta"><a href="#" onclick="zoomOn('+j+", "+d+'); return false;">Zoom to point</a></p>';if(c)a+="<p><em>"+c+"</em></p>";return a}
function zoomOn(a,b){gmap.setCenter(new google.maps.LatLng(a,b),10)}function hideNearbyPeople(a){a.clearOverlays()}
function showNearbyPeople(a){typeof nearby_people!="undefined"&&$.each(nearby_people,function(){var b=this[MAP_KEYS.latitude],e=this[MAP_KEYS.longitude],i=this[MAP_KEYS.fullname],f=this[MAP_KEYS.user_url],g=this[MAP_KEYS.location_description],j=this[MAP_KEYS.photo_thumbnail_url],d=this[MAP_KEYS.country_iso_code],c=this[MAP_KEYS.clubs],k=new google.maps.LatLng(b,e),h=new google.maps.Marker(k,getMarkerOpts());a.addOverlay(h);google.maps.Event.addListener(h,"click",function(){try{var l=makeWindow(i,
f,g,j,d,b,e,c)}catch(m){alert(m)}h.openInfoWindow(l)})})}function getMarkerOpts(){var a=new google.maps.Icon(google.maps.DEFAULT_ICON);a.image="/img/reddot.png";a.iconSize=new google.maps.Size(30,30);a.shadowSize=new google.maps.Size(0,0);a.iconAnchor=new google.maps.Point(18,20);a.infoWindowAnchor=new google.maps.Point(16,0);return markerOpts={icon:a}}
function getMarkerOptsThumbnail(a){var b=new google.maps.Icon(google.maps.DEFAULT_ICON);b.image=a;b.iconSize=new google.maps.Size(32,32);b.shadowSize=new google.maps.Size(56,32);b.iconAnchor=new google.maps.Point(16,32);b.infoWindowAnchor=new google.maps.Point(16,0);return markerOpts={icon:b}}$(function(){typeof CACHE_CONTROL!="undefined"&&CACHE_CONTROL&&$("#nav").load("/_nav.html")});
