// #lsmapembed

(function() {
	var glow;
	
	gloader.load(
		["glow", "1", "glow.dom", "glow.embed"],
		{
			async: false,
			onLoad: function(fetchedGlow) {
				glow = fetchedGlow;
				glow.ready(init);
			}
		}
	);
	
function init() {
	var path = "/nol/shared/bsp/hi/live_stats/swf/";
	
	 var returnURL = document.location.href;
	
	 var cookString = (document.location.search != null && document.location.search != "")? document.location.search + "returnURL=" + returnURL + "&" : "?returnURL=" + returnURL + "&";
	
	 if(document.cookie != "") {
	 theCook = document.cookie.split("; ")
	  for (i = 0; i < theCook.length; i ++) {
	   cookString += theCook[i] + "&";
	  }
	 }
	 function cookit() {
	  exDate = new Date
	  exDate.setMonth(exDate.getMonth()+9)
	  for(i=0;i<cookit.arguments.length;i++) {
	   ckThing = cookit.arguments[i] + '=' + cookit.arguments[i+1];
	   i++;
	   document.cookie = ckThing + '; expires=' + exDate.toGMTString();
	  }
	 }
	 
	 var flName = path + "map.swf"
	 var flColor = "#FFFFFF";
	 var flWidth = "610";
	 var flHeight = "315";
	 var flPath = "path=" + path;
	 
	 var alternateContent = document.getElementById('lsmapembed').innerHTML;
	 
	  new glow.embed.Flash(
	  	  flName + cookString + flPath,
	  	  "#lsmapembed",
	  	  "8",
	  	  {
	  	  	  message: alternateContent,
	  	  	  height: flHeight + "px",
	  	  	  width: flWidth + "px",
	  	  	  params: {
	  	  	  	  bgcolor: flColor,
	  	  	  	  movie: flName + cookString + flPath,
	  	  	  	  menu: 'false'
	  	  	  },
	  	  	  attributes: {
	  	  	  	  name: "flash",
	  	  	  	  id: "flash"
	  	  	  }
	  	  }
	  ).embed();
}

})();
	   