/*************************************************************************/
/*                                                                       */
/*      FILE : ArtikelDetail.js                                          */
/*                                                                       */
/*      WRITTEN BY : Jurrien Saelens                                     */
/*                                                                       */
/*************************************************************************/
/*                                                                       */
/*      Copyright (c) 2003 SYGEL N.V.                                    */
/*                         Cipalstraat 3                                 */
/*                         B 2440 Geel                                   */
/*                         BELGIUM                                       */
/*                                                                       */
/*        All Rights Reserved                                            */
/*                                                                       */
/*************************************************************************/
/*                                                                       */
/*      THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SYGEL             */
/*      The copyright notice above does not evidence any actual or       */
/*      intended publication of such source code.                        */
/*                                                                       */
/*************************************************************************/
var fotos = new Array();
var selectedFoto = 0;

function Foto ( id, titel, inhoud, type ) {
  this.id = id;
  this.titel = titel;
  this.inhoud = inhoud;
  this.type = type;
}

function foto_next ( offset ) {
  selectedFoto = selectedFoto + offset;
  if (selectedFoto >= fotos.length) selectedFoto = fotos.length -1;
  if (selectedFoto < 0) selectedFoto = 0;
  document.getElementById('fotoindex').innerHTML = selectedFoto +1;
  //document.getElementById('fototitel').innerHTML = fotos[selectedFoto].titel;
  document.getElementById('fotoinhoud').innerHTML = fotos[selectedFoto].inhoud;
  document.getElementById('foto').innerHTML = '<a href="/jsp/foto.jsp?id='+ fotos[selectedFoto].id +'"><img class="fotoimg" src="/free/downloadFoto?id='+ fotos[selectedFoto].id +'" alt="'+fotos[selectedFoto].titel+' (Klik voor ware grootte)"></a>';
}

