var map = null;
window.onload = function () {
	map = new VEMap('minimap');
	map.onLoadMap = function () {
		map.Find(null, street+' '+city+', '+state+' '+zip, null, null, null, null, null, null, null, null, addPinCenter);		
	};
	map.LoadMap();
	map.ShowDisambiguationDialog(false);
}

function addPinCenter (result) {
	var shape = new VEShape(VEShapeType.Pushpin, map.GetCenter());                          
	
	//Set the info box        
	//map.ClearInfoBoxStyles();        
	
	shape.SetTitle('<strong>'+title+'</strong>');         
	shape.SetDescription(street+'<br />'+city+', '+state+' '+zip);                  
	
	//Add the shape the the map        
	map.AddShape(shape);
}
