var isFlashReady=false;
if(navigator.mimeTypes&&navigator.mimeTypes["application/x-director"]&&navigator.mimeTypes["application/x-director"].enabledPlugin){
	if(navigator.plugins&&navigator.plugins["Shockwave for Director"]&&(tVersionIndex=navigator.plugins["Shockwave for Director"].description.indexOf("."))!=-1){
		isFlashReady=true;
	}
}
else if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows 95")>=0||navigator.userAgent.indexOf("Windows 98")>=0||navigator.userAgent.indexOf("Windows NT")>=0)){
	var flashVer="";
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('set flashObj = CreateObject("SWCtl.SWCtl") \n');
	document.write('if IsObject(flashObj) then \n');
	document.write('flashVer = flashObj.ShockwaveVersion("") \n');
	document.write('end if');
	document.write('</SCRIPT\> \n');
	if(flashVer!="")isFlashReady=true;
}

function $(elmtIdStr){try{return (typeof(elmtIdStr)==='string')?document.getElementById(elmtIdStr):elmtIdStr;}catch(e){}}
function $$(tagNameStr,containerElmt_isOptional){try{return $GET_CONTAINER(containerElmt_isOptional).getElementsByTagName(tagNameStr);}catch(e){}}
function $GET_CONTAINER(containerElmt_isOptional){try{return (!containerElmt_isOptional)?document:$(containerElmt_isOptional);}catch(e){}}

function initFlashPage(){
	if(!isFlashReady){
		$$("BODY")[0].innerHTML="<div style=\"background-color:white;width:100%;height:100%;\"><p class=\"center\">Flash is required to use this page.<\/p><\/div>";
	}
}
