function slideShow(a){var b=$("#slideShow div.wrapper:visible");if(a==999){var c=b.prevAll().length;if(c==slidesNum-1)$new=$("#slideShow div.wrapper:first-child");else $new=b.next();naviInd=$new.prevAll().length}else{if(b.prevAll().length==a)return 0;$new=$("#slideShow div.wrapper").eq(a);naviInd=a}b.css("z-index",3);$new.css({zIndex:2,opacity:1}).show();b.fadeOut(fadingSpeed);$("div.navi a").eq(naviInd).addClass("on").siblings().removeClass("on")}var slideShowStart=false;var slideShowDelay=5e3;var slidesNum;var fadingSpeed=1e3;var slideTimer;$(document).ready(function(){$beauty=$('#slideShow div:not(".navi")');slidesNum=$beauty.length;$beauty.addClass("wrapper").hide().first().show();$beauty.each(function(){var a=$(this).find("img").attr("src");$(this).css("background-image","url("+a+")").wrapInner('<div class="desk" />');$('<div class="overlay"></div>').css("opacity","0.7").prependTo($(this))});if(slideShowStart)slideTimer=setInterval("slideShow(999)",slideShowDelay);$("div.navi a").bind("click",function(a){a.preventDefault();if(slideTimer)clearInterval(slideTimer);var b=$(this).prevAll().length;slideShow(b)})})
