	    var width_d=296;  //焦点图片宽
		
		 var widths_d=width_d;
		 height_d=296; //焦点图片高
		 var heights_d=height_d; 
		var heightts_d=20;
		var counts_d=0;    //总条数
		
		var nn_d=1; //当前所显示的滚动图
		var keys=0;  //标识是否为第一次开始执行
		var tts_d;  //标识作用
		
		
		//img1=new Image();在这里是声明了一个图片元素的对象
		//后面是对图像的属性进行赋值或设置,如imgs.src="xxxx.jpg"是指定图片的索引地址.
		//这个代码一般用于head区,用于预加载图片,即加快图片显示.
		//只有用new Images()得到的图片IE7才认,
		//而IE6和firefox可认得imgUrl[1]="/y9q9ms7lbgbt.jpg";得到的图片
		function change_img2()
		{
			if(keys==0){keys=1;} //如果第一次执行keys=1，表示已经执行过一次了。
			else if(document.all)//document.all仅IE6/7认识，firefox不会执行此段内容
			{
				document.getElementById("pic_d").filters[0].Apply(); //将滤镜应用到对像上
				document.getElementById("pic_d").filters[0].Play(duration=2);  //开始转换
				document.getElementById("pic_d").filters[0].Transition=23;//转换效果
			}
			if(counts_d>=nn_d)
			{
			  eval('document.getElementById("pic_d").src=img_d'+nn_d+'.src');   //替换图片
			  eval('document.getElementById("url_d").href=url_d'+nn_d+'.src'); //替换URL
			  //eval('document.getElementById("title").value=txt'+nn_d+'.txt'); //替换ALT			
			  for (var i=1;i<=counts_d;i++)
			  {
				document.getElementById("xxjdjjs"+i).className='axx';   //将下面黑条上的所有链接变为未选中状态
			  }
			  document.getElementById("xxjdjjs"+nn_d).className='bxx';    //将当前页面的ID设置为选中状态
			}
			nn_d++;
			if(nn_d>counts_d){nn_d=1;}  //如果ID大于总图片数量。则从头开始循环
				tts_d=setTimeout('change_img2()',5000);  //在4秒后重新执行change_img()方法.
		}
		function changeimg2(n_d)//点击黑条上的链接执行的方法。
		{
			nn_d=n_d; //当前页面的ID等于传入的N值,
			window.clearInterval(tts_d); //清除用于循环的TT
			//重新执行change_img();但change_img()内所调用的图片ID已经在此处被修改,会从新ID处开始执行.
			change_img2();
		}
		function ShowChangeLayer2()
		{
			if(counts_d>0)
			{
					//样式表
				document.write('<style>');
				document.write('.axx{padding:0px 7px;border-left:#cccccc 1px solid;font-size:12px;}');
				document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#666;}');
				document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#999;}');
				document.write('.bxx{padding:0px 7px;border-left:#cccccc 1px solid;}');
				document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#009900;}');
				document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#ff9900;}');
				document.write('</style>');
				//内容部分
				document.write('<div style="width:'+widths_d+'px;height:'+height_d+'px;overflow:hidden;text-overflow:clip;float:left;">');
				document.write('<div><a id="url_d" target="_blank"><img  id="pic_d" style="border:0px #cbcbcb solid;FILTER: progid:DXImageTransform.Microsoft.RevealTrans (duration=2,transition=23)" width='+width_d+' height='+height_d+' /></a></div>');
				document.write('<div style="filter:alpha(style=1,opacity=10,finishOpacity=90);background: #888888;width:100%-2px;text-align:right;top:-16px;position:relative;margin:1px;height:14px;border:0px;padding-top:0px;z-index:4000;"><div>');
				for(var i=1;i<counts_d+1;i++){document.write('<a  href="javascript:changeimg2('+i+');" id="xxjdjjs'+i+'" class="axx" target="_self">'+i+'</a>');}
				document.write('</div></div></div>');
				//document.write('<div align=left><input id="title" type="txt" style="height:15px;background-color:#f2f6fb;border:0px solid #f2f6fb;width:'+widthss+'px;color:#ff8800;font-size:9pt;position:relative;padding-top:4px;text-align:center;"></div>');
				//开始执行滚动操作	
				change_img2();
			 }
			 else
			 {
			    document.write('<img src=images/RouteDefault.jpg  width='+width_d+' height='+height_d+' >');
			 }
			 
		}
