//function displayUpperObject(swellRegion)
//{
//	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
//	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
//	document.write('width="568" height="433" ');
//	document.write('VIEWASTEXT>');
//	document.write('<param name="movie" value="HSIG-dynamic.swf?img='+swellRegion+'_SwellHeight">');
//	document.write('<param name="quality" value="high">');
//	document.write('<embed src="HSIG-dynamic.swf?img='+swellRegion+'_SwellHeight" ');
//	document.write('quality="high" ');
//	document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" ');
//	document.write('type="application/x-shockwave-flash" ');
//	document.write('width="568" height="433">');
//	document.write('</embed>');
//	document.write('</object>');
//}
//function displayLowerObject(swellRegion)
//{
//	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
//	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
//	document.write('width="568" ');
//	document.write('height="433" ');
//	document.write('VIEWASTEXT>');
//	document.write('<param name="movie" value="wave-period-dynamic.swf?img='+swellRegion+'_SwellPeriod">');
//	document.write('<param name="quality" value="high">');
//	document.write('<embed src="wave-period-dynamic.swf?img='+swellRegion+'_SwellPeriod" ');
//	document.write('quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ');
//	document.write('type="application/x-shockwave-flash" ');
//	document.write('width="568" height="433">');
//	document.write('</embed></object>');

//}

function displayUpperObject(swellRegion)
{
    var content = '';
	content += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	content += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
	content += 'width="568" height="433" ';
	content += 'VIEWASTEXT>';
	content += '<param name="movie" value="HSIG-dynamic.swf?img='+swellRegion+'_SwellHeight">';
	content += '<param name="quality" value="high">';
	content += '<embed src="HSIG-dynamic.swf?img='+swellRegion+'_SwellHeight" ';
	content += 'quality="high" ';
	content += 'pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	content += 'type="application/x-shockwave-flash" ';
	content += 'width="568" height="433">';
	content += '</embed>';
	content += '</object>';
	return content;
}
function displayLowerObject(swellRegion)
{
    var content = '';
	content += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	content += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
	content += 'width="568" ';
	content += 'height="433" ';
	content += 'VIEWASTEXT>';
	content += '<param name="movie" value="wave-period-dynamic.swf?img='+swellRegion+'_SwellPeriod">';
	content += '<param name="quality" value="high">';
	content += '<embed src="wave-period-dynamic.swf?img='+swellRegion+'_SwellPeriod" ';
	content += 'quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	content += 'type="application/x-shockwave-flash" ';
	content += 'width="568" height="433">';
	content += '</embed></object>';
    return content;
}
