';
html += '
';
if ( '' != locationData.permalink ) {
html += '';
}
html += locationData.name;
if ( '' != locationData.permalink ) {
html += '';
}
if (locationData.taxes.sm_category && locationData.taxes.sm_category != null && locationData.taxes.sm_category != '' ) {
html += '
' + locationData.taxes.sm_category + '';
}
html += '
';
html += '
' + locationData.address;
if (locationData.address2 != '') {
html += '
' + locationData.address2;
}
// Address Data
if (address_format == 'town, province postalcode') {
html += '
' + locationData.city + ', ' + locationData.state + ' ' + locationData.zip + '
';
} else if (address_format == 'town province postalcode') {
html += '
' + locationData.city + ' ' + locationData.state + ' ' + locationData.zip + '
';
} else if (address_format == 'town-province postalcode') {
html += '
' + locationData.city + '-' + locationData.state + ' ' + locationData.zip + '
';
} else if (address_format == 'postalcode town-province') {
html += '
' + locationData.zip + ' ' + locationData.city + '-' + locationData.state + '
';
} else if (address_format == 'postalcode town, province') {
html += '
' + locationData.zip + ' ' + locationData.city + ', ' + locationData.state + '
';
} else if (address_format == 'postalcode town') {
html += '
' + locationData.zip + ' ' + locationData.city + '
';
} else if (address_format == 'town postalcode') {
html += '
' + locationData.city + ' ' + locationData.zip + '
';
}
// Phone and Fax Data
if (locationData.phone != null && locationData.phone != '') {
html += '
' + phone_text + ': ' + locationData.phone + '';
if (locationData.email != null && locationData.email != '') {
html += '
' + email_text + ': ' + locationData.email + '';
}
if (locationData.fax != null && locationData.fax != '') {
html += '
' + fax_text + ': ' + locationData.fax + '';
}
html += '
';
} else if (locationData.fax != null && locationData.fax != '') {
html += '
' + fax_text + ': ' + locationData.fax + '
';
}
html += '
';
for (jstax in locationData.taxes) {
if ( 'sm_category' == jstax ) {
continue;
}
if ( locationData.taxes[jstax] != null && locationData.taxes[jstax] != '' ) {
html += taxonomy_text[jstax] + ': ' + locationData.taxes[jstax] + '
';
}
}
html += '
';
var dir_address = locationData.point.toUrlValue(10);
var dir_address2 = '';
if (locationData.address) { dir_address2 += locationData.address; }
if (locationData.city) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.city; };
if (locationData.state) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.state; };
if (locationData.zip) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.zip; };
if (locationData.country) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.country; };
if ( '' != dir_address2 ) { dir_address = locationData.point.toUrlValue(10) + '(' + escape( dir_address2 ) + ')'; };
html += '
' + get_directions_text + '';
if (locationData.url != '') {
html += ' | ' + visit_website_text + '';
}
html += '
';
if (locationData.description != '' && locationData.description != null) {
var numlines = Math.ceil(locationData.description.length / 40);
var newlines = locationData.description.split('
').length - 1;
var totalheight2 = 0;
if ( locationData.description.indexOf('
![]()
maxbubbleheight) {
totalheight2 = maxbubbleheight;
}
//marker.openInfoWindowTabsHtml([new GInfoWindowTab(location_tab_text, html), new GInfoWindowTab(description_tab_text, html2)], {maxWidth: maxbubblewidth});
// tabs aren't possible with the Google Maps api v3
html += '
' + locationData.description + '
';
}
html += '
';
/**
* @name InfoBox
* @version 1.1.13 [March 19, 2014]
* @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
* @copyright Copyright 2010 Gary Little [gary at luxcentral.com]
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c