var Feature = Class.create();

Feature.prototype = {
	initialize: function()
	{
		//init global variables here!
		
		
		//TODO: init proper flash version before
		var version;
		var fVersion = deconcept.SWFObjectUtil.getPlayerVersion()["major"];
		if(fVersion >= 9){			//special resources for flash 8 available
			version = 9;
		}
//		else if(fVersion >= 7){		//special resources for flash 7 available
//			version = 7;
//		}
		else{
			version = 0;			//not supported flash version -> show non-flash/non-javascript version
		}

		if(version != 0){
			this.flashVersion = version;
			this.initFeature();
		}
	},
	initFeature: function()
	{	
		var flashvars = {
			//config_url: "xml/config.xml",
		
			s_account: s_account,
			pageTitle: s.prop19,
			featureName: FEATURE_NAME,
			language: 'cz',
			namespace: s.visitorNamespace
		}
	
		var app = new SWFObject("../features/120years/cz/cz/swf/120years.swf", 
			"FlashApplication", "987", "393", this.flashVersion + ",0,0,0", "#000000");
		app.addParam("quality", "high");
		app.addParam("wmode", "transparent");
		app.addParam("base", "../features/120years/cz/cz/");
//		app.addParam("menu", "false");
		app.addParam("allowScriptAccess", "always");
		
		for (key in flashvars) {
			app.addVariable(key, flashvars[key]);
		}
		
		app.write("headervisual-zone");
	}
}

document.observe("dom:loaded", function() {
	/*initialize feature*/
	featureFlash = new Feature();
});

