// JavaScript Document

<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 10;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'url(images/galeria/A_s.jpg)'
Pic[1] = 'url(images/galeria/B_s.jpg)'
Pic[2] = 'url(images/galeria/C_s.jpg)'
Pic[3] = 'url(images/galeria/D_s.jpg)'
Pic[4] = 'url(images/galeria/E_s.jpg)'
Pic[5] = 'url(images/galeria/F_s.jpg)'
Pic[6] = 'url(images/galeria/G_s.jpg)'
Pic[7] = 'url(images/galeria/H_s.jpg)'
Pic[8] = 'url(images/galeria/I_s.jpg)'
Pic[9] = 'url(images/galeria/J_s.jpg)'
Pic[10] = 'url(images/galeria/K_s.jpg)'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];

}
function runSlideShow() {
if (window.ActiveXObject) { // Mozilla, Safari, ...
            slideShowIE();
            }
else {     
       slideShow();
              }
}

function slideShowIE(){
if (document.all) {
//document.images.SlideShow.style.filter="blendTrans(duration=20)";
document.getElementById('SlideShow').style.filter="blendTrans(duration=20)";
//document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.getElementById('SlideShow').style.filter="blendTrans(duration=crossFadeDuration)";
//document.images.SlideShow.filters.blendTrans.Apply();
document.getElementById('SlideShow').filters.blendTrans.Apply();
}
//document.images.SlideShow.src = preLoad[j].src;
document.getElementById('SlideShow').style.backgroundImage = Pic[j];
if (document.all) {
document.getElementById('SlideShow').filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('slideShowIE()', slideShowSpeed);
}

function  slideShow(){
	document.getElementById('SlideShow').style.backgroundImage = Pic[j];
	j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('slideShow()', slideShowSpeed);
}


//  End -->