var HistoryFlash = Class.create();

HistoryFlash.prototype = {
	initialize: function() {
		var clientFlashVersion = deconcept.SWFObjectUtil.getPlayerVersion()["major"];
		var fVersion = 0;
		if(clientFlashVersion >= 8) {
			fVersion = 8;
		} else if(clientFlashVersion >= 7) {
			fVersion = 7;
		}

		if(fVersion != 0) {
			this.flashVersion = fVersion;
			this.initHistoryFlash();
		}
	},

	initHistoryFlash: function() {
		var so = new SWFObject(ROOT_PATH + "pool/headerflash/history/history-" + PAGE_LANG + "_v" + this.flashVersion +".swf", "siemens_history", "995px", "280px", this.flashVersion , "#ffffff");
		so.addVariable("imagesPath", ROOT_PATH + "pool/headerflash/history/images/");
		so.addParam("wmode", "transparent");
		so.write("history-flash-content");
	}
}

document.observe('dom:loaded', function() {
	new HistoryFlash();
});