function embedSwf(swf,installSwf) {

	// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)

	var hasProductInstall = DetectFlashVer(6, 0, 65);



	// Version check based upon the values entered above in globals.js

	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);



	// Location visited after installation is complete if installation is required

	var MMredirectURL = window.location;



	// Stored value of document title used by the installation process to close the window that started the installation process

	// This is necessary to remove browser windows that will still be utilizing the older version of the player after installation is complete

	// DO NOT MODIFY THE FOLLOWING TWO LINES

	// document.title = document.title.slice(0, 47) + " - Flash Player Installation";

	var MMdoctitle = document.title;



	// exploded values

	var width = 	"990";

	var height = 	"580";

	var align =		"top";

	var id = 		"browserScroll";

	var scale =		"noscale";

	var bgColor = 	"#E7EBEB";

	var quality =	"best"

	var play = 		"true";

	var loop = 		"false";

	var allowScr = 	"sameDomain";

	var classID = 	"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";

	var codeBase = 	"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";



	if (ignoreVal != 'false') {

		var oeTags = '<table width="'+width+'" height="'+height+'" border="0" cellspacing="0" cellpadding="0" id="flashContent"><tr><td>'

		+ '<object classid="'+classID+'" width="'+width+'" height="'+height+'" codebase="'+codeBase+'" id="'+id+'">'

		+ '<param name="movie" value="'+swf+'" /><param name="quality" value="'+quality+'"/><param name="bgcolor" value="'+bgColor+'" />'

		+ '<param name="allowScriptAccess" value="sameDomain" />'

		+ '<embed src="'+swf+'" quality="'+quality+'" bgcolor="'+bgColor+'"'

		+ 'width="'+width+'" height="'+height+'" name="'+id+'" aligh="'+align+'"'

		+ 'play="'+play+'" loop="'+loop+'" quality="'+quality+'" allowScriptAccess="'+allowScr+'"'

		+ 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'

		+ '<\/embed>'

		+ '<\/object>'

		+ '</td></tr></table>';

		document.write(oeTags);

		return;

	}

	// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback

	if ( hasProductInstall && !hasReqestedVersion ) {

		var productInstallOETags = '<object classid="'+classID+'" width="'+width+'" height="'+height+'" codebase="'+codeBase+'" id="'+id+'">'

		+ '<param name="movie" value="'+installSwf+'?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'" />'

		+ '<param name="quality" value="'+quality+'"/><param name="bgcolor" value="'+bgColor+'" />'

		+ '<param name="allowScriptAccess" value="sameDomain" />'

		+ '<embed src="'+installSwf+'?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="'+quality+'" bgcolor="'+bgColor+'"'

		+ 'width="'+width+'" height="'+height+'" name="'+id+'" aligh="'+align+'"'

		+ 'play="'+play+'" loop="'+loop+'" quality="'+quality+'" allowScriptAccess="'+allowScr+'"'

		+ 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'

		+ '<\/embed>'

		+ '<\/object>';

		document.write(productInstallOETags);   // embed the Flash Product Installation SWF

	} else if (hasReqestedVersion) {  // if we've detected an acceptable version

		var oeTags = '<table width="'+width+'" height="'+height+'" border="0" cellspacing="0" cellpadding="0" id="flashContent"><tr><td>'

		+ '<object classid="'+classID+'" width="'+width+'" height="'+height+'" codebase="'+codeBase+'" id="'+id+'">'

		+ '<param name="movie" value="'+swf+'" /><param name="quality" value="'+quality+'"/><param name="bgcolor" value="'+bgColor+'" />'

		+ '<param name="allowScriptAccess" value="sameDomain" />'

		+ '<embed src="'+swf+'" quality="'+quality+'" bgcolor="'+bgColor+'"'

		+ 'width="'+width+'" height="'+height+'" name="'+id+'" aligh="'+align+'"'

		+ 'play="'+play+'" loop="'+loop+'" quality="'+quality+'" allowScriptAccess="'+allowScr+'"'

		+ 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'

		+ '<\/embed>'

		+ '<\/object>'

		+ '</td></tr></table>';

		document.write(oeTags);   // embed the Flash Content SWF when all tests are passed

	} else {  // flash is too old or we can't detect the plugin

		var flashEl = getElement("flashcontent");

		var textEl = getElement("textcontent");

		flashEl.style.display = "none";

		textEl.style.display = "block";

	}

}



function getElement(id) {

	var el = document.getElementById(id);

	return el;

}



function MM_openBrWindow(theURL,winName,features) {

  window.open(theURL,winName,features);

}



