DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

MG Building Materials - Retail & Wholesale at Lowest Price
MG Store Locations
Choose your store to shop:
To proceed click OK, otherwise click CANCEL
"); } $("div.change-location__cartItems").html(_cartList.join("")); $("div#change-location__popup-notification").dialog("open"); } } function setLocation($this) { $.post('/MainSite/Store1/Store/SetCurrentLocation', { locationCode: $this.options[$this.selectedIndex].value }, StoreSetCurrentLocationOnComplete); } function StoreSetCurrentLocationOnComplete(e) { var currentURL = window.location; if (currentURL.pathname.search("CategoryHome") > 0 || currentURL.pathname.search("PromotionList") > 0) { window.location = currentURL.origin + currentURL.pathname; } else { window.location.reload(); } } function clearShoppingCartItems($this) { $.post('/MainSite/Store1/ShoppingCart/ClearShoppingCart', function () { setLocation($this); }); }
We realize the inconvenience in our website defaulting to a branch that does not service you and we would like to fix that. We always want to find ways to serve you better, including fast and easy access to products and product information on the web. Please set your default branch just this once so that we can better serve you on MG Building Materials in the future.
To proceed click OK, otherwise click CANCEL
"); } $("div.change-location__cartItems").html(_cartList.join("")); $("div#change-location__popup-notification").dialog("open"); } } function setLocation($this) { $.post('/MainSite/Store1/Store/SetCurrentLocation', { locationCode: $this.options[$this.selectedIndex].value }, StoreSetCurrentLocationOnComplete); } function StoreSetCurrentLocationOnComplete(e) { var currentURL = window.location; if (currentURL.pathname.search("CategoryHome") > 0 || currentURL.pathname.search("PromotionList") > 0) { window.location = currentURL.origin + currentURL.pathname; } else { window.location.reload(); } } function clearShoppingCartItems($this) { $.post('/MainSite/Store1/ShoppingCart/ClearShoppingCart', function () { setLocation($this); }); }
Don't worry, you'll still be able to change your branch once inside the website.
").append(""); _slider.$navs = _slider.$wrapper.find("div.nav"); } var noOfDisplay = 0; if (settings.displayItems == "auto") { noOfDisplay = _slider.getDisplayCapacity(); _slider.setWindowResizeEvent(); } else { _slider._currentDisplay = noOfDisplay = parseInt(settings.displayItems) || 1; } //adjust no. of display when actual items is greater than computed no of display items if (noOfDisplay > _slider.$items.length) { _slider._currentDisplay = noOfDisplay = _slider.$items.length; } _slider.setItemLayout(_slider.$itemWrapper.outerWidth(true), noOfDisplay); //initalize events _slider.navClick(); _slider.mouseEvent(); //start auto animate _slider.autoAnimate.start(); } }, getDisplayCapacity: function () { var _wrapperWidth = _slider.$itemWrapper.outerWidth(true); var _noOfDisplay = 1; var _minWidth = parseInt(settings.minWidth) || 1; if (_minWidth > 1) { _noOfDisplay = Math.floor((_wrapperWidth / _minWidth)); //adjust no. of display when actual items is greater than computed no of display items _noOfDisplay = (_noOfDisplay > _slider.$items.length ? _slider.$items.length : _noOfDisplay); _slider._currentDisplay = _noOfDisplay; } if (settings.maxItems != "auto") { var _max = parseInt(settings.maxItems) || 1; _noOfDisplay = (_noOfDisplay > _max) ? _max : _noOfDisplay; } return _noOfDisplay; }, setWindowResizeEvent: function () { $(window).resize(function () { _slider.setItemLayout(_slider.$itemWrapper.outerWidth(true), _slider.getDisplayCapacity()); }); }, setItemLayout: function (_wrapperWidth, noOfDisplay) { var _itemWidth = Math.ceil(_wrapperWidth / noOfDisplay); _slider.$items.css("width", (_itemWidth / _wrapperWidth) * 100 + "%"); }, navClick: function () { _slider.$navs.click(function () { var $this = $(this); if ($this.parent().data("animate") == undefined && _slider.$itemWrapper.children().length > 1) { $this.parent().data("animate", "true"); _slider.autoAnimate.stop(); var _direction = "right"; var _w = _slider.$itemWrapper.children().first().outerWidth(true); if ($this.hasClass("prev")) { _direction = "left"; _slider.$itemWrapper.prepend(_slider.$itemWrapper.children().last()); _slider.$itemWrapper.children().css('left', '-' + _w + 'px'); } if (_slider._currentDisplay == _slider.$itemWrapper.children().length) { _slider.$itemWrapper.append(_slider.$itemWrapper.children().first().clone().addClass("clone")); } var itr = 0; _slider.$itemWrapper.children().stop(true, true).animate({ left: (_direction == "right" ? '-=' : '+=') + _w }, "slow", function () { itr = itr + 1; if (_direction == "right") { if (_slider.$itemWrapper.children().length == itr) { _slider.$itemWrapper.append(_slider.$itemWrapper.children().first()); } } if (_slider.$itemWrapper.children().length == itr) { _slider.$itemWrapper.find(".clone").remove(); _slider.$itemWrapper.children().css('left', '0'); } $this.parent().removeData("animate"); _slider.autoAnimate.start(); }); } }); }, mouseEvent: function () { _slider.$itemWrapper.mouseover(function () { _slider.autoAnimate.stop(); }).mouseout(function () { _slider.autoAnimate.start(); }); }, autoAnimate: { start: function () { if (settings.autoSlide && _slider.$itemWrapper.children().length > 1) { _slider.autoAnimate.stop(); _slider._timer = setInterval(function () { if (settings.autoSlideDirection == "left") { _slider.$wrapper.find("div.next").click(); } else { _slider.$wrapper.find("div.prev").click(); } }, settings.autoSlideSpeed); } }, stop: function () { clearInterval(_slider._timer); _slider._timer = null; } } }; _slider.init(); // allow jQuery chaining return this; }; } (jQuery)); $('div#Carousel').slider({ autoSlideDirection: "left", autoSlideSpeed: 2500, displayItems: "auto", maxItems: 5, minWidth: "134", autoSlide: true });
MG Building Materials. © All Rights Reserved.