﻿function logoEin() {
	new Effect.Appear('logo');
	new Effect.Appear('titel',
	{	duration:0.7
	});
}
			
function backEin() {
	new Effect.Appear('hintergrund',
	{	duration:0.5
	});
}

function naviEin() {
	new Effect.Appear('lightattack');
	new Effect.Appear('shopattack');
	new Effect.Appear('partattack',
	{	duration:0.8
	});
}



function einschalten(contentDiv) {
	Element.hide('contentLightattack');
	Element.hide('contentShopattack');
	Element.hide('contentPartattack');

	new Effect.Appear(contentDiv,
	{	duration:0.1
	});
}



function aus() {
	new Effect.Opacity('wrapper', 
	{	to:0.1
	});
	
	new Effect.Opacity('bueroeinheit', 
	{	to:0.1
	});

}



function ein() {
	new Effect.Appear('wrapper');
	new Effect.Appear('bueroeinheit');

}



var preloaded = new Array();

function preload_images() {
    for (var i = 0; i < arguments.length; i++) {
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src',arguments[i]);
        
		setTimeout('backEin()', 800);
      	setTimeout('logoEin()', 350);
		setTimeout('naviEin()', 1500);

    };
};

preload_images (
	'bilder/attack_logo.gif',
	'bilder/steckdose.png',
	'bilder/titel.gif' /* am Schluss keinen Beistrich */
);

