﻿function injectText (content) {
			
    var contentNode = document.getElementById("historyContentTarget");
		
	if( contentNode != undefined)
	{	
		while (contentNode.childNodes.length)
		{
		    contentNode.removeChild (contentNode.firstChild);
		}
	contentNode.appendChild (	document.createTextNode (content)	);
	}
			
}
	


$jQ( function() {
												
		var SWF_PATH = "./";
		var SWF_NAME = "HistorySlider";
		var SWF_PARAMS = "language=" + (shortLang==""?"en":shortLang);
		
		var SWF_WIDTH = 510, SWF_HEIGHT = 200;

		if (DetectFlashVer (8, 0, 0)) {
			jQuery("#historytimeline").prepend("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='" + SWF_WIDTH + "' height='" + SWF_HEIGHT + "' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='" + SWF_PATH + SWF_NAME + ".swf" + (SWF_PARAMS ? "?" + SWF_PARAMS : "") + "' /><param name='quality' value='high' /><embed src='" + SWF_PATH + SWF_NAME + ".swf" + (SWF_PARAMS ? "?" + SWF_PARAMS : "") + "' quality='high' width='" + SWF_WIDTH + "' height='" + SWF_HEIGHT + "' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");			
		} else {
			jQuery("#historytimeline").prepend("<a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW' target='_blank'><img src='/images/getplayer.jpg' alt='download flash' style='clear:both;'></a>");			
		}
		
});
