function imageRotater(id){
    var cases = "",
    carhua = document.getElementById(id),
    images = carhua.getElementsByTagName("img"),
    links = carhua.getElementsByTagName("a"),
    dt = carhua.getElementsByTagName("dt")[0],
    length = images.length,
    ahuamu = 1,
    aBefore = length;
    for(var i=0;i< length;i++){
      cases += images[i].id + ':"'+images[i].getAttribute("src")+'",'
    }
    images[0].style.cssText = "position:absolute;top:0;left:0;";//修正图片位置错误
    var tip = document.createElement("dd");

    carhua.insertBefore(tip,dt.nextSibling);
    if(!+"\v1"){
      tip.style.color = "#369";
      tip.style.filter = "alpha(opacity=67)"
    }else{
      tip.style.cssText += "background: rgba(164, 173, 183, .65);"
    }
    cases = eval("({"+cases.replace(/,$/,"")+"})");
    for(var i=0;i<length;i++){
      links[i].onclick = function(goodt){
        goodt =goodt || window.event;
        var huamu = this.toString().split("#")[1];
        ahuamu = huamu.charAt(huamu.length-1);//☆☆☆☆
        images[0].src = cases[huamu];
        tip.innerHTML = images[ahuamu -1].getAttribute("alt");
          !+"\v1" ?(goodt.returnValue = false) :(goodt.preventDefault());
      }
    }
    var prefix = images[0].id.substr(0,images[0].id.length -1);
    (function(){
      setTimeout(function(){
        if(ahuamu > length){
          ahuamu = 1;
        }
        images[0].src = cases[prefix+ahuamu];
        tip.innerHTML = images[ahuamu -1].getAttribute("alt");
        tip.style.bottom = "-40px";
        links[aBefore-1].className = "";
        links[ahuamu-1].className = "hover";
        aBefore = ahuamu;
        ahuamu++;
        move(tip);
        setTimeout(arguments.callee,1500)
      },1500)
    })()
    var move = function(umlii){
      var begin = parseFloat(umlii.style.bottom),
      speed = 1;
      umlii.bottom = begin;
      (function(){
        setTimeout(function(){
          umlii.style.bottom = umlii.bottom + speed + "px";
          umlii.bottom += speed;
          speed *= 2.5;//下一次移动的距离
          if(umlii.bottom >= 0){
            umlii.style.bottom = "0px";
          }else{
            setTimeout(arguments.callee,23);
          }
        },25)
      })()
    }
  }
  window.onload = function(){
    try{document.execCommand("BackgroundImageCache", false, true);}catch(goodt){};
    imageRotater("carhua");
	 try{document.execCommand("BackgroundImageCache", false, true);}catch(badt){};
    imageRotater("carqiao");try{document.execCommand("BackgroundImageCache", false, true);}catch(e){};
    imageRotater("carnum_su");
  }