var slideShowSpeed = 4000;
var showspeed2 = 9000;
var crossFadeDuration = 3;
var image_Pic = new Array();
var image_link = new Array;
var small_img = new Array;
image_Pic[0] = 'http://www.zhubajie.com/Uploadpics/images/2008/06/05/middleolgy9t1z.gif';
image_link[0] = 'http://www.zhubajie.com/task/iv/53871';
small_img[0] = '/img/ximg/xl/c1_1.jpg';
image_Pic[1] = 'http://www.zhubajie.com/Uploadpics/images/2008/06/03/middleh1vcj18t.gif';
image_link[1] = 'http://www.zhubajie.com/task/iv/53670';
small_img[1] = '/img/ximg/xl/c2_1.jpg';
image_Pic[2] = 'http://www.zhubajie.com/Uploadpics/images/2008/06/02/middlenuuiae04.gif';
image_link[2] = 'http://www.zhubajie.com/task/iv/53594';
small_img[2] = '/img/ximg/xl/c3_1.jpg';
image_Pic[3] = 'http://www.zhubajie.com/Uploadpics/images/2008/06/02/middlexmap2da2.gif';
image_link[3] = 'http://www.zhubajie.com/task/iv/53723';
small_img[3] = '/img/ximg/xl/c4_1.jpg';
image_Pic[4] = 'http://www.zhubajie.com/Uploadpics/images/2008/05/27/middlevk4g0jck.gif';
image_link[4] = 'http://www.zhubajie.com/task/iv/53571';
small_img[4] = '/img/ximg/xl/c5_1.jpg';
// do not edit anything below this line
var t;
var j = 0;
var cliImgSrc = '';
var p = image_Pic.length;
var preLoad = new Array();
var preLoadlink = new Array();
var preLoadimg = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoadlink[i] = new Image();
preLoadimg[i] = new Image();
preLoad[i].src = image_Pic[i];
preLoadlink[i] = image_link[i];
preLoadimg[i].src = small_img[i];
}
function tupian(cvv) {
for (var z = 0; z < p; z++) {
//alert('num_img'+z)
document.getElementById('num_img'+z).src='img/home/slide_num0'+(z+1)+'.gif';
document.getElementById('num_img'+z).style.background="url(/img/home/slide_num_bg.gif) left";
}
//document.getElementById('num_img'+cvv).src=small_img[cvv];
document.getElementById('num_img'+cvv).style.background="url(/img/home/slide_num_bg.gif) right";
}
function click_simg(no){
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();
}
var pImg = document.getElementById('SlideShow');
var pLink = document.getElementById('imglink');
pLink.href=preLoadlink[no];
pImg.src=preLoad[no].src;
tupian(no)
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j=no+1
if (j > (p - 1)) j = 0;
clearTimeout(t);
t = setTimeout('runSlideShow()', slideShowSpeed);
}
function runSlideShow() {
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.getElementById('imglink').href=preLoadlink[j];
tupian(j)
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
if(j==1)
t = setTimeout('runSlideShow()', showspeed2);
else
t = setTimeout('runSlideShow()', slideShowSpeed);
}
document.write(
"
");
document.write("
"); for (i = 0; i < p; i++) { document.write( ""+(i+1)+""); } document.write("
"); runSlideShow();