//ticker.js

if (!useRedirect) {		// if dynamic embedding is turned on
	if(hasRightVersion) {	// if we've detected an acceptable version
		var oeTags = '<object hspace=1 vspace=1 align=center classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
		+ 'width="108" height="18"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="ticker.swf">'
		+ '<param name="play" value="true">'
		+ '<param name="loop" value="true">'
		+ '<param name="quality" value="high">'
		+ '<param name="menu" value="false">'
		+ '<embed hspace=1 vspace=1 align=center src="ticker.swf"'
		+ 'width="108" height="18"'
		+ 'play="true"'
		+ 'loop="true"'
		+ '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); 	// embed the flash movie
	} else {	// flash is too old or we can't detect the plugin
		var alternateContent = '<IMG SRC="images/tickeralt.jpg" HEIGHT="18" WIDTH="108" HSPACE=1 VSPACE=1 ALIGN=center>'	// height and width are required!
		;

		document.write(alternateContent);	// insert non-flash content
	}
}
