function displayFlash(flash,image,width,height,name,print)
{	
	if (hasRightVersion) 
	{		
		document.write("<div class=\"flash\">\n");
		document.write("<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=\""+width+"\" height=\""+height+"\" id=\""+name+"\" align=\"middle\">");
		document.write("	<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
		document.write("	<param name=\"movie\" value=\""+flash+"\" />");
		document.write("	<param name=\"quality\" value=\"high\" />");
		document.write("	<param name=\"bgcolor\" value=\"#ffffff\" />");
		document.write("	<embed src=\""+flash+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\""+width+"\" height=\""+height+"\" name=\""+name+"\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
		document.write("</object>");
		document.write("</div>");
		document.write("<div class=\"flash-print\">\n");

		if ( print != '' )
			image = print;

		document.write("	<img src=\""+image+"\" style=\"width: "+width+"px; height: "+height+"px; border: none;\" title=\"\"></a>\n");
		document.write("</div>");

	} 
	else 
	{
		document.write("<a href=\"http://www.macromedia.com/downloads/\" target=\"_blank\"><img src=\""+image+"\" style=\"width: "+width+"px; height: "+height+"px; border: none;\" title=\"To view the interactive version of this map, you will need the newest Flash plugin.  Click this graph to go the download page for the Flash plugin.\"></a>");
		
	}
}


function getHeaderRandomImage(){
			images = new Array(3);
				images[0] = "<img src='/common/images/header/header_annualreport1.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[1] = "<img src='/common/images/header/header_annualreport2.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[2] = "<img src='/common/images/header/header_annualreport3.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[3] = "<img src='/common/images/header/header_annualreport4.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[4] = "<img src='/common/images/header/header_annualreport5.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[5] = "<img src='/common/images/header/header_annualreport6.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[6] = "<img src='/common/images/header/header_annualreport7.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[7] = "<img src='/common/images/header/header_annualreport8.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
				images[8] = "<img src='/common/images/header/header_annualreport9.jpg' class='top-header-annual-report' alt='Annual Report 2006'>";
			index = Math.floor(Math.random() * images.length);
			document.write(images[index]);
		   }



function isFlashInstalled(title,subtitle){
	var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";

if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];

	if (x)
	{
		flashinstalled = 2;
		if (x.description)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	
	
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}


if (flashinstalled==0 || flashinstalled==1){
	
	document.write("<div class='title'>"+title+"</div>\n");
	document.write("<div class='sub-title'>"+subtitle+"</div>\n");
}
	
}

