// JavaScript Document
function load() {if (GBrowserIsCompatible()) {var map = new GMap2(document.getElementById('map'));map.enableContinuousZoom();map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(32.7796,-79.9331), 10);var gLatLonBounds = new GLatLngBounds(new GLatLng(32.7796,-79.9331),new GLatLng(32.7796,-79.9331));var baseIcon = new GIcon();baseIcon.shadow = 'http://www.google.com/mapfiles/shadow50.png';baseIcon.iconSize = new GSize(20, 34);baseIcon.shadowSize = new GSize(37, 34);baseIcon.iconAnchor = new GPoint(9, 34);baseIcon.infoWindowAnchor = new GPoint(9, 2);baseIcon.infoShadowAnchor = new GPoint(18, 25);function createMarker(point, desc) {  var icon = new GIcon(baseIcon);  icon.image = 'http://www.google.com/mapfiles/marker.png';  var marker = new GMarker(point, icon);  GEvent.addListener(marker, 'click', function() {    marker.openInfoWindowHtml(desc);  });  return marker;}
function createMarkerOther(point, desc, link, shadowLink, height) {   tmpBaseIcon=baseIcon;  if (shadowLink!='') {   tmpBaseIcon.shadow=shadowLink;   tmpBaseIcon.iconSize=new GSize(30,30);  }  var icon = new GIcon(baseIcon);  icon.image = link;  var marker = new GMarker(point, icon);  GEvent.addListener(marker, 'click', function() {    marker.openInfoWindowHtml(desc);  });  return marker;}
function createMarkerDynamic(point, desc, link, height, anIndex) {   tmpBaseIcon=baseIcon;   tmpBaseIcon.iconSize=new GSize(13+(anIndex.toString().length*10),48);  var icon = new GIcon(baseIcon);  icon.image = link;  var marker = new GMarker(point, icon);  GEvent.addListener(marker, 'click', function() {    marker.openInfoWindowHtml(desc);  });  return marker;}
var locations = new Array(54); var index;
    locations[0] = new Array(2);
    locations[0][0] = 32.7796;
    locations[0][1] = -79.9331;
    locations[0][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=174628&siteid=9205&cur=USD">Kings Courtyard Inn</a><br>198 King Street<br>Charleston, SC 29401 US';
    locations[1] = new Array(2);
    locations[1][0] = 32.7763;
    locations[1][1] = -79.9337;
    locations[1][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=174746&siteid=9205&cur=USD">John Rutledge House Inn</a><br>116 Broad Street<br>Charleston, SC 29401 US';
    locations[2] = new Array(2);
    locations[2][0] = 32.869;
    locations[2][1] = -80.0304;
    locations[2][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=175680&siteid=9205&cur=USD">Hilton Garden Inn Charleston Airport</a><br>5265 International Blvd.<br>Charleston, SC 29418 US';
    locations[3] = new Array(2);
    locations[3][0] = 32.7817;
    locations[3][1] = -79.9318;
    locations[3][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=176634&siteid=9205&cur=USD">Charleston Place  Superb Luxury</a><br>205 Meeting Street<br>Charleston, SC 29401 3133 US';
    locations[4] = new Array(2);
    locations[4][0] = 32.8637;
    locations[4][1] = -79.9187;
    locations[4][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=19402&siteid=9205&cur=USD">Hampton Inn Charleston-Daniel Island</a><br>160 Fairchild Street<br>Charleston, SC 29492 US';
    locations[5] = new Array(2);
    locations[5][0] = 32.7911;
    locations[5][1] = -80.0364;
    locations[5][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=19406&siteid=9205&cur=USD">Hampton Inn & Suites Charleston-West Ashley</a><br>655 Citadel Haven Drive<br>Charleston, SC 29414 US';
    locations[6] = new Array(2);
    locations[6][0] = 32.7914;
    locations[6][1] = -79.9052;
    locations[6][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=16575&siteid=9205&cur=USD">Hilton Charleston Harbor Resort and Marina</a><br>20 Patriots Point Road<br>Charleston, SC 29464 US';
    locations[7] = new Array(2);
    locations[7][0] = 32.7761;
    locations[7][1] = -79.9311;
    locations[7][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=16925&siteid=9205&cur=USD">Holiday Inn CHARLESTON-MILLS HOUSE</a><br>115 MEETING ST.<br>Charleston, SC 29401 US';
    locations[8] = new Array(2);
    locations[8][0] = 32.7811;
    locations[8][1] = -79.9299;
    locations[8][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=12636&siteid=9205&cur=USD">Doubletree Guest Suites Charleston-Historic District</a><br>181 Church Street<br>Charleston, SC 29401 US';
    locations[9] = new Array(2);
    locations[9][0] = 32.7809;
    locations[9][1] = -79.9291;
    locations[9][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=35396&siteid=9205&cur=USD">Planters Inn</a><br>112 North Market Street<br>Charleston, SC 29401 US';
    locations[10] = new Array(2);
    locations[10][0] = 32.94067;
    locations[10][1] = -80.04666;
    locations[10][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=39313&siteid=9205&cur=USD">StudioPlus North Charleston</a><br>7641 Northwoods Blvd.<br>Charleston, SC 29418 US';
    locations[11] = new Array(2);
    locations[11][0] = 32.7864;
    locations[11][1] = -80.01025;
    locations[11][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=4376&siteid=9205&cur=USD">Best Western Sweetgrass Inn</a><br>1540 Savannah Highway<br>Charleston, SC 29407-7845 US';
    locations[12] = new Array(2);
    locations[12][0] = 32.78466;
    locations[12][1] = -79.95564;
    locations[12][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=9235&siteid=9205&cur=USD">Comfort Inn Charleston</a><br>144 Bee St.<br>Charleston, SC 29401 US';
    locations[13] = new Array(2);
    locations[13][0] = 32.87077;
    locations[13][1] = -80.01307;
    locations[13][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=9244&siteid=9205&cur=USD">Comfort Inn Coliseum</a><br>5055 N. Arco Ln.<br>Charleston, SC 29418 US';
    locations[14] = new Array(2);
    locations[14][0] = 32.778;
    locations[14][1] = -79.9481;
    locations[14][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=9722&siteid=9205&cur=USD">Courtyard by Marriott Charleston Riverview</a><br>35 Lockwood Drive<br>Charleston, SC 29401 US';
    locations[15] = new Array(2);
    locations[15][0] = 32.79057;
    locations[15][1] = -80.04201;
    locations[15][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=13440&siteid=9205&cur=USD">Econo Lodge Charleston</a><br>2237 Savannah Hwy.<br>Charleston, SC 29414 US';
    locations[16] = new Array(2);
    locations[16][0] = 32.77851;
    locations[16][1] = -79.9264;
    locations[16][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=21043&siteid=9205&cur=USD">Vendue Inn</a><br>19 Vendue Range<br>Charleston, SC 29401 US';
    locations[17] = new Array(2);
    locations[17][0] = 32.78126;
    locations[17][1] = -79.92719;
    locations[17][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=21231&siteid=9205&cur=USD">Market Street Inn</a><br>48 North Market Street<br>Charleston, SC 29401 US';
    locations[18] = new Array(2);
    locations[18][0] = 32.8742;
    locations[18][1] = -80.01;
    locations[18][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=29699&siteid=9205&cur=USD">Sheraton Hotel North Charleston-Convention Center</a><br>4770 Goer Drive<br>Charleston, SC 29406 US';
    locations[19] = new Array(2);
    locations[19][0] = 32.7789;
    locations[19][1] = -79.9257;
    locations[19][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=36228&siteid=9205&cur=USD">Harbour View Inn</a><br>Two Vendue Range<br>Charleston, SC 29401 US';
    locations[20] = new Array(2);
    locations[20][0] = 32.7823;
    locations[20][1] = -79.9299;
    locations[20][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=37090&siteid=9205&cur=USD">Andrew Pinckney Inn</a><br>40 Pinckney Street<br>Charleston, SC 39401 US';
    locations[21] = new Array(2);
    locations[21][0] = 32.7801;
    locations[21][1] = -79.9294;
    locations[21][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=37401&siteid=9205&cur=USD">French Quarter Inn</a><br>166 Church Street<br>Charleston, SC 29401 US';
    locations[22] = new Array(2);
    locations[22][0] = 32.7807;
    locations[22][1] = -79.9297;
    locations[22][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=40896&siteid=9205&cur=USD">Church Street Inn</a><br>177 Church Street<br>Charleston, SC 29401 US';
    locations[23] = new Array(2);
    locations[23][0] = 32.796;
    locations[23][1] = -79.9945;
    locations[23][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=43768&siteid=9205&cur=USD">The Inn At Middleton Place</a><br>4920 Ashley River Road<br>Charleston, SC 29414 US';
    locations[24] = new Array(2);
    locations[24][0] = 32.9041;
    locations[24][1] = -80.0206;
    locations[24][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=44405&siteid=9205&cur=USD">Radisson Hotel Charleston Airport</a><br>5991 RIVERS AVENUE<br>Charleston, SC 29406 US';
    locations[25] = new Array(2);
    locations[25][0] = 32.7838;
    locations[25][1] = -79.9282;
    locations[25][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=48554&siteid=9205&cur=USD">Ansonborough Inn</a><br>21 Hasell Street<br>Charleston, SC 29401 US';
    locations[26] = new Array(2);
    locations[26][0] = 32.9354;
    locations[26][1] = -80.0447;
    locations[26][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=188745&siteid=9205&cur=USD">Country Hearth Inn Charleston</a><br>2311 Ashley Phosphate Road<br>Charleston, SC 29406 US';
    locations[27] = new Array(2);
    locations[27][0] = 32.8531;
    locations[27][1] = -79.989;
    locations[27][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=189258&siteid=9205&cur=USD">Best Value Inn -Charleston</a><br>3668 Dorchester Road<br>Charleston, SC 29405 US';
    locations[28] = new Array(2);
    locations[28][0] = 32.7899;
    locations[28][1] = -80.0303;
    locations[28][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=189925&siteid=9205&cur=USD">Town and Country Inn & Conference Center</a><br>2008 Savannah Highway<br>Charleston, SC 29407 US';
    locations[29] = new Array(2);
    locations[29][0] = 32.778;
    locations[29][1] = -79.932;
    locations[29][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=190460&siteid=9205&cur=USD">Elliott House Inn</a><br>78 Queen Street<br>Charleston, SC 29401 US';
    locations[30] = new Array(2);
    locations[30][0] = 32.7789;
    locations[30][1] = -79.9264;
    locations[30][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=190900&siteid=9205&cur=USD">Anchorage Inn Charleston</a><br>26 Vendue Range<br>Charleston, SC 29401 US';
    locations[31] = new Array(2);
    locations[31][0] = 32.7772;
    locations[31][1] = -79.9615;
    locations[31][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=209248&siteid=9205&cur=USD">La Quinta Inn Charleston Riverview</a><br>11 Ashley Pointe Drive<br>Charleston, SC 29407 US';
    locations[32] = new Array(2);
    locations[32][0] = 32.78;
    locations[32][1] = -79.9401;
    locations[32][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=209249&siteid=9205&cur=USD">Wentworth Mansion</a><br>149 Wentworth Street<br>Charleston, SC 29401 US';
    locations[33] = new Array(2);
    locations[33][0] = 32.7829;
    locations[33][1] = -79.933;
    locations[33][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=2620&siteid=9205&cur=USD">Renaissance Charleston Hotel</a><br>68 Wentworth Street<br>Charleston, SC 29401 US';
    locations[34] = new Array(2);
    locations[34][0] = 32.93534;
    locations[34][1] = -80.04451;
    locations[34][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=7920&siteid=9205&cur=USD">Ramada Charleston SC</a><br>7401 Northwoods Blvd<br>Charleston, SC 29406 US';
    locations[35] = new Array(2);
    locations[35][0] = 32.8746;
    locations[35][1] = -80.0112;
    locations[35][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=10045&siteid=9205&cur=USD">Courtyard by Marriott Charleston North</a><br>2415 Mall Drive<br>Charleston, SC 29406 US';
    locations[36] = new Array(2);
    locations[36][0] = 32.7794;
    locations[36][1] = -79.93159;
    locations[36][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=11393&siteid=9205&cur=USD">Charleston - Days Inn  Historic District</a><br>155 Meeting Street<br>Charleston, SC 29401 US';
    locations[37] = new Array(2);
    locations[37][0] = 32.8762;
    locations[37][1] = -80.01064;
    locations[37][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=11394&siteid=9205&cur=USD">Charleston-Days Inn  Airport/Coliseum</a><br>2998 W. Montague Avenue<br>Charleston, SC 29418 US';
    locations[38] = new Array(2);
    locations[38][0] = 32.7875;
    locations[38][1] = -79.935;
    locations[38][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=13346&siteid=9205&cur=USD">Embassy Suites Hotel? Charleston-Historic Charleston</a><br>337 Meeting Street<br>Charleston, SC 29403 US';
    locations[39] = new Array(2);
    locations[39][0] = 32.7892;
    locations[39][1] = -80.0276;
    locations[39][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=13797&siteid=9205&cur=USD">Holiday Inn Express CHARLESTON US17 & I-526</a><br>1943 SAVANNAH HIGHWAY<br>Charleston, SC 29407 US';
    locations[40] = new Array(2);
    locations[40][0] = 32.7861;
    locations[40][1] = -79.9348;
    locations[40][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=16923&siteid=9205&cur=USD">Holiday Inn CHARLESTON (HISTORIC DISTRICT)</a><br>125 CALHOUN STREET<br>Charleston, SC 29401 US';
    locations[41] = new Array(2);
    locations[41][0] = 32.7811;
    locations[41][1] = -79.9638;
    locations[41][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=17064&siteid=9205&cur=USD">Holiday Inn CHARLESTON-RIVERVIEW</a><br>301 SAVANNAH HWY<br>Charleston, SC 29407 US';
    locations[42] = new Array(2);
    locations[42][0] = 32.78885;
    locations[42][1] = -79.95013;
    locations[42][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=18068&siteid=9205&cur=USD">Howard Johnson Hotel Charleston</a><br>250 Spring Street<br>Charleston, SC 29403 US';
    locations[43] = new Array(2);
    locations[43][0] = 32.853;
    locations[43][1] = -79.98654;
    locations[43][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=18086&siteid=9205&cur=USD">Howard Johnson Inn - Charleston</a><br>3640 Dorchester Rd/I-26<br>Charleston, SC 29405 US';
    locations[44] = new Array(2);
    locations[44][0] = 32.7879;
    locations[44][1] = -79.9356;
    locations[44][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=19554&siteid=9205&cur=USD">Hampton Inn Charleston-Historic District</a><br>345 Meeting Street<br>Charleston, SC 29403 US';
    locations[45] = new Array(2);
    locations[45][0] = 32.87403;
    locations[45][1] = -80.01422;
    locations[45][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=25846&siteid=9205&cur=USD">Quality Suites Convention Center</a><br>5225 N. Arco Ln.<br>Charleston, SC 29418 US';
    locations[46] = new Array(2);
    locations[46][0] = 32.7784;
    locations[46][1] = -79.9656;
    locations[46][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=27353&siteid=9205&cur=USD">Residence Inn by Marriott Charleston Riverview</a><br>90 Ripley Point Drive<br>Charleston, SC 29407 US';
    locations[47] = new Array(2);
    locations[47][0] = 32.78582;
    locations[47][1] = -80.00881;
    locations[47][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=30375&siteid=9205&cur=USD">Sleep Inn Charleston</a><br>1524 Savannah Hwy (US 17 S)<br>Charleston, SC 29407 US';
    locations[48] = new Array(2);
    locations[48][0] = 32.7862;
    locations[48][1] = -79.9367;
    locations[48][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=35529&siteid=9205&cur=USD">Francis Marion Hotel</a><br>387 King Street<br>Charleston, SC 29403 US';
    locations[49] = new Array(2);
    locations[49][0] = 32.7784;
    locations[49][1] = -79.9655;
    locations[49][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=36297&siteid=9205&cur=USD">SpringHill Suites by Marriott Charleston Downtown Riverview</a><br>98 Ripley Point Drive<br>Charleston, SC 29407 US';
    locations[50] = new Array(2);
    locations[50][0] = 32.7883;
    locations[50][1] = -79.9598;
    locations[50][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=41154&siteid=9205&cur=USD">Charleston Riverview Hotel</a><br>170 Lockwood Blvd.<br>Charleston, SC 29403 US';
    locations[51] = new Array(2);
    locations[51][0] = 32.7798;
    locations[51][1] = -79.9271;
    locations[51][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=43281&siteid=9205&cur=USD">Lodge Alley Inn</a><br>195 E Bay Street<br>Charleston, SC 27401 US';
    locations[52] = new Array(2);
    locations[52][0] = 32.78279;
    locations[52][1] = -79.93181;
    locations[52][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=49530&siteid=9205&cur=USD">Best Western King Charles Inn</a><br>237 Meeting Street<br>Charleston, SC 29401 US';
    locations[53] = new Array(2);
    locations[53][0] = 32.7809;
    locations[53][1] = -79.9274;
    locations[53][2] = '<a href="http://hotelsearch.charlestonhotelservice.com/v5/redir.aspx?type=property&pid=176524&siteid=9205&cur=USD">Market Pavilion Hotel</a><br>225 East Bay Street<br>Charleston, SC 29401 US';
for (index=0;index<54;index+=1)
{
    var point = new GLatLng(locations[index][0],locations[index][1]);
    map.addOverlay(createMarker(point, locations[index][2]));
    gLatLonBounds.extend(point); 
}
map.setCenter(gLatLonBounds.getCenter(), map.getBoundsZoomLevel(gLatLonBounds));}}