
	var timer1;
	var timerCount1 = 0;
	var timeSpan1 = 5;	
	
	var effects = new Array();
	//effects[0] = "progid:DXImageTransform.Microsoft.Pixelate(,enabled=false,duration=2,maxSquare=25)";
	effects[0] = "progid:DXImageTransform.Microsoft.Fade(duration=2,overlap=0)";
	effects[1] = "progid:DXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )";
	effects[2] = "progid:DXImageTransform.Microsoft.Stretch(duration=2,stretchStyle=PUSH)";
	effects[3] = "progid:DXImageTransform.Microsoft.Wheel(duration=2,spokes=16)";
	effects[4] = "progid:DXImageTransform.Microsoft.RandomDissolve(duration=2)";
	effects[5] = "progid:DXImageTransform.Microsoft.Spiral(duration=2,gridSizeX=50,gridSizeY=50)";
	effects[6] = "progid:DXImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)";
	effects[7] = "progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)";
	effects[8] = "progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)";
	effects[9] = "progid:DXImageTransform.Microsoft.RandomDissolve(duration=2)";
	
	function doctorItem(pic,mylink,myName,myNote,myFp,id)
	{
		this.pic = pic;
		this.mylink = mylink;
		this.myName = myName;
		this.myNote = myNote;
		this.myFp = myFp;
		this.myid = id;
		return this;
	}
	
	/*
	doctorItems = new Array();
	doctorItems[0]=new doctorItem('/images/qs_0.jpg','/detail/156.html','s','s');
	*/
	
	function formatDocIndex(myIndex){
		if(myIndex >= doctorItems.length) myIndex = 0;
		if(myIndex < 0) myIndex = doctorItems.length-1;
		return myIndex;
	}

	var currentIndex = 0;

	function initDoctor(){		
				
		document.getElementById("myDoctorTD").innerHTML=formatDocHTML(0);
		timer = setInterval("slideShow1()",2000);
	}

	function formatDocHTML(cIndex)
	{		
		var cmdText="";
		if (doctorItems[cIndex].myFp=="true") 
			cmdText="<img src=\"/images/ask.gif\"/>";
		else		
            cmdText="<img src=\"/images/ask.gif\"/>";
       var myHTML= "<div class=\"zhuanjia_1\" style=\"border:none\"><div class=\"zj_tu\"><a href=\""+doctorItems[cIndex].mylink+"\" target=\"_blank\" title=\""+doctorItems[cIndex].myName+"\"><img src=\""+doctorItems[cIndex].pic+"\" width=\"78\" height=\"110\"/></a></div><dl><dt><a href=\""+doctorItems[cIndex].mylink+"\" target=\"_blank\" title=\""+doctorItems[cIndex].myName+"\">"+doctorItems[cIndex].myName+"</a></dt><dd><p>"+doctorItems[cIndex].myNote+"</p></dd></dl></div>"
		
		cIndex = formatDocIndex(cIndex+1);
		if (doctorItems[cIndex].myFp=="true") 
			cmdText="<img src=\"/images/ask.gif\"/>";
		else		
			cmdText="<img src=\"/images/ask.gif\"/>";
 		    myHTML+= "<div class=\"zhuanjia_1\" style=\"border:none\"><div class=\"zj_tu\"><a href=\""+doctorItems[cIndex].mylink+"\" target=\"_blank\" title=\""+doctorItems[cIndex].myName+"\"><img src=\""+doctorItems[cIndex].pic+"\" width=\"78\" height=\"110\"/></a></div><dl><dt><a href=\""+doctorItems[cIndex].mylink+"\" target=\"_blank\" title=\""+doctorItems[cIndex].myName+"\">"+doctorItems[cIndex].myName+"</a></dt><dd><p>"+doctorItems[cIndex].myNote+"</p></dd></dl></div>"
				
		return myHTML;
		
	}
	
	function changeDoctor(step)
	{
		if(browserCheck()){
			
			var i = Math.floor(Math.random()*10);			
			document.getElementById("myDoctorTD").style.filter = effects[1];			
			document.getElementById("myDoctorTD").innerHTML = formatDocHTML(formatDocIndex(currentIndex));
									
			document.getElementById("myDoctorTD").filters[0].Apply();			
			document.getElementById("myDoctorTD").innerHTML = formatDocHTML(formatDocIndex(currentIndex+step));
			
			document.getElementById("myDoctorTD").filters[0].Play();
		}
		else{
				
			document.getElementById("myDoctorTD").innerHTML = formatDocHTML(formatDocIndex(currentIndex+step));
		}
		currentIndex = formatDocIndex(currentIndex+step)
		timerCount1 = 0;
	}
	
	function browserCheck(){
		var ua = window.navigator.userAgent;
		return ua.indexOf("MSIE 6.0") >=1;
	}
	
	function slideShow1(){
		timerCount1 ++;
		if(timerCount1 >= timeSpan1){
			changeDoctor(2);
		}
	}

	function OutputHTML(){
		var bodyStr1 = "";		
		bodyStr1 += "<div id=\"myDoctorTD\"  style=\"margin:0px;padding:0;\"></div>";		
		
		document.write(bodyStr1);
	}