// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 5000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3060;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var Picture1 = new Array(); // don't change this
var Caption1 = new Array(); // don't change this


Picture[1]  = 'slide/slide1.jpg';
Picture[2]  = 'slide/slide2.jpg';
Picture[3]  = 'slide/slide3.jpg';
Picture[4]  = 'slide/slide4.jpg';
Picture[5]  = 'slide/slide5.jpg';
Picture[6]  = 'slide/slide6.jpg';
Picture[7]  = 'slide/slide7.jpg';

Caption[1]  = " ";
Caption[2]  = " ";
Caption[3]  = " ";
Caption[4]  = " ";



Picture1[1]  = 'images/slidepq/hd_abrangencia_pq.jpg';
Picture1[2]  = 'images/slidepq/hd_acidentes_pq.jpg';
Picture1[3]  = 'images/slidepq/hd_atencao_pq.jpg';
Picture1[4]  = 'images/slidepq/hd_qualidade_pq.jpg';
Picture1[5]  = 'images/slidepq/hd_destaque_pq.jpg';
Picture1[6]  = 'images/slidepq/hd_domiciliar_pq.jpg';
Picture1[7]  = 'images/slidepq/hd_idoneidade_pq.jpg';
Picture1[8]  = 'images/slidepq/hd_pacientes_cronicos_pq.jpg';
Picture1[9]  = 'images/slidepq/hd_programas_pq.jpg';
Picture1[10] = 'images/slidepq/hd_rede_pq.jpg';


//Picture1[1]  = 'images/hd_abrangencia.jpg';
//Picture1[2]  = 'images/hd_acidentes.jpg';
//Picture1[3]  = 'images/hd_atencao.jpg';
//Picture1[4]  = 'images/hd_qualidade.jpg';
//Picture1[5]  = 'images/hd_destaque.jpg';
//Picture1[6]  = 'images/hd_domiciliar.jpg';
//Picture1[7]  = 'images/hd_idoneidade.jpg';
//Picture1[8]  = 'images/hd_pacientes_cronicos.jpg';
//Picture1[9]  = 'images/hd_programas.jpg';
//Picture1[10] = 'images/hd_rede.jpg';

Caption1[1]  = " ";
Caption1[2]  = " ";
Caption1[3]  = " ";
Caption1[4]  = " ";
Caption1[5]  = " ";
Caption1[6]  = " ";
Caption1[7]  = " ";
Caption1[8]  = " ";
Caption1[9]  = " ";
Caption1[10] = " ";

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=5)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

var tss1;
var iss1;
var jss1 = 1;
var pss1 = Picture1.length-1;

var preLoad1 = new Array();
for (iss1 = 1; iss1 < pss1+1; iss1++){
preLoad1[iss1] = new Image();
preLoad1[iss1].src = Picture1[iss1];}

function runSlideShow1(){
if (document.all){
document.images.PictureBox1.style.filter="blendTrans(duration=5)";
document.images.PictureBox1.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox1.filters.blendTrans.Apply();}
document.images.PictureBox1.src = preLoad1[jss1].src;
if (document.getElementById) document.getElementById("CaptionBox1").innerHTML= Caption1[jss1];
if (document.all) document.images.PictureBox1.filters.blendTrans.Play();
jss1 = jss1 + 1;
if (jss1 > (pss1)) jss1=1;
tss1 = setTimeout('runSlideShow1()', SlideShowSpeed);
}
 


