

var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want:
photos[0]="img/8g.jpg"
photos[1]="img/2g.gif"
photos[2]="img/3g.jpg"
photos[3]="img/4g.jpg"
photos[4]="img/5g.jpg"
photos[5]="img/6g.jpg"
photos[6]="img/7g.jpg"
photos[7]="img/1g.gif"
photos[8]="img/9g.jpg"
photos[9]="img/10g.jpg"
photos[10]="img/11g.jpg"
photos[11]="img/12g.jpg"
photos[12]="img/13g.jpg"
photos[13]="img/14g.jpg"
photos[14]="img/15g.jpg"
photos[15]="img/cartel1g.jpg"
photos[16]="img/cartel2g.jpg"
photos[17]="img/cartel3g.jpg"
photos[18]="img/cartel4g.jpg"
photos[19]="img/cartel5g.jpg"
photos[20]="img/cartel6g.jpg"
photos[21]="img/cartel7g.jpg"
photos[22]="img/450.jpg"
photos[23]="img/cartel8g.jpg"
photos[24]="img/cartel9g.jpg"


//Specify whether images should be linked or not (1=linked)
var linkornot=0

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""

//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}


function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}



function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}


function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}



function same() {

document.images.photoslider.src=photos[which]

}





//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["img/8g.jpg"]
dynimages[1]=["img/2g.gif"]
dynimages[2]=["img/3g.jpg"]
dynimages[3]=["img/4g.jpg"]
dynimages[4]=["img/5g.jpg"]
dynimages[5]=["img/6g.jpg"]
dynimages[6]=["img/7g.jpg"]
dynimages[7]=["img/1g.gif"]
dynimages[8]=["img/9g.jpg"]
dynimages[9]=["img/10g.jpg"]
dynimages[10]=["img/11g.jpg"]
dynimages[11]=["img/12g.jpg"]
dynimages[12]=["img/13g.jpg"]
dynimages[13]=["img/14g.jpg"]
dynimages[14]=["img/15g.jpg"]
dynimages[15]=["img/cartel1g.jpg"]
dynimages[16]=["img/cartel2g.jpg"]
dynimages[17]=["img/cartel3g.jpg"]
dynimages[18]=["img/cartel4g.jpg"]
dynimages[19]=["img/cartel5g.jpg"]
dynimages[20]=["img/cartel6g.jpg"]
dynimages[21]=["img/cartel7g.jpg"]
dynimages[22]=["img/450.jpg"]
dynimages[23]=["img/cartel8g.jpg"]
dynimages[24]=["img/cartel9g.jpg"]


//Preload images ("yes" or "no"):
var preloadimg="no"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=0

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}







