var IE6=navigator.userAgent.indexOf("MSIE 6")>=0?true:false,e_pos=0,e_max=0,e_scrolls=[],e_info=[],eouter,edi,edic,_doc,_body,b,l;jQuery.extend(jQuery.easing,{easeInOutQuint:function(c,a,f,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+f;return d/2*((a-=2)*a*a*a*a+2)+f}});function disableSelect(){$("*").each(function(){if($.browser.mozilla)$(this).css("MozUserSelect","none");else $.browser.msie?$(this).bind("selectstart",function(){return false}):$(this).mousedown(function(){return false})})}
function e_prev(){if(e_pos==0){e_pos=e_max;eouter.scrollLeft(e_scrolls[e_pos])}e_pos--;eouter.stop();eouter.animate({scrollLeft:e_scrolls[e_pos]},400,"easeInOutQuint");edic.html(e_info[e_pos])}function e_next(){if(e_pos==e_max){e_pos=0;eouter.scrollLeft(e_scrolls[e_pos])}e_pos++;eouter.stop();eouter.animate({scrollLeft:e_scrolls[e_pos]},400,"easeInOutQuint");edic.html(e_info[e_pos])}function resetTimer(){_doc.stopTime("slideshow");_doc.everyTime(4E3,"slideshow",e_next)}
function stopTimer(){_doc.stopTime("slideshow")}function loading(){b.css("display","block");l.css("display","block")}function hideLoading(){b.css("display","none");l.css("display","none")}$(document).ready(function(){_doc=$(document);_body=$("body");b=$("#backfade");l=$("#loading");mid=$("#pdrop");IE6&&document.execCommand("BackgroundImageCache",false,true);eouter=$("#e-outer");edi=$("#e-infodisplay");$("*").each(function(){$(this)[0].oncontextmenu=function(){return false}})});function limg(c){$("<img />").load(function(){$("#backp").css("backgroundImage","url("+c+")").fadeIn(2E3)}).attr("src",c)}
$(window).load(function(){hideLoading();var c=$("#pdrop .ttext"),a=$(document.createElement("div")).addClass("titletextb"),f=$(document.createElement("div")).addClass("titletexti");c.wrapInner(f);a.css({opacity:0.5});c.prepend(a);mid.css("display","block");IE6&&c.each(function(){var h=$(this).find(".titletextb");h.height($(this).outerHeight());h.width($(this).outerWidth())});edic=edi.find(".titletexti");if(c=$(".e-box")){var d=0,e;c.each(function(){e=$(this);e_scrolls[d]=d*300;e_info[d]=e.find(".e-info").html();e.css({left:d*300+17,display:"block"});d++;e.mouseenter(function(){edi.stop();edi.animate({bottom:"20px"},200,"swing")});e.mouseleave(function(){edi.stop();edi.animate({bottom:"-190px"},200,"swing")})});if(d>1){e_max=d-1;$("#e-next").css({display:"block"});$("#e-prev").css({display:"block"});$("#e-inner").width(d*340+400);$("#e-next").click(function(){resetTimer();e_next();return false});$("#e-prev").click(function(){resetTimer();e_prev();return false});IE6&&eouter.css("left","-15px");resetTimer();edic.html(e_info[e_pos])}}eouter.mouseenter(function(){stopTimer()});eouter.mouseleave(function(){resetTimer()});if(c=$("#pcredit")){var g=$("#pdrop");c.mouseenter(function(){g.stop();g.animate({top:501},200)});c.mouseleave(function(){g.stop();g.animate({top:0},200)})}});