'; $('#_genelecsitedealermap_eventResult').show(); return html; } function _genelecsitedealermap_populateStoreName(store, mrkIndex) { var name = store.name.replace(/"/g, '"'); var address = store.address; var distance = store.distance; var city = store.city; var country = store.country; var zipcode = store.zipcode; var marketSegment = store.marketSegment; var samCertified = store.samCertified; var smartIPCertified = store.smartIPCertified var hideAddress = store.hideAddress; var accountType = store.accountType; var email = store.email; var phone = store.phone; var samCertified = store.samCertified; var accountType = store.accountType; var website = store.website; var state = store.state; var id = store.id; var techService = store.techService; var showRoom = store.showRoom; var center = map.getCenter(); var lat = center.lat(); var lng = center.lng(); var dialogMethod = ""; if(!hideAddress){ dialogMethod = "_genelecsitedealermap_openDialogue('"+ name + "','" + address + "','" + distance + "','" + city + "','" + country + "','" + zipcode + "','" + state + "'," + hideAddress + ",'" + marketSegment + "','" + email + "','" + phone + "'," + samCertified + ",'" + accountType + "','" + website + "'," + id + "," + store.latitude + "," + store.longitude + "," + techService + "," + showRoom + "," + smartIPCertified + ");"; }else{ address= ""; distance= ""; dialogMethod = "_genelecsitedealermap_openDialogue('"+ name + "','" + address + "','" + distance + "','" + city + "','" + country + "','" + zipcode +"','" + state + "'," + hideAddress + ",'" + marketSegment + "','" + email + "','" + phone + "'," + samCertified + ",'" + accountType + "','" + website + "'," + id + "," + lat + "," + lng + "," + techService + "," + showRoom + "," + smartIPCertified + ");"; } var html = ''; if(mrkIndex != null && mrkIndex != undefined) { html += '