// JavaScript Document


var cur = 0;
var list;
function loop_wait() {
setTimeout(next_image, 3000);
}
function next_image(){
new Rico.Effect.FadeTo(list[cur].id, 0.0, 1000, 20);
cur = (cur + 1) % list.length;
new Rico.Effect.FadeTo(list[cur].id, 1.0, 1000, 20, {complete:loop_wait});
}
window.onload = function(){
new Rico.Effect.FadeTo('img01', 1, 0, 1);
new Rico.Effect.FadeTo('img02', 0, 0, 1);
new Rico.Effect.FadeTo('img03', 0, 0, 1);
new Rico.Effect.FadeTo('img04', 0, 0, 1);
new Rico.Effect.FadeTo('img05', 0, 0, 1);
new Rico.Effect.FadeTo('img06', 0, 0, 1);
new Rico.Effect.FadeTo('img07', 0, 0, 1);
new Rico.Effect.FadeTo('img08', 0, 0, 1);
new Rico.Effect.FadeTo('img09', 0, 0, 1);
new Rico.Effect.FadeTo('img10', 0, 0, 1);
list = document.getElementById('album').getElementsByTagName('img');
loop_wait();
};

