function PopupPic(sPicURL) { 
  window.open( "/popup.html?"+sPicURL, "",  
  "resizable=1,HEIGHT=200,WIDTH=200"); 
} 

function PopupCmsPic(sPicURL) { 
  window.open( "/popupcms.html?"+sPicURL, "",  
  "resizable=1,HEIGHT=200,WIDTH=200"); 
} 

// (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 slideShowSpeed1 = 2000

// Duration of crossfade (seconds)
var crossFadeDuration1 = 2

// Specify the image files
var Pic1 = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic1[0] = '/img/fotos/foto_telefoon-03.jpg'
Pic1[1] = '/img/fotos/foto_telefoon-01.jpg'
Pic1[2] = '/img/fotos/foto_telefoon-04.jpg'
Pic1[3] = '/img/fotos/foto_telefoon-02.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t1
var j1 = 0
var p1 = Pic1.length

var preLoad1 = new Array()
for (i1 = 0; i1 < p1; i1++){
   preLoad1[i1] = new Image()
   preLoad1[i1].src = Pic1[i1]
}

function runSlideShow1(){
   if (document.all){
      document.images.SlideShow1.style.filter="blendTrans(duration=2)"
      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow1.filters.blendTrans.Apply()      
   }
   document.images.SlideShow1.src = preLoad1[j1].src
   if (document.all){
      document.images.SlideShow1.filters.blendTrans.Play()
   }
   j1 = j1 + 1
   if (j1 > (p1-1))
   {
   	j1=0
	t2 = setTimeout('runSlideShow2()', slideShowSpeed2);
	clearTimeout(t1);
   }else{
    t1 = setTimeout('runSlideShow1()', slideShowSpeed1)
   }
}


//---------------

// Set slideShowSpeed (milliseconds)
var slideShowSpeed2= 2000

// Duration of crossfade (seconds)
var crossFadeDuration2= 2

// Specify the image files
var Pic2= new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic2[0] = '/img/fotos/foto_mp3-02.jpg';
Pic2[1] = '/img/fotos/foto_mp3-03.jpg';
Pic2[2] = '/img/fotos/foto_mp3-04.jpg';
Pic2[3] = '/img/fotos/foto_mp3-01.jpg';

// =======================================
// do not edit anything below this line
// =======================================

var t2
var j2= 0
var p2= Pic2.length

var preLoad2= new Array()
for (i2= 0; i2< p2; i2++){
   preLoad2[i2] = new Image()
   preLoad2[i2].src = Pic2[i2]
}

function runSlideShow2(){
   if (document.all){
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow2.filters.blendTrans.Apply()      
   }
   document.images.SlideShow2.src = preLoad2[j2].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   j2= j2 + 1
   if (j2 > (p2-1))
   {
	   j2=0
   	t3 = setTimeout('runSlideShow3()', slideShowSpeed3);
	clearTimeout(t2);
   }else{
    t2 = setTimeout('runSlideShow2()', slideShowSpeed2)
   }
}

//---------------

// Set slideShowSpeed (milliseconds)
var slideShowSpeed3 = 2000

// Duration of crossfade (seconds)
var crossFadeDuration3 = 2

// Specify the image files
var Pic3 = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic3[0] = '/img/fotos/foto_camera-02.jpg'
Pic3[1] = '/img/fotos/foto_camera-03.jpg'
Pic3[2] = '/img/fotos/foto_camera-04.jpg'
Pic3[3] = '/img/fotos/foto_camera-01.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t3
var j3 = 0
var p3 = Pic3.length

var preLoad3 = new Array()
for (i3 = 0; i3 < p3; i3++){
   preLoad3[i3] = new Image()
   preLoad3[i3].src = Pic3[i3]
}

function runSlideShow3(){
   if (document.all){
      document.images.SlideShow3.style.filter="blendTrans(duration=2)"
      document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow3.filters.blendTrans.Apply()      
   }
   document.images.SlideShow3.src = preLoad3[j3].src
   if (document.all){
      document.images.SlideShow3.filters.blendTrans.Play()
   }
   j3 = j3 + 1
   if (j3 > (p3-1))
   {
	   j3=0;
   	t1 = setTimeout('runSlideShow1()', slideShowSpeed1);
	clearTimeout(t3);
   }else{
    t3 = setTimeout('runSlideShow3()', slideShowSpeed3)
   }
   
   
}

function runSlideShows()
{
	t1 = setTimeout('runSlideShow1()', 2000);
	//t2 = setTimeout('runSlideShow2()', 5000);
	//t3 = setTimeout('runSlideShow3()', 6000);
}