
function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}





function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var ImgSrc = new Array();//图片地址
ImgSrc[0] = "images/dctl.jpg"
ImgSrc[1] = "images/dctt.jpg"
ImgSrc[2] = "images/dctj.jpg"




for (var i=0;i<ImgSrc.length;i++){(new Image()).src = ImgSrc[i];}//预加载图片

var ImgAlt = new Array();//鼠标放上去显示的文字
ImgAlt[0] = "DCTL型塔架式登船梯"
ImgAlt[1] = "DCTT型塔架式登船梯"
ImgAlt[2] = "DCTJ型塔架式登船梯"



var ImgHerf =  new Array();//链接
ImgHerf[0] = "product1.html"
ImgHerf[1] = "product2.html"
ImgHerf[2] = "product3.html"



var step=0;
function slideit(){
	//rewrite by haiwa@2005-7-7
	var oImg = document.getElementById("javascript.img");
	if (document.all){oImg.filters.blendTrans.apply();}
	oImg.src=ImgSrc[step];
	document.getElementById("javascript.a").href=ImgHerf[step];
	oImg.title=ImgAlt[step];
	if (document.all){oImg.filters.blendTrans.play();}
	step = (step<(ImgSrc.length-1))?(step+1):0;
	(new Image()).src = ImgSrc[step];//加载下一个图片
}
setInterval("slideit()",5000);

