//天极伊永恒原创
//56770.kingdge 修改 2008.4.11
var subStr=function(str,length){
    var a=str.match(/[^\x00-\xff]|\w{1,2}/g);
    return a.length<length?str:a.slice(0,length).join("")+"";
}
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);}
eval('document.getElementById("pic").src=imgs['+nn+']');
eval('document.getElementById("url").href=urls['+nn+']');
eval('text.innerHTML="<a href="+urls['+nn+']+" class=text target=_blank>"+subStr(texts['+nn+'],textlength)+"</a>"');
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()',3000);}
function changeimg(n){nn=n;window.clearInterval(tt);change_img();}
document.write('<style>');
document.write('.axx{padding:1px 5px;border-left:#cccccc 1px solid;}');
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:1px 5px;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:#D34600;}');
document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#D34600;}');
document.write('a.text:link,a.text:visited{text-decoration:none;color:#000;line-height:12px;font:12px sans-serif;}');
document.write('a.text:active,a.text:hover{text-decoration:none;color:#D34600;line-height:12px;font:12px sans-serif;}');
document.write('</style>');
document.write('<div style="width:'+widths+'px;height:'+heights+'px;overflow:hidden;text-overflow:clip;">');
document.write('<div><a id="url" target="_blank"><img id="pic" style="border:0px;filter:revealtrans(duration=4.0,transition=12)" width='+widths+' height='+heights+' /></a></div>');
document.write('<div align="right"><div style="background: #888888;width:'+counts*11+'px;text-align:right;top:-13px;position:relative;height:13px;padding:0px;margin: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></div>');
document.write('<div style="width:'+widths+'px;height:20px;overflow:hidden;text-overflow:clip;">');
document.write('<div style="width:100%;text-align:center;height:20px;padding:0px;"><div style="margin-top:5px;margin-right:5px;"><div id="text"></div></div></div>');
change_img();