//Load Flash
function LoadFlash(swffile,width,height,DivID){
	var IECheck = (navigator.userAgent.indexOf('MSIE') != -1) ? true : false;
	var FFCheck = (navigator.userAgent.indexOf('Firefox') != -1) ? true : false;
	var OperaCheck = (navigator.userAgent.indexOf('Opera') != -1) ? true : false;
	var AltCont = '';
	var IECode = '';
	var FlashObj = '';
	var writeFlash = true;
	var GetFlash = '';
	var GetFlash1 = '<a href="http://www.macromedia.com/go/getflashplayer"><img src="images/get_flash_player.gif" border="0" class="RightAlign" alt="Click Here to Download Flash" /></a> This site uses Macromedia Flash for some content. To enjoy this content you must update your Flash Player.  ';
	var GetFlash2 = 'click this button to download the latest Flash Player.';
	if(IECheck){
		IECode ='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		GetFlash = GetFlash1 +'Click the bar above and select install or, c'+ GetFlash2;
	}else if(FFCheck && !VersionCheck()){
		writeFlash = false;
		GetFlash = GetFlash1 +'C'+ GetFlash2
	}else if(FFCheck && VersionCheck()=='none'){
		GetFlash = GetFlash1 +'Click the bar above and select install or, c'+ GetFlash2;
	}else if(OperaCheck && (!VersionCheck() || VersionCheck()=='none')){
		writeFlash = false;
		GetFlash = 'C' + GetFlash2;
	}
	if(document.getElementById('FlashUpdate')){
		document.getElementById('FlashUpdate').innerHTML=GetFlash;
	}
	if(writeFlash){
		AltCont = document.getElementById(DivID).innerHTML;
		FlashObj = '<object type="application/x-shockwave-flash" '+IECode+' data="'+swffile+'" width="'+width+'" height="'+height+'"><param name="movie" value="'+swffile+'" />'+AltCont+'</object>';
		document.getElementById(DivID).innerHTML=FlashObj;
	}	
}
function VersionCheck(){
	if (navigator.plugins["Shockwave Flash"]){
		//Flash Player Present
		var desc = navigator.plugins["Shockwave Flash"].description;
		var descArray = desc.split(" ");
		var versionArray = descArray[2].split(".");
		if (versionArray[0] >= 8){
			return true;
		}else{
			return false;
		}
	}else{
		return 'none';
	}
}

// Redirect photo story page
function photoPage(selection){
	window.location= "Members.cfm?display=" + selection;
}

// Pop-Up Page
function showPage(page,height, width){
	var popupScreen = window.open(page, "blank", "width=" + width + "px, height=" + height + "px, resizable=0, scrollbars=1, titlebar=0");
	popupScreen.focus();
}

// Redirect products page
function productsPage(selection){
	window.location= "Products.cfm?prod=" + selection;
}

// Redirect standings page
function standingsPage(selection){
	window.location= "Standings.cfm?event=" + selection;
}