﻿var MainMenu = function(a, b) { this.Controls = a; this.Messages = b; this.AllTimeOut = 0; this.SBITimeOut = 0; this.AboutTimeOut = 0 }; MainMenu.prototype = { Init: function() { if (BrowserDetect.browser == "Safari") { var c = $get(this.Controls.divShopByIndst); var b = $get(this.Controls.divAbout); var a = $get(this.Controls.divAllProd); if (c) { c.style.top = "38px" } if (b) { b.style.top = "38px" } if (a) { a.style.top = "38px" } } }, ShowAllProdMenu: function() { clearTimeout(this.AllTimeOut); this.HideAllMenuDiv(); var a = $get(this.Controls.divAllProd); if (a) { a.style.display = "block"; a.focus() } }, HideAllProdMenu: function() { this.AllTimeOut = setTimeout("if($get('" + this.Controls.divAllProd + "')){$get('" + this.Controls.divAllProd + "').style.display = 'none';}", 500) }, ShowSBIMenu: function() { clearTimeout(this.SBITimeOut); this.HideAllMenuDiv(); var a = $get(this.Controls.divShopByIndst); if (a) { a.style.display = "block"; a.focus() } $get("tdSBI").className = "TopMenu TopHover" }, HideSBIMenu: function() { this.SBITimeOut = setTimeout("if($get('" + this.Controls.divShopByIndst + "')){$get('" + this.Controls.divShopByIndst + "').style.display = 'none';$get('tdSBI').className = 'TopMenu';}", 500) }, ShowAboutMenu: function() { clearTimeout(this.AboutTimeOut); this.HideAllMenuDiv(); var a = $get(this.Controls.divAbout); if (a) { a.style.display = "block"; a.focus() } $get("tdAH").className = "TopMenu TopHover" }, HideAboutMenu: function() { this.AboutTimeOut = setTimeout("if($get('" + this.Controls.divAbout + "')){$get('" + this.Controls.divAbout + "').style.display = 'none';$get('tdAH').className = 'TopMenu';}", 500) }, HideAllMenuDiv: function() { var b = $get(this.Controls.divAllProd); if (b) { b.style.display = "none" } var a = $get(this.Controls.divShopByIndst); if (a) { a.style.display = "none" } var c = $get(this.Controls.divAbout); if (c) { c.style.display = "none" } $get("tdSBI").className = $get("tdAH").className = "TopMenu" } }; function ShowAllProdMenu() { mainMenu.ShowAllProdMenu() } function HideAllProdMenu() { mainMenu.HideAllProdMenu() };
