	window.onload = function(){
		var search_string = school_street + ", " + school_city + ", " + school_state + " " + school_zip;

		var ffv = 0;
		var ffn = "Firefox/"
		var ffp = navigator.userAgent.indexOf(ffn);
		if (ffp != -1) ffv = parseFloat(navigator.userAgent.substring(ffp + ffn.length));
		// If we're using Firefox 1.5 or above override the Virtual Earth drawing functions to use SVG
		if (ffv >= 1.5) {
			Msn.Drawing.Graphic.CreateGraphic=function(f,b) { return new Msn.Drawing.SVGGraphic(f,b) };
		}
	
		map = new VEMap('minimap');
		map.onLoadMap = function () {
		//	map.HideDashboard();
			map.Find(null, search_string,  null, null, null, null, null, null, null, null, AddPushpin);
		};
		map.LoadMap(null, null, 'r', false, VEMapMode.Mode2D, false);
		map.ShowDisambiguationDialog(false);
	}
	
	function AddPushpin()      {         
		var shape = new VEShape(VEShapeType.Pushpin, map.GetCenter());         
		
		//Set the icon / pushpin graphic       
		shape.SetCustomIcon(icon);                  
		
		//Set the info box        
		map.ClearInfoBoxStyles();        
		
		shape.SetTitle(titlebox);         
		shape.SetDescription(infobox);                  
		
		//Add the shape the the map        
		map.AddShape(shape);         
		pinid++;      
	}
