// mark school
function createSchoolMarker(lat, lng, name) {
	var point = new GLatLng(Number(lat), Number(lng));

	var marker = new GMarker(point);
	map.addOverlay(marker);
}

// populate custom markers
function createCampusMarker(dObj, index) {
	var point = new GLatLng(Number(dObj.lat), Number(dObj.lng));
	
	// create icon
	var customicon = new GIcon(G_DEFAULT_ICON);
	customicon.image = chooseIcon(dObj);
	// choose an icon size
	if(dObj.categoryName == 'Academic & Administrative'){
		customicon.iconSize = new GSize(15,15);
	}else{
		customicon.iconSize = new GSize(11,11);
	}
	//define the icon shadow
	customicon.shadow = '';
	customicon.shadowSize = new GSize(0, 0);
	// define the icon anchor
	customicon.iconAnchor = new GPoint(8,8);
	customicon.infoWindowAnchor = new GPoint(0, 0);

	var markerOptions = { icon:customicon };

	var marker = new GMarker(point, markerOptions);

	campusMarkers.push({marker: marker, index: index});
	campusData.push(dObj);

	// open balloon
	if(dObj.listItem == 'y'){
		GEvent.addListener(marker, "click", function() {
			moveCamera(dObj.lat, dObj.lng, index);
		});
	}
	
	map.addOverlay(marker);

	return marker;
}

// choose the icon for the marker
function chooseIcon(dObj){
	var BASE_DEFAULT_ICONS_URL = 'http://prep.campusbird.com/assets/img/icons/maps/';
	var BASE_LOGO_URL = 'http://prep.campusbird.com/assets_schools/';
	var image;
	
	if(dObj.icon == 'y' && dObj.subCategoryName == 'Geographic Features'){
		image = BASE_DEFAULT_ICONS_URL+'map_geo.png';
	}else if(dObj.icon == 'y' && dObj.subCategoryName == 'Landmarks'){
		image = BASE_DEFAULT_ICONS_URL+'map_landmark.png';
	}else if(dObj.icon == 'y' && dObj.subCategoryName == 'Points of Interest'){
		image = BASE_DEFAULT_ICONS_URL+'map_poi.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Parking' && dObj.subCategoryName == 'Bike Parking'){
		image = BASE_DEFAULT_ICONS_URL+'map_bikepark.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Parking' && dObj.subCategoryName == 'Public Parking'){
		image = BASE_DEFAULT_ICONS_URL+'map_pubpark.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Parking' && dObj.subCategoryName == 'Private Parking'){
		image = BASE_DEFAULT_ICONS_URL+'map_prvpark.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Emergency Phones'){
		image = BASE_DEFAULT_ICONS_URL+'map_phone.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Wifi'){
		image = BASE_DEFAULT_ICONS_URL+'map_wifi.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Accessibility' && dObj.subCategoryName == 'Parking'){
		image = BASE_DEFAULT_ICONS_URL+'map_acspark.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Accessibility' && dObj.subCategoryName == 'Steep Grades'){
		image = BASE_DEFAULT_ICONS_URL+'map_acsgrade.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Accessibility' && dObj.subCategoryName == 'Entrances'){
		image = BASE_DEFAULT_ICONS_URL+'map_acsdoor.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Transportation' && dObj.subCategoryName == 'Bus' && dObj.subSubCategoryName == 'Stops'){
		image = BASE_DEFAULT_ICONS_URL+'map_bus.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Transportation' && dObj.subCategoryName == 'Train' && dObj.subSubCategoryName == 'Stops'){
		image = BASE_DEFAULT_ICONS_URL+'map_train.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Transportation' && dObj.subCategoryName == 'Metro' && dObj.subSubCategoryName == 'Stops'){
		image = BASE_DEFAULT_ICONS_URL+'map_metro.png';
	}else if(dObj.icon == 'y' && dObj.categoryName == 'Transportation' && dObj.subCategoryName == 'Airport'){
		image = BASE_DEFAULT_ICONS_URL+'map_air.png';
	}else{
		image = BASE_LOGO_URL+dObj.ipeds+'/icon.png';
	}
		
	return image;
}

function clickMarker(data, data1, data2) {
	alert(data['0']);
}
// move camera to marker location
var schoolMarkerIndex = null;
function moveCamera(lat, lng, marker) {
	schoolMarkerIndex = marker;
 	if (map.getCurrentMapType().getName() == 'Earth') {
 		google.earth.addEventListener(ge.getView(), 'viewchangeend', openBalloon);
 		moveGeCamera(Number(lat)+0.0009, lng, 300, 45, 45);
 	} else if(map.getCurrentMapType().getName() == 'Map' || map.getCurrentMapType().getName() == 'Hybrid') {
  		openBalloon();
 		map.setCenter(new google.maps.LatLng(lat, lng), 18);
 	}
}

function openBalloon() {
	var myHtml = balloonData(campusData[schoolMarkerIndex]);
	campusMarkers[schoolMarkerIndex].marker.openInfoWindowHtml(myHtml);

	schoolMarkerIndex = null;
}

function moveGeCamera(lat, lng, pRange, pHeading, pTilt) {
	if (map.getCurrentMapType().getName() == 'Earth') {
		ge.setBalloon(null);
		var camera;
		var range = pRange;
		var heading = pHeading;
		var tilt = pTilt;

		if(pRange == null || pHeading == null || pTilt == null) {
			camera = this._ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND);

			if(pRange == null)
				range = camera.getRange();
			if(pHeading == null)
				heading = camera.getHeading();
			if(pTilt == null)
				tilt = camera.getTilt();
		}

		var la = ge.createLookAt('');
		la.set(Number(lat), Number(lng), 0, ge.ALTITUDE_RELATIVE_TO_GROUND, Number(heading), Number(tilt), Number(range));
		ge.getView().setAbstractView(la);
	} else if(map.getCurrentMapType().getName() == 'Map' || map.getCurrentMapType().getName() == 'Hybrid') {
		map.setCenter(new google.maps.LatLng(Number(lat), Number(lng)), 17);
	}
}

//BALLOONS
function balloonData(data) {
	var BASE_URL = 'http://prep.campusbird.com/';
	var URL = 'http://prep.campusbird.com/lib/';
	var BASE_LOGO_URL = 'http://prep.campusbird.com/assets_schools/';
	var logoUrl;
	
	// balloon logo
	if(data.icon == 'y' ) {
		logoUrl = BASE_LOGO_URL+data.ipeds+'/logo.jpg';
	} else {
		logoUrl = BASE_LOGO_URL+'_default/logo-default-egiate.png';
	}
	
	// balloon formatting
	var balloonTitleColor = '#000'; //BALLOON TITLE TEXT COLOR PICKER
	var mapWidth = document.getElementById("map").offsetWidth;
	if(mapWidth > 500){
		var balloonWidth = 350;
	}else{
		var balloonWidth = mapWidth * 0.6;
	}
	var balloonTitleWidth = balloonWidth - 100 /*logo width*/;
	var balloonSquareDesc = balloonWidth - 150 /*image width*/ - 5 /*padding*/;
	if (data.streetAddress == ''){
		var streetAddress = "";
	}else{
		var streetAddress = "<div style=\"float:left; width:100%; padding-bottom:5px; font-size:10px; color:#909090; \">" + data.streetAddress + "</div>";
	}
	if (data.balloonLink == ''){
		var balloonLink = "";
	}else{
		var balloonLink = "<div style=\"float:left; width:100%;\"><a href=\"" + data.balloonLink + "\">" + data.balloonLink + "</div>";
	}
	
	if(data.imageType == '150x150'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%;\">"
			+       	streetAddress
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:150px;\">"
			+ "				<img width=\"150\" height=\"150\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "			</div>"
			+ "			<div style=\"width:"+ balloonSquareDesc +"px; float:right; padding-left:5px;\">"
			+				data.description
			+ "			</div>"
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.imageType == '9:16'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%;\">"
			+       	streetAddress
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:150px;\">"
			+ "				<img width=\"150\" height=\"267\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "			</div>"
			+ "			<div style=\"width:"+ balloonSquareDesc +"px; float:right; padding-left:5px;\">"
			+				data.description
			+ "			</div>"
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.imageType == '2:3'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%;\">"
			+       	streetAddress
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:150px;\">"
			+ "				<img width=\"150\" height=\"225\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "			</div>"
			+ "			<div style=\"width:"+ balloonSquareDesc +"px; float:right; padding-left:5px;\">"
			+				data.description
			+ "			</div>"
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.imageType == '3:4'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%;\">"
			+       	streetAddress
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:150px;\">"
			+ "				<img width=\"150\" height=\"200\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "			</div>"
			+ "			<div style=\"width:"+ balloonSquareDesc +"px; float:right; padding-left:5px;\">"
			+				data.description
			+ "			</div>"
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.imageType == '350x150'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\" width:100%; margin-bottom:10px;\">"
			+ "			<img width=\"350\" height=\"150\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "		</div>"
			+       streetAddress
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+			data.description
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.imageType == '4:3'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\" width:100%; margin-bottom:10px;\">"
			+ "			<img width=\"350\" height=\"263\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "		</div>"
			+       streetAddress
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+			data.description
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.imageType == '3:2'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\" width:100%; margin-bottom:10px;\">"
			+ "			<img width=\"350\" height=\"233\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "		</div>"
			+       streetAddress
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+			data.description
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.imageType == '16:9'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\" width:100%; margin-bottom:10px;\">"
			+ "			<img width=\"350\" height=\"197\" src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.imageUrl + "\" />"
			+ "		</div>"
			+       streetAddress
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+			data.description
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.videoType == 'swf'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+ "			<object width=\"340\" height=\"254\">"
			+ "				<param name=\"movie\" value=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.videoUrl + "\">"
			+ "				<embed src=\"" + BASE_LOGO_URL + "/" + data.ipeds + "/" + data.videoUrl + "\" width=\"340\" height=\"254\">"
			+ "				</embed>"
			+ "			</object>"
			+ "		</div>"
			+       streetAddress
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+			data.description
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else if(data.videoType == 'yt'){
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img width=\"100\" height=\"50\" src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+ "			<object width=\"350\" height=\"290\">"
			+ "				<param name=\"movie\" value=\"" + data.videoUrl + "\"></param>"
			+ "				<param name=\"allowFullScreen\" value=\"true\"></param>"
			+ "				<param name=\"allowscriptaccess\" value=\"always\"></param>"
			+ "				<embed src=\"" + data.videoUrl + "\" "
			+ "					   type=\"application/x-shockwave-flash\" "
			+ "					   allowscriptaccess=\"always\" "
			+ "					   allowfullscreen=\"true\" "
			+ "					   width=\"350\" "
			+ "					   height=\"290\">"
			+ "				</embed>"
			+ "			</object>"
			+ "		</div>"
			+       streetAddress
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+			data.description
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	} else {	
		var html = "<div style=\"position:relative; float:left; width:" + balloonWidth + "px; height:100%; font-family:Arial,Helvetica,sans-serif; font-size:11px; color:#3f3f3f;\">"
			+ "		<div style=\"float:left; width:100%; margin-right:10px; margin-bottom:10px;\">"
			+ "			<div style=\"float:left; width:100px;\">"
			+ "				<div style=\"text-align:center;\">"
			+ "					<img src=\"" + logoUrl + "\" />" 
			+ "				</div>"
			+ "			</div>"
			+ "			<div style=\"float:left; width:" + balloonTitleWidth + "; color:" + balloonTitleColor + ";\">"
			+ "				<div style=\"float:left; padding-left:5px; padding-top:20px;\">"
			+ "					<div style=\"float:left; width:100%;\"><b>" + data.name + "</b></div>"
			+ "				</div>"
			+ "			</div>"
			+ "		</div>"
			+       streetAddress
			+ "		<div style=\"float:left; width:100%; margin-bottom:10px;\">"
			+			data.description
			+ "		</div>"
			+ 		balloonLink
			+ "</div>";
	}
	
	return html;
}

