Element.observe(document,"dom:loaded", function(){
//	timer=setTimeout(rotate.curry(2), 1000);
	rotate(2);
});


function rotate(id) {
	if (id==5) id=1;
	timer=setTimeout(home_lightOn.curry(id), 4000);
}
function home_lightOn(id) {
	if (id!=1) old_id=id-1;
	else old_id=4;
	$('large-image-'+old_id).fade( {duration:0.5} );
	$('large-image-'+id).appear( {duration:0.5} );
	rotate(id+1);
	
}