

flash_versions = 20;

var flash = new Object();
flash.installed=false;
flash.version='0.0';


if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}


else if (window.ActiveXObject) {
	for (x = 2; x <= flash_versions; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
		catch(e) {}
	}
}

flash.ver = Array();
for(i = 4; i <= flash_versions; i++) {
	eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
}


/**
  * Function: embedFlashObject();
  * This function was created to address the problems created by
  * the MS Active X security update released 4/11/06 
  * 
  * Params: 
  *	flash_url = url to SWF
  * flash_height = height of Flash image
  * flash_width = width of Flash image 
  * bgcolor = bgcolor of Flash image and GIF
  * name = value of name attibute in embed tag and ID of object tag
  * align = alignment of Flash animation in the window
  * allowScriptAccess = script Access setting
  * quality = quality of animation playback (low, high, autolow, autohigh, best )
  * menu = (true, false)
  * pluginspage = where to download the plugin
  * scale = (showall, noborder, exactfit)
  * salign = (l, t, r, b, tl, tr, bl, br)
  * flashversion = Number: version of Flash to check for
  * 
  * All params should be set to an empty string if unknown unless otherwise stated
 */

function embedFlashObject(flash_url, flash_height, flash_width, bgcolor, name, align, allowScriptAccess, quality, menu, pluginspage, scale, salign, flashversion) {

if (bgcolor == "" || bgcolor == null || bgcolor == undefined) {
var bgcolor = "#FFFFFF";
}

if (flashversion == "" || flashversion == null || flashversion == undefined) {
var flashversion = 7;
}

if (parseInt(flash.version) >= flashversion)
{

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+flash_width+'" height="'+flash_height+'" id="'+name+'" align="middle"><param name="allowScriptAccess" value="'+allowScriptAccess+'" /><param name="movie" value="'+flash_url+'" /><param name="quality" value="'+quality+'" /><param name="bgcolor" value="'+bgcolor+'" /><param name="menu" value="'+menu+'" /><param name="scale" value="'+scale+'" /><param name="salign" value="'+salign+'" /><embed src="'+flash_url+'" quality="'+quality+'" bgcolor="'+bgcolor+'" width="'+flash_width+'" height="'+flash_height+'" name="'+name+'" align="'+align+'" allowScriptAccess="'+allowScriptAccess+'" type="application/x-shockwave-flash" pluginspage="'+pluginspage+'" menu="'+menu+'" scale="'+scale+'" salign="'+salign+'"/></object>');

}

else

{
	document.write('<img src="https://chart.bigcharts.com/custom/fidelity-com/fidelity-dowchart-v.gifquote" alt="Click for a detailed chart" width="178" height="277" border="0" usemap="#BigChart"><map name="BigChart"><area alt="Click for a DJIA chart" coords="1,4,180,141" href="javascript:indexChart(\'.dji\')" tabindex="160"><area alt="Click for a NASDAQ chart" coords="1,140,181,158" href="javascript:indexChart(\'.ixic\')" tabindex="161"><area alt="Click for an S&amp;P 500 chart" coords="0,163,178,181" href="javascript:indexChart(\'.spx\')" tabindex="162"><area alt="Click for a Russell 3000 chart" coords="0,185,180,203" href="javascript:indexChart(\'.rua\')" tabindex="163"><area alt="Click for a Wilshire 5000 chart" coords="1,206,179,223" href="javascript:indexChart(\'.dwc\')" tabindex="164"><area alt="Today\'s Market News" coords="47,252,179,272" href="<!--#include virtual=/config/personal-->/research/stocks/content/marketsindex.shtml?refhp=c" tabindex="165" target="_top"></map><table cellpadding="0" cellspacing="0" border="0" width="178"><tr><td height="16"></td></tr></table>');
}

}
