var mySWFObject = new SWFObject('main_v3.swf', 'allsopp', '100%', '100%', requiredFlashVersion, '#FFFFFF');

mySWFObject.addParam('scale', 'noscale');
mySWFObject.addParam('swLiveConnect', 'true');
mySWFObject.addParam('allowScriptAccess', 'always');

// check that SWFObject has detected an OK Flash version....
var flashOk = mySWFObject.installedVer.versionIsValid(mySWFObject.getAttribute('version'));
//alert('flashOk='+flashOk);

var myStyle	=  '<style type=\"text\/css">\n';
myStyle		+= '\/\* hide from ie on mac \\\*\/\n';
myStyle 	+= 'html {\n';
myStyle 	+= 'height: 100%;\n';
if (flashOk)
{
	// Flash will display - no scrolls
	myStyle += 'overflow: hidden;\n';

	//alert('pageType='+pageType);
	if(pageType != '')
	{
		//navStr has been specified - relocate to correct link for Flash
		//alert('here');
		document.location.href = 'index.cfm#pageType=' + pageType;
	}
} else {
	// No Flash - scrolls
	myStyle += 'overflow: auto;\n';
}
myStyle 	+= '}\n';
myStyle 	+= '#flashcontent {\n';
myStyle 	+= 'height: 100%;\n';
myStyle	 	+= '}\n';
myStyle		+= '\/\* end hide \*\/\n';
myStyle		+= 'body {\n';
myStyle		+= 'height: 100%;\n';
if (flashOk)
{
	myStyle		+= 'margin: 0;\n';
} else {
	// No Flash - scrolls
	myStyle		+= 'margin: 10px;\n';
}
myStyle		+= 'padding: 0;\n';
myStyle		+= 'background-color: #FFFFFF;\n';
myStyle		+= 'font:12pt arial,verdana,sans-serif;\n';
myStyle		+= '}\n';
//myStyle		+= 'a {\n';
//myStyle		+= 'color: white;\n';
//myStyle		+= '}\n';
myStyle		+= '<\/style>\n';

document.write(myStyle);

function writeFlashRedirect(divId)
{
	var myDiv = document.getElementById(divId);
	//alert(myDiv);
	if(myDiv != null)
	{
		var myContent = '';
		myContent += '<HR>';
		myContent += '<P><A HREF=\"http://www.macromedia.com/go/getflashplayer\" TARGET=\"_blank\" CLASS=\"bodylink\"><IMG SRC=\"images/get_flashplayer_88_31.gif\" BORDER=\"0\" WIDTH=\"88\" HEIGHT=\"31\"><\/A>';
		myContent += '<BR><FONT SIZE=\"-2\">You don\'t have the latest version of Macromedia Flash Player.';
		myContent += '<BR>This web site makes use of <A HREF=\"http:\/\/www.macromedia.com\/software\/flash\/\" TARGET=\"_blank\" CLASS=\"bodylink\">Macromedia<SUP><FONT SIZE=\"-1\">&reg;<\/FONT><\/SUP> Flash<SUP><FONT SIZE=\"-2\">TM<\/FONT><\/SUP><\/A> software. You have an old version of Macromedia Flash Player that cannot play the content we\'ve created.';
		myContent += '<BR>Why not download and install the latest version <A HREF=\"http://www.macromedia.com/go/getflashplayer\" TARGET=\"_blank\" CLASS=\"bodylink\">now<\/A>? It will only take a moment.';
		myContent += '<BR>Macromedia and Flash are trademarks of Macromedia, Inc.<\/FONT><\/P>';
		//alert(myContent);
		myDiv.innerHTML = myContent;
	}
}