(function(a){a(function(){var h={messageMap:["当社のトータル・スペシャリストが、物件に応じた最適な施工を行います。","あきらめていた汚れ・手の届かない場所まで、しっかりクリーニングいたします。","入居者のニーズに応えたデザインで、人気物件へのリフォームをお手伝いします。","特殊な状況にも対処いたします。当社には多くの経験と実績があります。"],imageParameter:[{name:"ss_image_01",dir:"up"},{name:"ss_image_02",dir:"up"},{name:"ss_image_03",dir:"up"},{name:"ss_image_04",dir:"up"}],copyParameter:[{name:"ss_copy_01",pos:"100,92",class_:"alpha_png"},{name:"ss_copy_02",pos:"100,92",class_:"alpha_png"},{name:"ss_copy_03",pos:"100,92",class_:"alpha_png"},{name:"ss_copy_04",pos:"100,92",class_:"alpha_png"}],$tabs:(function(){var f=a(".display_tabs","#display"),j=f.length,k=jQuery(),i=0;for(;i<j;i+=1){k=k.add("[id$="+(String(i).length===1?"0"+String(i):i)+"]","#display")}return k})(),$screen:a("#screen"),$copyBoard:a("#copy"),$messageBoard:a("#message"),apiCopyBoard:null,apiScreen:null,toggleTab:function(f,i){h.$tabs.filter(function(j){if(j===f||j===i){return true}}).each(function(){var k=a(this),j=a("a",k);if(k.hasClass("hovered_tab")){k.toggleClass("selected_tab");return true}j.fadeOut(300,function(){k.toggleClass("selected_tab");j.fadeIn(300)})})},setMessage:function(f){var i=h.messageMap[f];i=typeof i==="string"?i:"";h.$messageBoard.fadeOut(500,function(){h.$messageBoard.text(i).fadeIn(500)})},start:function(){var f=function(){a(this).toggleClass("hovered_tab")};h.$tabs.bind("mouseover",f).bind("mouseout",f);h.$copyBoard.slideFade({plan:h.copyParameter,base:"img/display/",ext:".png",hideDelay:800,hideSpeed:800,firstDelay:1500,showDelay:2500,showSpeed:1000,autoStart:false});h.$screen.slideFade({onBeforeHidingCue:function(){h.apiCopyBoard.hide()},onAfterShowingCue:function(){h.apiCopyBoard.show()},onStartShowing:function(i){h.toggleTab(i.last,i.current);h.setMessage(i.current)},plan:h.imageParameter,base:"img/display/",ext:".jpg",hideDelay:0,hideSpeed:1000,firstDelay:0,showDelay:1000,showSpeed:2000,moveSpeed:6000,sleep:2500,loop:true,autoStart:false});h.apiCopyBoard=h.$copyBoard.data("slideFade");h.apiScreen=h.$screen.data("slideFade");h.apiScreen.start()}};var d=a("body").attr("id"),g=window.navigator.userAgent.toLowerCase(),b=null,c=null,e={};if(g.indexOf("msie")>-1){b=(function(){var f=/msie (\d)/.exec(g);return f===null||f.length!==2?null:parseInt(f[1],10)})()}switch(true){case (b===6):c=".alpha_png, .alpha_png_ie6";break;case (b!==null):c=".alpha_png";break;default:}if(c!==null&&window.DD_belatedPNG!==undefined&&typeof DD_belatedPNG.fix==="function"){DD_belatedPNG.fix(c)}if(d==="top"){h.start()}a(".eg_container").bind("click",function(f){var j=a(f.target),i=j.closest(".eg_after");if(i.length>0&&!i.hasClass("opened")){i.addClass("opened").css("cursor","auto");if(b===6){j.css({display:"none"})}}});e.maskSwitch=function(j,f,i){f.stopPropagation();if(j.hasClass("opened")){return false}j.css("cursor",(i?"pointer":"auto")).animate({opacity:(i?1:0.7)},{duration:200})};a(".eg_after").css("opacity",0.7).bind("mouseover",function(f){e.maskSwitch(a(this),f,true)}).bind("mouseout",function(f){e.maskSwitch(a(this),f,false)});if(typeof a().corner==="function"){a(".result_box").corner({tl:{radius:20},tr:{radius:20},bl:{radius:20},br:{radius:20},antiAlias:true});a(".rounded_2").corner({tl:{radius:2},tr:{radius:2},bl:{radius:2},br:{radius:2},antiAlias:true})}})})(jQuery);
