// JavaScript Document


var slideShowSpeed = 5000
var crossFadeDuration = 3
var Pic = new Array()   // no tocar
var nTitulo = new Array()
var nDetalle = new Array()
var nEnlace = new Array()
var preLoad = new Array()

var marqueecontents=''

Pic[0] = 'NotaPrensa/fotos/a_pfoto080519_1.jpg'
Pic[1] = 'NotaPrensa/fotos/a_pfoto080509_1.jpg'
Pic[2] = 'NotaPrensa/fotos/a_pfoto080507_1.jpg'
Pic[3] = 'NotaPrensa/fotos/a_pfoto080505_1.jpg'
Pic[4] = 'NotaPrensa/fotos/a_pfoto080430_1.jpg'










preLoad[0] = new Image()
preLoad[0].src = Pic[0]
preLoad[1] = new Image()
preLoad[1].src = Pic[1]
preLoad[2] = new Image()
preLoad[2].src = Pic[2]
preLoad[3] = new Image()
preLoad[3].src = Pic[3]
preLoad[4] = new Image()
preLoad[4].src = Pic[4]

nTitulo[0] = 'SEGURO INTEGRAL DE SALUD PARTICIPA DE ACTIVIDADES POR LA SEMANA DE LA MATERNIDAD SALUDABLE Y SEGURA'
nTitulo[1] = 'NIÑA CON MALFORMACIÓN GENETICA ES OPERADA GRACIAS AL SIS'
nTitulo[2] = 'SIS Y CONSTRUYENDO PERU: JUNTOS APOYANDO A LOS MAS POBRES DEL PAÍS '
nTitulo[3] = 'SIS Y RENIEC FIRMAN CONVENIO PARA ACCEDER A BASE DE DATOS DE AFILIADOS'
nTitulo[4] = 'DEFENSORIA Y SIS SE UNEN PARA PROMOVER EL  BUEN TRATO EN ATENCIONES DE SALUD'



nDetalle[0] = 'Teniendo como lema "Por una maternidad saludable y segura...cero indiferencia frente a la muerte materna"...'
nDetalle[1] = 'Anacelly Guevara Llatas es una pequeña que llegó a la ciudad de Lima hace siete meses, con la esperanza de que una operación ...'
nDetalle[2] = 'Con el propósito de mejorar la calidad de vida de los peruanos que menos recursos económicos tienen, y en especial de los...'
nDetalle[3] = 'El Seguro Integral de Salud – SIS, y el Registro Nacional de Identificación y Estad Civil – RENIEC, firmaron un Convenio...'
nDetalle[4] = 'Con la finalidad de defender los derechos del paciente, la Defensoría del Pueblo y el Seguro Integral de Salud realizaron un...'





nEnlace[0] = 'NotaPrensa/a_NotaPrensa080519_1.html'
nEnlace[1] = 'NotaPrensa/a_NotaPrensa080509_1.html'
nEnlace[2] = 'NotaPrensa/a_NotaPrensa080507_1.html'
nEnlace[3] = 'NotaPrensa/a_NotaPrensa080505_1.html'
nEnlace[4] = 'NotaPrensa/a_NotaPrensa080430_1.html'


















// =======================================
var t
var j = 0, k = 0
var p = Pic.length

function flotantes(pagina,ancho,altura)
{	
	var res = screen.width;
	window.open(pagina,"sizewindow",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,copyhistory=yes,top=50,left=100,width='+ancho+',height='+altura);
}

function ColocaSlide(index){
   document.images.SlideShow.src = preLoad[index].src
   document.all.notit.innerHTML  = nTitulo[index]
   document.all.nodet.innerHTML  = nDetalle[index]
   document.all.notlink.href     = nEnlace[index]
   document.all.fotolink.href    = nEnlace[index]
   document.all.titulink.href    = nEnlace[index]
   document.getElementById('n1').className = 'toff'
   document.getElementById('n2').className = 'toff'
   document.getElementById('n3').className = 'toff'
   document.getElementById('n4').className = 'toff'
   document.getElementById('n5').className = 'toff'
   if(index == 0) { document.getElementById('n1').className = 'ton' }
   if(index == 1) { document.getElementById('n2').className = 'ton' }
   if(index == 2) { document.getElementById('n3').className = 'ton' }
   if(index == 3) { document.getElementById('n4').className = 'ton' }
   if(index == 4) { document.getElementById('n5').className = 'ton' }
}
function runSlideShow(){
   if (j > (p-1)) j=0
   document.getElementById('n1').className = 'toff'
   document.getElementById('n2').className = 'toff'
   document.getElementById('n3').className = 'toff'
   document.getElementById('n4').className = 'toff'
   document.getElementById('n5').className = 'toff'

   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()      
   }
   document.images.SlideShow.src = preLoad[j].src
   document.all.notit.innerHTML  = nTitulo[j]
   document.all.nodet.innerHTML  = nDetalle[j]
   document.all.notlink.href     = nEnlace[j]
   document.all.fotolink.href    = nEnlace[j]
   document.all.titulink.href    = nEnlace[j]
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   if(j == 0) { document.getElementById('n1').className = 'ton' }
   if(j == 1) { document.getElementById('n2').className = 'ton' }
   if(j == 2) { document.getElementById('n3').className = 'ton' }
   if(j == 3) { document.getElementById('n4').className = 'ton' }
   if(j == 4) { document.getElementById('n5').className = 'ton' }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

//flotantes("popups/20071212p.asp",300,171);
//window.open("popups/20080107p.asp","blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,copyhistory=yes,top=50,left=425,width=342,height=237");




