
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
		"src", "http://digitalmedia.worldbank.org/poll/interactive_poll",
		"width", "173",
		"height", "230",
		"align", "middle",
		"salign", "LT",
		"id", "poll_id=8",
		"quality", "high",
		"bgcolor", "#ffffff",
		"Flashvars", "poll_id=8",
		"name", "Interactive poll",
		"allowScriptAccess","sameDomain",
		"type", "application/x-shockwave-flash",
		'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
	} else {  // flash is too old or we can't detect the plugin
	var alternateContent = 'Alternate HTML content should be placed here.<BR>'
	+ 'This content requires the Adobe Flash Player. '
	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
	document.write(alternateContent);  // insert non-flash content
}
 