// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
var img = new Object();
var delay_sec = 5000;
var cnt = 0;
var prefix = '/images/';
for(i = 0; i <= 5; i++) { img[i] = prefix + 'soul_' + i + '.jpg'; }
function next() { cnt++; document.getElementById('image').style.backgroundImage = 'url(' + img[cnt] + ')'; if(cnt == 5) cnt = 0; }
function init() { setInterval('next()', delay_sec); }
