﻿//document.write("<A    href='javascript:gotoshow()'><IMG name=slide style='FILTER: blendTrans(duration=2)' width=364 height=187 border=0 src=''  ></A>");
document.write("<IMG name=slide src=tmanh+'bd1.jpg' style='FILTER: blendTrans(duration=2)' width=364 height=187 border=0 src=''  >");
//*****************************************
// Blending Image Slide Show Script- 
// © Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=3000

//specify images
tmanh= "images/banner/"                                
image1= tmanh+'bd1.jpg'; 
image2=tmanh+'bd2.jpg'; 
image3=tmanh+'bd3.jpg';
image4=tmanh+'bd4.jpg';
image5=tmanh+'bd5.jpg';

var slideimages=new Array(image1,image2,image3,image4)

//specify corresponding links
var slidelinks=new Array("","","","")

var newwindow=0 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//------------------------ 

var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*3000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()

