var my_images = new Array();
var SLIDE_load = new Array();
var SLIDE_status, SLIDE_timeout;
var SLIDE_actual = 1;
var SLIDE_speed = 7000;
var SLIDE_fade = 7;
for (i = 1; i <= martin_message.length-1; i++)
{

  my_images[i] = my_Dir[i];
  SLIDE_load[i] = new Image();
  SLIDE_load[i].src = my_images[i];
  SLIDE_load[i].alt = martin_alt[i];
  SLIDE_load[i].title = martin_title[i];
}

for (i = 1; i <= titlecase.length-1 && viewRelease.lenght-1; i++)
{
SLIDE_load[i] = viewRelease[i];
}

function showSlide(num)
{
  SLIDE_actual = num;
  SLIDE_pause();
  SLIDE_slide();
}
for (i = 1; i <= martin_counter.length-1; i++)
{
}

var SLIDE_count = my_images.length-1;
var SLIDE_count = martin_alt.length-1;
var SLIDE_count = martin_title.length-1;
function SLIDE_start()
{
  document.getElementById('SLIDE_play').disabled = false;
  document.images.SLIDE_picBox.src = SLIDE_load[SLIDE_actual].src;
  document.images.SLIDE_picBox.alt = SLIDE_load[SLIDE_actual].alt;
  document.images.SLIDE_picBox.title = SLIDE_load[SLIDE_actual].title;
  document.getElementById("featuretitle").innerHTML= titlecase[SLIDE_actual];
  document.getElementById("featurecaption").innerHTML= martin_message[SLIDE_actual];
  document.getElementById("featurecounter").innerHTML= martin_counter[SLIDE_actual];

  document.getElementById("featureimglink").innerHTML= viewRelease[SLIDE_actual];
  SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_play()
{
  document.getElementById('SLIDE_play').disabled = true;
  document.getElementById('SLIDE_pause').disabled = false;
  SLIDE_actual++;
  SLIDE_slide();
  SLIDE_status = 'SLIDE_play';
  SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_pause()
{
  clearTimeout(SLIDE_timeout);
  SLIDE_status = 'SLIDE_pause';
  document.getElementById('SLIDE_pause').disabled = true;
  document.getElementById('SLIDE_play').disabled = false; 
}
function SLIDE_back()
{
  clearTimeout(SLIDE_timeout);
  SLIDE_actual--;
  SLIDE_slide();
  if (SLIDE_status != 'SLIDE_pause') SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_forward()
{
  clearTimeout(SLIDE_timeout);
  SLIDE_actual++;
  SLIDE_slide()
  if (SLIDE_status != 'SLIDE_pause') SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_slide()
{
  if (SLIDE_status != 'SLIDE_pause')
  {
    document.getElementById('SLIDE_play').disabled = true;
    document.getElementById('SLIDE_pause').disabled = false;
  }
  if (SLIDE_actual > (SLIDE_count)) SLIDE_actual= 1;
  if (SLIDE_actual < 1) SLIDE_actual = SLIDE_count;
  if (document.all)
  {
    document.getElementById("featurecaption").style.background = "transparent";
    document.images.SLIDE_picBox.style.filter="blendTrans(duration=2)";
    document.images.SLIDE_picBox.style.filter="blendTrans(duration=SLIDE_fade)";
    document.images.SLIDE_picBox.filters.blendTrans.Apply();
  }
    document.images.SLIDE_picBox.src = SLIDE_load[SLIDE_actual].src;
    document.images.SLIDE_picBox.alt = SLIDE_load[SLIDE_actual].alt;
    document.images.SLIDE_picBox.title = SLIDE_load[SLIDE_actual].title;
  if (document.getElementById) document.getElementById("featurecaption").innerHTML= martin_message[SLIDE_actual];
  if (document.getElementById) document.getElementById("featuretitle").innerHTML= titlecase[SLIDE_actual];
  if (document.getElementById) document.getElementById("featurecounter").innerHTML= martin_counter[SLIDE_actual];
  if (document.getElementById) document.getElementById("featureimglink").innerHTML= viewRelease[SLIDE_actual];    
  if (document.all) document.images.SLIDE_picBox.filters.blendTrans.Play();
}
function SLIDE_speeds(SLIDE_valgt)
{
  SLIDE_speed = SLIDE_valgt.options[SLIDE_valgt.selectedIndex].value;
}
function newpage() {
window.location.href=url[SLIDE_actual];
}
function newpageRelease() {
window.location.href=url[SLIDE_actual];
}
