// JavaScript Document
//alert('Script page');
function loadMultiimageFlash(pagetype)
{
	loadMultiimageFlashBase("dynamicimagesandtext", pagetype, 220, 210);
}

function loadMultiimageFlashBase(flashName, pagetype, width, height)
{
	var oeTags = '';
	var container = document.getElementById("contentimg");
	if (!is_flash || (flash_ver < 7))
	{
		/*
		if (container)
		{
			container.className = 'flashNeeded';
			container.onclick = function() {
				var flashplayerURL = 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash';
				window.open(flashplayerURL,'mywin','left=20,top=20, width="'+width+'" height="'+height+'", toolbar=1, menubar=1,scrollbars=1, location=1,resizable=1');
			}
			oeTags = '<div class="flashplayerrequired"><div><h6>Flash Player 7 plugin required.</h6> Click here to download. (approx 2 minutes @ 56K modem)</div></div>';
		}
		*/
		// do nothing, leave image there
	}
	else
	{
		//	alert('Flash 8 present');
		oeTags = '<object class="'+flashName+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="'+flashName+'" align="middle">'
						+ '<param name="base" value="/" />'
						+ '<param name="allowScriptAccess" value="sameDomain" />'
						+ '<param name="movie" value="/flash/'+flashName+'.swf?page_id='+pagetype+'&width='+width+'&height='+height+'" /><param name="quality" value="high" /><param name="bgcolor" value="#D1E3EC" /><embed class="'+flashName+'" src="/flash/'+flashName+'.swf?page_id='+pagetype+'&width='+width+'&height='+height+'" quality="high" bgcolor="#D1E3EC" width="'+width+'" height="'+height+'" name="'+flashName+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
						+ '</object>';
		
	}
	if (container)
	{ container.innerHTML = oeTags; }
}
