function initSite() {
	initVars();
	preLoad();
	startLaster();
}
/* =============================================================================================================================== */
function initVars() {
	iLB = 0;
	getiLM();
	iLB = iLM/2 + 388;
	iLC = iLM/2 + 388;
	iLD = 0;
}
/* =============================================================================================================================== */
function getiLM() {
	if(navigator.appName == 'Microsoft Internet Explorer') {
		iLM = document.body.clientWidth;
	}
	else {
		iLM = window.innerWidth;
	}
}
/* =============================================================================================================================== */
function preLoad() {
	Bild01 = new Image();
	Bild01.src = "img/button_umzuege_high.png";
	Bild02 = new Image();
	Bild02.src = "img/button_entruempelungen_high.png";
	Bild03 = new Image();
	Bild03.src = "img/button_transporte_high.png";
	Bild04 = new Image();
	Bild04.src = "img/button_kontakt_high.png";
}
/* =============================================================================================================================== */
function startLaster() {
	if(pID == 'Startseite' || pID == '') {
		einfahrtLaster();		
	}
	else {
		ausfahrtLaster();	
	}
}
function animiereLaster() {
	window.setTimeout("document.getElementById('laster').style.top = '1px'", 100);
	window.setTimeout("document.getElementById('laster').style.left = '1px'", 150);
	window.setTimeout("document.getElementById('laster').style.top = '2px'", 200);
	window.setTimeout("document.getElementById('laster').style.top = '3px'", 300);
	window.setTimeout("document.getElementById('laster').style.top = '2px'", 400);
	window.setTimeout("document.getElementById('laster').style.left = '0px'", 450);
	window.setTimeout("document.getElementById('laster').style.top = '1px'", 500);
	window.setTimeout("document.getElementById('laster').style.left = '1px'", 550);
	window.setTimeout("document.getElementById('laster').style.top = '0px'", 600);
	window.setTimeout("document.getElementById('laster').style.top = '1px'", 700);
	window.setTimeout("document.getElementById('laster').style.left = '0px'", 750);
	window.setTimeout("document.getElementById('laster').style.top = '0px'", 800);
	window.setTimeout('animiereLaster()', 800);
}
function einfahrtLaster() {
	if(iLB > 0) {		
		document.getElementById('laster').style.left = iLB + 'px';
		iLB = iLB - 14;
		window.setTimeout('startLaster()', 1);
	}
	else {
		animiereLaster();	
	}	
}
function ausfahrtLaster() {
	if(iLC > 0) {		
		document.getElementById('laster').style.left = iLD + 'px';
		iLC = iLC - 14;
		iLD = iLD - 14;
		window.setTimeout('startLaster()', 1);
	}
	else {
		einfahrtLaster();	
	}	
}
/* =============================================================================================================================== */
