function go(flashvars)
{
var s = '<OBJECT id="../site_cms/flash/mainShell" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
		+ '	height="216" width="207" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
		+ '		VIEWASTEXT> '
		+ '		<PARAM NAME="_cx" VALUE="25268"> '
		+ '				<PARAM NAME="_cy" VALUE="15081"> '
		+ '			<PARAM NAME="FlashVars" VALUE="' + flashvars + '"> '
		+ '		<PARAM NAME="Movie" VALUE="/flash/dateChooser_range.swf"> '
		+ '		<PARAM NAME="Src" VALUE="/flash/dateChooser_range.swf"> '
		+ '			<PARAM NAME="WMode" VALUE="Window"> '
		+ '		<PARAM NAME="Play" VALUE="-1"> '
		+ '		<PARAM NAME="Loop" VALUE="-1"> '
		+ '		<PARAM NAME="Quality" VALUE="High"> '
		+ '		<PARAM NAME="SAlign" VALUE=""> '
		+ '		<PARAM NAME="Menu" VALUE="-1"> '
		+ '		<PARAM NAME="Base" VALUE=""> '
		+ '		<PARAM NAME="AllowScriptAccess" VALUE="true"> '
		+ '		<PARAM NAME="Scale" VALUE="ShowAll"> '
		+ '		<PARAM NAME="DeviceFont" VALUE="0"> '
		+ '		<PARAM NAME="EmbedMovie" VALUE="0"> '
		+ '		<PARAM NAME="SWRemote" VALUE=""> '
		+ '		<PARAM NAME="MovieData" VALUE=""> '
		+ '		<PARAM NAME="SeamlessTabbing" VALUE="1"> '
		+ '		<PARAM NAME="Profile" VALUE="0"> '
		+ '		<PARAM NAME="ProfileAddress" VALUE=""> '
		+ '		<PARAM NAME="ProfilePort" VALUE="0"> '
		+ '		<PARAM NAME="wmode" VALUE="transparent"> '
		+ '		<embed  '
		+ '	src="/flash/dateChooser_range.swf" quality="high" width="207"  '
		+ '	height="216" name="/flash/dateChooser_range" align="middle"  '
		+ '	allowScriptAccess="sameDomain" FlashVars="' + flashvars + '"  '
		+ '	type="application/x-shockwave-flash"  '
		+ '	pluginspage="http://www.macromedia.com/go/getflashplayer" /> '
		+ '		</OBJECT> '
		
		document.write(s)
}
function gochart(flashvars)
{
var s = '<OBJECT id="../site_cms/flash/mainShell" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
		+ '	height="300" width="600" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
		+ '		VIEWASTEXT> '
		+ '		<PARAM NAME="_cx" VALUE="25268"> '
		+ '				<PARAM NAME="_cy" VALUE="15081"> '
		+ '			<PARAM NAME="FlashVars" VALUE="' + flashvars + '"> '
		+ '		<PARAM NAME="Movie" VALUE="/flash/charts.swf"> '
		+ '		<PARAM NAME="Src" VALUE="/flash/charts.swf"> '
		+ '			<PARAM NAME="WMode" VALUE="Window"> '
		+ '		<PARAM NAME="Play" VALUE="-1"> '
		+ '		<PARAM NAME="Loop" VALUE="-1"> '
		+ '		<PARAM NAME="Quality" VALUE="High"> '
		+ '		<PARAM NAME="SAlign" VALUE=""> '
		+ '		<PARAM NAME="Menu" VALUE="-1"> '
		+ '		<PARAM NAME="Base" VALUE=""> '
		+ '		<PARAM NAME="AllowScriptAccess" VALUE="true"> '
		+ '		<PARAM NAME="Scale" VALUE="ShowAll"> '
		+ '		<PARAM NAME="DeviceFont" VALUE="0"> '
		+ '		<PARAM NAME="EmbedMovie" VALUE="0"> '
		+ '		<PARAM NAME="SWRemote" VALUE=""> '
		+ '		<PARAM NAME="MovieData" VALUE=""> '
		+ '		<PARAM NAME="SeamlessTabbing" VALUE="1"> '
		+ '		<PARAM NAME="Profile" VALUE="0"> '
		+ '		<PARAM NAME="ProfileAddress" VALUE=""> '
		+ '		<PARAM NAME="ProfilePort" VALUE="0"> '
		+ '		<PARAM NAME="wmode" VALUE="transparent"> '
		+ '		<embed  '
		+ '	src="/flash/charts.swf" quality="high" width="600"  '
		+ '	height="300" name="/flash/charts" align="middle"  '
		+ '	allowScriptAccess="sameDomain" FlashVars="' + flashvars + '"  '
		+ '	type="application/x-shockwave-flash"  '
		+ '	pluginspage="http://www.macromedia.com/go/getflashplayer" /> '
		+ '		</OBJECT> '
		
		document.write(s)
}

function addCurve(backcolor, bordercolor, bordercolor2)
{
var s = '<OBJECT id="../site_cms/flash/mainShell" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
		+ '	height="9" width="150" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
		+ '		VIEWASTEXT> '
		+ '		<PARAM NAME="_cx" VALUE="25268"> '
		+ '				<PARAM NAME="_cy" VALUE="15081"> '
		+ '			<PARAM NAME="FlashVars" VALUE="bgCol=' + backcolor + '&topBorder=' + bordercolor + '&bottomBorder=' + bordercolor2 +  '"> '
		+ '		<PARAM NAME="Movie" VALUE="/flash/sideNav_bg.swf"> '
		+ '		<PARAM NAME="Src" VALUE="/flash/sideNav_bg.swf"> '
		+ '		<PARAM NAME="Play" VALUE="-1"> '
		+ '		<PARAM NAME="Loop" VALUE="-1"> '
		+ '		<PARAM NAME="Quality" VALUE="High"> '
		+ '		<PARAM NAME="SAlign" VALUE=""> '
		+ '		<PARAM NAME="Menu" VALUE="-1"> '
		+ '		<PARAM NAME="Base" VALUE=""> '
		+ '		<PARAM NAME="AllowScriptAccess" VALUE="true"> '
		+ '		<PARAM NAME="Scale" VALUE="ShowAll"> '
		+ '		<PARAM NAME="DeviceFont" VALUE="0"> '
		+ '		<PARAM NAME="EmbedMovie" VALUE="0"> '
		+ '		<PARAM NAME="SWRemote" VALUE=""> '
		+ '		<PARAM NAME="MovieData" VALUE=""> '
		+ '		<PARAM NAME="SeamlessTabbing" VALUE="1"> '
		+ '		<PARAM NAME="Profile" VALUE="0"> '
		+ '		<PARAM NAME="ProfileAddress" VALUE=""> '
		+ '		<PARAM NAME="ProfilePort" VALUE="0"> '
		+ '		<PARAM NAME="wmode" VALUE="transparent"> '
		+ '		<embed  '
		+ '	src="/flash/sideNav_bg.swf" quality="high" width="150"  Wmode="transparent"'
		+ '	height="9" name="/flash/dateChooser_range" align="middle"  '
		+ '	allowScriptAccess="sameDomain" FlashVars="bgCol=' + backcolor + '&topBorder=' + bordercolor + '&bottomBorder=' + bordercolor2 + '"  '
		+ '	type="application/x-shockwave-flash"  '
		+ '	pluginspage="http://www.macromedia.com/go/getflashplayer" /> '
		+ '		</OBJECT> '
		
		document.write(s)
}
function largeCurve()
{
var s = '<OBJECT id="../site_cms/flash/mainShell" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
		+ '	height="28" width="576" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
		+ '		VIEWASTEXT> '
		+ '		<PARAM NAME="_cx" VALUE="25268"> '
		+ '				<PARAM NAME="_cy" VALUE="15081"> '
		+ '			<PARAM NAME="FlashVars" VALUE=""> '
		+ '		<PARAM NAME="Movie" VALUE="/flash/mainCurve.swf"> '
		+ '		<PARAM NAME="Src" VALUE="/flash/mainCurve.swf"> '
		+ '		<PARAM NAME="Play" VALUE="-1"> '
		+ '		<PARAM NAME="Loop" VALUE="-1"> '
		+ '		<PARAM NAME="Quality" VALUE="High"> '
		+ '		<PARAM NAME="SAlign" VALUE=""> '
		+ '		<PARAM NAME="Menu" VALUE="-1"> '
		+ '		<PARAM NAME="Base" VALUE=""> '
		+ '		<PARAM NAME="AllowScriptAccess" VALUE="true"> '
		+ '		<PARAM NAME="Scale" VALUE="ShowAll"> '
		+ '		<PARAM NAME="DeviceFont" VALUE="0"> '
		+ '		<PARAM NAME="EmbedMovie" VALUE="0"> '
		+ '		<PARAM NAME="SWRemote" VALUE=""> '
		+ '		<PARAM NAME="MovieData" VALUE=""> '
		+ '		<PARAM NAME="SeamlessTabbing" VALUE="1"> '
		+ '		<PARAM NAME="Profile" VALUE="0"> '
		+ '		<PARAM NAME="ProfileAddress" VALUE=""> '
		+ '		<PARAM NAME="ProfilePort" VALUE="0"> '
		+ '		<PARAM NAME="wmode" VALUE="transparent"> '
		+ '		<embed  '
		+ '	src="/flash/mainCurve.swf" quality="high" width="576"  Wmode="transparent"'
		+ '	height="28" name="/flash/mainCurve" align="middle"  '
		+ '	allowScriptAccess="sameDomain" FlashVars=""  '
		+ '	type="application/x-shockwave-flash"  '
		+ '	pluginspage="http://www.macromedia.com/go/getflashplayer" /> '
		+ '		</OBJECT> '
		
		document.write(s)
}

function slideShow(folder)
{
var s = '<OBJECT id="/flash/mainShell" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '
		+ '	height="325" width="566" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
		+ '		VIEWASTEXT> '
		+ '		<PARAM NAME="_cx" VALUE="25268"> '
		+ '				<PARAM NAME="_cy" VALUE="15081"> '
		+ '			<PARAM NAME="FlashVars" VALUE="xmlFeed=/PrimeControls/galleryfeed.aspx?Folder=' + folder + '"> '
		+ '		<PARAM NAME="Movie" VALUE="/flash/imageGallery.swf"> '
		+ '		<PARAM NAME="Src" VALUE="/flash/imageGallery.swf"> '
		+ '		<PARAM NAME="Play" VALUE="-1"> '
		+ '		<PARAM NAME="Loop" VALUE="-1"> '
		+ '		<PARAM NAME="Quality" VALUE="High"> '
		+ '		<PARAM NAME="SAlign" VALUE=""> '
		+ '		<PARAM NAME="Menu" VALUE="-1"> '
		+ '		<PARAM NAME="Base" VALUE=""> '
		+ '		<PARAM NAME="AllowScriptAccess" VALUE="true"> '
		+ '		<PARAM NAME="Scale" VALUE="ShowAll"> '
		+ '		<PARAM NAME="DeviceFont" VALUE="0"> '
		+ '		<PARAM NAME="EmbedMovie" VALUE="0"> '
		+ '		<PARAM NAME="SWRemote" VALUE=""> '
		+ '		<PARAM NAME="MovieData" VALUE=""> '
		+ '		<PARAM NAME="SeamlessTabbing" VALUE="1"> '
		+ '		<PARAM NAME="Profile" VALUE="0"> '
		+ '		<PARAM NAME="ProfileAddress" VALUE=""> '
		+ '		<PARAM NAME="ProfilePort" VALUE="0"> '
		+ '		<PARAM NAME="wmode" VALUE="transparent"> '
		+ '		<embed  '
		+ '	src="/flash/imageGallery.swf" quality="high" width="566"  Wmode="transparent"'
		+ '	height="325" name="/flash/mainCurve" align="middle"  '
		+ '	allowScriptAccess="sameDomain" FlashVars="xmlFeed=/PrimeControls/galleryfeed.aspx?Folder=' + folder + '"  '
		+ '	type="application/x-shockwave-flash"  '
		+ '	pluginspage="http://www.macromedia.com/go/getflashplayer" /> '
		+ '		</OBJECT> '
		
		document.write(s)
}