function writeAddr() {
	// Build the address
	var i,a=writeAddr.arguments,addr="";
	addr += a[0]+"@";
	for( i=1; i<a.length; i++ ) {
		if( i>1 ) addr += ".";
		addr += a[i];
	}
	// Write html to the browser with the email address
	document.write("<a accesskey='M' href=\"mailto:" 
		+ addr + "\">" + addr + "</a><br />");
}

/*******************************************************
FLASH DETECT 2.5
All code by Ryan Parman and mjac, unless otherwise noted.
(c) 1997-2004 Ryan Parman and mjac
http://www.skyzyx.com
*******************************************************/

// This script will test up to the following version.
flash_versions = 10;

// Initialize variables and arrays
var flash = new Object();
flash.installed=false;
flash.version='0.0';

// Dig through Netscape-compatible plug-ins first.
if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}

// Then, dig through ActiveX-style plug-ins afterwords
else if (window.ActiveXObject) {
	for (x = 2; x <= flash_versions; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
		catch(e) {}
	}
}

// Create sniffing variables in the following style: flash.ver[x]
// Modified by mjac
flash.ver = Array();
for(i = 4; i <= flash_versions; i++) {
	eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
}

// steve urmston display flash functions

function displayFlash(flashFile) {
  if (flash.ver[4]) {
    var flash_output = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"356\" height=\"250\" id=\"flash_slide\" align=\"left\">"
	  + "<param name=\"movie\" value=\"flash/" +flashFile+ ".swf\" />"
	  + "<param name=\"quality\" value=\"best\" />"
	  + "<param name=\"menu\" value=\"flase\" />"
	  + "<param name=\"allowscriptaccess\" value=\"samedomain\" />"
	  + "<embed type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" width=\"356\" height=\"250\" src=\"flash/" +flashFile+ ".swf\" allowScriptAccess=\"samedomain\" menu=\"false\" quality=\"best\" />"
	  + "</object>";
  }
	else {
	  var flash_output = "<h2>Missing</h2>";
  }

document.write(flash_output);
}