
if( showFlash == undefined || typeof showFlash == "undefined" ){
	var showFlash = $.flash.available && $.flash.hasVersion(9.0);
}
//showFlash = false;

jQuery(function($){
	if( !showFlash ) {
		$('body').css({
			display:	'block'
		});
		return false;
	}
	$('body').children().remove().andSelf().css({
		display:	'block'
	});
	$('body').append(
		$('<div />', {id: 'seite', width: '100%', height: '100%'}).flash({
			swf: '/media/swf/main.swf?' + new Date().getTime(),
			height:	'100%',
			width: '100%',
			base: '/',
			hasVersion: "9.0",
			expressInstaller: '/js/expressInstall.swf',
			params: { allowScriptAccess: 'always', base: '/' },
			flashvars: {language: language}
		})
	);
});