//焦点滚动图。目前兼容IE/FRIEFOX

var nnd=1;
var key=0;
var ttd;
function change_img1()
{
if(key==0){key=1;}
else if(document.all)//如果为IE，则执行图片变动效果，否则不执行
{document.getElementById("pic1").filters[0].Apply();document.getElementById("pic1").filters[0].Play(duration=2);}
eval('document.getElementById("pic1").src=img1'+nnd+'.src');
eval('document.getElementById("url1").href=url1'+nnd+'.src');
eval('document.getElementById("url1").target="_blank"');
eval('document.getElementById("linktxt1").innerHTML=txt1'+nnd);
eval('document.getElementById("txturl1").href=url1'+nnd+'.src');
eval('document.getElementById("txturl1").target="_blank"');
for (var i=1;i<=countss;i++){document.getElementById("xxjdjj1"+i).className='axx';}
document.getElementById("xxjdjj1"+nnd).className='bxx';

nnd++;if(nnd>countss){nnd=1;}
ttd=setTimeout('change_img1()',5000);}//3秒后开始轮播
function changeimg1(n){nnd=n;window.clearInterval(ttd);change_img1();}//点击1/2/3/4后重新初始化

//以下为定位层所用到的样式表
document.write('<style>');
document.write('.axx{padding:1px 10px;border-left:#cccccc 1px solid;}');
document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:12px;font:10px sans-serif;background-color:#666;}');
document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;font:10px sans-serif;background-color:#999;}');
document.write('.bxx{padding:1px 10px;border-left:#cccccc 1px solid;}');
document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:12px;font:10px sans-serif;background-color:#D34600;}');
document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;line-height:12px;font:10px sans-serif;background-color:#D34600;}');
document.write('a.xxbule:link,a.xxbule:visited{text-decoration:none;color:#004276;}');
document.write('a.xxbule:active,a.xxbule:hover{text-decoration:none;color:#ff6000;background-color:#ffffff;}');
document.write('</style>');
document.write('<div style="width:'+widths+'px;height:'+heights+'px;overflow:hidden;text-overflow:clip;">');
document.write('<div><a id="url1"><img id="pic1" style="border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=2, motion=forward)" width='+widths+' height='+heights+' /></a></div>');
document.write('<div style="filter:alpha(style=1,opacity=5,finishOpacity=60);background: #888888;width:100%-2px;text-align:right;top:-12px;position:relative;margin:1px;height:2px;padding:0px;margin:0px;border:0px;">');
for(var i=1;i<countss+1;i++){document.write('<a href="javascript:changeimg1('+i+');" id="xxjdjj1'+i+'" target="_self" class="axx">'+i+'</a>');}
document.write('</div></div>');
document.write('<div style="width:'+(widths)+'px;font-size:12px;height:0px;overflow:hidden;text-overflow:clip;color:#434343;line-height:20px;"><center><a id="txturl1" style="color:#cc0000;font-size:14px;text-decoration:none;line-height:20px;"><span id="linktxt1" style="color:#000000;"></span></a></center></div>');
//所有内容载入完毕，开始轮播
change_img1();