pathbase="../";tarpath="";function fontStyleSet(tarL,styletype){for(i=0;i<=tarL;i++){if(i>=1){tarpath+=pathbase;}}if(osPlat=="iphone"||osPlat=="ipad"){useOsPlat="mac";}else{useOsPlat=osPlat;}document.write('<link rel="stylesheet" type="text/css" href="'+tarpath+'css/textset_'+styletype+'_'+useOsPlat+'.css" />');}function setuptop(){$copyright("copyright",0,"MODE for Charity");reLayout();setupNews();setTwitter();setBanner();$addEL(window,"resize",reLayout);aiPht2On();movTopInfo();}function reLayout(){setWhiteRibbon();}function setWhiteRibbon(){workW=$innerSize2("w");if(workW<=1000){useL=0;$("mainvisual-area").style.width="1000px";$("topinfo-area").style.width="1000px";$("mainmenu-area").style.width="1000px";}else{useL=Math.round((workW-1000)/2);$("mainvisual-area").style.width="auto";$("topinfo-area").style.width=workW+"px";$("mainmenu-area").style.width="auto";}$("whiteribbon").style.left=useL+"px";}var twiTimer;function setTwitter(){twiNode=$("twtr-widget-1");if(twiNode.childNodes.length<=0){twiTimer=setTimeout("setTwitter()",1000);}else{for(i=0;i<twiNode.childNodes.length;i++){if(twiNode.childNodes[i].tagName){if($cName(twiNode.childNodes[i])=="twtr-doc"){c1Node=twiNode.childNodes[i];break;}}}for(i=0;i<c1Node.childNodes.length;i++){if(c1Node.childNodes[i].tagName){if($cName(c1Node.childNodes[i])=="twtr-bd"){c2Node=c1Node.childNodes[i];break;}}}for(i=0;i<c2Node.childNodes.length;i++){if(c2Node.childNodes[i].tagName){if($cName(c2Node.childNodes[i])=="twtr-timeline"){c3Node=c2Node.childNodes[i];break;}}}c3Node.style.fontSize="10px";twiHeight=$("top-block-left").offsetHeight-259-70;if(twiHeight<=100){twiHeight=100;}c3Node.style.height=twiHeight+"px";setTwitter2();}}function setTwitter2(){twiboxH=$("twibox").offsetHeight;$("twicnr-top").style.top="0px";$("twicnr-top").style.left="0px";$("twicnr-top").style.display="block";$("twicnr-btm").style.top=(twiboxH-9)+"px";$("twicnr-btm").style.left="0px";$("twicnr-btm").style.display="block";}nowBannerNum=0;bnrNameAry=new Array("ippf","ns");bnrURLAry=new Array("http://www.ippf.org/jp/","http://www.natural-s.jp/");bnrCacheAry=new Array();for(bi1=0;bi1<bnrNameAry.length;bi1++){bnrCacheImg=new Image();bnrCacheImg.src="images/top_banner_"+bnrNameAry[bi1]+".gif";bnrCacheAry.push(bnrCacheImg);}function setBanner(){code='';code+='<a href="'+bnrURLAry[nowBannerNum]+'" target="newwin">';code+='<img src="images/top_banner_'+bnrNameAry[nowBannerNum]+'.gif" width="236" height="45" alt="" />';code+='</a>';$toHTML("banner-box",code);if(nowBannerNum+1<bnrNameAry.length){nowBannerNum=nowBannerNum+1;}else{nowBannerNum=0;}sbTimer=setTimeout("setBanner()",5000);}function movTopInfo(){$setAlpha("topinfo-area",0);$("topinfo-area").style.display="block";infoTimer=setTimeout("movTopInfo0()",2000);}function movTopInfo0(){nowAlpha=Math.ceil($getAlpha("topinfo-area"));if(nowAlpha+5<=100){$setAlpha("topinfo-area",nowAlpha+5);infoTimer=setTimeout("movTopInfo0()",25);}else{$setAlpha("topinfo-area",100);ctrlTopInfo();}}nextShowingInfo=3;var infoTimer3;var infoTimer4;var infoTimer5;var logo1st=true;function ctrlTopInfo(){if(nextShowingInfo==1){}else if(nextShowingInfo==2){}else if(nextShowingInfo==3){$("topinfo3").style.display="block";useItemAry=$rdmNumAry(1,9);for(uii=1;uii<=4;uii++){code='<img src="images/top_pht_main3'+useItemAry[uii]+'.png" width="241" height="172" alt="" />';$toHTML("infopht3"+uii,code);}movTopInfo3();nextShowingInfo=4;}else if(nextShowingInfo==4){clearTimeout(infoTimer3);movTopInfo4();nextShowingInfo=5;}else if(nextShowingInfo==5){$("topinfo3").style.display="none";resetTopInfo3();movTopInfo5();nextShowingInfo=3;}ctrlTimer=setTimeout("ctrlTopInfo()",7000);}function movTopInfo1(){tarX0=556;nowX0=$("infologo").offsetLeft;movX0=(tarX0-nowX0)/4;$("infologo").style.left=Math.ceil(nowX0+movX0)+"px";tarY1=35;nowY1=$("infopht11").offsetTop;movY1=(tarY1-nowY1)/6;$("infopht11").style.top=Math.ceil(nowY1+movY1)+"px";tarY2=175;nowY2=$("infopht12").offsetTop;movY2=(tarY2-nowY2)/6;$("infopht12").style.top=Math.ceil(nowY2+movY2)+"px";tarX3=502;nowX3=$("infocopy1").offsetLeft;movX3=(tarX3-nowX3)/7;$("infocopy1").style.left=Math.ceil(nowX3+movX3)+"px";nowAlpha=$getAlpha("infocopy1");if(nowAlpha+2<=100){$setAlpha("infocopy1",nowAlpha+2);if(logo1st){$setAlpha("infologo",nowAlpha+2);}}else{$setAlpha("infocopy1",100);if(logo1st){$setAlpha("infologo",100);logo1st=false;}}infoTimer1=setTimeout("movTopInfo1()",25);}function resetTopInfo1(){$("infopht11").style.top="-500px";$("infopht12").style.top="700px";$("infocopy1").style.left="200px";$setAlpha("infocopy1",0);}function movTopInfo2(){tarX0=116;nowX0=$("infologo").offsetLeft;movX0=(tarX0-nowX0)/4;$("infologo").style.left=Math.ceil(nowX0+movX0)+"px";tarY1=35;nowY1=$("infopht21").offsetTop;movY1=(tarY1-nowY1)/6;$("infopht21").style.top=Math.ceil(nowY1+movY1)+"px";tarY2=277;nowY2=$("infopht22").offsetTop;movY2=(tarY2-nowY2)/6;$("infopht22").style.top=Math.ceil(nowY2+movY2)+"px";tarX3=77;nowX3=$("infocopy2").offsetLeft;movX3=(tarX3-nowX3)/7;$("infocopy2").style.left=Math.ceil(nowX3+movX3)+"px";nowAlpha=$getAlpha("infocopy2");if(nowAlpha+2<=100){$setAlpha("infocopy2",nowAlpha+2);if(logo1st){$setAlpha("infologo",nowAlpha+2);}}else{$setAlpha("infocopy2",100);if(logo1st){$setAlpha("infologo",100);logo1st=false;}}infoTimer2=setTimeout("movTopInfo2()",25);}function resetTopInfo2(){$("infopht21").style.top="-550px";$("infopht22").style.top="700px";$("infocopy2").style.left="400px";$setAlpha("infocopy2",0);}function movTopInfo3(){tarX0=336;nowX0=$("infologo").offsetLeft;movX0=(tarX0-nowX0)/4;$("infologo").style.left=Math.ceil(nowX0+movX0)+"px";tarY1=157;nowY1=$("infopht31").offsetTop;movY1=(tarY1-nowY1)/9;$("infopht31").style.top=Math.ceil(nowY1+movY1)+"px";tarY2=190;nowY2=$("infopht32").offsetTop;movY2=(tarY2-nowY2)/6;$("infopht32").style.top=Math.ceil(nowY2+movY2)+"px";tarY3=190;nowY3=$("infopht33").offsetTop;movY3=(tarY3-nowY3)/6;$("infopht33").style.top=Math.ceil(nowY3+movY3)+"px";tarY4=157;nowY4=$("infopht34").offsetTop;movY4=(tarY4-nowY4)/9;$("infopht34").style.top=Math.ceil(nowY4+movY4)+"px";tarY5=393;nowY5=$("infocopy3").offsetTop;movY5=(tarY5-nowY5)/6;$("infocopy3").style.top=Math.ceil(nowY5+movY5)+"px";nowAlpha=$getAlpha("infocopy3");if(nowAlpha+2<=100){$setAlpha("infocopy3",nowAlpha+2);if(logo1st){$setAlpha("infologo",nowAlpha+2);}}else{$setAlpha("infocopy3",100);if(logo1st){$setAlpha("infologo",100);logo1st=false;}}infoTimer3=setTimeout("movTopInfo3()",25);}function resetTopInfo3(){$("infopht31").style.top="-770px";$("infopht32").style.top="700px";$("infopht33").style.top="700px";$("infopht34").style.top="-770px";$("infocopy3").style.top="500px";$setAlpha("infocopy3",0);logo1st=true;$setAlpha("infologo",0);}function movTopInfo4(){workAlpha=Math.floor($getAlpha("topinfo-area"));if(workAlpha-5>0){$setAlpha("topinfo-area",workAlpha-5);infoTimer4=setTimeout("movTopInfo4()",25);}else{$setAlpha("topinfo-area",0);}}function movTopInfo5(){workAlpha=Math.floor($getAlpha("topinfo-area"));if(workAlpha+5<100){$setAlpha("topinfo-area",workAlpha+5);infoTimer5=setTimeout("movTopInfo5()",25);}else{$setAlpha("topinfo-area",100);clearTimeout(ctrlTimer);ctrlTopInfo();}}nowNewsMoving=false;var defNewsItemNums;function setupNews(){defNewsItemNums=Number($getTxt("defaultnum"));if(defNewsItemNums>=10){defNewsItemNums=10;}newsItemsAry=$getWithClass("news-item");newsURLAry=$getWithClass("news-url");if(newsItemsAry.length<=defNewsItemNums){$("news-list-btn").style.display="none";}else{$("news-list-btn").style.display="block";}newsItemsHAry=new Array();for(ni=0;ni<newsItemsAry.length;ni++){newsItemsHAry.push(newsItemsAry[ni].offsetHeight);if($getTxt(newsURLAry[ni])!=""){useURL=$getTxt(newsURLAry[ni]);$setAttribute(newsItemsAry[ni],"onclick","gotopage('"+useURL+"')");newsItemsAry[ni].style.cursor="pointer";}}startItemAry=new Array();endItemAry=new Array();startNum=0;workH=0;for(nii=0;nii<newsItemsHAry.length;nii++){workH+=newsItemsHAry[nii];if(workH>openSize){startItemAry.push(startNum);endItemAry.push(nii-1);startNum=nii;workH=0;nii--;}else if(nii==newsItemsHAry.length-1){startItemAry.push(startNum);endItemAry.push(nii);}}newsDefH=0;for(ni=0;ni<newsItemsAry.length;ni++){if(ni>=defNewsItemNums){newsItemsAry[ni].style.display="none";}else{newsDefH+=newsItemsHAry[ni];}}$("newsitems").style.height=newsDefH+"px";}function showNewsList(){if(!nowNewsMoving){nowNewsMoving=true;for(ni=0;ni<=endItemAry[0];ni++){newsItemsAry[ni].style.display="block";}code='<a href="javascript:hideNewsList()"><img src="images/top_btn_newslist_close.gif" width="106" height="20" alt="" /></a>';$toHTML("news-list-btn",code);if(startItemAry.length>=2){setNavi(1);$("news-navi").style.display="block";$("news-navi").style.paddingLeft="0px";naviPadd=Math.ceil((652-$("news-navi").offsetWidth)/2);$("news-navi").style.paddingLeft=naviPadd+"px";}if(startItemAry.length==1){workH=0;for(ni=0;ni<newsItemsHAry.length;ni++){workH+=newsItemsHAry[ni];}openSize=workH;}openNews();}}function hideNewsList(){if(!nowNewsMoving){nowNewsMoving=true;defSize=$("newsitems").offsetHeight;code='<a href="javascript:showNewsList()"><img src="images/top_btn_newslist_open.gif" width="106" height="20" alt="" /></a>';$toHTML("news-list-btn",code);if(startItemAry.length>=2){$("news-navi").style.display="none";}defSize=0;for(ni=0;ni<defNewsItemNums;ni++){defSize+=newsItemsHAry[ni];}closeNews();}}openSize=450;function openNews(){nowNewsH=$("newsitems").offsetHeight;openSpeed=40;if(nowNewsH+openSpeed<=openSize){$("newsitems").style.height=nowNewsH+openSpeed+"px";newsTimer=setTimeout("openNews()",25);}else{$("newsitems").style.height=openSize+"px";nowNewsMoving=false;for(ni=0;ni<=endItemAry[0];ni++){newsItemsAry[ni].style.display="block";}setTwitter();}}function closeNews(){nowNewsH=$("newsitems").offsetHeight;closeSpeed=80;if(nowNewsH-closeSpeed>=defSize){$("newsitems").style.height=nowNewsH-closeSpeed+"px";newsTimer=setTimeout("closeNews()",25);}else{$("newsitems").style.height=defSize+"px";nowNewsMoving=false;for(ni=0;ni<newsItemsAry.length;ni++){newsItemsAry[ni].style.display="none";}for(ni=0;ni<defNewsItemNums;ni++){newsItemsAry[ni].style.display="block";}setTwitter();}}nowNewsPage=0;nextNewsPage=0;function newspage(tarPage){if(!nowNewsMoving){nowNewsMoving=true;nextNewsPage=tarPage;setNavi(tarPage);fadeoutNews();}}function setNavi(tarNum){code='';for(ni=0;ni<startItemAry.length;ni++){if(ni+1!=tarNum){code+='<a href="javascript:newspage('+(ni+1)+')"><img src="images/top_btn_newsnavi/top_btn_newsnavi_'+$numColumns(ni+1,2)+'_off.gif" width="23" height="23" alt="" /></a>';}else{code+='<strong><img src="images/top_btn_newsnavi/top_btn_newsnavi_'+$numColumns(ni+1,2)+'_now.gif" width="23" height="23" alt="" /></strong>';}}code+='<br class="clearfloat" />';$toHTML("news-navi",code);}function fadeoutNews(){nowAlpha=Math.ceil($getAlpha("newsitems"));if(nowAlpha-15>=0){$setAlpha("newsitems",nowAlpha-15);newsTimer=setTimeout("fadeoutNews()",25);}else{$setAlpha("newsitems",0);for(ni=0;ni<newsItemsAry.length;ni++){newsItemsAry[ni].style.display="none";}for(ni=startItemAry[nextNewsPage-1];ni<=endItemAry[nextNewsPage-1];ni++){newsItemsAry[ni].style.display="block";}fadeinNews();}}function fadeinNews(){nowAlpha=Math.ceil($getAlpha("newsitems"));if(nowAlpha+15<=100){$setAlpha("newsitems",nowAlpha+15);newsTimer=setTimeout("fadeinNews()",25);}else{$setAlpha("newsitems",100);nowNewsPage=nextNewsPage;nowNewsMoving=false;}}function gotopage(tarURL){if(tarURL.indexOf("http")>=0){newwin=window.open(tarURL,"newwin");}else{document.location.href=tarURL;}}function showvideoframe(){code='';code+='<div id="videobox"><iframe width="480" height="300" src="http://www.youtube.com/embed/Gh2BCIb3m88?rel=0" frameborder="0" allowfullscreen></iframe></div>';code+='<div id="videoclose"><a href="javascript:hidevideoframe()"><img src="images/top_btn_video_close.gif" width="28" height="28" alt="" /></a></div>';$toHTML("ambassador2",code);$("ambassador2").style.display="block";}function hidevideoframe(){code='';$toHTML("ambassador2",code);$("ambassador2").style.display="none";}function aiPht2On(){nowAlpha=Math.floor($getAlpha("ai-pht2"));if(nowAlpha+4<100){$setAlpha("ai-pht2",nowAlpha+4);apTimer=setTimeout("aiPht2On()",25);}else{$setAlpha("ai-pht2",100);apTimer=setTimeout("aiPht2Off()",8000);}}function aiPht2Off(){nowAlpha=Math.floor($getAlpha("ai-pht2"));if(nowAlpha-4>0){$setAlpha("ai-pht2",nowAlpha-4);apTimer=setTimeout("aiPht2Off()",25);}else{$setAlpha("ai-pht2",0);apTimer=setTimeout("aiPht2On()",8000);}}function setup2nd(){setFooter();reLayoutInside();$addEL(window,"resize",reLayoutInside);}function reLayoutInside(){setHeader();setArrow();}function setHeader(){workW=$innerSize2("w");if(workW<=1000){useL=0;$("header-area").style.width="1000px";$("menus-area").style.width="1000px";$("contents-area").style.width="1000px";$("pagetop").style.width="1000px";}else{useL=Math.round((workW-1000)/2);$("header-area").style.width="auto";$("menus-area").style.width="auto";$("contents-area").style.width="auto";$("pagetop").style.width="auto";}$("whiteribbon").style.left=useL+"px";$("whiteribbon").style.display="block";$("mother").style.left=useL+830+"px";}function setArrow(){nowURL=document.location.href;if(nowURL.indexOf("mfc.html")>=0){menuNum=0;}else if(nowURL.indexOf("event")>=0){menuNum=1;}else if(nowURL.indexOf("items")>=0){menuNum=2;}else if(nowURL.indexOf("us.html")>=0){menuNum=3;}else if(nowURL.indexOf("supporters")>=0||nowURL.indexOf("sponsors")>=0||nowURL.indexOf("thanks")>=0){menuNum=4;}workW=$innerSize2("w");if(workW<=1000){useL=0;}else{useL=Math.round((workW-1000)/2);}menuAry=$tag("a",$("menus"));menuL=menuAry[menuNum].offsetLeft;menuW=menuAry[menuNum].offsetWidth;$("nowarrow").style.left=(useL+menuL+Math.floor(menuW/2)-12)+"px";$("nowarrow").style.display="block";}function setFooter(){$copyright("copyright",0,"MODE for Charity");code='';code+='<li><a href="http://www.joicfp.or.jp/">JOICFP</a></li>';code+='<li><a href="http://white-ribbon.org/">ホワイトリボン・ジャパン</a></li>';code+='<li><a href="http://www.modeforcharity.jp/2010/">MODE for Charity 2010</a></li>';$toHTML("footer-links",code);}function setupSponsors(){workH1=$("ippf-txt").offsetHeight;$("ippf-txt").style.paddingTop=Math.ceil((226-workH1)/2)+"px";$arrangeHAlignMid("item-type2",20);$arrangeHAlignMid("item-type3",20);$arrangeHAlignMid("item-type41",15);$arrangeHAlignMid("item-type42",15);$arrangeHAlignMid("item-type52",8);}function moveItemPhtInit(){allPhtAry=$getWithClass("goods-pht");allCoverAry=$getWithClass("pht-cover");for(apa1=0;apa1<allPhtAry.length;apa1++){if(apa1%2==0){allPhtAry[apa1].style.display="none";}}usingItemPhtNum=1;mipTimer=setTimeout("movItemPhtOut()",6000);collaboSetAry=$getWithClass("collabo-txt");collaboBGAry=$getWithClass("collabo-bg");collaboAry=$getWithClass("collabo-body");collaboCloseAry=$getWithClass("collabo-btn");for(ci=0;ci<collaboAry.length;ci++){workH=collaboAry[ci].offsetHeight;collaboAry[ci].style.paddingTop=Math.floor((290-workH)/2)+"px";$setAlpha(collaboSetAry[ci],100);collaboSetAry[ci].style.display="none";if(bsrName=="ie6"||bsrName=="ie7"){collaboBGAry[ci].style.backgroundImage="url(images/item_elm_collabo_bg.gif)";}}}function movItemPhtOut(){nowCoverAlpha=Math.ceil($getAlpha(allCoverAry[0]));if(nowCoverAlpha+7<100){for(mip1=0;mip1<allCoverAry.length;mip1++){$setAlpha(allCoverAry[mip1],nowCoverAlpha+7);}mipTimer=setTimeout("movItemPhtOut()",25);}else{for(mip1=0;mip1<allCoverAry.length;mip1++){$setAlpha(allCoverAry[mip1],100);if(usingItemPhtNum==1){usingItemPhtNum=2;}else{usingItemPhtNum=1;}for(apa1=0;apa1<allPhtAry.length;apa1++){if(apa1%2==usingItemPhtNum-1){allPhtAry[apa1].style.display="none";}else{allPhtAry[apa1].style.display="block";}}}mipTimer=setTimeout("movItemPhtIn()",100);}}function movItemPhtIn(){nowCoverAlpha=Math.ceil($getAlpha(allCoverAry[0]));if(nowCoverAlpha-3>0){for(mip1=0;mip1<allCoverAry.length;mip1++){$setAlpha(allCoverAry[mip1],nowCoverAlpha-3);}mipTimer=setTimeout("movItemPhtIn()",25);}else{for(mip1=0;mip1<allCoverAry.length;mip1++){$setAlpha(allCoverAry[mip1],0);}mipTimer=setTimeout("movItemPhtOut()",6000);}}function showCollaboTxt(tarNum){collaboSetAry[tarNum-1].style.display="block";code='<a href="javascript:hideCollaboTxt('+tarNum+')" onmouseover="$imgOver(\'collabo'+tarNum+'\')" onmouseout="$imgOut(\'collabo'+tarNum+'\')"><img src="images/item_btn_collabo_close_off.gif" width="113" height="52" alt="" id="collabo'+tarNum+'" /></a>';$toHTML("collabo-btn"+tarNum,code);}function hideCollaboTxt(tarNum){collaboSetAry[tarNum-1].style.display="none";code='<a href="javascript:showCollaboTxt('+tarNum+')" onmouseover="$imgOver(\'collabo'+tarNum+'\')" onmouseout="$imgOut(\'collabo'+tarNum+'\')"><img src="images/item_btn_collabo_off.gif" width="113" height="52" alt="コラボレート企業ご紹介" id="collabo'+tarNum+'" /></a>';$toHTML("collabo-btn"+tarNum,code);}function setupApproval(messType){messStatus=messType;if(messStatus=="no"){$("ambassador-txt").style.width="508px";$("ambassador-txt").style.paddingTop=Math.floor((262-$("ambassador-txt").offsetHeight)/2)+"px";profileAry=$getWithClass("profile");for(pi=0;pi<profileAry.length;pi++){profileAry[pi].style.color="#7d7c7b";}$("fukidashi").style.display="none";$("letsclick").style.display="none";}else if(messStatus=="with"){profileAry=$getWithClass("profile");for(pi=0;pi<profileAry.length;pi++){profileAry[pi].style.color="#8b8a89";}peopleBoxAry=$getWithClass("people-box");for(pii=0;pii<peopleBoxAry.length;pii++){peopleBoxAry[pii].style.cursor="pointer";}allMessNodeAry=$getWithClass("fuki-body-set");$("ambassador-txt").style.width="508px";$("ambassador-txt").style.paddingTop=Math.floor((262-$("ambassador-txt").offsetHeight)/2)+"px";$("approval-block").style.paddingBottom="180px";}$setAlpha("ambassador-txt",100);}var nowShowingName="";var fukiMoving=false;var fukiExistAry=new Array('f4','f5','f6','f8','f14','f15','f16','f19','f20','m3');function fukiCtrl(tarName){if(messStatus=="with"&&!fukiMoving){tarType=tarName.substr(0,1);tarNum=Number(tarName.substr(1));if($findAry(fukiExistAry,tarName)[0]){if(tarName!=nowShowingName){if(tarType=="f"){topPlus=0;}else if(tarType=="m"){topPlus=Math.ceil($getWithClass("box-f").length/5)*266;}boxLine=Math.ceil(tarNum/5);boxTopPos=(266*boxLine)+51+topPlus;$("fukidashi").style.top=boxTopPos+"px";$("fukidashi").style.display="block";arrowLPos=206*((tarNum-1)%5)+70;$("fuki-arrow").style.marginLeft=arrowLPos+"px";if(tarType=="f"){useNode=allMessNodeAry[tarNum-1];}else if(tarType=="m"){useNode=allMessNodeAry[$getWithClass("box-f").length+tarNum-1];}useNode.style.display="block";$delNode($getWithClass("fuki-body-set","fukidashi")[0]);$insert(useNode,$("fuki-arrow"),1);txtObj=$getWithClass("fuki-body-set","fukidashi")[0];txtObjMargTop=Math.floor((244-txtObj.offsetHeight+15)/2);txtObj.style.marginTop=txtObjMargTop+"px";if(nowShowingName==""){$setAlpha("fukidashi",0);fukiMoving=true;messFadeIn();}nowShowingName=tarName;$setAttribute($("fukidashi"),"onclick","messFadeOut('"+nowShowingName+"')");}else if(tarName==nowShowingName){messFadeOut();}}else{messFadeOut();}}}function messFadeIn(){nowAlpha=Math.round($getAlpha("fukidashi"));if(nowAlpha+10<=100){$setAlpha("fukidashi",nowAlpha+10);fadeTimer=setTimeout("messFadeIn()",25);}else{$setAlpha("fukidashi",100);fukiMoving=false;}}function messFadeOut(){nowAlpha=Math.round($getAlpha("fukidashi"));if(nowAlpha-20>=0){$setAlpha("fukidashi",nowAlpha-20);fadeTimer=setTimeout("messFadeOut()",25);}else{$("fukidashi").style.display="none";nowShowingName="";fukiMoving=false;}}function setupThanks(){workAry1=$getWithClass("profset");workAry2=$getWithClass("prof-pht");workAry3=$getWithClass("prof-txt");workAry4=$getWithClass("prof-txt-set");workAry5=$getWithClass("linkset");for(sti=0;sti<workAry1.length;sti++){workAry1[sti].style.paddingTop="70px";phtH=workAry2[sti].offsetHeight;txtH=workAry3[sti].offsetHeight;if(phtH>=txtH){paddTop1=Math.floor((phtH-txtH)/2);workAry3[sti].style.paddingTop=paddTop1+"px";}txtH=workAry4[sti].offsetHeight;linkH=workAry5[sti].offsetHeight;workAry5[sti].style.paddingTop=txtH-linkH-5+"px";}}function setupEvent(){tableLAry=$getWithClass("table-l");tableRAry=$getWithClass("table-r");for(ti=0;ti<tableLAry.length;ti++){LH=tableLAry[ti].offsetHeight;RH=tableRAry[ti].offsetHeight;useH=Math.max(LH,RH);tableLAry[ti].style.height=useH+"px";tableRAry[ti].style.height=useH+"px";}}function setupSoon(){setFooter();reLayoutSoon();$addEL(window,"resize",reLayoutSoon);}function reLayoutSoon(){setHeader();setArrow();soon();}function soon(){bsrH=$innerSize("H");if(bsrH>=440){usePadd=Math.floor((bsrH-440)/2);$("soon").style.paddingTop=usePadd+"px";$("soon").style.paddingBottom=usePadd+"px";}}
