// 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, link, title) {
  diashow_data[diashow_data.length] = new Array(picture, link, title);
}

function diashow_update(id,speed) {
	//alert("im diashow_update, pos="+diashow_pos+" array = " + diashow_data);
  container = document.getElementById(id);
  img = diashow_data[diashow_pos][0];
  href=  diashow_data[diashow_pos][1];
  title=  diashow_data[diashow_pos][2];
  //alert("Debug: img= " + img + ", href= "+ href + ", title = " + title);
  diashow_pos++;
  if (diashow_pos >= diashow_data.length) { 
    diashow_pos = 0;
  }
  //container.innerHTML = '<img src="'+img+'"></a>';
 container.innerHTML = '<a href="' + href + '" target="_blank"> <img src="'+ img + '" title="' + title + '" alt="Bandfoto" border="0" /> </a>';
  setTimeout('diashow_update("'+id+'",'+speed+')',speed);
}


