document.writeln("<script language=\"javascript\" type=\"text\/javascript\">");
document.writeln("\/\/主函数");
document.writeln("var s=function(){");
document.writeln("var interv=2100; \/\/切换间隔时间");
document.writeln("var interv2=15; \/\/切换速速");
document.writeln("var opac1=80; \/\/文字背景的透明度");
document.writeln("var source=\"fade_focus\" \/\/焦点轮换图片容器的id名称");
document.writeln("\/\/获取对象");
document.writeln("function getTag(tag,obj){if(obj==null){return document.getElementsByTagName(tag)}else{return obj.getElementsByTagName(tag)}}");
document.writeln("function getid(id){return document.getElementById(id)};");
document.writeln("var opac=0,j=0,t=63,num,scton=0,timer,timer2,timer3;var id=getid(source);id.removeChild(getTag(\"div\",id)[0]);var li=getTag(\"li\",id);var ");
document.writeln("");
document.writeln("div=document.createElement(\"div\");var title=document.createElement(\"div\");var span=document.createElement(\"span\");var button=document.createElement");
document.writeln("");
document.writeln("(\"div\");button.className=\"button\";for(var i=0;i<li.length;i++){var a=document.createElement(\"a\");a.innerHTML=i+1;a.onclick=function(){clearTimeout");
document.writeln("");
document.writeln("(timer);clearTimeout(timer2);clearTimeout(timer3);j=parseInt(this.innerHTML)-1;scton=0;t=63;opac=0;fadeon();};a.className=\"b1\";a.onmouseover=function()");
document.writeln("");
document.writeln("{this.className=\"b2\"};a.onmouseout=function(){this.className=\"b1\";sc(j)};button.appendChild(a);}");
document.writeln("\/\/控制图层透明度");
document.writeln("function alpha(obj,n){if(document.all){obj.style.filter=\"alpha(opacity=\"+n+\")\";}else{obj.style.opacity=(n\/100);}}");
document.writeln("\/\/控制焦点按钮");
document.writeln("function sc(n){for(var i=0;i<li.length;i++){button.childNodes[i].className=\"b1\"};button.childNodes[n].className=\"b2\";}");
document.writeln("title.className=\"num_list\";title.appendChild(span);alpha(title,opac1);id.className=\"d1\";div.className=\"d2\";id.appendChild(div);id.appendChild");
document.writeln("");
document.writeln("(title);id.appendChild(button);");
document.writeln("\/\/渐显");
document.writeln("var fadeon=function(){opac+=5;div.innerHTML=li[j].innerHTML;span.innerHTML=getTag(\"img\",li[j])[0].alt;alpha(div,opac);if(scton==0){sc(j);num=-2;scrolltxt");
document.writeln("");
document.writeln("();scton=1};if(opac<100){timer=setTimeout(fadeon,interv2)}else{timer2=setTimeout(fadeout,interv);};}");
document.writeln("\/\/渐隐");
document.writeln("var fadeout=function(){opac-=5;div.innerHTML=li[j].innerHTML;alpha(div,opac);if(scton==0){num=2;scrolltxt();scton=1};if(opac>0){timer=setTimeout");
document.writeln("");
document.writeln("(fadeout,interv2)}else{if(j<li.length-1){j++}else{j=0};fadeon()};}");
document.writeln("\/\/滚动文字");
document.writeln("var scrolltxt=function(){t+=num;span.style.marginTop=t+\"px\";if(num<0 && t>3){timer3=setTimeout(scrolltxt,interv2)}else if(num>0 && t<62){timer3=setTimeout");
document.writeln("");
document.writeln("(scrolltxt,interv2)}else{scton=0}};");
document.writeln("fadeon();");
document.writeln("}");
document.writeln("\/\/初始化");
document.writeln("window.onload=s;");
document.writeln("<\/script>")