/*===========================================================
	Copyright: (c)株式会社印傳屋上原勇七
	Created: 2009-10-01
	Modified: 2009-10-30
===========================================================*/
$(function(){$("div#contents").css("min-height",$(window).height()-33);$(".newsArea:last-child").addClass("newsLastChild")});$(window).resize(function(){$("div#contents").css("min-height",$(window).height()-33)});$(document).ready(function(){$("table.justify th").each(function(){if($(this).text().length==2){$(this).replaceWith('<th><span class="justify2">'+$(this).text()+"</span></th>");$("span.justify2").css({letterSpacing:"2em",display:"block",marginRight:"-2em"})}else{if($(this).text().length==3){$(this).replaceWith('<th><span class="justify3">'+$(this).text()+"</span></th>");$("span.justify3").css({letterSpacing:"0.5em",display:"block",marginRight:"-1em"})}}})});$(function(){$("#main01, #main02, #main03, #main01img, #main02img, #main03img, #main01tit, #main02tit, #main03tit, #main01txt, #main02txt, #main03txt").hide();$("#main01, #main01img").fadeIn(1600);j("#main01");var l=setTimeout(function(){h();clearTimeout(l)},8000);function h(){$("#main01, #main01img, #main01tit, #main01txt").fadeOut(1200);$("#main02, #main02img").fadeIn(2400);j("#main02");var o=setTimeout(function(){c();clearTimeout(o)},8000)}function c(){$("#main02, #main02img, #main02tit, #main02txt").fadeOut(1200);$("#main03, #main03img").fadeIn(2400);j("#main03");var o=setTimeout(function(){b();clearTimeout(o)},8000)}function b(){$("#main03, #main03img, #main03tit, #main03txt").fadeOut(1200);$("#main01, #main01img").fadeIn(2400);j("#main01");var o=setTimeout(function(){h();clearTimeout(o)},8000)}function j(q){var p=setTimeout(function(){$(q+"tit").fadeIn(1600);clearTimeout(p)},1600);var o=setTimeout(function(){$(q+"txt").fadeIn(1600);clearTimeout(o)},2400)}$("#shop01_01, #shop01_02, #shop02_01, #shop02_02, #shop03_01, #shop03_02").hide();$("#shop01_01, #shop02_01, #shop03_01").show();var g=setTimeout(function(){d("#shop01");clearTimeout(g)},1600);var f=setTimeout(function(){d("#shop02");clearTimeout(f)},2000);var e=setTimeout(function(){d("#shop03");clearTimeout(e)},2400);function d(o){$(o+"_01").fadeOut(1200);$(o+"_02").fadeIn(1200);var p=setTimeout(function(){n(o);clearTimeout(p)},5000)}function n(o){$(o+"_02").fadeOut(1200);$(o+"_01").fadeIn(1200);var p=setTimeout(function(){d(o);clearTimeout(p)},5000)}var k=new Object();$("img.roll, .roll img, input.roll, .roll input").not("[src*='_o.']").each(function(p){var p=$(this).attr("class");if(p!="noneSwap"){var r=this.src,o=this.src.lastIndexOf("."),q=this.src.substr(0,o)+"_o"+this.src.substr(o,4);k[this.src]=new Image();k[this.src].src=q;$(this).hover(function(){this.src=q},function(){this.src=r})}});var m=new Object();$(".roll01 img, .roll02 img, .roll03 img, .roll04 img, .roll05 img, .roll06 img,").each(function(){var o=this.src.lastIndexOf(".");m[this.src]=new Image();m[this.src].src=this.src.substr(0,o)+"_o"+this.src.substr(o,4)});$(".roll01 dt img, .roll01 div img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer");$(".roll01 dd img, .roll01 h4 img").attr("src",$(".roll01 dd img, .roll01 h4 img").attr("src").replace(".png","_o.png")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.jpg",".jpg")).css("cursor","default");$(".roll01 dd img, .roll01 h4 img").attr("src",$(".roll01 dd img, .roll01 h4 img").attr("src").replace("_o.png",".png")).css("cursor","default")});$(".roll01 dd img, .roll01 h4 img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".png","_o.png")).css("cursor","pointer");$(".roll01 dt img, .roll01 div img").attr("src",$(".roll01 dt img, .roll01 div img").attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.png",".png")).css("cursor","default");$(".roll01 dt img, .roll01 div img").attr("src",$(".roll01 dt img, .roll01 div img").attr("src").replace("_o.jpg",".jpg")).css("cursor","default")});$(".roll02 dt img, .roll02 div img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer");$(".roll02 dd img, .roll02 h4 img").attr("src",$(".roll02 dd img, .roll02 h4 img").attr("src").replace(".png","_o.png")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.jpg",".jpg")).css("cursor","default");$(".roll02 dd img, .roll02 h4 img").attr("src",$(".roll02 dd img, .roll02 h4 img").attr("src").replace("_o.png",".png")).css("cursor","default")});$(".roll02 dd img, .roll02 h4 img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".png","_o.png")).css("cursor","pointer");$(".roll02 dt img, .roll02 div img").attr("src",$(".roll02 dt img, .roll02 div img").attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.png",".png")).css("cursor","default");$(".roll02 dt img, .roll02 div img").attr("src",$(".roll02 dt img, .roll02 div img").attr("src").replace("_o.jpg",".jpg")).css("cursor","default")});$(".roll03 dt img, .roll03 div img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer");$(".roll03 dd img, .roll03 h4 img").attr("src",$(".roll03 dd img, .roll03 h4 img").attr("src").replace(".png","_o.png")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.jpg",".jpg")).css("cursor","default");$(".roll03 dd img, .roll03 h4 img").attr("src",$(".roll03 dd img, .roll03 h4 img").attr("src").replace("_o.png",".png")).css("cursor","default")});$(".roll03 dd img, .roll03 h4 img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".png","_o.png")).css("cursor","pointer");$(".roll03 dt img, .roll03 div img").attr("src",$(".roll03 dt img, .roll03 div img").attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.png",".png")).css("cursor","default");$(".roll03 dt img, .roll03 div img").attr("src",$(".roll03 dt img, .roll03 div img").attr("src").replace("_o.jpg",".jpg")).css("cursor","default")});$(".roll04 dt img, .roll04 div img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer");$(".roll04 dd img, .roll04 h4 img").attr("src",$(".roll04 dd img, .roll04 h4 img").attr("src").replace(".png","_o.png")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.jpg",".jpg")).css("cursor","default");$(".roll04 dd img, .roll04 h4 img").attr("src",$(".roll04 dd img, .roll04 h4 img").attr("src").replace("_o.png",".png")).css("cursor","default")});$(".roll04 dd img, .roll04 h4 img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".png","_o.png")).css("cursor","pointer");$(".roll04 dt img, .roll04 div img").attr("src",$(".roll04 dt img, .roll04 div img").attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.png",".png")).css("cursor","default");$(".roll04 dt img, .roll04 div img").attr("src",$(".roll04 dt img, .roll04 div img").attr("src").replace("_o.jpg",".jpg")).css("cursor","default")});$(".roll05 dt img, .roll05 div img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer");$(".roll05 dd img, .roll05 h4 img").attr("src",$(".roll05 dd img, .roll05 h4 img").attr("src").replace(".png","_o.png")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.jpg",".jpg")).css("cursor","default");$(".roll05 dd img, .roll05 h4 img").attr("src",$(".roll05 dd img, .roll05 h4 img").attr("src").replace("_o.png",".png")).css("cursor","default")});$(".roll05 dd img, .roll05 h4 img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".png","_o.png")).css("cursor","pointer");$(".roll05 dt img, .roll05 div img").attr("src",$(".roll05 dt img, .roll05 div img").attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.png",".png")).css("cursor","default");$(".roll05 dt img, .roll05 div img").attr("src",$(".roll05 dt img, .roll05 div img").attr("src").replace("_o.jpg",".jpg")).css("cursor","default")});$(".roll06 dt img, .roll06 div img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer");$(".roll06 dd img, .roll06 h4 img").attr("src",$(".roll06 dd img, .roll06 h4 img").attr("src").replace(".png","_o.png")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.jpg",".jpg")).css("cursor","default");$(".roll06 dd img, .roll06 h4 img").attr("src",$(".roll06 dd img, .roll06 h4 img").attr("src").replace("_o.png",".png")).css("cursor","default")});$(".roll06 dd img, .roll06 h4 img").hover(function(){$(this).attr("src",$(this).attr("src").replace(".png","_o.png")).css("cursor","pointer");$(".roll06 dt img, .roll06 div img").attr("src",$(".roll06 dt img, .roll06 div img").attr("src").replace(".jpg","_o.jpg")).css("cursor","pointer")},function(){$(this).attr("src",$(this).attr("src").replace("_o.png",".png")).css("cursor","default");$(".roll06 dt img, .roll06 div img").attr("src",$(".roll06 dt img, .roll06 div img").attr("src").replace("_o.jpg",".jpg")).css("cursor","default")});$("img.white, .whiteBox img").each(function(o){var o=$(this).attr("class");if(o!="noneWhite"){$(this).hover(function(){$(this).stop();$(this).css({cursor:"pointer",opacity:"0.3"}).animate({opacity:1},1000)},function(){$(this).css({cursor:"default",opacity:"1"})})}});$("#pagetop a").click(function(){$("html,body").animate({scrollTop:0},{easing:"easeOutQuart",duration:400});return false})});window.onload=function(){a=document.getElementsByTagName("a");for(i=0;i<a.length;i++){a[i].onfocus=function(){this.blur()}}area=document.getElementsByTagName("area");for(i=0;i<area.length;i++){area[i].onfocus=function(){this.blur()}}};(function(b){b.fn.patternImg=function(e){e=jQuery.extend({setWidth:727,setDuration:600},e);var c=this;function g(){d(this,c);return false}function d(p,o){b("#patternDetail div").hide();var q=p.getAttribute("id"),m=b("#detai"+q),l=b("#detai"+q).find("h4, p, div"),k=b("#detai"+q).find("h4, p"),n=b("#detai"+q).find(".item02"),j=b("#detai"+q).find(".item03");f(m,l,k,j);b(n).click(function(){h(m,k,j)})}function f(j,l,k,m){b(j).show();b(m).before('<div class="mask"><img src="imagesPattern/img_mask.png" width="727" height="519" /></div>');b(l).hide();b(j).find(".mask").css({width:"0",overflow:"hidden"}).animate({width:e.setWidth},{duration:e.setDuration,easing:"easeOutQuart"});b(m).css({width:"0",overflow:"hidden"}).animate({width:e.setWidth},{duration:e.setDuration,easing:"easeOutQuart",complete:function(){b(k).fadeIn()}})}function h(j,k,l){b(k).fadeOut();b(j).find(".mask").fadeOut();b(l).animate({width:0},{duration:e.setDuration,easing:"easeOutQuart",complete:function(){b(j).hide();b(k).hide();b(j).find(".mask").hide()}})}return this.unbind("click").click(g)}})(jQuery);$(function(){$("#patternTumbnail a").patternImg()});(function(b){b.fn.lightBox=function(d){d=jQuery.extend({imgWidthDammy:854,imgHeightDammy:527,swfWidthDammy:640,swfHeightDammy:432},d);var m=this;function l(){e(this,m);return false}function e(t,q){b("embed, object, select").css("visibility","hidden");var u=t.getAttribute("href");if(u.slice(-3)=="swf"){b("body").append('<div id="lightboxOverlay"></div><div id="lightboxContainer" class="clearfix swfContainer"><div id="lightboxSidenavi"><img src="../common/imagesLightbox/close.png" width="22" height="30" alt="閉じる" id="closeBtn" /></div><div id="lightboxContentsBox" class="swfBox"></div></div>')}else{b("body").append('<div id="lightboxOverlay"></div><div id="lightboxContainer" class="clearfix"><div id="lightboxSidenavi"><img src="../common/imagesLightbox/close.png" width="22" height="30" alt="閉じる" id="closeBtn" /></div><div id="lightboxContentsBox"><img id="lightboxImage"></div></div>')}b("#lightboxOverlay, #lightboxContainer, #lightboxContentsBox").hide();g();var v=setTimeout(function(){f();clearTimeout(v)},100);var s=setTimeout(function(){k(t,q);clearTimeout(s)},600);var r=setTimeout(function(){p(t,q);clearTimeout(r)},1100);n(t,q);b("#lightboxSidenavi").hover(function(){b(this).find("img").attr("src",b(this).find("img").attr("src").replace(".png","_o.png")).css("cursor","pointer")},function(){b(this).find("img").attr("src",b(this).find("img").attr("src").replace("_o.png",".png")).css("cursor","default")});b(window).resize(function(){o(t,q)});b("#lightboxOverlay, #lightboxSidenavi").click(function(){c()})}function g(){var q=j();b("#lightboxOverlay").css({width:q[0],height:q[1],opacity:0.8}).fadeIn(300)}function f(){b("#lightboxContainer").fadeIn(500)}function k(r,q){var s=r.getAttribute("href");if(s.slice(-3)=="swf"){b("#lightboxContentsBox").append('<div id="flashcontent"><div id="noneFlash"><h4><img src="../common/imagesLightbox/txt_01.png" width="370" height="17" alt="映像を再生するには、Adobe Flash Player が必要です。" /></h4><p><a href="http://get.adobe.com/jp/flashplayer/" target="_blank"><img src="../common/imagesLightbox/btn_01.png" width="222" height="24" alt="Adobe Flash Playerダウンロードページへ" /></a></p></div></div><script type="text/javascript">var so = new SWFObject("'+s+'", "movie01", "640", "432", "9", "#000000");so.addVariable("flashVarText", "this is passed in via FlashVars for example only");so.addParam("wmode","transparent");so.write("flashcontent");<\/script>')}else{var s=r.getAttribute("href");b("#lightboxImage").attr("src",s)}b("#lightboxContentsBox").fadeIn(1200)}function p(){b("#lightboxSidenavi img").animate({left:0},{duration:666,easing:"easeOutCubic"}).show()}function n(v,s){var w=v.getAttribute("href");if(w.slice(-3)=="swf"){var q=d.swfHeightDammy,r=d.swfWidthDammy,t=j(),u=h()}else{var q=d.imgHeightDammy,r=d.imgWidthDammy,t=j(),u=h()}b("#lightboxContainer").css({top:u[1]+(t[3]/2-q/2),left:(t[0]/2-r/2-11)})}function o(v,s){var w=v.getAttribute("href");if(w.slice(-3)=="swf"){var q=d.swfHeightDammy,r=d.swfWidthDammy,t=j(),u=h()}else{var q=d.imgHeightDammy,r=d.imgWidthDammy,t=j(),u=h()}b("#lightboxOverlay").css({width:t[0],height:t[1]});b("#lightboxContainer").css({top:u[1]+(t[3]/2-q/2),left:(t[0]/2-r/2-11)})}function c(){b("#lightboxContainer").remove();b("#lightboxOverlay").fadeOut(function(){b("#lightboxOverlay").remove()});b("embed, object, select").css("visibility","visible")}function j(){var s,q;if(window.innerHeight&&window.scrollMaxY){s=window.innerWidth+window.scrollMaxX;q=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){s=document.body.scrollWidth;q=document.body.scrollHeight}else{s=document.body.offsetWidth;q=document.body.offsetHeight}}var r,t;if(self.innerHeight){if(document.documentElement.clientWidth){r=document.documentElement.clientWidth}else{r=self.innerWidth}t=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){r=document.documentElement.clientWidth;t=document.documentElement.clientHeight}else{if(document.body){r=document.body.clientWidth;t=document.body.clientHeight}}}if(q<t){pageHeight=t}else{pageHeight=q}if(s<r){pageWidth=s}else{pageWidth=r}arrayPageSize=new Array(pageWidth,pageHeight,r,t);return arrayPageSize}function h(){var r,q;if(self.pageYOffset){q=self.pageYOffset;r=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){q=document.documentElement.scrollTop;r=document.documentElement.scrollLeft}else{if(document.body){q=document.body.scrollTop;r=document.body.scrollLeft}}}arrayPageScroll=new Array(r,q);return arrayPageScroll}return this.unbind("click").click(l)}})(jQuery);$(function(){var b=new Object();$("#contentsBox a.lightBox").not(".nonePreload").each(function(){b[this.href]=new Image();b[this.href].src=$(this).attr("href")});$("#contentsBox a.lightBox").lightBox()});