var windowHtmlTemplate="{0}{1}
Montagraphs
Templates
Favorites
Contacts
Comments
";function getNeighbourList(B,A){if(A==""&&google.loader.ClientLocation!=null){A=google.loader.ClientLocation.address.country_code}var C=null;requestComplexService=MontageService.GetNeighbourList(C,A,OnCompleteNeighbour,OnError,B);return false}function OnCompleteNeighbour(M,H,L){var J=H;var D=M;var I;var A;if(google.loader.ClientLocation!=null){I=google.loader.ClientLocation.latitude;A=google.loader.ClientLocation.longitude}var B=new google.maps.Map2(document.getElementById("map"));B.addControl(new GSmallMapControl());if(D==null){return false}for(var G=0;G0){B.setCenter(new google.maps.LatLng(D[0].Latitude,D[0].Longitude),13)}B.setZoom(6)}function createMarker(B,E,A){var H=A.UserName;var G=fillUserDetail(A);var F=new GIcon(G_DEFAULT_ICON);F.shadow="http://www.google.com/mapfiles/shadow50.png";F.iconSize=new GSize(20,34);F.shadowSize=new GSize(37,34);F.iconAnchor=new GPoint(9,34);F.infoWindowAnchor=new GPoint(9,2);var D=new GIcon(F);D.image="http://www.google.com/mapfiles/marker.png";markerOptions={icon:D};var C=new GMarker(B,markerOptions);GEvent.addListener(C,"click",function(){var I=String.format(windowHtmlTemplate,H,G);C.openInfoWindowHtml(I)});return C}function fillUserDetail(A){var D=", ";var E=A.City;var C=A.Gender;var B=A.Age;if(B>0){D+=B+", "}if(C==0){D+="Male, "}if(C==1){D+="Female, "}if(E!=null&&E!=""){D+=E+", "}if(D.length>=2){D=D.substr(0,D.length-2)}return D}function getCommunityInfo(A){requestComplexService=MontageService.GetCommunityInfo(null,OnCompleteCommunityInfo,OnError,A);return false}function OnCompleteCommunityInfo(A,D,C){var B=A;drawVisualization(B)}function drawVisualization(countries){var data=new google.visualization.DataTable();data.addRows(countries.length);data.addColumn("string","Country");data.addColumn("number","Member Count");for(var i=0;i