function macromediaShouldHaveWrittenThis(movName,movURL,xSize,ySize,menuStatus,flashVersion,noFlashImgURL,imgWidth,imgHeight,imgHspace,imgVspace,imgAlt) { // Inserts Flash or Image and overcomes the bug where Macromedia's code doesent work on Mac IE4.5 - Jake Collins, Telaworks
	if ( plugin ) {
		plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= flashVersion;
	}
	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)) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('plugin = ( IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.'+flashVersion+'\")))\n');
		document.write('</SCRIPT\> \n');
	}
	if ( plugin ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flashVersion+',0,0,0\" ');
		document.write(' ID='+movName+' WIDTH='+xSize+' HEIGHT='+ySize+'>');
		document.write(' <PARAM NAME=movie VALUE=\"'+movURL+'\"> <PARAM NAME=menu VALUE='+menuStatus+'> <PARAM NAME=quality VALUE=high> '); 
		document.write(' <PARAM name="base" value="http://'+host+'/" />');
		document.write(' <EMBED src=\"'+movURL+'\" menu='+menuStatus+' base="http://'+host+'/" quality=high');
		document.write(' swLiveConnect=FALSE WIDTH='+xSize+' HEIGHT='+ySize);
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
		document.write('<IMG SRC=\"'+noFlashImgURL+'\" WIDTH=\"'+imgWidth+'\" HEIGHT=\"'+imgHeight+'\" usemap=\"#'+movName+'\"  alt=\"'+imgAlt+'\" BORDER=\"0\" vspace=\"'+imgVspace+'\" hspace=\"'+imgHspace+'\">');
	}
}

function insertNav() {//Puts nav on page
	macromediaShouldHaveWrittenThis('leftNav','/flash/leftMenu.swf','150','304','false',5,'/img/leftMenu.gif','150','304','0','0','Please check your browser requirements.');
}

function insertMasthead() {//Puts masthead on page
	macromediaShouldHaveWrittenThis('masthead','/flash/masthead5.swf?rState=3&rotateInterval=8000','770','124','false',5,'/img/masthead.gif','770','124','0','0','');
}

function insertHomepageAnim() {//Puts anim on homepage
	macromediaShouldHaveWrittenThis('anim','flash/homepageAnim.swf','420','112','false',5,'/img/homepageAnim.gif','420','112','0','0','');
}

