Event.observe(window,"load",init);function init(){["about","folio","cat","web","photo"].each(function(a){momo(a)})}function nextOne(d){var c=1;for(var b=0;b<d.length;b++){if(d[b].href==window.location){if(b+1==d.length){c=0}else{c=b+1}}}var a=d[c].href;setTimeout(function(){trans(a)},5000)}function trans(a){new Effect.Opacity($("image"),{from:1,to:0,duration:1,afterFinish:function(){moveon(a)}})}function moveon(a){window.location=a}function momo(a){$(a).onmouseover=function(){var b=this.getElementsByTagName("ul")[0];try{clearTimeout(b.holder)}catch(c){}new Effect.Opacity(b,{duration:0.2,from:Element.getOpacity(b),to:1,beforeStart:setVisible})};$(a).onmouseout=function(){var b=this.getElementsByTagName("ul")[0];b.holder=setTimeout(function(){fo(b)},200)};Element.setOpacity($(a).getElementsByTagName("ul")[0],0)}function fo(a){new Effect.Opacity(a,{duration:0.2,from:Element.getOpacity(a),to:0,afterFinish:setHidden})}function setVisible(a){a.element.style.visibility="visible"}function setHidden(a){a.element.style.visibility="hidden"}function imageFadeIn(){new Effect.Opacity(this,{from:0,to:1})};