(function(){function j(a){return document.getelementbyid(a)}function e(a){if(document.queryselectorall)return document.queryselectorall("."+a);for(var c=[],a=regexp("(//s|^)"+a+"($|//s)"),b=document.getelementsbytagname("*"),i=0;i>>0;if({}.tostring.call(a)!="[object function]")return false;for(c&&(b=c),i=array(m),h=0;h"}})},floatdiv:function(a){function c(a){clearinterval(f);f=setinterval(function(){var c=(b.offsetleft-a)/5,c=c>0?math.ceil(c):math.floor(c);b.offsetleft==a?clearinterval(f):b.style.left=b.offsetleft-c+"px"},30)}var b=j(a.id),i=parseint(a.top,10),h=l(),g=0,m=0,d=0,f=null,k=document.body.offsetheight>=k()?15:0;b.style.position=x?"absolute":"fixed";b.style.top=i+"px";a.left?(d=parseint(a.left,10),b.style.left=d+"px",g=0,m=d):(d=parseint(a.right,10),b.style.right=d+"px",g=h-b.offsetwidth-k,m=h+d);d<0&&(l(b,"mouseover",function(){c(g)}),l(b,"mouseout",function(){c(m)}));x&&l(window,"scroll",function(){cleartimeout(a);var a=settimeout(function(){b.style.top=(document.documentelement.scrolltop||document.body.scrolltop)+i+"px"},1)})},linkage:function(a){for(var c=a.data,b=j(a.id1),i=j(a.id2),h,g,m,d,f=0;f0?math.ceil(b):math.floor(b);a+f==d[t]?(clearinterval(y),c&&c.apply(g)):d.style[u]=b+d[t]-f+"px"},30)}if(!a.box||!a.list)return false;var g=this,m=j(a.box),d=j(a.list),f=0,k=d.children,y=null,o=null,s=0,r=a.direction||"top",u="top",t="offsettop",a=j(a.advancearrow),v=j(a.retreatarrow),p=a.spacing||4e3;m.style.position="relative";d.style.position="relative";if(r==="top"||r==="bottom")s=k[1].offsettop-k[0].offsettop,u="top",f=d.offsettop,t="offsettop";else if(r==="left"||r==="right")s=k[1].offsetleft-k[0].offsetleft,u="left",f=d.offsetleft,t="offsetleft";a&&l(a,"click",function(){clearinterval(o);b();o=setinterval(function(){c()},p)});v&&l(v,"click",function(){clearinterval(o);i();o=setinterval(function(){c()},p)});o=setinterval(function(){c()},p);l(d,"mouseover",function(){clearinterval(o)});l(d,"mouseout",function(){o=setinterval(function(){c()},p)})},slider:function(a){function c(){var a=document.createelement("div");a.style.overflow="hidden";a.id=w;a.innerhtml=o[0].title;f.appendchild(a)}function b(a){clearinterval(f);clearinterval(g);var b=j(w);if(!b)return false;f=setinterval(function(){var c=math.ceil(b.offsetheight/5);b.style.height=b.offsetheight-c+"px";if(b.offsetheight==0)clearinterval(f),b.innerhtml=o[a].title,g=setinterval(function(){var a=math.ceil((h-b.offsetheight)/5);b.style.height=b.offsetheight+a+"px";b.offsetheight>=h&&clearinterval(g)},20)},30)}function i(a){for(var b=0;b0?math.ceil(a):math.floor(a);c+c==k[v]?(clearinterval(x),b&&b.apply(d)):k.style[a]=a+k[v]-c+"px"},30)}function m(a){var b=o[0],c;b.style.opacity=0;b.style.filter="alpha(opacity=0);";b.src=r[a];if(s.length>0)s[0].href=u[a];var d=setinterval(function(){c=parseint((b.style.opacity||0)*100);speed=math.ceil((100-c)/10);b.style.filter="alpha(opacity="+(c+speed)+");";b.style.opacity=(c+speed)/100;c>=100&&clearinterval(d)},100)}var d=this,f=j(a.box),k=j(a.list),y=a.type||1,o=k.getelementsbytagname("img"),s=k.getelementsbytagname("a"),r=[],u=[],t=0,a="top",v="offsettop",p=k.children,z=null,b=null,x=null,d=null,f=null,g=null,h=0,n=0,c=0,j=a.spacing||4e3,e=a.btnlistclass,i=a.btnclass,w=a.showtext;f.style.position="relative";k.style.position="relative";for(var q=0;q0)for(q=0;q"+(b+1)+"";z.innerhtml=a;z.children[0].classname=i;f.appendchild(z)})();if(j(w))h=j(w).offsetheight;b=z.getelementsbytagname("li");for(q=0;q=p.length-1?0:++n;i(n);h(y,n);w&&b(n)},j);l(f,"mouseover",function(){clearinterval(d)});l(f,"mouseout",function(){d=setinterval(function(){n=n>=p.length-1?0:++n;i(n);h(y,n);w&&b(n)},j)})},foldmenu:function(a){var c=j(a.id),b=a.foldelement&&a.foldelement.tolowercase()||"ul",i=a.foldchildelement||"li",h=a.afterclassname,g=null;l(c,"click",function(a){e=window.event||a;for(a=e.srcelement||e.target;a.tagname!=i&&a!=c&&a.tagname!="body";)a=a.parentnode;if(a.getelementsbytagname(b).length>0&&(a.getelementsbytagname(b)[0].style.display=a.getelementsbytagname(b)[0].style.display==="block"?"none":"block",h))g=eval("/(^"+h+")|((\\s)"+h+")/g"),a.getelementsbytagname(b)[0].style.display==="block"?a.classname+=" "+h:a.classname=a.classname.replace(g,"")})}}})();