function showDefault() { // Remove Flash movie and show static content
    var flashTop = document.getElementById('flashTop');
    var flashMain = document.getElementById('flashMain');
    var promoBanner = document.createElement('div');
    promoBanner.className = 'mastheadImage';
    $('div.searchHeader').css({'display':'block', 'padding-top':'0', 'position':'absolute', 'top':'7px', 'left':'0'});
    $('div.searchBox').css('top','0');
    $('div.searchFieldContainer').css({ 'position':'absolute', 'top':'15px'});

    flashTop.parentNode.insertBefore(promoBanner, flashTop);
    flashTop.parentNode.removeChild(flashTop);

	flashMain.parentNode.insertBefore(altContent, flashMain)
    flashMain.parentNode.removeChild(flashMain);

	document.getElementById('flash-content-main').style.visibility = 'visible';
}


// ONLOAD FUNCTIONS

$(function() {
	//Adds an ID for the SWF to target. This code can be removed if the header HTML is reworked.
	$("div.mastheadImage").attr("id","flash-content-top");

	// Initializes the accordion navigation
	$("#accordion").accordion({ event: 'mouseover', autoHeight: false });
	
	$("#accordion select").change(function() {
		this.form.submit();
	});
	
	$("#selector select").change(function() {
		this.form.submit();
	});
});





// NEW FLASH COOKIE CODE 

function setCookie(name, value) {
	document.cookie = name+"="+value; }

	function getCookie(name) {
		if (document.cookie) {
			var cookies=document.cookie.split(";");
			for (var i=0; i<cookies.length; i++) {
				var varName=(cookies[i].split("=")[0]);
				var varValue=(cookies[i].split("=")[1]);
				while (varName.charAt(0)==" ")
					varName=varName.substr(1,varName.length);
					// the escape() function will url encode the value 
					if (varName==name)
						return escape(varValue);
					}
			}
		return " ";
	}
