function fireObject() {
  this.lngFireId = 0;
  this.intFireRegion = 0;
  this.txtFireLocation = "";
  this.txtFireControl = "";
  this.dtmFireDate ="";
  this.txtFireType ="";
  this.txtFireStatus = "";
  this.txtFireSize = "";
  this.intFireAppliances = 0;
  this.lngFireTypeID = 0;
  this.lngFireSizeID = 0;
  this.dblFireLat = 0;
  this.dblFireLon = 0;
  this.intFireResolution = 0;
  this.newFire = false;
}
function tableObject() {
  var strStdTH = "<table><tr><th>Region</th><th>Locality</th><th>Street</th><th>Time</th><th>Type</th><th>Status</th><th>Size</th><th>Vehicles</th><th>Map</th><th>New</th></tr>";	
  this.thvic = strStdTH.replace(/>Region</gi, ">District<");
  this.thsa = strStdTH;
  this.act = "";	
  this.nsw = "";	
  this.vic = "";
  this.qld = ""; 
  this.sa = "";
  this.tas = "";
  this.wa = "";
  this.nt = "";
  
}
function dataStoreObject() {	
  this.hwm = -1; 
  this.hwmNew = -1;
  this.id = 1;
  this.mapurl = "/iav5/index.php?option=com_content&view=article&id=56&Itemid=64&lngFireId=";  
  this.currPins = "";
  this.iLoopCount = 0;
  this.debug = false;
  this.twitterType = "";
  this.twitterStreet = "";
  this.twitterTown = "";
  this.twitterLat = "";
  this.twitterLon ="";
  this.twitterTimeout = -1;
  this.announce ="";
}


var myFire 		= new fireObject();
var myTableText = new tableObject();
var dataObj		= new dataStoreObject();
var map;
var VEColor;
var tweetType;
var aircraftId 	= 2000;
if (getQuerystring('debug').indexOf("true") !=-1) {
	dataObj.debug=true;
	alert("Debug is on");
}

function fncReloadIframeV2() {
	try 
	{	
		var f = document.forms[0];
		var o = document.getElementById('iframeData');
		var t = new Date().getTime();
		
		if (o) {
			o.src = 'veMapDataV2.asp?hwm=' + document.getElementById('hwm').value + 
			'&txtSoundType=' + f.txtSoundType.value + 
			'&announce=' + f.announce[f.announce.selectedIndex].value +
			'&intRegion=' + f.intRegion[f.intRegion.selectedIndex].value +  
			'&showFlood=' + f.showFlood[f.showFlood.selectedIndex].value +
			'&showHotspot=' + f.showHotspot[f.showHotspot.selectedIndex].value +
			'&showSafe=' + f.showSafe[f.showSafe.selectedIndex].value + 
			'&intTimezone=' + f.intTimeZone[f.intTimeZone.selectedIndex].value + 			
			'&dtm='+t;
  	} else {
			alert('Map not loaded');
		}
		Timer= setTimeout("fncReloadIframeV2()",f.intRefreshRate.value * 60 * 1000);
	} catch(err)  {
	  txt="Sorry, there was an error in fncReloadIframeV2.\n\n";
	  txt+="Error description: " + err.description + "\n\n";
	  txt+="Click OK to continue.\n\n";
	  alert(txt);
	}		
}

      //var map = null;
            
function LoadVeMap()
      {
	  /*
         var params = new Object();
         params.latitude = -36.897194;
         params.longitude = 145.447998;
         params.zoomlevel = 7;
         params.mapstyle = 'r';
         params.showScaleBar = true;
         params.showDashboard = true;
         params.dashboardSize = "small";
         params.dashboardX = 43;
         params.dashboardY = 3;

         map = new Msn.VE.MapControl(document.getElementById("map"), params);    
         map.Init();
		*/ 	  
		mapOptions = new VEMapOptions();
    mapOptions.DashboardColor = "black";
    mapOptions.EnableSearchLogo = true;
		mapOptions.UseEnhancedRoadStyle = true;

		var startLat = -36.897194;
		var startLon = 144.447998;
		var startZoom = 7;
		var startStyle = 'r';
		if (readCookie("mapCentre").toString() != "") {
			arrLatLon = readCookie("mapCentre").toString().split(",");
			startLat = arrLatLon[0].toString();
			startLon = arrLatLon[1].toString();
		}
		 if (readCookie("mapZoom").toString() != "") {
			 startZoom = readCookie("mapZoom").toString();
		}
        map = new VEMap('veMap');
        map.LoadMap(new VELatLong(startLat, startLon), startZoom ,VEMapStyle.Road , false,VEMapMode.Mode2D,true,0,mapOptions);
	

		 var pinID = 1;
		 var pin = new VEPushpin(
			pinID, 
			new VELatLong(startLat, startLon),
			"images/ve/loading.gif", 
			'<b>Current Map Status</b>', 
			'It can take several minutes for this map and fires to display. Once loaded, the updates will be rapid. '
        );
		map.AddPushpin(pin);
		//void fncReloadIframeV2();		
}  
      function showPushPin()
      {

		pinID = 2;
		var pin2 = new VEPushpin(
			pinID, 
			new VELatLong(-37.8631, 145.7445), 
			"http://www.incidentAlert.com.au/images/ve/loading.jpg", 
			'<b>Current Status</b>', 
			'It can take several minutes for this map to display.'
        );
		map.AddPushpin(pin2);
		
	} 
	function clearPushPins()
	{
		if (map) {
			//map.Clear();
			map.DeleteAllPushpins();
		}
		dataObj.currPins = "";
		dataObj.announce = ""
	}
	function createPushPin(iFireId,iLat,iLon,iRegion,sTown,sStreet,sTime,sType,sSize,sStatus,iVehicles,newFire,icon) {
		var strPinId = "pinId" + iFireId.toString();
		var sTitle = sTown + ' (R' + iRegion.toString() + ')';
		if (sStreet !='') {
			sTitle = sStreet + ", " + sTown + ' (R' + iRegion.toString() + ')';
		}
		var sDetail =  "Date: " + sTime + "<br />";
		sDetail += "Type: " + sType + "<br />";
		sDetail += "Status: " + sStatus + "<br />";
		sDetail += "Size: " + sSize + "<br />";
		if (iVehicles !='') {
			sDetail += "Vehicles: "  + iVehicles.toString() +  "<br />";
		}
		if (iFireId > 200) {
				sURL = 'http://www.incidentalert.com.au/iav5/index.php?option=com_content&view=article&id=56&Itemid=64&lngFireId=';
                sDetail += "Street level <a href='" + sURL + iFireId.toString().substr(0,6) + "' target='_blank'>maps</a><br/>";
		}
		var strPinId = new VEPushpin(
			parseInt(iFireId,10), 
			new VELatLong(iLat, iLon), 
			"http://www.incidentAlert.com.au/iav4/images/ve/" + icon + ".gif", 
			'<b>' + sTitle + '</b>' , 
			sDetail, // Details
        	'', //Icon style class name
        	'', //Title style class name
        	'' //Preview style class name

        );

		if (map)
		{
			map.AddPushpin(strPinId);
		} else {
			//setTimeout("fncReloadIframeV2();",1000 * 15);
			//set interval
			//map.AddPushpin(strPinId);
			// clear
		}
	}
	function showHotSpot(ispot,lat,lon,brightness,scan,track,dtmdate,dtmtime, satellite,confidence, version, brightness_t31,FRP,localTime,delayHour) {
		icon = "hotspot-red";
		if (confidence < 75) {
			icon = "hotspot-red-50";
		}
		sSat = "Terra";
		if (satellite =="A") {sSat = "Aqua"}
		sDisclaimer  = "<br /><p>We only show the most recent hotspots that have a high level of confidence. For more indepth details, please visit <a target='_blank' href='http://sentinel.ga.gov.au/acres/sentinel/index.shtml'>Geoscience Australia</a>.</p><p>Data supplied by NASA/University of Maryland, 2002. <strong>MODIS Hotspot / Active Fire Detections.</strong> Data set. MODIS Rapid Response Project, NASA/GSFC [producer], University of Maryland, <a href='http://maps.geog.umd.edu/firms/' target='_blank'>Fire Information for Resource Management System</a> [distributors]. ";
		sTitle = "Possible fire detected by MODIS satellite</p>";
		sDetails = "Date: " + localTime + " (local time)<br />";
		sDetails += "Confidence: " + confidence.toString() + "% ";
		sDetails += "from the " + sSat + " satellite: " +  "<br />";
		sDetails += "Data is greater than " + delayHour.toString() + " hours old and the fire may no longer be active.<br />" + sDisclaimer;
		sIconCSS = "veMap-hotspot-icon-100";
		if (delayHour > 6) {sIconCSS = "veMap-hotspot-icon-75";}
		if (delayHour >12) {sIconCSS = "veMap-hotspot-icon-50";}	
		if (delayHour >18) {sIconCSS = "veMap-hotspot-icon-40";}
		if (delayHour >24) {sIconCSS = "veMap-hotspot-icon-25";}
		if (delayHour >36) {sIconCSS = "veMap-hotspot-icon-10";}			
		var strPinId = new VEPushpin(
			ispot, 
			new VELatLong(lat, lon), 
			"http://www.incidentAlert.com.au/iav4/images/ve/" + icon + ".gif", 
			'<strong>' + sTitle + '</strong>' , 
			sDetails, // Details
        	sIconCSS, //Icon style class name
        	'veMap-hotspot-title', //Title style class name
        	'veMap-hotspot-body' //Preview style class name
        );
		if (map) { 	
			map.AddPushpin(strPinId);
		} 	
	}
	function showLocust(sId,lat,lng,type,location,sTime,density,direction) {
		var strPinId = "pinId" + sId.toString();
		var sTitle = "Recent Locust Spot:<br /> " + density;
		var sDetail =  "Date: " + sTime + "<br /><p>";
		sDetail += "Location: " + location + "</p>";		
		//sDetail += "Density: " + density + " <br />";
		sDetail += "Direction: " + direction + "<br />";
		sDetail += "&nbsp;<br><p>Content provided by <a href='http://new.dpi.vic.gov.au/agriculture/pests-diseases-and-weeds/plague-locusts/swarms-activity-map/' target='_blank'>DPI</a> </p>";
		sDetail += "<p>The DPI are keen to <a href='http://new.dpi.vic.gov.au/agriculture/pests-diseases-and-weeds/plague-locusts/swarms-activity-map/submit-a-swarm-location/' target='_blank'>register</a> swarms. If you have recently seen a swarm that is not reported here, please log it.</p>";
		
		var strPinId = new VEPushpin(
			parseInt(sId,10), 
			new VELatLong(lat, lng), 
			"images/ve/locust-" + direction.toLowerCase() +  ".gif", 
			'<strong>' + sTitle  + '</strong>' , 
			sDetail, // Details
        	'veMap-locust-icon', //Icon style class name
        	'veMap-locust-subject', 
        	'veMap-locust-body' //Preview style class name
        );

		if (map)
		{
			map.AddPushpin(strPinId);
		} 
	}
	function showSESAlert(sId,lat,lng,sTitle,sTime,sLocation,sURL,sDesc,strIconToUse) {
		var strPinId = "pinId" + sId.toString();
		var sTitle = "SES " + sTitle + "<br /> ";
		var sDetail =  "Date: " + sTime + "<br />";
		sDetail += "Location: " + sLocation ;		
		sDetail += "<p><a href='" + sURL + "' target='_blank'>SES Warning (opens in new tab)</a></p><p>" + sDesc + "</p>";
		sDetail += "<a href='http://www.ses.vic.gov.au/CA256AEA002F0EC7/page/Current+Emergency+Information?OpenDocument&1=05-Current+Emergency+Information~&2=~&3=~' target='_blank' >SES Alerts and warnings (new tab)</a>"
	    sDetail += "<p style='font-size:smaller'>n.b. As of Wednesday 19th, we will no longer be showing flood warnings - only Evacuation alerts. This was not taken lightly however due to the delay in releasing the flood reports, we feel that the content may no longer be accurate. </p>"
		
	sIcon = "images/ve/sesWarn.gif";
    if (strIconToUse !="") {
	      sIcon = strIconToUse;
    }
		var strPinId = new VEPushpin(
			parseInt(sId,10), 
			new VELatLong(lat, lng), 
			sIcon, 
			'<strong>' + sTitle  + '</strong>' , 
			sDetail, // Details
        	'', //Icon style class name
        	'veMap-ses-subject', 
        	'veMap-ses-body' //Preview style class name
        );

		if (map)
		{
			map.AddPushpin(strPinId);
		} 
	}	
	function showSchool(sId,lat,lng,sSchool,sDesc,sSpare) {
		var strPinId = "pinId" + sId.toString();
		var sTitle = "Department of Education and Early Childhood Development school closure or delayed school opening: <br /> ";
		var sURL = "http://www.education.vic.gov.au/about/emergencies/floods.htm";
		sDetail = "<h3>" + sSchool+"</h3>";		
		sDetail += "<p>" + sDesc + "</p><a href='" + sURL + "' target='_blank'>DEECD website (opens in new tab)</a>";

		var strPinId = new VEPushpin(
			parseInt(sId,10), 
			new VELatLong(lat, lng), 
			"images/ve/school-closed.png", 
			'<strong>' + sTitle  + '</strong>' , 
			sDetail, // Details
        	'', //Icon style class name
        	'veMap-school-subject', 
        	'veMap-school-body' //Preview style class name
        );

		if (map)
		{
			map.AddPushpin(strPinId);
		} 
	}		
	function showFlood(sLoc,sId,iLat,iLon,iHeight,sLevel,sStatus,sDate,sSpare1,sSpare2,sSpare3,sSpare4) {
		var strPinId = "pinId" + sId.toString();
		var sTitle = "Flood level details:<br /> " + sLoc;
		var sDetail =  "Date: " + sDate + "<br />";
		sDetail += "Height: " + iHeight + "m<br />";		
		sDetail += "Level: " + sLevel + " flooding<br />";
		sDetail += "Status: " + sStatus + "<br />";
		sDetail += "&nbsp;<br><p>Content provided by <a href='http://www.bom.gov.au/water/regulations/search.php' target='_blank'>Bureau of Meteorology</a> (BOM) from over 250 companies. We do not endorse BOM and these figures have yet to be validated. <br />N.B. River levels are currently being tested and you should consult the BOM and SES websites </p>";
		switch(sLevel) {
		case "Below Flood Level":
		  sFloodCss = "veMap-flood-minor";
		  break;
		case "Minor":
		  sFloodCss = "veMap-flood-minor";
		  break;
		case "Moderate":
		  sFloodCss = "veMap-flood-moderate";
		  break;
		case "Major":
		  sFloodCss = "veMap-flood-major";
		  break;		  
		default:
		  sFloodCss = "veMap-flood-minor";
		}
		var strPinId = new VEPushpin(
			parseInt(sId,10), 
			new VELatLong(iLat, iLon), 
			"http://www.incidentAlert.com.au/iav4/images/ve/flood.gif", 
			'<strong>' + sTitle + '</strong>' , 
			sDetail, // Details
        	sFloodCss, //Icon style class name
        	'veMap-river-title', 
        	'veMap-river-body' //Preview style class name
        );

		if (map)
		{
			map.AddPushpin(strPinId);
		} else {
			//setTimeout("fncReloadIframeV2();",1000 * 15);
			//set interval
			//map.AddPushpin(strPinId);
			// clear
		}
	}

	 function GetInfo()
	 {
		alert('The latitude and longitude at the center of the map are:\n '+map.GetCenter() + '\nand the zoom level is ' + map.GetZoomLevel());
	 }

	function ShowFireTable() 
	{
		var o = document.getElementById('veMap')
		if (o) {
			//o.style.display = 'none';
			o.style.visibility="hidden";
		}
		var o = document.getElementById('iframeMap')
		if (o) {
			//o.style.display = 'inline';
			o.style.visibility="visible";
		}
	}
	function doLoadDelay() {
		if (readCookie("announce")=="") {
			strAnnounce = "-1";
		} else {
			strAnnounce = readCookie("announce");
		}
		
		if (readCookie("soundType")=="") {
			strSound = "off";
		} else {
			strSound = readCookie("soundType");
		}
		
		
		if (readCookie("timezone")=="") {
			strTimezone = "0";
		} else {
			strTimezone = readCookie("timezone");
		}		
		if (readCookie("showFlood")=="") {
			strShowFlood = "-1";
		} else {
			strShowFlood = readCookie("showFlood");
		}
		
		if (readCookie("showHotspot")=="") {
			strShowHotspot = "-1";
		} else {
			strShowHotspot = readCookie("showHotspot");
		}	
		
		if (readCookie("showSafe")=="") {
			strShowSafe = "-1";
		} else {
			strShowSafe = readCookie("showSafe");
		}			
		//document.getElementById('iframeData').src = 'veMapDataV2.asp?HWM=-1&showFlood=' + strShowFlood + '&showHotspot=' + strShowHotspot + '&showSafe=' + strShowSafe;	
		var t = new Date().getTime();
		var o = document.getElementById('iframeData');
		o.src = 'veMapDataV2.asp?HWM=-1' +  
			'&txtSoundType='+ strSound + 
			'&announce='    + strAnnounce +
			'&intRegion='   + strTimezone +  
			'&showFlood='   + strShowFlood +
			'&showHotspot=' + strShowHotspot +
			'&showSafe='    + strShowSafe + 
			'&intTimezone=' + strTimezone + 			
			'&dtm='+t;


	}
//-------------- New Code ---------//
function processFire(strFire) {
	try 
	{		
		arrFire = strFire.split("~");
		myFire.lngFireId 			= arrFire[0];
		myFire.intFireRegion 		= arrFire[1];
		myFire.txtFireLocation 		= arrFire[2];
		myFire.txtFireControl 		= arrFire[3];	
		myFire.dtmFireDate 			= arrFire[4];	
		myFire.txtFireType 			= arrFire[5];
		myFire.txtFireStatus 		= arrFire[6];
		myFire.txtFireSize 			= arrFire[7];
		myFire.intFireAppliances 	= arrFire[8];
		myFire.lngFireTypeID 		= arrFire[10];
		myFire.lngFireSizeID 		= arrFire[11];
		myFire.dblFireLat	 		= arrFire[16];	
		myFire.dblFireLon			= arrFire[17];	
		myFire.newFire				= false;
		if (myFire.lngFireId  > dataObj.hwm ) {
			if (dataObj.hwm !=-1) {
				myFire.newFire		= true; 
			}
			if (dataObj.hwmNew < myFire.lngFireId) {
				dataObj.hwmNew = myFire.lngFireId;
			}			
		}
		if ((myFire.intFireRegion == 25) && (myFire.lngFireId=="")) {
			// do nothing - dup
		} else {
			void addFireToTable();
			void addFireToMap();
			void addFireToAlarm();
			void addFireToAnnounce();
		}
	} catch(err)  {
		txt="Sorry, there was an error in processFire.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
	  	txt+="Click OK to continue.\n\n";
	  	alert(txt);
	}	

};
function processAircraft(strAircraft) {
	//alert(strAircraft);
	//'BIRDDOG 374~Sun, Dec 11 2011 8:03PM~9.719~6.0~-37.0693~142.7413';
	arrAircraft = strAircraft.split("~");
	aircraftId ++;

	var strPinId = "pinId" + aircraftId.toString();
	var sTitle ="<div style='color:#fff;background-color:#000000;padding:0.5em;margin-bottom:0em;'>Aircraft: " + arrAircraft[0] + "</div>";
	var sDetail = "<div style='border:#000 outset 1px;margin-top:0px;padding:1em 0px 1em 1em; background-color:#eee'>";
	if (arrAircraft[7] !="") {
		sDetail +=  "Type: " + arrAircraft[7] + "<br />";	
	}
	sDetail +=  "Last Ob: " + arrAircraft[1] + "<br />";
	sDetail += "Speed (knots): " + arrAircraft[2] + "<br />";
	sDetail += "Course: " + arrAircraft[3] + "&deg;<br />(Beta testing)</div>";	

	//	if (strIcon=="plane.png") {
	intDegrees =  Math.round(arrAircraft[3] / 10) * 10;
	strDegrees = "000" + intDegrees.toString();
	strIcon = arrAircraft[6] + strDegrees.slice(-3) + ".png"; // e.g. plane090.png
	//}

	var strPinId = new VEPushpin(
		parseInt(aircraftId,10), 
		new VELatLong(arrAircraft[4],arrAircraft[5]), 
		"http://www.incidentAlert.com.au/iav4/images/ve/" + strIcon, 
		'<b>' + sTitle + '</b>' , 
		sDetail, // Details
		'', //Icon style class name
		'', //Title style class name
		'' //Preview style class name

	);

	if (map) {
		map.AddPushpin(strPinId);
	} 	
}
function clearTable() {
	try 
	{	
		document.getElementById("errorLog").innerHTML = "";
		var strTemp = "";
		myTableText.vic = strTemp;
		var strTemp = ""; //"<div id=\"tabSA\">" + myTableText.thsa;	
		myTableText.sa = strTemp;
		dataObj.hwm = dataObj.hwmNew; // Set hwm to current	
		dataObj.currPins = "";
		var oMap = map;
		if (oMap) {
			map.DeleteAllPushpins();
		}
		document.getElementById("divSounds").innerHTML = "...";
		if (dataObj.iLoopCount > 0 ) {
			 $("#divAdsense").animate({ opacity: 'hide' },180000);   // $("#divAdsense").is(":visible")
		}
		dataObj.iLoopCount ++;
	} catch(err)  {
	  txt="Sorry, there was an error in clearTable.\n\n";
	  txt+="Error description: " + err.description + "\n\n";
	  txt+="Click OK to continue.\n\n";
	  alert(txt);
	}			
}
function addFireToTable() {
	try 
	{			
		var o = document.getElementById('fireList');
		var strTemp = "";
		//var arrDate = myFire.dtmFireDate.split(" ");
		//var strTime = arrDate[1] + " ";
		//strTime = strTime.replace(":00 ","");
		
		// --- Colour ---
		var strRowClass = "color:#999999;";
		if (myFire.txtFireStatus.toLowerCase()!="safe") {
			strRowClass="color:yellow;"
			if (myFire.intFireAppliances > 5 ) {
				strRowClass="color:orange;"
			}
			if (myFire.intFireAppliances > 8 ) {
				strRowClass="color:red;"
			}	
			if (myFire.txtFireSize.toLowerCase()=="medium" ) {
				strRowClass="color:red;"
			}	
			if (myFire.txtFireSize.toLowerCase()=="large" ) {
				strRowClass="color:red;"
			}				
			if (myFire.lngFireSizeID > 1 ) {
				strRowClass="color:red;font-weight:bold;"
			}		
			
		} else {
			if (myFire.lngFireSizeID > 1) {
				strRowClass="color:brown; font-weight:normal"	
			}		
		}
	
	
		var strNew = "<td>&nbsp;</td>";	
		if (myFire.newFire == true) {
			strNew = "<td class=\"newFire\">New</td>";		
		}
		var strMap = "<td>&nbsp;</td>";
	
		if (myFire.lngFireId >  200) {
			 strMap = "<td><a href=\"" + dataObj.mapurl + myFire.lngFireId + "\" target=\"_blank\" style=\"" + strRowClass + "\">map</a></td>";
		}
		strTemp += "<tr class=\"row\" style=\"" + strRowClass +  "\"  ><td style=\"border-bottom:#999999 solid 1px;\">" + fncConvertRegion(myFire.intFireRegion) + "</td>";
		strTemp += "<td >" + myFire.txtFireLocation + "</td>";	
		strTemp += "<td>" + myFire.txtFireControl + "</td>";
		strTemp += "<td>" + fncDispTime("time") + "</td>";	
		strTemp += "<td>" + myFire.txtFireType + "</td>";
		strTemp += "<td>" + myFire.txtFireStatus + "</td>";
		strTemp += "<td>" + myFire.txtFireSize + "</td>";
		strTemp += ("<td style='text-align:right;'>&nbsp;" + myFire.intFireAppliances + "&nbsp;</td>").replace(/&nbsp;0&nbsp;/,"&nbsp;");	
		strTemp += strMap;	
		strTemp += strNew;	
		strTemp += "</tr>";
		strTemp = strTemp.replace(/>25</gi, ">MFB<");
		
		if (myFire.intFireRegion < 26) {
			myTableText.vic = strTemp + myTableText.vic;
		} else if(myFire.intFireRegion < 57) {
			myTableText.sa  = strTemp + myTableText.sa;
		} else {
			myTableText.nsw  = strTemp + myTableText.nsw;
		}
	} catch(err)  {
	  txt="Sorry, there was an error in addFireToTable. \n\n";
	  txt+="Error description: " + err.description + "\n\n";
	  document.getElementById("errorLog").innerHTML = txt;
	}	
}
function closeTable() {
	try 
	{		
		var strTemp = "</table></div>";
		myTableText.vic = "<div id=\"tabVic\">" + myTableText.thvic + myTableText.vic + strTemp;
		myTableText.sa = "<div id=\"tabSA\">" + myTableText.thsa + myTableText.sa + strTemp;
		//myTableText.sa += strTemp;
		document.getElementById('tabVic').innerHTML =  myTableText.vic;	
		document.getElementById('tabSA').innerHTML = myTableText.sa;
		$('.media').media( { width: 100, height: 50, autoplay: true } )
		if (dataObj.announce !="") {
			document.getElementById('iframeAnnounce').src = "veMapv2Speech.php?tl=en&q=" + dataObj.announce + " .";
		}
		dataObj.announce = "";
	} catch(err)  {
	  txt="Sorry, there was an error in closeTable - If you are using IE9, we are working on the issue which is due to a media issue.\n\n";
	  txt+="Error description: " + err.description + "\n\n";
	  txt+="Click OK to continue.\n\n";
	  document.getElementById("errorLog").innerHTML += txt;
	  //alert(txt);
	}	
}
function addFireToAlarm() {
	try 
	{	
		
		if (myFire.newFire == false) {
			if (dataObj.debug==false) {
				return false;
			}	
		}
		if ($('#intRegion').val() ==-1) {
			return false; // Set to none.	
		}
		if (($('#intRegion').val() !=99) && ($('#intRegion').val() != myFire.intFireRegion)) {
			return false;	
		}
	
		var sAlarmType = "";
		switch($('#txtSoundType').val()) {
		case "Siren":
		  sAlarmType = "Siren";
		  break;
		case "Beep":
		  sAlarmType = "Beep";
		  break;
		case "None":  
		default:
		  return false;	
		}
		sTemp ="going~full call~initiated~not yet under-control~alarm escalated~full call~initiated~investigating~monitoring";
		if ((sTemp.indexOf(myFire.txtFireStatus.toLowerCase()) !=-1 ) || (myFire.txtFireStatus.toUpperCase()=="NOT YET UNDER CONTROL"))  {
			if ((myFire.lngFireSizeID > 1) || (myFire.intFireAppliances > 8)) {
				sAlarmType += "Large";
			} else {
				sAlarmType += "Small";
			}
		} else {
			sAlarmType += "Safe";
		}
		//defaultBeepSafe
		var sAlarm = "default" + sAlarmType + ".wav";

		
		var strTemp = "";
		strTemp = "<a class=\"media\" href=\"alarms/" + sAlarm + "\">audio</a>";
		document.getElementById("divSounds").innerHTML += strTemp;
	} catch(err)  {
	  	txt="Sorry, there was an error in addFireToAlarm.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
	  	txt+="Click OK to continue.\n\n";
	  	alert(txt);
	}		

}
function addFireToAnnounce() {
	try 
	{	
		strRegion = $('#intRegion').val();
		if (myFire.newFire == false) {
			if (dataObj.debug==false) {
				return false;
			}	
		}
		if ($('#intRegion').val() ==-1) {
			return false; // Set to none.	
		}
		
		if ($('#intRegion').val() != myFire.intFireRegion) { // not this region
			return false;	
		}
		if ($('#announce') == "Off") {
			return false;	
		}	
		sTemp = "Fire call. "
		if (myFire.txtFireStatus.toLowerCase()!="going") {
			sTemp = "Fire update. "	
		}
		if ((myFire.lngFireSizeID > 1) || (myFire.intFireAppliances > 8)) {
			sAnnounceType = " large ";
		} else {
			sAnnounceType = " ";
		}
		sTemp = sTemp + fixRoadType(myFire.txtFireControl) + ", " + myFire.txtFireLocation + ". " + sAnnounceType  + fixFireType(myFire.txtFireType) + ", " + myFire.txtFireStatus 

		dataObj.announce += sTemp + "~"
	} catch(err)  {
	  	txt="Sorry, there was an error in addFireToAnnounce.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
	  	txt+="Click OK to continue.\n\n";
	  	alert(txt);
	}		
}
function fixFireType(strFireType) {
	sTemp = strFireType.toLowerCase().replace('hazmat', 'hazardous material incident');
	return sTemp;
}
function fixRoadType(strControl) {
	var sTemp = strControl + "|";
	sTemp = sTemp.replace('rd|', 'road');
	sTemp = sTemp.replace('st|', 'street');	
	sTemp = sTemp.replace('av|', 'avenue');	
	sTemp = sTemp.replace('dr|', 'drive');
	sTemp = sTemp.replace('hwy|', 'highway');	
	sTemp = sTemp.replace('ct|', 'court');	
	sTemp = sTemp.replace('cr|', 'crescent'); 
	sTemp = sTemp.replace('la|', 'lane');
	sTemp = sTemp.replace('fwy|', 'freeway');
	sTemp = sTemp.replace('pde|', 'parade');	
	sTemp = sTemp.replace('pl|',  'place');	
	sTemp = sTemp.replace('cl|',  'close');		
	sTemp = sTemp.replace('gv|', 'grove');		
	sTemp = sTemp.replace('bvld|', 'boulevard');	
	sTemp = sTemp.replace('cirt|', 'circuit');		
	sTemp = sTemp.replace('tce|', 'terrace');
	sTemp = sTemp.replace('trk|', 'track');		
	sTemp = sTemp.replace('|', '');	
	
	sTemp = sTemp.replace('+', ' on the corner of ');		
	return sTemp;
}
function addFireToMap() {
	try 
	{		
		dataObj.id++;
		icon = fncGetIcon();
		//zindex = fncGetZIndex();
		var lclLat = myFire.dblFireLat.toString().substring(0,7);
		var lclLon = myFire.dblFireLon.toString().substring(0,7);
		var latLon = lclLat + "~" + lclLon;
		var pos = dataObj.currPins.indexOf(latLon);
		while (pos != -1) {
			lclLon = parseFloat(lclLon) + parseFloat(0.015);
			latLon = lclLat + "~" + lclLon;
			pos = dataObj.currPins.indexOf(latLon);
		}
		dataObj.currPins += "|" + latLon;
	
		sTitle = fncBuildPushpinTitle();
		sDetail = fncBuildPushpinText();
		var strPinId = new VEPushpin(
			parseInt(dataObj.id), 
			new VELatLong(lclLat, lclLon), 
			"http://www.incidentAlert.com.au/iav4/images/ve2/" + icon , 
			'<strong>' + sTitle +  '</strong>', 
			sDetail, // Details
			'', //Icon style class name
			'', //Title style class name
			'' //Preview style class name
		);

	
		if (map)
		{
			//map.AddShape(pin);
			map.AddPushpin(strPinId);
		} else {
			//alert('oops');	
		}
	} catch(err)  {
	  	txt="Sorry, there was an error in addFireToMap.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
	  	txt+="Click OK to continue.\n\n";
	  	//alert(txt);
	}
}
function fncBuildPushpinTitle() {
	try 
	{		
		var sTemp =  myFire.txtFireLocation;
		var sRegType = "-";
		if (myFire.txtFireControl !="") {
			sTemp = myFire.txtFireControl + ", " + 	myFire.txtFireLocation;
		}
		sRegType = " (Region " + fncConvertRegion(myFire.intFireRegion) + ")";
		if (myFire.intFireRegion < 25) {
			sRegType = " (CFA district " + myFire.intFireRegion + ")";
		}	
		if (myFire.intFireRegion ==25) {
			sRegType = " (MFB)";
		}
		if (myFire.intFireRegion ==50) {
			sRegType = " (MFS)";
		}	
		sTemp = "<div style='color:#fff;background-color:#000000;padding:0.5em;margin-bottom:0em;'>" + sTemp + sRegType + "</div>";
		return sTemp; 
	} catch(err)  {
	  	txt="Sorry, there was an error in addFireToMap.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
	  	txt+="Click OK to continue.\n\n";
	  	alert(txt);
	}	
}
function fncBuildPushpinText() {
	try 
	{		
		var sTemp = "<div style='border:#000 outset 1px;margin-top:0px;padding:1em 0px 1em 1em; background-color:#eee'>";
		sTemp 	 += "Date:  " +  fncDispTime("datetimeFmt") + "<br />";
		sTemp    += "Type: " + myFire.txtFireType + "<br />";
		sTemp    += "Status: " +  myFire.txtFireStatus + "<br />";
		sTemp    += "Size: " +  myFire.txtFireSize + "<br />";
		if (myFire.intFireAppliances !=="0") {
			sTemp    += "Vehicles:  " +  myFire.intFireAppliances + "<br />";
		}
		sTemp    += "<br /><a href='" + dataObj.mapurl +  myFire.lngFireId + "' target='_blank'>Details &amp; mapping </a><br />";
		sParam = "\"" + myFire.txtFireLocation + "\",\"" + myFire.txtFireControl + "\"," +  myFire.dblFireLat + "," + myFire.dblFireLon
		sTemp += "<br /><a href='javaScript:void showTwitter(" + sParam + ")' >Latest from Twitter </a><br /></div>";
		return sTemp;
	} catch(err)  {
	  	txt="Sorry, there was an error in fncBuildPushpinText.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
		document.getElementById("errorLog").innerHTML += txt;
	}	
}
function showTwitter(sTown,sLocation,dblLat,dblLon) {
	$("#twitterContainer").show(2000);
	dataObj.twitterType 	= dataObj.twitterType
  	dataObj.twitterStreet 	= sLocation;
  	dataObj.twitterTown 	= sTown;
  	dataObj.twitterLat 		= dblLat;
  	dataObj.twitterLon 		= dblLon;
	void swapTweetType(dataObj.twitterType);
}
function swapTweetType(strType) {
	if (dataObj.twitterTimeout !=-1) {
		clearTimeout(dataObj.twitterTimeout);
	}
	strGeoLink 		= " <a href=\"Javascript:void swapTweetType('geo')\">Local tweets</a> - ";	
	strKeywordLink	= " <a href=\"Javascript:void swapTweetType('keyword')\">Tweets by keyword</a> - ";
	strBushfireLink	= " <a href=\"Javascript:void swapTweetType('bushfire')\">#bushfire</a> - ";	
	strAlertLink	= " <a href=\"Javascript:void swapTweetType('alert')\">Large incidents</a>  ";	
	switch(strType) {  
	case "":
	case "keyword":
		//if (dataObj.twitterStreet !="") {
		if (1==2) {
			strLink		= "<div class='tweetTitleLinks'>View: Tweets by keyword - " + strGeoLink + strBushfireLink + strAlertLink+"</div>";
			strTitle 	= "<strong>Displaying tweets about " + dataObj.twitterStreet + " or " + dataObj.twitterTown + "</strong>" + strLink ;	
			strQuery 	= '' + (dataObj.twitterStreet.toLowerCase())  + '+OR+\"' + dataObj.twitterTown.toLowerCase() + '\"';
		} else {
			strLink		= "<div class='tweetTitleLinks'>View: Tweets by keyword - " + strGeoLink + strBushfireLink + strAlertLink+"</div>";
			strTitle 	= "<strong>Displaying tweets about "  + dataObj.twitterTown +  "</strong>" + strLink;	
			strQuery 	= '\"' + dataObj.twitterTown.toLowerCase()+ '\"'; 
		}	
	  	break;
	case "geo":
		strLink		= "<div class='tweetTitleLinks'>View: " + strKeywordLink + "Local Tweets - " + strBushfireLink + strAlertLink+"</div>";
		strQuery = "&amp;geocode=" + dataObj.twitterLat + "%2C" + dataObj.twitterLon + "%2C10.0km&lang=all&rpp=10";
		strTitle 	= "<strong>Displaying tweets near " + dataObj.twitterStreet + ", " + dataObj.twitterTown +"</strong><div style='background-color:red;'>Currently Twitter is returning incorrect results that don't relate to the area and whilst some of the tweets may be correct, many are not. This bug has been logged with Twitter and hopefully rectified shortly.</div>" + strLink ; 	
	  break;  
	case "bushfire":
		strLink		= "<div class='tweetTitleLinks'>View: " + strKeywordLink + strGeoLink + "#bushfire " + strAlertLink+"</div>";
		strTitle 	= "<strong>Displaying tweets with the hashtag #bushfire </strong>" + strLink ;	
		strQuery 	= 'bushfire+OR+%23firevic';	
	  break;  
	case "alert":
		strLink		= "<div class='tweetTitleLinks'>View: " + strKeywordLink + strGeoLink + strBushfireLink + "Large incidents</div>";		
		strTitle 	= "<strong>Displaying large incident tweets </strong>" +  strLink ;	
		strQuery 	= 'cfa_updates+OR+incident_alert';	
	  break;  	  
	}
	strTweetMe = "<br/><a href=\"http://twitter.com/intent/tweet?text="+dataObj.twitterTown+"%20update%3A%20\" onclick=\"return !window.open(this.href, 'tweet', 'menubar=1,location=1,resizable=1,width=350,height=350')\"><img src=\"images\\tweet-it.png\"> Do you know more? Tweet it here! <img src=\"images\\tweet-it.png\"></a>";

	$("#twitterTitle").html(strTitle + strTweetMe);
	strTwitterFeed = "<div class='monitter' id='tweets1' title='"  +  strQuery + "' lang='en'></div>";
	$("#twitterDisplay").html(strTwitterFeed);
	window.monitter={};
	$('.monitter').each(function(e){
		rrp=10;fetch_tweets(this);
	});	
}

function fncSetMapPos(iLat,iLon,iZoom) {
	try 
	{	
		var o = document.getElementById('fireList');
		if (o) {
			o.style.display="none";
		}
		var x = new VELatLong(iLat, iLon);
		map.SetCenterAndZoom(x,iZoom );
	} catch(err)  {
	  	txt="Sorry, there was an error in fncSetMapPos.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
	  	txt+="Click OK to continue.\n\n";
	  	alert(txt);
	}
}
function fncConvertRegion(sRegion) {
	try 
	{	
		sTemp = sRegion;
		if (parseInt(sRegion,10) > 49 & parseInt(sRegion,10) < 60) {
			sTemp = parseInt(sRegion,10) - 50;
			sTemp = sTemp.toString();
		}
		if (sRegion == "25") {
			sTemp = "MFB";	
		}
		if (sRegion == "50") {
			sTemp = "MFS";	
		}	
		return sTemp;
	} catch(err)  {
	  	txt="Sorry, there was an error in fncConvertRegion.\n\n";
	  	txt+="Error description: " + err.description + "\n\n";
	  	txt+="Click OK to continue.\n\n";
	  	alert(txt);
	}		
}
function fncGetIcon () {
	icon = "f";

	
	sTemp ="going~full call~initiated~not yet under-control~alarm escalated~full call~initiated~investigating~monitoring";
	if ((sTemp.indexOf(myFire.txtFireStatus.toLowerCase()) !=-1 ) || (myFire.txtFireStatus.toUpperCase()=="NOT YET UNDER CONTROL"))  {
		icon +="g";
	}

	sTemp ="controlled~contained~under control";
	if ((sTemp.indexOf(myFire.txtFireStatus.toLowerCase()) !=-1 )  &&  (myFire.txtFireStatus.toUpperCase()!="NOT YET UNDER CONTROL")) {
		icon +="c";
	}	
	
	if (icon.length == 1) {
		icon +="s"; 
	}
	isLarge = false;
	if ("medium~large".indexOf(myFire.txtFireSize.toLowerCase())!=-1) {
		isLarge = true;	
	}
	if ((myFire.lngFireSizeID > 1) || (myFire.intFireAppliances > 8) || (isLarge==true) ) {
			icon += "l";
	} else {
		if (myFire.intFireAppliances > 5) {
			icon += "m";
		}
	} 

	if (icon.length == 2) { 
		icon +="s";
	}
	if (myFire.newFire == true) {
		icon +="n";
	}	
	icon +=".gif";

	return icon;
}
function fncGetZIndex() {
	// Not operational
	var iIndex = 1;

	if (myFire.intFireAppliances > 8) {
		iIndex = 5;
	} 	
	if (myFire.lngFireSizeID > 1) {
		iIndex = 9;
	}
	/*
	if (indexOf("going~full call~initiated~",myFire.txtFireStatus.toLowerCase()) !=-1 )  {
		iIndex += 50;
	}
	if (indexOf("controlled~contained~",myFire.txtFireStatus.toLowerCase()) !=-1 )  {
		iIndex += 20;
	}	
	*/
	return iIndex;
}
function fncDispTime(strFormat) {
	var offset = 0;
	var o = document.getElementById("intTimeZone");
	var oTimeZone = o[o.selectedIndex].value
	var sTmp;

	arrDateTime = myFire.dtmFireDate.split(" ");
	arrDate = arrDateTime[0].split("/");
	arrTime = arrDateTime[1].split(":");
	arrDate[2].length<4?arrDate[2] = "20" + arrDate[2]:arrDate[2];
	if(arrDateTime.length==3) {
		if((arrDateTime[2].toLowerCase()=="pm") && (parseFloat(arrTime[0]) <12)) {
			arrTime[0] = (parseFloat(arrTime[0])+12).toString();
		}
	}
	dtm = new Date(parseFloat(arrDate[2]),parseFloat(arrDate[1]-1),parseFloat(arrDate[0]),parseFloat(arrTime[0]),parseFloat(arrTime[1]),parseFloat(arrTime[2]))

	
	switch(oTimeZone) {  
	case "0":
	case 0:
	  if ((myFire.intFireRegion > 49) && (myFire.intFireRegion < 58)) {
	  	offset = 0.5;
	  } 
	  break;
	case 5:
	case "5":
	  if ((myFire.intFireRegion < 49) || (myFire.intFireRegion > 57)) {
	  	offset = -0.5;
	  } 	
	  break;  	
	}

	currTime = dtm.getTime();
	newTime = new Date(currTime + (3600000*offset));

	switch(strFormat) {  
	case "datetime":
	  sTmp = fncPadTime(newTime.getDate()) + "/" + fncPadTime(newTime.getMonth()) + "/" +  newTime.getFullYear() + " " + fncPadTime(newTime.getHours()) + ":" + fncPadTime(newTime.getMinutes());	
	  break;
	case "datetimeFmt":
	  var a = new Array("Sun ", "Mon ", "Tue ","Wed ","Thu ", "Fri ","Sat ");
	  var b = new Array( "Jan ", "Feb ", "Mar ","Apr ","May ", "Jun ","Jul ","Aug ", "Sep ","Oct ","Nov ", "Dec "); // had XXX
	  var ord = "th ";
	  switch (newTime.getDate()) {
	  	case 1:
		case 21:
		case 31:
			ord = "st ";
			break;
		case 2:
		case 22:
			ord = "nd ";
			break;	
		case 3:
		case 23:
			ord = "rd ";
			break;					
	  }
	  sTmp = a[newTime.getDay()]  + newTime.getDate() + ord + b[newTime.getMonth()]  + " " + fncPadTime(newTime.getHours()) + ":" + fncPadTime(newTime.getMinutes());	
	  //sTmp =  newTime.getDate() + ord + b[newTime.getMonth()]  + " " + fncPadTime(newTime.getHours()) + ":" + fncPadTime(newTime.getMinutes());	

		break;	  
	case "time":
	  sTmp = fncPadTime(newTime.getHours()) + ":" + fncPadTime(newTime.getMinutes());	
	  break;  	
	}

	
	return  sTmp + "<br />"; 
}
function fncPadTime(sTime) {
	var sTmp =sTime;
	if (parseInt(sTime,10) < 10) {
		sTmp = "0" + sTmp;
	}
	return sTmp;
}
function getQuerystring(key, default_)
{
  if (default_==null) default_="";
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
}
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name)
{
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0)
  { 
    offset = document.cookie.indexOf(search);
    if (offset != -1)
    { 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end))
    }
  }
  return cookieValue;
}
function oldReadCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
function saveSettings() {
	// --- Timezone ---
	var oZone = document.getElementById("intTimeZone");
	var strZone = oZone[oZone.selectedIndex].value;
	createCookie('timezone',strZone,720);	
	
	// --- Refresh Rate ---
	var oRate = document.getElementById("intRefreshRate");
	var strRate = oRate[oRate.selectedIndex].value;
	createCookie('refreshRate',strRate,720);	
		
	// --- Sounds ---
	var oType = document.getElementById("txtSoundType");
	var strSoundType = oType[oType.selectedIndex].value;
	createCookie('soundType',strSoundType,720);	

	var oAnnounce = document.getElementById("announce");
	var strAnnounce = oAnnounce[oAnnounce.selectedIndex].value;
	createCookie('announce',strAnnounce,720);	
		
	var oRegion = document.getElementById("intRegion");
	var strSoundRegion = oRegion[oRegion.selectedIndex].value;
	createCookie('soundRegion',strSoundRegion,720);	
	
	// --- Hotspot ---
	var oHotspot = document.getElementById("showHotspot");
	var strShowHotspot = oHotspot[oHotspot.selectedIndex].value;
	createCookie('showHotspot',strShowHotspot,720);	
	// --- Flood ---
	var oFlood = document.getElementById("showFlood");
	var strShowFlood = oFlood[oFlood.selectedIndex].value;
	createCookie('showFlood',strShowFlood,720);
	// --- Show Safe fires ---
	var oSafe = document.getElementById("showSafe");
	var strShowSafe = oSafe[oSafe.selectedIndex].value;
	createCookie('showSafe',strShowSafe,720);

	
	// --- Map ---
	if (map) {
		createCookie('mapCentre',map.GetCenter() ,720);
		createCookie('mapZoom',map.GetZoomLevel() ,720);
		createCookie('mapStyle',map.GetMapStyle(),720);
		createCookie('mapMode',map.GetMapMode(),720);
	}
	alert("Your settings have now been saved");	
}

function showVicStorm(vs) {
	var vicStorm = new VEShape(VEShapeType.Polygon,
	  [
new VELatLong(-35.391599547511, 142.61745541401),
new VELatLong(-35.403438914027, 142.76079936306),
new VELatLong(-35.415278280543, 142.86114012739),
new VELatLong(-35.427117647059, 142.91847770701),
new VELatLong(-35.438957013575, 143.03315286624),
new VELatLong(-35.45079638009, 143.09049044586),
new VELatLong(-35.462635746606, 143.13349363057),
new VELatLong(-35.474475113122, 142.00107643312),
new VELatLong(-35.474475113122, 143.19083121019),
new VELatLong(-35.486314479638, 142.00107643312),
new VELatLong(-35.486314479638, 143.26250318471),
new VELatLong(-35.498153846154, 142.00107643312),
new VELatLong(-35.498153846154, 143.30550636943),
new VELatLong(-35.50999321267, 142.00107643312),
new VELatLong(-35.50999321267, 143.34850955414),
new VELatLong(-35.521832579186, 142.00107643312),
new VELatLong(-35.521832579186, 143.39151273885),
new VELatLong(-35.533671945701, 142.00107643312),
new VELatLong(-35.533671945701, 143.42018152866),
new VELatLong(-35.545511312217, 142.00107643312),
new VELatLong(-35.545511312217, 143.44885031847),
new VELatLong(-35.557350678733, 142.00107643312),
new VELatLong(-35.557350678733, 143.47751910828),
new VELatLong(-35.569190045249, 142.00107643312),
new VELatLong(-35.569190045249, 143.5348566879),
new VELatLong(-35.581029411765, 142.00107643312),
new VELatLong(-35.581029411765, 143.56352547771),
new VELatLong(-35.592868778281, 142.00107643312),
new VELatLong(-35.592868778281, 143.59219426752),
new VELatLong(-35.604708144796, 142.00107643312),
new VELatLong(-35.604708144796, 143.62086305732),
new VELatLong(-35.616547511312, 142.00107643312),
new VELatLong(-35.616547511312, 143.64953184713),
new VELatLong(-35.628386877828, 142.00107643312),
new VELatLong(-35.628386877828, 143.67820063694),
new VELatLong(-35.640226244344, 142.00107643312),
new VELatLong(-35.640226244344, 143.70686942675),
new VELatLong(-35.65206561086, 141.49937261146),
new VELatLong(-35.65206561086, 142.00107643312),
new VELatLong(-35.65206561086, 143.73553821656),
new VELatLong(-35.663904977376, 141.49937261146),
new VELatLong(-35.663904977376, 142.01541082803),
new VELatLong(-35.663904977376, 143.76420700637),
new VELatLong(-35.675744343891, 141.49937261146),
new VELatLong(-35.675744343891, 142.01541082803),
new VELatLong(-35.675744343891, 143.77854140127),
new VELatLong(-35.687583710407, 142.01541082803),
new VELatLong(-35.687583710407, 143.79287579618),
new VELatLong(-35.699423076923, 142.01541082803),
new VELatLong(-35.699423076923, 143.80721019108),
new VELatLong(-35.711262443439, 142.01541082803),
new VELatLong(-35.711262443439, 143.82154458599),
new VELatLong(-35.723101809955, 142.00107643312),
new VELatLong(-35.723101809955, 143.8502133758),
new VELatLong(-35.734941176471, 142.00107643312),
new VELatLong(-35.734941176471, 143.8645477707),
new VELatLong(-35.746780542986, 142.00107643312),
new VELatLong(-35.746780542986, 143.87888216561),
new VELatLong(-35.758619909502, 142.00107643312),
new VELatLong(-35.758619909502, 143.89321656051),
new VELatLong(-35.770459276018, 142.00107643312),
new VELatLong(-35.770459276018, 143.90755095541),
new VELatLong(-35.782298642534, 142.00107643312),
new VELatLong(-35.782298642534, 143.92188535032),
new VELatLong(-35.79413800905, 142.00107643312),
new VELatLong(-35.79413800905, 143.95055414013),
new VELatLong(-35.805977375566, 142.00107643312),
new VELatLong(-35.805977375566, 143.96488853503),
new VELatLong(-35.817816742081, 142.2447611465),
new VELatLong(-35.817816742081, 143.97922292994),
new VELatLong(-35.829656108597, 142.2447611465),
new VELatLong(-35.829656108597, 144.00789171975),
new VELatLong(-35.841495475113, 142.2447611465),
new VELatLong(-35.841495475113, 143.73553821656),
new VELatLong(-35.841495475113, 144.02222611465),
new VELatLong(-35.853334841629, 142.2447611465),
new VELatLong(-35.853334841629, 143.73553821656),
new VELatLong(-35.853334841629, 143.82154458599),
new VELatLong(-35.853334841629, 144.03656050955),
new VELatLong(-35.865174208145, 142.2447611465),
new VELatLong(-35.865174208145, 143.73553821656),
new VELatLong(-35.865174208145, 143.87888216561),
new VELatLong(-35.865174208145, 144.05089490446),
new VELatLong(-35.877013574661, 142.2447611465),
new VELatLong(-35.877013574661, 143.62086305732),
new VELatLong(-35.877013574661, 143.87888216561),
new VELatLong(-35.877013574661, 144.07956369427),
new VELatLong(-35.888852941176, 142.2447611465),
new VELatLong(-35.888852941176, 143.62086305732),
new VELatLong(-35.888852941176, 143.92188535032),
new VELatLong(-35.900692307692, 142.2447611465),
new VELatLong(-35.900692307692, 143.62086305732),
new VELatLong(-35.900692307692, 144.10823248408),
new VELatLong(-35.912531674208, 142.2447611465),
new VELatLong(-35.912531674208, 143.49185350318),
new VELatLong(-35.912531674208, 144.13690127389),
new VELatLong(-35.924371040724, 142.2447611465),
new VELatLong(-35.924371040724, 143.49185350318),
new VELatLong(-35.924371040724, 144.15123566879),
new VELatLong(-35.93621040724, 142.2447611465),
new VELatLong(-35.93621040724, 143.49185350318),
new VELatLong(-35.93621040724, 144.16557006369),
new VELatLong(-35.948049773756, 142.60312101911),
new VELatLong(-35.948049773756, 143.49185350318),
new VELatLong(-35.948049773756, 144.1799044586),
new VELatLong(-35.959889140271, 142.60312101911),
new VELatLong(-35.959889140271, 143.49185350318),
new VELatLong(-35.959889140271, 144.1942388535),
new VELatLong(-35.971728506787, 142.60312101911),
new VELatLong(-35.971728506787, 143.49185350318),
new VELatLong(-35.971728506787, 144.20857324841),
new VELatLong(-35.983567873303, 142.60312101911),
new VELatLong(-35.983567873303, 143.49185350318),
new VELatLong(-35.983567873303, 144.20857324841),
new VELatLong(-35.995407239819, 142.60312101911),
new VELatLong(-35.995407239819, 143.49185350318),
new VELatLong(-35.995407239819, 144.22290764331),
new VELatLong(-36.007246606335, 142.60312101911),
new VELatLong(-36.007246606335, 143.49185350318),
new VELatLong(-36.007246606335, 144.23724203822),
new VELatLong(-36.019085972851, 142.60312101911),
new VELatLong(-36.019085972851, 143.49185350318),
new VELatLong(-36.019085972851, 144.25157643312),
new VELatLong(-36.030925339367, 142.60312101911),
new VELatLong(-36.030925339367, 143.49185350318),
new VELatLong(-36.030925339367, 144.26591082803),
new VELatLong(-36.042764705882, 142.60312101911),
new VELatLong(-36.042764705882, 142.67479299363),
new VELatLong(-36.042764705882, 143.49185350318),
new VELatLong(-36.042764705882, 144.26591082803),
new VELatLong(-36.054604072398, 142.60312101911),
new VELatLong(-36.054604072398, 142.64612420382),
new VELatLong(-36.054604072398, 142.73213057325),
new VELatLong(-36.054604072398, 143.52052229299),
new VELatLong(-36.054604072398, 144.28024522293),
new VELatLong(-36.066443438914, 142.61745541401),
new VELatLong(-36.066443438914, 142.73213057325),
new VELatLong(-36.066443438914, 143.52052229299),
new VELatLong(-36.066443438914, 144.28024522293),
new VELatLong(-36.07828280543, 142.73213057325),
new VELatLong(-36.07828280543, 143.50618789809),
new VELatLong(-36.07828280543, 144.29457961783),
new VELatLong(-36.090122171946, 142.73213057325),
new VELatLong(-36.090122171946, 143.50618789809),
new VELatLong(-36.090122171946, 144.30891401274),
new VELatLong(-36.101961538462, 143.52052229299),
new VELatLong(-36.101961538462, 144.32324840764),
new VELatLong(-36.113800904977, 143.52052229299),
new VELatLong(-36.113800904977, 144.32324840764),
new VELatLong(-36.125640271493, 142.73213057325),
new VELatLong(-36.125640271493, 144.33758280255),
new VELatLong(-36.137479638009, 142.73213057325),
new VELatLong(-36.137479638009, 144.33758280255),
new VELatLong(-36.149319004525, 142.73213057325),
new VELatLong(-36.149319004525, 143.5491910828),
new VELatLong(-36.149319004525, 144.33758280255),
new VELatLong(-36.161158371041, 142.73213057325),
new VELatLong(-36.161158371041, 143.5491910828),
new VELatLong(-36.161158371041, 144.35191719745),
new VELatLong(-36.172997737557, 142.73213057325),
new VELatLong(-36.172997737557, 143.56352547771),
new VELatLong(-36.172997737557, 144.35191719745),
new VELatLong(-36.184837104072, 142.73213057325),
new VELatLong(-36.184837104072, 143.5491910828),
new VELatLong(-36.184837104072, 144.36625159236),
new VELatLong(-36.196676470588, 142.73213057325),
new VELatLong(-36.196676470588, 143.52052229299),
new VELatLong(-36.196676470588, 144.36625159236),
new VELatLong(-36.208515837104, 142.73213057325),
new VELatLong(-36.208515837104, 143.52052229299),
new VELatLong(-36.208515837104, 144.38058598726),
new VELatLong(-36.22035520362, 142.74646496815),
new VELatLong(-36.22035520362, 143.52052229299),
new VELatLong(-36.22035520362, 144.38058598726),
new VELatLong(-36.232194570136, 142.73213057325),
new VELatLong(-36.232194570136, 143.52052229299),
new VELatLong(-36.232194570136, 144.39492038217),
new VELatLong(-36.244033936652, 142.71779617834),
new VELatLong(-36.244033936652, 143.49185350318),
new VELatLong(-36.244033936652, 144.39492038217),
new VELatLong(-36.255873303167, 142.73213057325),
new VELatLong(-36.255873303167, 143.49185350318),
new VELatLong(-36.255873303167, 144.39492038217),
new VELatLong(-36.267712669683, 142.73213057325),
new VELatLong(-36.267712669683, 143.47751910828),
new VELatLong(-36.267712669683, 144.39492038217),
new VELatLong(-36.279552036199, 142.73213057325),
new VELatLong(-36.279552036199, 143.47751910828),
new VELatLong(-36.279552036199, 144.39492038217),
new VELatLong(-36.291391402715, 142.73213057325),
new VELatLong(-36.291391402715, 143.49185350318),
new VELatLong(-36.291391402715, 144.38058598726),
new VELatLong(-36.303230769231, 142.73213057325),
new VELatLong(-36.303230769231, 143.49185350318),
new VELatLong(-36.303230769231, 144.38058598726),
new VELatLong(-36.315070135747, 142.73213057325),
new VELatLong(-36.315070135747, 143.44885031847),
new VELatLong(-36.315070135747, 144.38058598726),
new VELatLong(-36.326909502262, 142.73213057325),
new VELatLong(-36.326909502262, 143.44885031847),
new VELatLong(-36.326909502262, 143.47751910828),
new VELatLong(-36.326909502262, 144.38058598726),
new VELatLong(-36.338748868778, 142.74646496815),
new VELatLong(-36.338748868778, 143.44885031847),
new VELatLong(-36.338748868778, 144.36625159236),
new VELatLong(-36.350588235294, 142.73213057325),
new VELatLong(-36.350588235294, 143.24816878981),
new VELatLong(-36.350588235294, 143.44885031847),
new VELatLong(-36.350588235294, 144.36625159236),
new VELatLong(-36.36242760181, 142.77513375796),
new VELatLong(-36.36242760181, 143.14782802548),
new VELatLong(-36.36242760181, 143.26250318471),
new VELatLong(-36.36242760181, 143.44885031847),
new VELatLong(-36.36242760181, 144.35191719745),
new VELatLong(-36.374266968326, 142.80380254777),
new VELatLong(-36.374266968326, 143.14782802548),
new VELatLong(-36.374266968326, 143.29117197452),
new VELatLong(-36.374266968326, 143.44885031847),
new VELatLong(-36.374266968326, 144.35191719745),
new VELatLong(-36.386106334842, 142.80380254777),
new VELatLong(-36.386106334842, 143.13349363057),
new VELatLong(-36.386106334842, 143.29117197452),
new VELatLong(-36.386106334842, 143.44885031847),
new VELatLong(-36.386106334842, 144.33758280255),
new VELatLong(-36.397945701357, 142.81813694268),
new VELatLong(-36.397945701357, 143.04748726115),
new VELatLong(-36.397945701357, 143.30550636943),
new VELatLong(-36.397945701357, 143.44885031847),
new VELatLong(-36.397945701357, 144.33758280255),
new VELatLong(-36.409785067873, 142.81813694268),
new VELatLong(-36.409785067873, 143.06182165605),
new VELatLong(-36.409785067873, 143.31984076433),
new VELatLong(-36.409785067873, 143.44885031847),
new VELatLong(-36.409785067873, 144.32324840764),
new VELatLong(-36.421624434389, 142.84680573248),
new VELatLong(-36.421624434389, 143.03315286624),
new VELatLong(-36.421624434389, 143.06182165605),
new VELatLong(-36.421624434389, 143.31984076433),
new VELatLong(-36.421624434389, 143.42018152866),
new VELatLong(-36.421624434389, 144.32324840764),
new VELatLong(-36.433463800905, 142.97581528662),
new VELatLong(-36.433463800905, 143.04748726115),
new VELatLong(-36.433463800905, 143.31984076433),
new VELatLong(-36.433463800905, 143.42018152866),
new VELatLong(-36.433463800905, 144.30891401274),
new VELatLong(-36.445303167421, 143.33417515924),
new VELatLong(-36.445303167421, 144.29457961783),
new VELatLong(-36.457142533937, 143.33417515924),
new VELatLong(-36.457142533937, 143.40584713376),
new VELatLong(-36.457142533937, 144.28024522293),
new VELatLong(-36.468981900452, 143.34850955414),
new VELatLong(-36.468981900452, 144.26591082803),
new VELatLong(-36.480821266968, 143.36284394904),
new VELatLong(-36.480821266968, 144.25157643312),
new VELatLong(-36.492660633484, 143.37717834395),
new VELatLong(-36.492660633484, 144.23724203822),
new VELatLong(-36.5045, 143.40584713376),
new VELatLong(-36.5045, 144.22290764331),
new VELatLong(-36.516339366516, 143.42018152866),
new VELatLong(-36.516339366516, 144.20857324841),
new VELatLong(-36.528178733032, 143.43451592357),
new VELatLong(-36.528178733032, 144.1942388535),
new VELatLong(-36.540018099548, 143.43451592357),
new VELatLong(-36.540018099548, 144.16557006369),
new VELatLong(-36.551857466063, 143.43451592357),
new VELatLong(-36.551857466063, 144.15123566879),
new VELatLong(-36.563696832579, 143.44885031847),
new VELatLong(-36.563696832579, 144.13690127389),
new VELatLong(-36.575536199095, 143.44885031847),
new VELatLong(-36.575536199095, 144.10823248408),
new VELatLong(-36.587375565611, 143.49185350318),
new VELatLong(-36.587375565611, 144.09389808917),
new VELatLong(-36.599214932127, 143.49185350318),
new VELatLong(-36.599214932127, 144.05089490446),
new VELatLong(-36.611054298643, 143.50618789809),
new VELatLong(-36.611054298643, 144.02222611465),
new VELatLong(-36.622893665158, 143.50618789809),
new VELatLong(-36.622893665158, 143.99355732484),
new VELatLong(-36.634733031674, 143.50618789809),
new VELatLong(-36.634733031674, 143.96488853503),
new VELatLong(-36.64657239819, 143.49185350318),
new VELatLong(-36.64657239819, 143.89321656051),
new VELatLong(-36.658411764706, 143.49185350318),
new VELatLong(-36.658411764706, 143.83587898089),
new VELatLong(-36.670251131222, 143.47751910828),
new VELatLong(-36.670251131222, 143.76420700637),
new VELatLong(-36.682090497738, 143.63519745223),
new VELatLong(-36.682090497738, 143.70686942675),
new VELatLong(-36.682090497738, 143.67820063694),
new VELatLong(-36.682090497738, 143.49185350318),
new VELatLong(-36.670251131222, 143.49185350318),
new VELatLong(-36.670251131222, 143.43451592357),
new VELatLong(-36.658411764706, 143.50618789809),
new VELatLong(-36.658411764706, 143.36284394904),
new VELatLong(-36.64657239819, 143.50618789809),
new VELatLong(-36.64657239819, 143.31984076433),
new VELatLong(-36.634733031674, 143.52052229299),
new VELatLong(-36.634733031674, 143.29117197452),
new VELatLong(-36.622893665158, 143.52052229299),
new VELatLong(-36.622893665158, 143.2338343949),
new VELatLong(-36.611054298643, 143.52052229299),
new VELatLong(-36.611054298643, 143.2051656051),
new VELatLong(-36.599214932127, 143.50618789809),
new VELatLong(-36.599214932127, 143.17649681529),
new VELatLong(-36.587375565611, 143.50618789809),
new VELatLong(-36.587375565611, 143.14782802548),
new VELatLong(-36.575536199095, 143.49185350318),
new VELatLong(-36.575536199095, 143.09049044586),
new VELatLong(-36.563696832579, 143.46318471338),
new VELatLong(-36.563696832579, 143.04748726115),
new VELatLong(-36.551857466063, 143.46318471338),
new VELatLong(-36.551857466063, 143.01881847134),
new VELatLong(-36.540018099548, 143.44885031847),
new VELatLong(-36.540018099548, 142.96148089172),
new VELatLong(-36.528178733032, 143.44885031847),
new VELatLong(-36.528178733032, 142.91847770701),
new VELatLong(-36.516339366516, 143.43451592357),
new VELatLong(-36.516339366516, 142.87547452229),
new VELatLong(-36.5045, 143.43451592357),
new VELatLong(-36.5045, 142.80380254777),
new VELatLong(-36.492660633484, 143.40584713376),
new VELatLong(-36.492660633484, 142.74646496815),
new VELatLong(-36.480821266968, 143.37717834395),
new VELatLong(-36.480821266968, 142.71779617834),
new VELatLong(-36.468981900452, 143.37717834395),
new VELatLong(-36.468981900452, 142.68912738854),
new VELatLong(-36.457142533937, 143.42018152866),
new VELatLong(-36.457142533937, 143.34850955414),
new VELatLong(-36.457142533937, 142.66045859873),
new VELatLong(-36.445303167421, 143.42018152866),
new VELatLong(-36.445303167421, 142.63178980892),
new VELatLong(-36.433463800905, 143.43451592357),
new VELatLong(-36.433463800905, 143.33417515924),
new VELatLong(-36.433463800905, 143.06182165605),
new VELatLong(-36.433463800905, 143.03315286624),
new VELatLong(-36.433463800905, 142.60312101911),
new VELatLong(-36.421624434389, 143.44885031847),
new VELatLong(-36.421624434389, 143.33417515924),
new VELatLong(-36.421624434389, 143.07615605096),
new VELatLong(-36.421624434389, 143.04748726115),
new VELatLong(-36.421624434389, 142.99014968153),
new VELatLong(-36.421624434389, 142.54578343949),
new VELatLong(-36.409785067873, 143.46318471338),
new VELatLong(-36.409785067873, 143.33417515924),
new VELatLong(-36.409785067873, 143.07615605096),
new VELatLong(-36.409785067873, 142.84680573248),
new VELatLong(-36.409785067873, 142.51711464968),
new VELatLong(-36.397945701357, 143.46318471338),
new VELatLong(-36.397945701357, 143.31984076433),
new VELatLong(-36.397945701357, 143.14782802548),
new VELatLong(-36.397945701357, 142.83247133758),
new VELatLong(-36.397945701357, 142.48844585987),
new VELatLong(-36.386106334842, 143.46318471338),
new VELatLong(-36.386106334842, 143.31984076433),
new VELatLong(-36.386106334842, 143.14782802548),
new VELatLong(-36.386106334842, 142.83247133758),
new VELatLong(-36.386106334842, 142.47411146497),
new VELatLong(-36.374266968326, 143.46318471338),
new VELatLong(-36.374266968326, 143.30550636943),
new VELatLong(-36.374266968326, 143.16216242038),
new VELatLong(-36.374266968326, 142.81813694268),
new VELatLong(-36.374266968326, 142.44544267516),
new VELatLong(-36.36242760181, 143.46318471338),
new VELatLong(-36.36242760181, 143.30550636943),
new VELatLong(-36.36242760181, 143.24816878981),
new VELatLong(-36.36242760181, 142.81813694268),
new VELatLong(-36.36242760181, 142.40243949045),
new VELatLong(-36.350588235294, 143.46318471338),
new VELatLong(-36.350588235294, 143.26250318471),
new VELatLong(-36.350588235294, 142.77513375796),
new VELatLong(-36.350588235294, 142.37377070064),
new VELatLong(-36.338748868778, 143.46318471338),
new VELatLong(-36.338748868778, 142.76079936306),
new VELatLong(-36.338748868778, 142.35943630573),
new VELatLong(-36.326909502262, 143.49185350318),
new VELatLong(-36.326909502262, 143.46318471338),
new VELatLong(-36.326909502262, 142.74646496815),
new VELatLong(-36.326909502262, 142.31643312102),
new VELatLong(-36.315070135747, 143.49185350318),
new VELatLong(-36.315070135747, 142.74646496815),
new VELatLong(-36.315070135747, 142.30209872611),
new VELatLong(-36.303230769231, 143.50618789809),
new VELatLong(-36.303230769231, 142.74646496815),
new VELatLong(-36.303230769231, 142.27342993631),
new VELatLong(-36.291391402715, 143.50618789809),
new VELatLong(-36.291391402715, 142.74646496815),
new VELatLong(-36.291391402715, 142.2447611465),
new VELatLong(-36.279552036199, 143.49185350318),
new VELatLong(-36.279552036199, 142.74646496815),
new VELatLong(-36.279552036199, 142.21609235669),
new VELatLong(-36.267712669683, 143.49185350318),
new VELatLong(-36.267712669683, 142.74646496815),
new VELatLong(-36.267712669683, 142.20175796178),
new VELatLong(-36.255873303167, 143.50618789809),
new VELatLong(-36.255873303167, 142.74646496815),
new VELatLong(-36.255873303167, 142.17308917197),
new VELatLong(-36.244033936652, 143.52052229299),
new VELatLong(-36.244033936652, 142.74646496815),
new VELatLong(-36.244033936652, 142.10141719745),
new VELatLong(-36.232194570136, 143.5348566879),
new VELatLong(-36.232194570136, 142.74646496815),
new VELatLong(-36.232194570136, 142.02974522293),
new VELatLong(-36.22035520362, 143.5348566879),
new VELatLong(-36.22035520362, 142.76079936306),
new VELatLong(-36.22035520362, 141.97240764331),
new VELatLong(-36.208515837104, 143.5348566879),
new VELatLong(-36.208515837104, 142.76079936306),
new VELatLong(-36.208515837104, 141.91507006369),
new VELatLong(-36.196676470588, 143.5491910828),
new VELatLong(-36.196676470588, 142.74646496815),
new VELatLong(-36.196676470588, 141.88640127389),
new VELatLong(-36.184837104072, 143.56352547771),
new VELatLong(-36.184837104072, 142.74646496815),
new VELatLong(-36.184837104072, 141.85773248408),
new VELatLong(-36.172997737557, 143.57785987261),
new VELatLong(-36.172997737557, 142.74646496815),
new VELatLong(-36.172997737557, 141.82906369427),
new VELatLong(-36.161158371041, 143.57785987261),
new VELatLong(-36.161158371041, 142.74646496815),
new VELatLong(-36.161158371041, 141.80039490446),
new VELatLong(-36.149319004525, 143.56352547771),
new VELatLong(-36.149319004525, 142.76079936306),
new VELatLong(-36.149319004525, 141.77172611465),
new VELatLong(-36.137479638009, 142.76079936306),
new VELatLong(-36.137479638009, 141.74305732484),
new VELatLong(-36.125640271493, 142.76079936306),
new VELatLong(-36.125640271493, 141.71438853503),
new VELatLong(-36.113800904977, 143.5491910828),
new VELatLong(-36.113800904977, 141.68571974522),
new VELatLong(-36.101961538462, 143.5491910828),
new VELatLong(-36.101961538462, 141.67138535032),
new VELatLong(-36.090122171946, 143.52052229299),
new VELatLong(-36.090122171946, 142.76079936306),
new VELatLong(-36.090122171946, 141.65705095541),
new VELatLong(-36.07828280543, 143.52052229299),
new VELatLong(-36.07828280543, 142.74646496815),
new VELatLong(-36.07828280543, 141.62838216561),
new VELatLong(-36.066443438914, 143.5491910828),
new VELatLong(-36.066443438914, 142.74646496815),
new VELatLong(-36.066443438914, 142.64612420382),
new VELatLong(-36.066443438914, 141.5997133758),
new VELatLong(-36.054604072398, 143.5348566879),
new VELatLong(-36.054604072398, 142.74646496815),
new VELatLong(-36.054604072398, 142.67479299363),
new VELatLong(-36.054604072398, 142.61745541401),
new VELatLong(-36.054604072398, 141.58537898089),
new VELatLong(-36.042764705882, 143.52052229299),
new VELatLong(-36.042764705882, 142.74646496815),
new VELatLong(-36.042764705882, 142.61745541401),
new VELatLong(-36.042764705882, 141.55671019108),
new VELatLong(-36.030925339367, 143.50618789809),
new VELatLong(-36.030925339367, 142.61745541401),
new VELatLong(-36.030925339367, 141.54237579618),
new VELatLong(-36.019085972851, 143.50618789809),
new VELatLong(-36.019085972851, 142.61745541401),
new VELatLong(-36.019085972851, 141.52804140127),
new VELatLong(-36.007246606335, 143.50618789809),
new VELatLong(-36.007246606335, 142.61745541401),
new VELatLong(-36.007246606335, 141.51370700637),
new VELatLong(-35.995407239819, 143.50618789809),
new VELatLong(-35.995407239819, 142.61745541401),
new VELatLong(-35.995407239819, 141.49937261146),
new VELatLong(-35.983567873303, 143.50618789809),
new VELatLong(-35.983567873303, 142.61745541401),
new VELatLong(-35.983567873303, 141.47070382166),
new VELatLong(-35.971728506787, 143.50618789809),
new VELatLong(-35.971728506787, 142.61745541401),
new VELatLong(-35.971728506787, 141.45636942675),
new VELatLong(-35.959889140271, 143.50618789809),
new VELatLong(-35.959889140271, 142.61745541401),
new VELatLong(-35.959889140271, 141.44203503185),
new VELatLong(-35.948049773756, 143.50618789809),
new VELatLong(-35.948049773756, 142.61745541401),
new VELatLong(-35.948049773756, 141.42770063694),
new VELatLong(-35.93621040724, 143.50618789809),
new VELatLong(-35.93621040724, 142.61745541401),
new VELatLong(-35.93621040724, 141.41336624204),
new VELatLong(-35.924371040724, 143.50618789809),
new VELatLong(-35.924371040724, 142.2590955414),
new VELatLong(-35.924371040724, 141.39903184713),
new VELatLong(-35.912531674208, 143.63519745223),
new VELatLong(-35.912531674208, 142.2590955414),
new VELatLong(-35.912531674208, 141.39903184713),
new VELatLong(-35.900692307692, 143.63519745223),
new VELatLong(-35.900692307692, 142.2590955414),
new VELatLong(-35.900692307692, 141.38469745223),
new VELatLong(-35.888852941176, 143.63519745223),
new VELatLong(-35.888852941176, 142.2590955414),
new VELatLong(-35.888852941176, 141.38469745223),
new VELatLong(-35.877013574661, 143.93621974522),
new VELatLong(-35.877013574661, 143.73553821656),
new VELatLong(-35.877013574661, 142.2590955414),
new VELatLong(-35.877013574661, 141.37036305732),
new VELatLong(-35.865174208145, 143.89321656051),
new VELatLong(-35.865174208145, 143.74987261146),
new VELatLong(-35.865174208145, 142.2590955414),
new VELatLong(-35.865174208145, 141.37036305732),
new VELatLong(-35.853334841629, 143.87888216561),
new VELatLong(-35.853334841629, 143.74987261146),
new VELatLong(-35.853334841629, 142.2590955414),
new VELatLong(-35.853334841629, 141.35602866242),
new VELatLong(-35.841495475113, 143.82154458599),
new VELatLong(-35.841495475113, 142.2590955414),
new VELatLong(-35.841495475113, 141.35602866242),
new VELatLong(-35.829656108597, 142.2590955414),
new VELatLong(-35.829656108597, 141.35602866242),
new VELatLong(-35.817816742081, 142.2590955414),
new VELatLong(-35.817816742081, 141.35602866242),
new VELatLong(-35.805977375566, 142.2447611465),
new VELatLong(-35.805977375566, 141.35602866242),
new VELatLong(-35.79413800905, 142.01541082803),
new VELatLong(-35.79413800905, 141.35602866242),
new VELatLong(-35.782298642534, 142.01541082803),
new VELatLong(-35.782298642534, 141.37036305732),
new VELatLong(-35.770459276018, 142.01541082803),
new VELatLong(-35.770459276018, 141.37036305732),
new VELatLong(-35.758619909502, 142.01541082803),
new VELatLong(-35.758619909502, 141.37036305732),
new VELatLong(-35.746780542986, 142.01541082803),
new VELatLong(-35.746780542986, 141.37036305732),
new VELatLong(-35.734941176471, 142.01541082803),
new VELatLong(-35.734941176471, 141.38469745223),
new VELatLong(-35.723101809955, 142.01541082803),
new VELatLong(-35.723101809955, 141.39903184713),
new VELatLong(-35.711262443439, 142.02974522293),
new VELatLong(-35.711262443439, 141.41336624204),
new VELatLong(-35.699423076923, 142.02974522293),
new VELatLong(-35.699423076923, 141.41336624204),
new VELatLong(-35.687583710407, 142.02974522293),
new VELatLong(-35.687583710407, 141.51370700637),
new VELatLong(-35.675744343891, 142.02974522293),
new VELatLong(-35.675744343891, 141.51370700637),
new VELatLong(-35.675744343891, 141.44203503185),
new VELatLong(-35.663904977376, 142.02974522293),
new VELatLong(-35.663904977376, 141.51370700637),
new VELatLong(-35.663904977376, 141.45636942675),
new VELatLong(-35.65206561086, 142.01541082803),
new VELatLong(-35.65206561086, 141.51370700637),
new VELatLong(-35.65206561086, 141.48503821656),
new VELatLong(-35.640226244344, 142.01541082803),
new VELatLong(-35.640226244344, 141.51370700637),
new VELatLong(-35.628386877828, 142.01541082803),
new VELatLong(-35.628386877828, 141.54237579618),
new VELatLong(-35.616547511312, 142.01541082803),
new VELatLong(-35.616547511312, 141.57104458599),
new VELatLong(-35.604708144796, 142.01541082803),
new VELatLong(-35.604708144796, 141.58537898089),
new VELatLong(-35.592868778281, 142.01541082803),
new VELatLong(-35.592868778281, 141.6140477707),
new VELatLong(-35.581029411765, 142.01541082803),
new VELatLong(-35.581029411765, 141.64271656051),
new VELatLong(-35.569190045249, 142.01541082803),
new VELatLong(-35.569190045249, 141.67138535032),
new VELatLong(-35.557350678733, 142.01541082803),
new VELatLong(-35.557350678733, 141.70005414013),
new VELatLong(-35.545511312217, 142.01541082803),
new VELatLong(-35.545511312217, 141.75739171975),
new VELatLong(-35.533671945701, 142.01541082803),
new VELatLong(-35.533671945701, 141.78606050955),
new VELatLong(-35.521832579186, 142.01541082803),
new VELatLong(-35.521832579186, 141.81472929936),
new VELatLong(-35.50999321267, 142.01541082803),
new VELatLong(-35.50999321267, 141.84339808917),
new VELatLong(-35.498153846154, 142.01541082803),
new VELatLong(-35.498153846154, 141.88640127389),
new VELatLong(-35.486314479638, 142.01541082803),
new VELatLong(-35.486314479638, 141.9294044586),
new VELatLong(-35.474475113122, 142.01541082803),
new VELatLong(-35.474475113122, 141.97240764331),
new VELatLong(-35.462635746606, 142.02974522293),
new VELatLong(-35.45079638009, 142.07274840764),
new VELatLong(-35.438957013575, 142.11575159236),
new VELatLong(-35.427117647059, 142.18742356688),
new VELatLong(-35.415278280543, 142.2447611465),
new VELatLong(-35.403438914027, 142.34510191083),
new VELatLong(-35.391599547511, 142.54578343949),
new VELatLong(-35.391599547511, 142.61745541401)
	  ]);

	//vicStorm.HideIcon();
	vicStorm.SetTitle("An area predicted by the " + "<a href='http://www.bom.gov.au/products/IDV65756.shtml' target='_blank'>BOM</a>" + " to be affected by thunderstorm activity.");
	vicStorm.SetCustomIcon(
               "<span style='font-family:Arial; font-size:x-small;" +
               "color:Black; background-color:White'>" +
               "<img src='images/ve2/storm.png'/><br/>" +
			       "Thunderstorm&nbsp;alert<br/>(Trial&nbsp;only)</span>");

	vicStorm.SetLineColor(new VEColor(255,0,0,0.4));
	vicStorm.SetFillColor(new VEColor(255,0,0,0.2));
	vicStorm.SetLineWidth(1);
		map.AddShape(vicStorm);		 

}
//-->
