// diashow II - Thomas Salvador, 2010, brauchbar.de
// free to use, if this notice is kept intact

var diashow_data = new Array();
var diashow_pos  = 0;

function diashow_define(picture) {
  diashow_data[diashow_data.length] = new Array(picture);
}

function diashow_update(id,speed) {
  container = document.getElementById(id);
  img = diashow_data[diashow_pos++];
  if (diashow_pos >= diashow_data.length) { 
    diashow_pos = 0;
  }
  container.innerHTML = '<img src="'+img+'"></a>';
  setTimeout('diashow_update("'+id+'",'+speed+')',speed);
}

