var nn=1;
var key=0;
var tseed=Math.round(Math.random()*24);
function change_img()
{if(key==0){key=1;}
else if(document.all)
{tseed=Math.round(Math.random()*24);with(document.getElementById("pic")){filters[0].Transition=tseed;filters[0].Apply();filters[0].Play(duration=2);}}
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'+i;}
document.getElementById("xxjdjj"+nn).className='bxx';
document.getElementById("n_title").innerHTML=eval("n_title"+nn);
nn++;if(nn>counts){nn=1;}
tt=setTimeout('change_img()',4000);}
function changeimg(n){nn=n;window.clearInterval(tt);change_img();}
document.write('<style>');
document.write('.axx1,.axx2,.axx3,.axx4{color:#FFF;padding:1px 3px;margin:0 2px;font:10px Arial;}.axx1{background:#3697EA}.axx2{background:#EFC61D}.axx3{background:#F29B66}.axx4{background:#2E2724}');
document.write('a.axx:link,a.axx:visited{text-decoration:none;line-height:12px;}');
document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;background-color:#333;}');
document.write('.bxx{padding:1px 3px;margin:0 2px;font:10px Arial;}');
document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#000;line-height:12px;background-color:#0E0;}');
document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#ff0;line-height:12px;background-color:#f00;}');
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:progid:dximagetransform.microsoft.RevealTrans (transition='+tseed+' )" width='+widths+' height='+heights+' /></a></div>');

document.write('<div style="filter:alpha(style=1,opacity=60,finishOpacity=100);background: #000;width:100%;text-align:right;top:-20px;position:relative;margin:0px;height:20px;"><div id="n_title" style="width:65%;height:18px;padding:6px 0 0 5px;overflow:hidden;color:#FFF;text-align:center;float:left"></div><div style="width:10%;height:18px;padding-top:6px;background:#FFF URL(himages/snbg.gif) no-repeat;float:right">');
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>');
change_img(); 
