
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

// =======================================
// set the following variables
// =======================================

var target = 'ani'
var veces = 60

// Set speed (milliseconds)
var speed = 100

// 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] = 'img/ani/1.gif'
Pic[1] = 'img/ani/2.gif'
Pic[2] = 'img/ani/3.gif'
Pic[3] = 'img/ani/4.gif'

// =======================================
// do not edit anything below this line
// =======================================
var x = 0
var t
var j = 0
var p = Pic.length
var h= screen.height/100
var l= screen.width/100
var w = 0
var pw = 0
var fondo = 0
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}
while (w<l)
{
w = w +1
}
function runSlideShow(){
pw= preLoad[j].width
if (x < veces){
   document.images.logo.src = preLoad[j].src
   document.getElementById(target).style.left = w * x
   fondo=((l*veces)-(w*x))+pw
   document.getElementById(target).style.width = fondo
   j = j + 1
   x = x + 1
   if (j>p -2)
   {
	   j=0
   }
   t = setTimeout('runSlideShow()', speed)
}
else
{
x = 0
   document.images.logo.src = preLoad[p-1].src
}
}

