function swapflash(flash_name,flash_width,flash_height,image_name,image_width,image_height){

if (!useRedirect) {
	if(hasRightVersion) {
		var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
		+ 'width="'+flash_width+'" '
		+ 'height="'+flash_height+'" '
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<PARAM NAME="MOVIE" VALUE="'+flash_name+'">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="false">'
		+ '<PARAM NAME="QUALITY" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<EMBED SRC="'+flash_name+'"'
		+ 'width="'+flash_width+'"'
		+ 'height="'+flash_height+'"'
		+ 'PLAY="true"'
		+ 'LOOP="false"'
		+ 'QUALITY="high"'
		+ 'MENU="false"'
		+ 'TYPE="application/x-shockwave-flash"'
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '</EMBED>'
		+ '</OBJECT>';
		document.write(oeTags);
	} else {
		var alternateContent = '<IMG SRC="'+image_name+'" width="'+image_width+'" height="'+image_height+'">';
		document.write(alternateContent);
	}
}
}

