﻿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/css-sprite.png',
	'bilder/lampen-sprite.png' /* am Schluss keinen Beistrich */
);

