imgshuzu = adshuzu1.split("|");
nameshuzu = adshuzu2.split("|");
urlshuzu = adshuzu3.split("|");
for(i=0;i<counts;i++){
	tmp=i+1;
	eval("img"+tmp+"="+" new Image()");	
	eval("img"+tmp+".src='"+ imgshuzu[i]+"'");	
	eval("url"+tmp+"="+" new Image()");	
	eval("url"+tmp+".src='"+ urlshuzu[i]+"'");	
}
    // 建议将这块放置于JS中 下面的部分几乎是不需要任何改动



    var nn = 1;



    var key = 0;



    function change_img() {



        if (key == 0) {



            key = 1;



        } else if (document.all) {



            document.getElementById("pic").filters[0].Apply();



            document.getElementById("pic").filters[0].Play(duration = 2);



        }
		
		if(nn==1 || true)
		{
			document.getElementById("fucking").innerHTML='<a id="url" target="_blank"><img id="pic" style="border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=4, motion=forward)" width=' + widths + ' height=' + heights + ' /></a>';
		}else{
			document.getElementById("fucking").innerHTML='<a id="url" target="_blank"></a><img id="pic" style="border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=4, motion=forward)" width=' + widths + ' height=' + heights + ' />';
		}


        eval('document.getElementById("pic").src=img' + nn + '.src');



        eval('document.getElementById("url").href=url' + nn + '.src');


        for (var i = 1; i <= counts; i++) {



            document.getElementById("xxjdjj" + i).className = 'axx';



        }



        document.getElementById("xxjdjj" + nn).className = 'bxx';



        nn++;



        if (nn > counts) {



            nn = 1;



        }



        tt = setTimeout('change_img()', 8000);



    }



    function changeimg(n) {



        nn = n;



        window.clearInterval(tt);



        change_img();



       // alert('');



    }



    document.write('<style>');



    document.write('.axx{padding:2px 5px;*padding:2px 5px;border-left:#cccccc 1px solid;background-image:url(images/picbg1.jpg); background-repeat:no-repeat;}');



    document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#e60012;font:12px sans-serif;background-color:#666;}');



    document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#e60012;font:12px sans-serif;background-color:#999;}');



    document.write('.bxx{padding:3px 6px;*padding:3px 6px;border-left:#cccccc 1px solid;background-image:url(images/picbg2.jpg); background-repeat:no-repeat;}');



    document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;font:12px sans-serif;background-color:#D34600;}');



    document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;font:12px sans-serif;background-color:#D34600;}');



    document.write('</style>');



    document.write('<div style="width:' + widths + 'px;height:' + heights + 'px;overflow:hidden;text-overflow:clip;">');



    document.write('<div id="fucking"><a id="url" target="_blank"></a><img id="pic" style="border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=4, motion=forward)" width=' + widths + ' height=' + heights + ' /></div>');



 document.write('<div style="width:100%-2px;text-align:right;top:-20px;position:relative;margin:1px;margin:0px 30px 0px 0px;border:0px;">');







    for (var i = 1; i < counts + 1; i++) {



        document.write('<a href="javascript:changeimg(' + i + ');" id="xxjdjj' + i + '" class="axx" target="_self">' + i + '</a>');



    }



    document.write('</div></div>');



    change_img();




