﻿function logoEin() {
	new Effect.Appear('logo');
	new Effect.Appear('metanavigation',
	{	duration:0.7
	});
}
			
function backEin() {
	new Effect.Appear('hintergrund',
	{	duration:0.5
	});
}

function naviEin() {
	new Effect.Appear('kontakt');
	new Effect.Appear('referenzen');
	new Effect.Appear('lightattack');
	new Effect.Appear('galerie');
	new Effect.Appear('angebot');
	new Effect.Appear('contentLightattack',
	{	duration:0.8
	});
}



function einschalten(contentDiv) {
	Element.hide('contentKontakt');
	Element.hide('contentReferenzen');
	Element.hide('contentLightattack');
	Element.hide('contentGalerie');
	Element.hide('contentAngebot');

	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/light_attack_logo.gif',
	'bilder/metanav_lightattack.png',
	'bilder/metanav_partattack.png',
	'bilder/metanav_shopattack.png',
	'bilder/lampe1.png',
	'bilder/lampe2.png',
	'bilder/lampe3.png',
	'bilder/lampe4.png',
	'bilder/lampe5.png' /* am Schluss keinen Beistrich */
);
