document.writeln("<script type=\"text/javascript\">");
document.writeln("function H$(i) {return document.getElementById(i)}");
document.writeln("function H$$(c, p) {return p.getElementsByTagName(c)}");
document.writeln("var sliderlck = function () {");
document.writeln("function init (o) {");
document.writeln("this.id = o.id;");
document.writeln("this.at = o.auto ? o.auto : 3;");
document.writeln("this.o = 0;");
document.writeln("this.pos();");
document.writeln("}");
document.writeln("init.prototype = {");
document.writeln("pos : function () {");
document.writeln("clearInterval(this.__b);");
document.writeln("this.o = 0;");
document.writeln("var el = H$(this.id), li = H$$(\'li\', el), l = li.length;");
document.writeln("var _t = li[l-1].offsetHeight;");
document.writeln("var cl = li[l-1].cloneNode(true);");
document.writeln("cl.style.opacity = 0; cl.style.filter = \'alpha(opacity=0)\';");
document.writeln("el.insertBefore(cl, el.firstChild);");
document.writeln("el.style.top = -_t + \'px\';");
document.writeln("this.anim();");
document.writeln("},");
document.writeln("anim : function () {");
document.writeln("var _this = this;");
document.writeln("this.__a = setInterval(function(){_this.animH()}, 20);");
document.writeln("},");
document.writeln("animH : function () {");
document.writeln("var _t = parseInt(H$(this.id).style.top), _this = this;");
document.writeln("if (_t >= -1) {");
document.writeln("clearInterval(this.__a);");
document.writeln("H$(this.id).style.top = 0;");
document.writeln("var list = H$$(\'li\',H$(this.id));");
document.writeln("H$(this.id).removeChild(list[list.length-1]);");
document.writeln("this.__c = setInterval(function(){_this.animO()}, 20);");
document.writeln("//this.auto();");
document.writeln("}else {");
document.writeln("var __t = Math.abs(_t) - Math.ceil(Math.abs(_t)*.07);");
document.writeln("H$(this.id).style.top = -__t + \'px\';");
document.writeln("}");
document.writeln("},");
document.writeln("animO : function () {");
document.writeln("this.o += 2;");
document.writeln("if (this.o == 100) {");
document.writeln("clearInterval(this.__c);");
document.writeln("H$$(\'li\',H$(this.id))[0].style.opacity = 1;");
document.writeln("H$$(\'li\',H$(this.id))[0].style.filter = \'alpha(opacity=100)\';");
document.writeln("this.auto();");
document.writeln("}else {");
document.writeln("H$$(\'li\',H$(this.id))[0].style.opacity = this.o/100;");
document.writeln("H$$(\'li\',H$(this.id))[0].style.filter = \'alpha(opacity=\'+this.o+\')\';");
document.writeln("}");
document.writeln("},");
document.writeln("auto : function () {");
document.writeln("var _this = this;");
document.writeln("this.__b = setInterval(function(){_this.pos()}, this.at*1000);");
document.writeln("}");
document.writeln("}");
document.writeln("return init;");
document.writeln("}();");
document.writeln("</script>");
