var site = 0;
function ReplaceDiv(alink,url,header)
{
	ajaxinclude(url)
	document.getElementById('ToReplaceHeader').innerHTML = header
}
function ajaxinclude(url)
	{
		var p=false;
			p=new XMLHttpRequest()
			p.open('GET',url,false);
			p.send(null);
			writecontent(p)
	}
function writecontent(p)
	{
		if(p.status==200)
		{
			document.getElementById('ToReplaceContent').innerHTML = p.responseText
		}
	}
function showdiv()
{
	var sitename
	var info
	site++
	switch(site)
			{
				case 1:
					{
						sitename = "<p class='centered'><b><a href='http://www.swpc.noaa.gov/NOAAscales/'>NOAA Scales Activity</a></b></p><table width='360' border='0' align='center'  cellpadding='2' ><tr><td colspan='3'>Range 1 (minor) to 5 (extreme) </td></tr><tr><td width='170'>NOAA Scale </td><td width='85'>Past 24 hrs </td><td width='79'>Current</td></tr><tr><td><a href='http://www.swpc.noaa.gov/NOAAscales/index.html#GeomagneticStorms'>Geomagnetic Storms</a></td><td><a href='http://www.swpc.noaa.gov/alerts/archive/current_month.html'><img src='http://www.swpc.noaa.gov/SWN/g_past.gif' alt='G2 activity past 24 hrs' width='32' height='12' border=0></a></td><td><a href='http://www.swpc.noaa.gov/alerts/archive/current_month.html'><img src='http://www.swpc.noaa.gov/SWN/g_curr.gif' alt='Current G2 level' width='32' height='12' border=0></a></td></tr><tr><td><a href='http://www.swpc.noaa.gov/NOAAscales/index.html#SolarRadiationStorms'>Solar Radiation Storms</a></td><td><a href='http://www.swpc.noaa.gov/alerts/archive/current_month.html'><img src='http://www.swpc.noaa.gov/SWN/s_past.gif' alt='Radiation storm current month' width='32' height='12' border=0></a></td><td><a href='http://www.swpc.noaa.gov/alerts/archive/current_month.html'><img src='http://www.swpc.noaa.gov/SWN/s_curr.gif' alt='Current level of solar radiation storm' width='32' height='12' border=0></a></td></tr><tr><td><a href='http://www.swpc.noaa.gov/NOAAscales/index.html#RadioBlackouts'>Radio Blackouts</a></td><td><a href='http://www.swpc.noaa.gov/alerts/archive/current_month.html'><img src='http://www.swpc.noaa.gov/SWN/r_past.gif' width='32' height='12' border=0></a></td><td><a href='http://www.swpc.noaa.gov/alerts/archive/current_month.html'><img src='http://www.swpc.noaa.gov/SWN/r_curr.gif' width='32' height='12' border=0></a></td></tr></table><br/>Images courtesy of <a target='_blank' href='http://www.swpc.noaa.gov/index.html'>NOAA"
						break
					}
				case 2:
					{
						sitename = "Real-Time Northern Hemisphere Auroral Activity<br/><img SRC='http://www.swpc.noaa.gov/pmap/gif/pmapNst.gif'  alt='Northern Hemisphere Aurora' width='350px'><br/>Images courtesy of <a target='_blank' href='http://www.swpc.noaa.gov/index.html'>NOAA</a>"
						break
					}
				case 3:
					{
						sitename = "Real-Time Southern Hemisphere Auroral Activity<br/> <img SRC='http://www.swpc.noaa.gov/pmap/gif/pmapSst.gif' alt='Southern Hemisphere Aurora' width='350px'/><br/>Images courtesy of <a target='_blank' href='http://www.swpc.noaa.gov/index.html'>NOAA</a>"
						break
					}
				case 4:
					{
						sitename = "Solar X-ray Flux<br/><img SRC='http://www.swpc.noaa.gov/rt_plots/XrayBL.gif' alt='Solar X-ray Flux'  width='400px'/><br/>Images courtesy of <a target='_blank' href='http://www.swpc.noaa.gov/index.html'>NOAA</a>"
						break
					}
				case 5:
					{
						sitename = "Solar Wind<br/><img SRC='http://www.swpc.noaa.gov/SWN/sw_dials.gif' alt='Solar Wind' height='170'/><br/>Images courtesy of <a target='_blank' href='http://www.swpc.noaa.gov/index.html'>NOAA</a>"
						break
					}
				case 6:
					{
						sitename = "GOES Solar X-ray Image<br/><img SRC='http://www.swpc.noaa.gov/sxi/images/latest_goes14.png' alt='GOES Solar X-Ray Image' width='350px'/><br/>Images courtesy of <a target='_blank' href='http://www.swpc.noaa.gov/index.html'>NOAA</a>"
						break
					}
				case 7:
					{
						sitename = "D-Region Absorption Monitor (NW Quadrant)<br/><img SRC='http://www.swpc.noaa.gov/dregion/dregion_q1.gif' alt='Solar Wind' width='350px'/><br/>Images courtesy of <a target='_blank' href='http://www.swpc.noaa.gov/index.html'>NOAA</a>"
						site = 0
						break
					}

			}	
		document.getElementById('HFReport').innerHTML = '<br />' + sitename
		timer_hf()
}
function timer_hf()
{	
   setTimeout('showdiv()', 20000);

}




