/** * * Custom Methods for Event Handlers * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ var pageCustom = { setSessionID : function(target) { var tgt = eval(target); if(clientEnvironment.isW3C) { var anchors = document.getElementsByTagName('a'); var crs = false; for(var i=0; i', '', '', '', '', '', ''); this.ePC = document.getElementById('pageCart'); this.ePC.style.backgroundColor = '#f1f1f1'; this.ePC.style.display = 'none'; this.ePC.style.position = 'absolute'; this.ePC.style.top = (Number(snippets.getElementYpos(this.eBtn))+19)+'px'; this.ePC.style.left = (Number(snippets.getElementXpos(this.eBtn))-504)+'px';; this.ePC.style.filter = this.transform ? this.transform+this.shadow : '' ; snippets.attachEventMethods(this.eBtn, 'onmouseover', 'cartFuncs.eBtnOver();'); snippets.attachEventMethods(this.eBtn, 'onmouseout', 'cartFuncs.eBtnOut();'); snippets.attachEventMethods(this.ePC, 'onmouseover', 'cartFuncs.ePCOver();'); snippets.attachEventMethods(this.ePC, 'onmouseout', 'cartFuncs.ePCOut();'); } else { if(this.eBtn) this.eBtn.style.backgroundImage = 'url(/images/ptBtn-cart_bg3.gif)'; } } }, eBtnOver : function() { clearTimeout(this.timer); this.showCart(); }, eBtnOut : function() { this.timer = setTimeout('cartFuncs.hideCart()', 500); }, ePCOver : function() { this.pcover = true; clearTimeout(this.timer); this.showCart(); }, ePCOut : function() { this.pcover = false; this.timer = setTimeout('cartFuncs.hideCart()', 500); }, showCart : function() { if(this.eBtn.style.backgroundImage != 'url(/images/ptBtn-cart_bg2.gif)') { this.eBtn.style.backgroundImage = 'url(/images/ptBtn-cart_bg2.gif)'; } this.ePC.style.top = (Number(snippets.getElementYpos(this.eBtn))+19)+'px'; this.ePC.style.left = (Number(snippets.getElementXpos(this.eBtn))-504)+'px'; if(clientEnvironment.isIE) { this.ePC.filters[0].apply(); this.ePC.style.display = 'block'; this.ePC.filters[0].play(); } else { this.ePC.style.display = 'block'; } }, hideCart : function() { if(!this.pcover) { if(this.eBtn.style.backgroundImage != 'url(/images/ptBtn-cart_bg1.gif)') { this.eBtn.style.backgroundImage = 'url(/images/ptBtn-cart_bg1.gif)'; } this.ePC.style.display = 'none'; } } }; ///// REGIST METHODS TO EVENT HANDLERS ///// preLoadFuncs.entry.push('pageCustom.setSessionID(\'pageMenu\')'); preLoadFuncs.entry.push('pageCustom.prepPageMenu'); preLoadFuncs.entry.push('pageCustom.toolbarHandler'); preLoadFuncs.entry.push('cartFuncs.prepPageCart'); onLoadFuncs.entry.push('pageCustom.initTables'); onLoadFuncs.entry.push('pageCustom.initAnchors'); onLoadFuncs.entry.push('imageButtonFader.prepImages'); onResizeFuncs.entry.push('pageCustom.resizePageMenu'); ///// STYLES FOR IE ///// if(clientEnvironment.isIE) document.write(''); ///// STYLES FOR NS ///// if(clientEnvironment.isNS6) document.write(''); imageButtonFader.transform = 'filter: progid:DXImageTransform.Microsoft.RandomDissolve(Duration=.4);'; ///// SET pageReference OBJECT PROPERTIES ///// pageReference.scrollPaneName = 'pageScrollPane'; pageReference.scrollTargetName = 'pageContainer'; pageReference.pageTopName = 'pageTop'; pageReference.scrollValueContainerLeft = 'scrollReminderLeft'; pageReference.scrollValueContainerTop = 'scrollReminderTop'; pageReference.scrollValueContainerFocus = 'scrollReminderFocus'; ///// SET pageMenu OBJECT PROPERTIES ///// pageMenu.MenuFirstContainerName = 'pageMenuFirstContainer'; pageMenu.MenuItemIDPrefix = 'dxBtn'; pageMenu.LowBgColor = '#f1f1f1'; pageMenu.HighBgColor = '#d6d6de'; pageMenu.FontLowColor = '#515151'; pageMenu.FontHighColor = '#515161'; pageMenu.BorderColorSub = '#717181'; pageMenu.BorderWidthMain = 1; pageMenu.BorderWidthSub = 1; pageMenu.FirstLineLeftPadding = 13; pageMenu.FirstLineRightPadding = 11; pageMenu.FirstLineTopPadding = 2; pageMenu.FirstLineBottomPadding = 4; pageMenu.LeftPadding = 30; pageMenu.RightPadding = 10; pageMenu.TopPadding = 5; pageMenu.BottomPadding = 0; pageMenu.VerCorrect = -2; pageMenu.HorCorrect = 1; pageMenu.FontFamily = 'MS ゴシック'; pageMenu.FontSize = 12; pageMenu.LetterSpacing = 1; pageMenu.MenuParent = 'pageContainer'; pageMenu.TargetLoc = 'ptMenu'; pageMenu.DissapearDelay = 1000; pageMenu.MenuSlide = (clientEnvironment.isLowSpec) ? '' : 'filter: progid:DXImageTransform.Microsoft.Fade(Duration=0.25,Overlap=1);'; pageMenu.MenuShadow = (clientEnvironment.isLowSpec) ? '' : 'filter: progid:DXImageTransform.Microsoft.Shadow(Color=#9a9a9c,Direction=135,Strength=3);'; pageMenu.FirstLineHorizontal = true;