var Catw={holder:null,nodes:null,step:0,topStart:0,sh:100,ivScroll:null,ivAnim:null,speed:4,init:function(){if(document.getElementById("catwalk").firstChild&&cwData.length>3){Catw.holder=document.getElementById("catwalk").firstChild;if(Catw.holder.childNodes.length>2){Catw.step=Catw.holder.childNodes.length;Catw.sh=Catw.holder.childNodes[0].offsetHeight;Catw.speed=Catw.sh/11;Catw.ivScroll=setInterval("Catw.scroll()",13000);for(var b=0;b<cwData.length;b++){var a=new Image(88,88);a.src=staticUrl+cwData[b][1]}}}},create:function(){var b=document.createElement("A");b.className="u";b.setAttribute("href","/"+language+"/user/?id="+cwData[Catw.step][0]);b.innerHTML='<img src="'+staticUrl+cwData[Catw.step][1]+'" alt="" /><br/>'+cwData[Catw.step][2]+"<br/>";Catw.holder.insertBefore(b,Catw.holder.firstChild);Catw.holder.style.marginTop=(-Catw.sh)+"px"},scroll:function(){if(Catw.step>=cwData.length){Catw.step=0}Catw.create();Catw.step++;clearInterval(Catw.ivAnim);Catw.ivAnim=setInterval("Catw.animate();",500/11)},animate:function(){var a=Catw.holder.style.marginTop?parseInt(Catw.holder.style.marginTop):0;if(a>=0){clearInterval(Catw.ivAnim);Catw.holder.style.marginTop="0px";Catw.holder.removeChild(Catw.holder.lastChild)}else{Catw.holder.style.marginTop=parseInt(a+Catw.speed)+"px"}}};var lastSelectedAnswer=new Array();function selPoll(a,b){if(lastSelectedAnswer[b]!=null){lastSelectedAnswer[b].className="vote";lastSelectedAnswer[b].firstChild.checked="false"}a.className="vote_sel";a.firstChild.checked="true";lastSelectedAnswer[b]=a;document.getElementById("pollvoteform").submit()}(function(a){a.extend(a.easing,{bounceOut:function(f,g,e,i,h){if((g/=h)<(1/2.75)){return i*(7.5625*g*g)+e}else{if(g<(2/2.75)){return i*(7.5625*(g-=(1.5/2.75))*g+0.75)+e}else{if(g<(2.5/2.75)){return i*(7.5625*(g-=(2.25/2.75))*g+0.9375)+e}else{return i*(7.5625*(g-=(2.625/2.75))*g+0.984375)+e}}}}});a.fn.slideShow=function(b){var c=a.makeArray(arguments);return this.each(function(){var d=a.data(this,"slideShow")||a.data(this,"slideShow",new a.fn.slideShow.SlideShow(this,b));a.isFunction(d[b])&&d[b].apply(d,c.slice(1))})};a.fn.slideShow.SlideShow=function(d,e,c){if("object"!==typeof e){throw new TypeError()}var b=this;b.element=a(d);b.settings=a.extend({interval:6000,transition:400},c);b.slides=[];b.position=0;b.title=a(document.createElement("div")).addClass("title").appendTo(b.element);b.label=a(document.createElement("span")).addClass("label").appendTo(b.title);b.showSlide=function(g,i){if("undefined"===typeof b.slides[g]){var f=a(document.createElement("div")).addClass("slide");var h=a(document.createElement("img")).bind("load.slideshow",function(){b.hideTitle(function(){f.animate({opacity:"show"},b.settings.transition,function(){b.setTitle(e[g].text).showTitle();b.slides.push(f)})})}).attr("src",e[g].image).appendTo(f);f.appendTo(b.element)}else{var f=b.slides[g];f.hide().appendTo(b.element);b.hideTitle(function(){f.animate({opacity:"show"},b.settings.transition,function(){b.setTitle(e[g].text).showTitle()})})}b.position=g;if(a.isFunction(i)){i()}return b};b.next=function(g){var f=(1+b.position===e.length)?0:b.position+1;b.showSlide(f,g);return b};b.setTitle=function(f){b.label.html(f);return b};b.hideTitle=function(f){b.label.animate({opacity:0},{duration:b.settings.transition,complete:f});return b};b.showTitle=function(){b.label.animate({opacity:1},{duration:b.settings.transition});return b};b.play=function(){b.timer=window.setTimeout(function(){b.next(b.play)},b.settings.interval);return b};b.stop=function(){if("undefined"!=typeof b.timer){window.clearTimeout(b.timer)}return b}};a.fn.flash=function(e,b){e=e||100;b=b||4000;var d=0;function c(){var f=a(this);var g=window.setInterval(function(){if(5===++d){window.clearInterval(g)}f.animate({opacity:1},e).animate({opacity:0.25},e*0.75).animate({opacity:1},e).animate({opacity:0},e)},b)}return this.each(function(){c.call(this)})};a.fn.bounce=function(e,b){e=e||200;b=b||5100;var c=0;function d(){var f=a(this);var g=window.setInterval(function(){if(4===++c){window.clearInterval(g)}f.animate({bottom:56},e,function(){f.animate({bottom:0},{duration:e*3,easing:"bounceOut"})})},b)}return this.each(function(){d.call(this)})};a.fn.pulsate=function(c){c=c||1000;function b(){var d=a(this);d.animate({opacity:1},c,function(){d.animate({opacity:0},c,function(){d.pulsate(c)})})}return this.each(function(){b.call(this)})}})(jQuery);