		totalBillboards = 4;
		
		function switchImageAction(section,what) {
	if (document) {
		if (section == 1) {
			if (what != oldBillboardImage) {
				newi = 'homeBillboard' + what;
				oldi = 'homeBillboard' + oldBillboardImage;
				Effect.Appear(newi, { duration: 0.5  } );
				Effect.Fade(oldi, { duration: 0.0, queue: 'end'  } );
				$(newi).style.zIndex = '4';
				$(oldi).style.zIndex = '3';
				oldBillboardImage = what;
			}
		}
	}
}
function homeBillboardShowStart() {

		oldBillboardImage = 1;
		i=2;
		while (i < totalBillboards) {
			Effect.Fade('homeBillboard' + i, { duration: 0.0 });
			i++;
		}
		window.setTimeout("Effect.Fade('homeBillboardLoader', { duration: 1.0 })", 200);
		homeBillboardShow(1);

}
function homeBillboardShow(what) {
	switchImageAction(1,what)
	next = what+1;
	nextid = 'homeBillboard' + next;
	if ($(nextid)) {
		window.setTimeout("homeBillboardShow(" + next + ")", 3000);
	}
	else {
		window.setTimeout("homeBillboardShow(1)", 3000);
	}
 	
}
Element.observe(window, 'load', function(){
	homeBillboardShowStart();
});

