document.write('<script type="text/javascript" src="../scripts/prototype/prototype.js"><\/script>');document.write('<script type="text/javascript" src="../scripts/prototype/src/scriptaculous.js?load=effects,dragdrop"><\/script>');var defFontSize="1";var defLineHeight="1.75";var COOKIEKEY="fontsize";var menu_id_obj={};var subCategory={};var mainHost=(location.hostname.indexOf("ssl",0)>=0)?"http://www.kongodo.com":"";var agent=navigator.userAgent;window.onload=function(){gNaviInit();fontSizeInit();if((agent.indexOf("MSIE 6",0)!==-1)||(agent.indexOf("MSIE 7",0)!==-1)){var a=true}if(!a){document.getElementsByTagName("body")[0].style.overflowY="scroll"}if(a){document.getElementById("mainContent").style.paddingBottom="0px";document.getElementById("footer").style.position="relative"}};function fontSizeInit(){var c=getCookie(COOKIEKEY);if(c){fontSwitch(c)}else{void (0)}var b='<img src="../image-main/fontsizepanel01.gif" width="30" height="18" />';b+='<a href="#" onclick="fontSwitch(1); return false;"><img src="../image-main/fontsizepanel02.gif" width="27" height="18" /></a>';b+='<a href="#" onclick="fontSwitch(1.2); return false;"><img src="../image-main/fontsizepanel03.gif" width="20" height="18" /></a>';b+='<a href="#" onclick="fontSwitch(1.5); return false;"><img src="../image-main/fontsizepanel04.gif" width="32" height="18" /></a>';var a=document.getElementById("fontSizeSwitchPanel");if(a!=null){document.getElementById("fontSizeSwitchPanel").innerHTML=b}}function fontSwitch(a){if(document.getElementById("content")!=null){document.getElementById("content").style.fontSize=a+"em";document.getElementById("content").style.lineHeight=defLineHeight+"em"}else{if(document.getElementById("containerForm")!=null){document.getElementById("containerForm").style.fontSize=a+"em";document.getElementById("containerForm").style.lineHeight=defLineHeight+"em"}}setCookie(COOKIEKEY,a)}function setCookie(c,e){var a=new Date();var d=a.getTime()+(3600*24*365*1000);a.setTime(d);var b=c+"="+encodeURI(e)+"; path=/; expires="+a.toGMTString();document.cookie=b}function getCookie(d){var f,a;var c=document.cookie+";";var b=c.indexOf(d,0);if(b!=-1){c=c.substring(b,c.length);f=c.indexOf("=",0)+1;a=c.indexOf(";",f);if(f!=a){var e=c.substring(f,a);return(decodeURI(e))}}return("")}function delCookie(b){var a=b+"=dummy;expires=Thu,01-Jan-2000 00:00:01 GMT; ";a+="path=/; ";document.cookie=a;return true}function detailPageOpen(c){var d="";var e="http://shop.kongodo.com/";var f="";if(c=="home"){f="i-shop/top.pasp?to=tp"}else{if(c.indexOf("-",0)>0){var b=c.split("-");if(b[1]!="0"){f="i-shop/category_s.pasp?cm_large_cd="+b[0]+"&cm_small_cd="+b[1]}else{f="i-shop/category_l.pasp?cm_large_cd="+b[0]}}else{f="i-shop/product.pasp?cm_id="+c}}var a=e+f;win1=window.open(a,"productpage",d);win1.focus()}function gNaviInit(){menu_id_obj={menuBtn1:"menu1Sub",menuBtn2:"menu2Sub",menuBtn3:"menu3Sub",menuBtn4:"menu4Sub"};subCategory={menu1Sub:{"新着情報":"/news/index.html","トピックス":"/topics/index.html"},menu2Sub:{"店舗ご案内":"/shop/index.html","サービスご案内":"/service/index.html","企業姿勢":"/company/001.html","会社概要・沿革":"/company/011.html"},menu3Sub:{"お仏壇":"/butsudan/index.html","仏具・小物":"/category/category03_tmp.html","おしきみ・お線香・ローソク":"/category/category03_tmp.html","ショッピングガイド":"/shoppingguide/index.html","ウェブショッピング":"/category/category03_tmp2.html","100年仕様":"/100nenshiyou/index.html","お仏壇の配達とメンテナンス":"/maintenance/index.html","PDF製品カタログ":"/pdf/index.html"},menu4Sub:{"各お問合わせフォーム":"/category/category04.html","よくある質問":"/faq/index.html"}};gNaviMake()}function gNaviMake(){var a=document.getElementsByTagName("body").item(0).getAttribute("id");var d={category01:"menuBtn1",category02:"menuBtn2",shopPage:"menuBtn2",category03:"menuBtn3",category04:"menuBtn4"};var b=0;switch(a){case"category01":b=-129;break;case"category02":case"shopPage":b=-172;break;case"category03":b=-215;break;case"category04":b=-258;break}var f=new Array();var g=0;for(i in menu_id_obj){var e=false;var c=-191*g;g++;f.push(new createMenu(c,b,i,e))}document.getElementById("globalNavi").style.display="block"}function createMenu(e,n,o,h){var q=0;var a="scope"+e;var k;var f;$(o).style.backgroundImage="url(../image-main/globalnavi_btn.png)";$(o).style.textIndent="-9999px";if(h){j(2)}else{j(0)}Event.observe(o,"mouseover",l);Event.observe(o,"mouseout",d);Event.observe(menu_id_obj[o],"mouseover",m);Event.observe(menu_id_obj[o],"mouseout",p);$(menu_id_obj[o]).style.display="none";$(menu_id_obj[o]).insert(g(menu_id_obj[o]));function l(){if(q==0){f=setTimeout(function(){c(100)},100);j(1)}q=1}function d(){clearTimeout(f);var r=setTimeout(function(){if(q!=2){q=0;b();if(!h){j(0)}else{j(2)}}},1)}function m(){q=2}function p(){q=3;var r=setTimeout(function(){if(q==3){b();if(!h){j(0)}else{j(2)}q=0}},300)}function c(r){r=r/1000;k=1;new Effect.SlideDown(menu_id_obj[o],{duration:r,queue:{scope:a,position:"end",limit:1},afterFinishInternal:function(s){k=0;setTimeout(function(){if(q==0){b()}},100)}})}function b(){$(menu_id_obj[o]).style.display="none"}function j(r){if(r==1){$(o).style.backgroundPosition=e+"px -43px"}else{if(r==2){$(o).style.backgroundPosition=e+"px -86px"}else{$(o).style.backgroundPosition=e+"px "+n+"px"}}}function g(r){var s="<ul>";for(i in subCategory[r]){s+='<li><a href="'+mainHost+subCategory[r][i]+'">'+i+"</a></li>"}s+="</ul>";return s}};
