function showDummy(obj) {
  var objURI = new URI(location.href);
  obj.src = objURI.path.match(/.*\/galerie\//) + '../assets/transparent640x480.gif';
  return(true);
}

function startTheShow(pic) {
  var objURI = new URI(location.href);
  var picNumber = -1;
  if (pic != null) {
    picNumber = pic.id.replace(/thumb/g, '') - 1;
  }
  var wndParams = 'path=' + objURI.path.match(/.*\//) + '&picNumber=' + picNumber;
  var wndURL = objURI.path.match(/.*\/galerie\//) + 'diashow.html?' + wndParams;
  var wndName = 'scc_diashow';
  var width = 840;
  var height = 710;
  var left = (screen.availWidth - width) / 2;
  var top = (screen.availHeight - height) / 2;
  var wndOptions = new Array(
    'width=' + width,
    'height=' + height,
    'left=' + left,
    'top=' + top,
    'dependent=yes',
    'resizable=yes',
    'scrollbars=yes',
    'location=no',
    'status=no'
  );
  var diashow = window.open(wndURL, wndName, wndOptions.join(', '));
  diashow.focus();
  return(false);
}

function getDLLPrefix() {
  var strDLLPrefix = 'ftp://ftpuser:download@dynip.scc-stadtroda.de/SCC';
  return(strDLLPrefix);
}

function setDLL(dll) {
  var strDLLSuffix = '%21Urheberrechtshinweis.html';
  var objURI = new URI(location.href);
  var objLink = document.getElementById(dll);
  objLink.rel = 'nofollow';
  objLink.href = getDLLPrefix() + objURI.path.match(/.*\//) + strDLLSuffix;
  return(false);
}
