function AuroraRadar()
{
    //for test, enable to run with or without flash
    //var answer = confirm("display with flash?");
    //if (0)
    if (flashversion >= 7) 
    {
		document.write('<div style="padding-top: 5px;"><object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="98" height="93" id="auroraradar">');
		document.write('<param name="movie" value="aurora.swf" />');
		document.write('<param name="wmode" value="transparent" />');
		document.write('<embed src="aurora.swf" quality="high" wmode="transparent" width="98" height="95" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object></div>');
    }
    else
    {
        document.write('<a href="auroracast" title="Yukon Northern Lights Forecast"><img src="skin/auroraradar.gif" width="98" height="98" alt="Yukon Aurora Forecast" border="0"></a>');
    }
}


//use this to collapse/expand lists
function showItem(thisList){
	if (document.getElementById(thisList).style.display =="") {
		document.getElementById(thisList).style.display = "block";
		//document.getElementById(thisList).style.display = "table";
		//document.getElementById(thisList + "arrow").className = "selectedCategory";
	} else {
		document.getElementById(thisList).style.display ="";
		//document.getElementById(thisList + "arrow").className = "arrow";
	}
}

//use this to "show" or "hide" all the things on a collapsable list, at the same time, currently used by the FAQ
function toggleAllTag(tagname) {
	tagArray = document.getElementsByTagName(tagname); // produces an array of all objects in the page that are the tag you requested
	for (i = 0; i < tagArray.length; i ++) {
		if (tagState == "hidden") {
			document.getElementById(tagArray[i].id).style.display = "block";
			document.getElementById(tagArray[i].id + "arrow").className = "selectedCategory";
		} else {
			document.getElementById(tagArray[i].id).style.display ="";
			document.getElementById(tagArray[i].id + "arrow").className = "arrow";
		}
	}
	tagState = (tagState == "hidden") ? "visible" : "hidden";
}

//use this to "hide" all the FAQ items
function hideAllTag(tagname) {
	tagArray = document.getElementsByTagName(tagname); // produces an array of all objects in the page that are the tag you requested
	for (i = 0; i < tagArray.length; i ++) {
		{
			document.getElementById(tagArray[i].id).style.display ="";
			document.getElementById(tagArray[i].id + "arrow").className = "arrow";
		}
	}
	tagState = "hidden";
	//tagState = (tagState == "hidden") ? "visible" : "hidden";
}

//the down arrow won't show unless it's preloaded.
//var downArrow = new Image();
//downArrow.src = "Frequently%20Asked%20Questions_files/sidenavarrowdown.gif";
//var rightArrow = new Image();
//rightArrow.src = "Frequently%20Asked%20Questions_files/sidenavarrow.gif";

//tagState must be defined
tagState = "hidden";