<script src="http://www.google.com/jsapi?key=notsupplied-wizard"
    type="text/javascript"></script>

  <!-- Dynamic Feed Control and Stylesheet -->
  <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
    type="text/javascript"></script>
  <style type="text/css">
    @import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
  </style>

  <script type="text/javascript">
    function LoadDynamicFeedControl() {
      var feeds = [];
      var options = {
        stacked : true,
        horizontal : false,
        title : "Economic News"
      }

      new GFdynamicFeedControl(feeds, 'feed-control', options);
    }
    // Load the feeds API and set the onload callback.
    google.load('feeds', '1');
    google.setOnLoadCallback(LoadDynamicFeedControl);
  </script>


function MapAdd(id, type)
{
	var req = null;
	try{req=new XMLHttpRequest();}catch (e){
		try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){
			try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}
		}
	}

	if (req != null){
		req.open("GET", "/map.add.php?id=" + escape(id) + "&type=" + escape(type));
		req.send(null);
	}
}

function MapDelete(id)
{
	var req = null;
	try{req=new XMLHttpRequest();}catch (e){
		try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){
			try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}
		}
	}

	if (req != null){
		req.open("GET", "/map.delete.php?id=" + escape(id));
		req.send(null);
	}
}


function onImageLoaded()
{
//	var imgEl = document.getElementById("anyimg");
//  imgEl.src="/images/transparent.gif";

  document.getElementById("topimg").style.backgroundImage = "url(\'"+bigImg.src+"')";
}

function onClick(imgName) {
//	var imgEl = document.getElementById("anyimg")
//	imgEl.src = "/images/load.gif"

	bigImg = new Image;
	bigImg.onload=onImageLoaded;
	bigImg.src=imgName;
}

