// JavaScript Document

//Error functions for when pointer is in sea, and when response code 200 is not received

	  function seaError () {
		if(!document.getElementById || !document.getElementById('sea_error') || !document.getElementById('addressDiv')||!document.createElement)return false;
 
		pirates =  
			[ 
			 "soFVKW7gu-8",  
			 "zOogEAUNUF8",  
			 "EpLl3nukAxc",  
			 "rIcgC_Ip9zA",  
			 "HIvcz7x0CxU",  
			 "x8SmN_lOrh0",  
			 "VP6q0KF5ALs",  
			 "PiKghU4pZ0c",
			 "kbRKbNJ4ibA",  
			 "Y7s6vBbIQS4",  
			 "7KZvPsTnMsY",  
			 "2aiqVUybS3A",  
			 "SIg92MzjJ08",  
			 "7x97Gi4uJ_w",  
			 "XQrW1dpLCD8" 
			] 
			var pirate = pirates[Math.floor(Math.random()*pirates.length)] 

		
       document.getElementById("map_canvas").innerHTML = '<object width="370" height="300"><param name="movie" value="http://www.youtube.com/v/' + pirate + '&amp;hl=en&amp;fs=1&amp;autoplay=1? "></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' + pirate + '&amp;hl=en&amp;fs=1&amp;autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="370" height="300"></embed></object>';
	  unhide(document.getElementById("sea_error"));
	 hide(document.getElementById("addressDiv"));
	  
	  }
	  
	  function generalError () {
		if(!document.getElementById || !document.getElementById('general_error')||!document.createElement)return false;
	  
	  unhide(document.getElementById("general_error"));
	  
	  }

