function draw_badge() {

var hasReqestedVersion = DetectFlashVer(9, 0, 115);

// 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(
		'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab',
		'width','217',
		'height','180',
		'id','badge',
		'align','middle',
		'src','badge',
		'quality','high',
		'bgcolor','#FFFFFF',
		'name','badge',
		'allowscriptaccess','all',
		'pluginspage','http://www.macromedia.com/go/getflashplayer',
		'flashvars','appname=klinkr&appurl=http://klinkr.net/releases/klinkr-latest.air&airversion=1.0&imageurl=badge/klinkr_badge.png',
		'movie','badge/badge' ); //end AC code

} else {  // Flash Player is too old or we can't detect the plugin
	document.write('<table id="AIRDownloadMessageTable"><tr><td>Download <a href="http://klinkr.net/releases/klinkr-latest.air">klinkr</a> now.<br /><br /><span id="AIRDownloadMessageRuntime">This application requires the <a href="');
	
	var platform = 'unknown';
	if (typeof(window.navigator.platform) != undefined)
	{
		platform = window.navigator.platform.toLowerCase();
		if (platform.indexOf('win') != -1)
			platform = 'win';
		else if (platform.indexOf('mac') != -1)
			platform = 'mac';
	}
	
	if (platform == 'win')
		document.write('http://airdownload.adobe.com/air/win/download/1.0/AdobeAIRInstaller.exe');
	else if (platform == 'mac')
		document.write('http://airdownload.adobe.com/air/mac/download/1.0/AdobeAIR.dmg');
	else
	document.write('http://www.adobe.com/go/getair/');

	document.write('">Adobe&#174;&nbsp;AIR&#8482; runtime</a>.</span></td></tr></table>');
}
}
