//左侧大图
  var slidint = 0;
  var rolltimer = window.setInterval('playnext();',3000);
function playnext()
  {        
    playit(slidint);
    slidint++
    if(slidint > 3){
        slidint = 0;
    }    
  }
  function playit(num)
 {
    window.clearInterval(rolltimer);
    var oItem = document.getElementById("smlPhoto");    
	for(var i=0;i<oItem.childNodes.length;i++){
	if(oItem.childNodes[i].tagName == "A")
	    {
		var x = oItem.childNodes[i];	
		x.className = "";
		
		}
	}
	for(i=0;i<4;i++)
	{
	    document.getElementById("div"+ i).className = "";
	}	
    var divClass=document.getElementById("div"+num);
	divClass.className = "newactive"
    if(num==0)
    {
	  imglink = photoLink[0];
      imgUrl = photoUrl[0];
      imgTitle = photoTitle[0];      
    }    
    if(num==1)
    {     
      imglink = photoLink[1];
      imgUrl = photoUrl[1];
      imgTitle = photoTitle[1];
    }
	if(num==2)
    {     
      imglink = photoLink[2];
      imgUrl = photoUrl[2];
      imgTitle = photoTitle[2];
    }
	if(num==3)
    {     
      imglink = photoLink[3];
      imgUrl = photoUrl[3];
      imgTitle = photoTitle[3];
    }   
    document.getElementById("imglink").innerHTML = imgTitle;
    document.getElementById("imglink").href = imglink;
    document.getElementById("plink").href = imglink;
    document.getElementById("imgurl").src = imgUrl;
    slidint = num;
	rolltimer = window.setInterval('playnext();',3000);
  }