var ie = document.all?true:false;
function onNav() {
	if(ie) { 
		document.getElementById('flasharea').style.zIndex='-1'; 
		if(document.getElementById('maincontainer')) { 
			document.getElementById('maincontainer').style.visibility='hidden' 
		}
		if(document.getElementById('flashholder')) { 
			document.getElementById('flashholder').style.zIndex='-2' 
		}
	}
}
function offNav() {
	if(ie) { 
		document.getElementById('flasharea').style.zIndex='10'; 
		if(document.getElementById('maincontainer')) { 
			document.getElementById('maincontainer').style.visibility='visible' 
		}
		if(document.getElementById('flashholder')) { 
			document.getElementById('flashholder').style.zIndex='9' 
		}
	}
}
var flashvars = {};
flashvars.xml = "../xml/Shell.xml";
var params = {};
params.wmode = "opaque";
params.base = "flash/swf/";
var attributes = {};
attributes.align = "middle";
swfobject.embedSWF("flash/swf/Shell.swf", "flasharea", "100%", "100%", "9.0.0", false, flashvars, params, attributes);

function placeFooter() {
	var viewportHeight = document.viewport.getHeight();
	var swooshwrapHeight = $('swooshwrap').getHeight();
	var footerwrapHeight = $('footerwrap').getHeight();
	if ((swooshwrapHeight + 508 + footerwrapHeight) < viewportHeight) {
		$('flashholder').setStyle( { height: (viewportHeight - swooshwrapHeight - footerwrapHeight) + 'px' } );
		$('flasharea').setStyle( { height: (viewportHeight - swooshwrapHeight - footerwrapHeight) + 'px' } );
	}
}
Event.observe(window, 'resize', placeFooter);
document.observe("dom:loaded", placeFooter);
