function addMapResult(locations,locationIndex,mapIndex,resultIndex,lat,lon,name,st,ci,pv,pc){var iconSpec=createIconSpecification("/images/dart.png",'<div id="'+mapIndex+'" class="pushpin"><span class="text">'+mapIndex+"</span></div>");iconSpec.TextContent=resultIndex;locations[locationIndex]=new Array();locations[locationIndex][0]=lat;locations[locationIndex][1]=lon;locations[locationIndex][2]='<a href="javascript:getListingLink('+resultIndex+');" name="&amp;lid=website&amp;lpos=results_map" style="font-weight: bold;">'+name+"</a>";locations[locationIndex][3]=st;locations[locationIndex][4]=ci;locations[locationIndex][5]=pv;locations[locationIndex][6]=pc;locations[locationIndex][7]="";locations[locationIndex][8]=iconSpec}function addMapLandmark(locations,lat,lon,name){var iconSpec=createIconSpecification("/images/bluePushpin.gif",'<div id="0" class="pushpinLandmark"></div>');locations[0]=new Array();locations[0][0]=lat;locations[0][1]=lon;locations[0][2]=name;locations[0][3]="";locations[0][4]="";locations[0][5]="";locations[0][6]="";locations[0][7]="";locations[0][8]=iconSpec}function createIconSpecification(imgFile,customHtml){var iconSpec=new VECustomIconSpecification();iconSpec.BackColor=new VEColor(0,0,0,0);iconSpec.Image=(null!=imgFile)?imgFile:"/images/dart.png";iconSpec.ImageOffset=new VEPixel(0,0);iconSpec.TextOffset=new VEPixel(10,5);iconSpec.ForeColor=new VEColor(0,0,0,1);iconSpec.CustomHTML=(null!=customHtml)?customHtml:'<div id="1" class="pushpin"></div>';iconSpec.TextContent="";return iconSpec}function createPin(mapIndex){return createIconSpecification("/images/dart.png",'<div id="'+mapIndex+'" class="pushpin"></div>')}function createLmPin(mapIndex){return createIconSpecification("/images/bluePushpin.gif",'<div id="'+mapIndex+'" class="pushpinLandmark"></div>')}function createMap(clientToken,lat,lon,zoom){map=new YPGMapControl("MapResults");var style=VEMapStyle.Road;var fixed=false;var mode=VEMapMode.Mode2D;var showSwitch=true;var latLong=new VELatLong(lat,lon);map.CreateAndLoadMap(latLong,zoom,style,fixed,mode,showSwitch,clientToken);return map};
