//slideimages数组为变换的图
var slideimages=new Array();
slideimages[0]="images/ad-01.jpg";
slideimages[1]="images/ad-02.jpg";
slideimages[2]="images/ad-03.jpg";
slideimages[3]="images/ad-04.jpg";
slideimages[4]="images/ad-05.jpg";

//slidetext数组为变换的文字
var slidetext=new Array();
slidetext[0]="焦点图01";
slidetext[1]="焦点图02";
slidetext[2]="焦点图03";
slidetext[3]="焦点图04";
slidetext[4]="焦点图05";

//slidetext数组为点击大图后跳到的地址
var slidelinks=new Array();
slidelinks[0]="http://www.cnzz.cn";
slidelinks[1]="http://www.cnzz.cn";
slidelinks[2]="http://www.cnzz.cn";
slidelinks[3]="http://www.cnzz.cn";
slidelinks[4]="http://www.cnzz.cn";

//焦点图初始内容－－start
var slidespeed=3000

var slidesanjiaoimages=new Array("images/bian2.gif","images/bian1.gif");
var slidesanjiaoimagesname=new Array("gj1","gj2","gj3","gj4","gj5");

var filterArray=new Array();
//filterArray[0]="progid:DXImageTransform.Microsoft.Pixelate (enabled=false,duration=2,maxSquare=25 )";
//filterArray[1]="progid:DXImageTransform.Microsoft.Stretch (duration=1,stretchStyle=PUSH)";
//filterArray[2]="progid:DXImageTransform.Microsoft.Stretch(duration=1)";
//filterArray[3]="progid:DXImageTransform.Microsoft.Slide(bands=8, duration=1)";
//filterArray[4]="progid:DXImageTransform.Microsoft.Fade ( duration=1,overlap=0.25 )";

filterArray[0]="progid:DXImageTransform.Microsoft.Fade ( duration=2,overlap=5.25 )";
filterArray[1]="progid:DXImageTransform.Microsoft.Fade ( duration=2,overlap=5.25 )";
filterArray[2]="progid:DXImageTransform.Microsoft.Fade ( duration=2,overlap=5.25 )";
filterArray[3]="progid:DXImageTransform.Microsoft.Fade ( duration=2,overlap=5.25 )";
filterArray[4]="progid:DXImageTransform.Microsoft.Fade ( duration=2,overlap=5.25 )";

var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function tu_ove(){clearTimeout(setID)}
function ou(){slideit()}

				var whichlink=0
				var whichimage=0
				
				function gotoshow(){
						window.open(slidelinks[whichlink]);
				}
				
				function slideit(){
				
				document.images.slide.style.filter=filterArray[whichimage];
				//alert(document.images.slide.style.filter);
				pixeldelay=(ie55)? (document.images.slide.filters[0].duration*1000) : 0
				//alert(pixeldelay);
				if (!document.images) return
				
				if (ie55) {
						document.images.slide.filters[0].apply();
						document.images.slide.filters[0].play();
						
				}
				document.images.slide.src=imageholder[whichimage].src
				
				document.getElementById("textslide").innerText=slidetext[whichimage];
				
//				document.getElementById("gj1").src=slidesanjiaoimages[0];
//				document.getElementById("gj2").src=slidesanjiaoimages[0];
//				document.getElementById("gj3").src=slidesanjiaoimages[0];
//				document.getElementById("gj4").src=slidesanjiaoimages[0];
//				document.getElementById("gj5").src=slidesanjiaoimages[0];
//				
//				document.getElementById(slidesanjiaoimagesname[whichimage]).src=slidesanjiaoimages[1];
				
				
				
				if (ie55) document.images.slide.filters[0].play()
				whichlink=whichimage
				whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
				setID=setTimeout("slideit()",slidespeed+pixeldelay)
				}
				slideit()
				function ove(n){
					clearTimeout(setID)
					whichimage=n;
					document.images.slide.src=imageholder[whichimage].src
						
//					document.getElementById("textslide").innerText=slidetext[whichimage];
//					document.getElementById("gj1").src=slidesanjiaoimages[0];
//					document.getElementById("gj2").src=slidesanjiaoimages[0];
//					document.getElementById("gj3").src=slidesanjiaoimages[0];
//					document.getElementById("gj4").src=slidesanjiaoimages[0];
//					document.getElementById("gj5").src=slidesanjiaoimages[0];
//				//	document.getElementById(slidesanjiaoimagesname[whichimage]).src=slidesanjiaoimages[1];
//				document.getElementById(slidesanjiaoimagesname[whichimage]).src=slidesanjiaoimages[1];
document.getElementById("gj1").style.border='0px solid #cccccc';
				document.getElementById("gj2").style.border='0px solid #cccccc';
				document.getElementById("gj3").style.border='0px solid #cccccc';
					document.getElementById("gj4").style.border='0px solid #cccccc';
					document.getElementById("gj5").style.border='0px solid #cccccc';
document.getElementById(slidesanjiaoimagesname[whichimage]).style.border='1px solid #cccccc';
				}
		
