// 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] = '../ws-customer-02-02/bildaustausch_startseite/gr-reitjacke-lea.jpg';
Pic[1] = '../ws-customer-02-02/bildaustausch_startseite/gr-stallmatten.jpg';
Pic[2] = '../ws-customer-02-02/bildaustausch_startseite/gr-reithandschuhe.jpg';








var Link = new Array();

Link[0] = 'http://www.kraemer-pferdesport.at/websale7/?shopid=kraemer-pferdesport&subshopid=02-02&act=product&prod_index=650980&cat_index=247350';
Link[1] = 'http://www.kraemer-pferdesport.at/websale7/?shopid=kraemer-pferdesport&subshopid=02-02&act=product&prod_index=450256&cat_index=250227';
Link[2] = 'http://www.kraemer-pferdesport.at/websale7/?shopid=kraemer-pferdesport&subshopid=02-02&act=product&prod_index=870110&cat_index=247400';



// =======================================
// 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];
}
