jQuery().ready(function() {  	jQuery('#map').jmap('init',{		mapType: 'map',		mapCenter:[35.58129,-80.81182],		mapZoom:14,		mapShowjMapsIcon: false	});	jQuery('#map').jmap('AddMarker', {pointLatLng:[35.58129,-80.81182]});	jQuery('#getDirectionsSubmit').click(function(){		jQuery('#map').jmap('SearchDirections', {			'query': 'from: ' + jQuery('#from').val() + ' to: 150 S. Church St. Mooresville, North Carolina 28115',			'panel':'#directions'		}, function(result, options) {			var valid = Mapifies.SearchCode(result.getStatus());			if (valid.success) {				jQuery.each(result.Placemark, function(i, point){					jQuery('#map').jmap('AddMarker',{						'pointLatLng':[point.Point.coordinates[1], point.Point.coordinates[0]],						'pointHTML':point.address					});				});		   } else {			jQuery('#address').val(valid.message);		   }		});		return false;			});}); 