var flashvars = {};
			flashvars.deepLink = "";
			flashvars.encoding = "western";
			flashvars.basePath = fallingwalls.root + "flashheader/";
			flashvars.assetsSrc = "data/en/assets.xml";
			flashvars.wallsLogoHref = fallingwalls.href;
			flashvars.wallsLogoSrc = fallingwalls.root + "common/fallingwalls_header_logo.png";
			flashvars.wallsLogoX = "0";
			flashvars.wallsLogoY = "0";
			flashvars.einsteinLogoHref = fallingwalls.einsteinlink;
			flashvars.einsteinLogoSrc = fallingwalls.root + 'flashheader/media/einstein_header_logo.png';
			flashvars.einsteinLogoX = "533";
			flashvars.einsteinLogoY = "0";
			flashvars.preloaderLoading = "Loading";
			flashvars.policyFileSrc = "http://userdata.einsteinfoundation.de/fallingwalls/crossdomain.xml";

			
			var params = {};
			params.bgcolor = "#ffffff";
			params.wmode = "window";
			params.allowScriptAccess = "always";
			params.swLiveConnect = "true";
			params.base = "./";
			
			var attributes = {};
			attributes.id = "swfContainer";
		
			swfobject.embedSWF( (fallingwalls.root + "flashheader/flash/main.swf?v=1"), "swfContainer", "780", "167", "9.0.28", (fallingwalls.root + "flashheader/flash/expressInstall.swf"), flashvars, params, attributes);

			var pageReady = false;
			var flashReady = false;
			var headerIsOpen = false;
			
			/**
			 * Tell Flash if the page is ready
			 */
			function isReady() {
				return pageReady;
			}
			
			window.addEvent('domready', function() {
                document.getElementById( 'headerTogglelink').innerHTML = 'play animation';
                pageReady = true;
                showHeaderToggleSwitch();
                //toggleHeader()
        });


			/**
			 * Load complete
			 * Called by Flash Object
			 */
			function onFlashHeaderLoadComplete() {
				flashReady = true;
				showHeaderToggleSwitch();
				//console.debug('onFlashHeaderLoadComplete');
			}
			
			/**
			 * Auto Open
			 * Called by Flash Object
			 */
			function onAutoOpen() {
				//console.debug('onAutoOpen :: headerIsOpen: '+headerIsOpen);
				if (!headerIsOpen) toggleHeader(true);
			}
			/**
			 * Auto Close
			 * Called by Flash Object
			 */
			function onAutoClose() {
				//console.debug('onAutoClose :: headerIsOpen: '+headerIsOpen);
				if (headerIsOpen) toggleHeader();
			}

			/**
			 * When Html and Flash, etc. loading complete
			 */
			function showHeaderToggleSwitch() {
				if (flashReady && pageReady) {
					document.getElementById( 'headerToggle' ).style.display = 'block';
				}
			}

			function nothing(){}
			/**
			 * toggleHeader
			 */
			function toggleHeader() {
				if (document.getElementById( 'headerTogglelink').innerHTML.indexOf('play') == 0){
					document.getElementById( 'headerTogglelink').innerHTML = 'stop animation';
					}
				else{
					document.getElementById( 'headerTogglelink').innerHTML = 'play animation';
				}
				headerIsOpen = !headerIsOpen;
				var swfObj = document.getElementById( 'swfContainer' );
				swfObj.toggleHeader(headerIsOpen);
			}
			
			/**
			 * Resize swfContainer
			 * Called by Flash Object
			 */
			function onResize( w, h )
			{
				var container = document.getElementById( 'header' );
				container.style.width=w+33+'px';
				container.style.height=h+33+'px';

				
				var container = document.getElementById( 'swfContainer' );
				container.style.width=w+'px';
				container.style.height=h+'px';
			}
