// JavaScript Document// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;

// Duration of crossfade (seconds)
var crossFadeDuration = 10;

// Specify the image files
var Pic = new Array(); // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/start_overviewimage/buecher.jpg';
Pic[1] = 'images/start_overviewimage/gesundheit_wellness.jpg';
Pic[2] = 'images/start_overviewimage/zeitschriften.jpg';
Pic[3] = 'images/start_overviewimage/video_dvd.jpg';
Pic[4] = 'images/start_overviewimage/musik.jpg';
Pic[5] = 'images/start_overviewimage/hoerbuecher.jpg';
Pic[6] = 'images/start_overviewimage/kinder.jpg';
Pic[7] = 'images/start_overviewimage/leben_geniessen.jpg';

var Link = new Array();

Link[0] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=002';
Link[1] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=008';
Link[2] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=003';
Link[3] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=004';
Link[4] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=005';
Link[5] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=006';
Link[6] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=007';
Link[7] = 'http://shop.rd-shop24.de/websale7/?shopid=rd-shop24&act=category&cat_index=009';
// =======================================
// do not edit anything below this line
// =======================================

var tSlide;
var jSlide = -1;
var pSlide = Pic.length;

var preLoadSlide = new Array();

function runSlideShow(){  
  
  for (iSlide = 0; iSlide < pSlide; iSlide++){
     preLoadSlide[iSlide] = new Image();
     preLoadSlide[iSlide].src = Pic[iSlide]; 
  }
  tSlide = setTimeout('runSlideShow2()', 1);
}

function runSlideShow2(){  
   if (document.all){
    document.images.SlideShow.style.filter="blendTrans(duration=2)";
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
    document.images.SlideShow.filters.blendTrans.Apply();      
   }
   jSlide = jSlide + 1;
   if (jSlide > (pSlide-1))
     jSlide=0;
   document.images.SlideShow.src = preLoadSlide[jSlide].src;
   if (document.all){
     document.images.SlideShow.filters.blendTrans.Play();
   }

   tSlide = setTimeout('runSlideShow2()', slideShowSpeed);
}



function onPicClick()
{
  var x = jSlide;  
  if (Link[x])
   document.location = Link[x];
}
