// Common Javascript fucntions.
// Nothing too fancy, really.


    // put map in the global scope
var map;

	var PointsToPlot = new Array();
	var html = new Array();

	
	function loadMap(){}
	
	function toggleMap()
	{ 
		map_div = document.getElementById('map').style; 
		if (map_div.display == 'none') {
			map_div.display='block'; 
			document.getElementById('toggleHref').innerHTML = "[hide map]";
		} else {
			map_div.display='none';
			document.getElementById('toggleHref').innerHTML = "[show map]";
		}
	}
	
	
	function centerMap(idx)
	{
		//(PointsToPlot[idx]).openInfoWindow(html[idx]);
		GEvent.trigger(PointsToPlot[idx], "click");
	}

	function geWhatis()
	{
		window.open("/ge_whatis.php","Jobs$Recovery","height=400,width=790,scrollbars=yes");	
	}
