window.CMS = window.CMS || {};
CMS.templates = {"macros":[],"image_default_tmpl":"<% if (data.fields.string_link) { %>\n\t<a href=\"<%- data.fields.string_link %>\">\n<% } %>\n<img src=\"<%- data.fields.string_src %>\"<% if (data.fields.string_alt) { %> alt=\"<%- data.fields.string_alt %>\"<% } %> data-loader=\"false\" \/>\n<% if (data.fields.string_link) { %>\n\t<\/a>\n<% } %>\n","merchzone_default_tmpl":"<% var items_per_row = 4, grid_columns = 12 \/ items_per_row; %>\n<aside>\n\t<div class=\"row-fluid\">\n\t\t<% _.each(data.items, function (item, index) { %>\n\t\t\t<% if ((index % items_per_row) == 0 && index > 0) { %>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"row-fluid\">\n\t\t\t<% } %>\n\t\t\t<div class=\"span<%= grid_columns %>\">\n\t\t\t\t<% var item_url = '\/'+ item.urlcomponent; %>\n\t\t\t\t<div class=\"item-cell item-cell-grid\">\n\t\t\t\t\t<a class=\"thumbnail\" href=\"<%= item_url %>\">\n\t\t\t\t\t\t<img src=\"<%= item.cms.image.url %>\" alt=\"<%= item.cms.image.alt_text %>\" \/>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t<h5>\n\t\t\t\t\t\t<a href=\"<%= item_url %>\"><%= item.storedisplayname2 || item.displayname || item.itemid || item.name %><\/a>\n\t\t\t\t\t<\/h5>\n\t\t\t\t\t<a class=\"btn btn-small btn-primary btn-expanded\" href=\"<%= item_url %>\">See more<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<% }); %>\n\t<\/div>\n<\/aside>\n","merchzone_homepage_qw_tmpl":"<style>\naside .row-fluid h5, .cms-content aside .row-fluid .btn {\n    display: block !important;\n}\n.qw-featured-items-header{\n    display:block;\n    text-align:center;\n    margin: 40px 0px;\n}\ndiv.item-cell a.thumbnail{\n\tdisplay:inline-block;\n\tmin-height: 200px;\n    max-height: 200px;\n}\na.thumbnail img{\n\tmax-width:200px;\n        max-height:175px\n}\n.item-cell.item-cell-grid{\n    margin: 5px 10px;\n    border-radius: 7px;\n    padding: 30px !important;\n    min-height: 300px;\n    -webkit-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.15);\n    -moz-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.15);\n    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.15);\n\n    -webkit-tranisition: all ease;\n    -moz-tranisition: all ease;\n    tranisition: all ease;\n}\n\n.item-cell.item-cell-grid:hover{\n    -webkit-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.10);\n    -moz-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.10);\n    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.10);\n}\n.product-views-price span {\n    display: block;\n}\nh5 {\n    margin-bottom: 10px;\n}\nh5 > a {\n    font-weight: normal;\n    color: #3A3A3A;\n}\n[class^=\"qw-feat-item-box\"]{\n\ttext-align: center;\n}\n.qw-feat-item-box-name{\n\tmin-height:50px;\n}\n.qw-feat-item-box-price{\n\tmin-height:75px;\n}\n.qw-feat-item-box-cta{\n\tmax-width: 300px;\n    \tmargin: 0 auto;\n}\n.qw-feat-item-box-cta .qw-cta-btn{\n\tbackground:#efefef;\n\tcolor:#777;\n}\n.qw-feat-item-box-cta .qw-cta-btn:hover{\n\tbackground: #EE202F;\n    color: #FFF;\n}\n<\/style>\n\n\n<div class=\"qw-featured-items-header\">\n\t<h3>Featured Items<\/h3>\n<\/div>\n<% var items_per_row = 4, grid_columns = 12 \/ items_per_row; %>\n\n <%\nfunction formatCurrency (value, symbol)\n    {\n        var value_float = parseFloat(value)\n        ,    negative = value_float < 0\n        ,    groupseparator = ','\n        ,    decimalseparator = '.'\n        ,    negativeprefix = '('\n        ,    negativesuffix = ')'\n        ,    thousand_string = ''\n        ,     beforeValue = true\n        ,    sessionInfo = SC.getSessionInfo && SC.getSessionInfo('currentCurrency');\n\n        if (isNaN(value_float))\n        {\n            return value;\n        }\n\n        value_float = parseInt((Math.abs(value_float) + 0.005) * 100, 10) \/ 100;\n\n        var value_string = value_float.toString()\n        ,    settings = SC && SC.ENVIRONMENT && SC.ENVIRONMENT.siteSettings ? SC.ENVIRONMENT.siteSettings : {};\n\n        if (Object.prototype.hasOwnProperty.call(window,'groupseparator'))\n        {\n            groupseparator = window.groupseparator;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings,'groupseparator'))\n        {\n            groupseparator = settings.groupseparator;\n        }\n\n        if (Object.prototype.hasOwnProperty.call(window,'decimalseparator'))\n        {\n            decimalseparator = window.decimalseparator;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings, 'decimalseparator'))\n        {\n            decimalseparator = settings.decimalseparator;\n        }\n\n        if (Object.prototype.hasOwnProperty.call(window,'negativeprefix'))\n        {\n            negativeprefix = window.negativeprefix;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings,'negativeprefix'))\n        {\n            negativeprefix = settings.negativeprefix;\n        }\n\n        if (Object.prototype.hasOwnProperty.call(window,'negativesuffix'))\n        {\n            negativesuffix = window.negativesuffix;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings,'negativesuffix'))\n        {\n            negativesuffix = settings.negativesuffix;\n        }\n\n        value_string = value_string.replace('.',decimalseparator);\n        var decimal_position = value_string.indexOf(decimalseparator);\n\n        \/\/ if the string doesn't contains a .\n        if (!~decimal_position)\n        {\n            value_string += decimalseparator+'00';\n            decimal_position = value_string.indexOf(decimalseparator);\n        }\n        \/\/ if it only contains one number after the .\n        else if (value_string.indexOf(decimalseparator) === (value_string.length - 2))\n        {\n            value_string += '0';\n        }\n\n        for (var i=value_string.length-1; i>=0; i--)\n        {\n                                \/\/If the distance to the left of the decimal separator is a multiple of 3 you need to add the group separator\n            thousand_string =    (i > 0 && i < decimal_position && (((decimal_position-i) % 3) === 0) ? groupseparator : '') +\n                                value_string[i] + thousand_string;\n        }\n\n        if (!symbol)\n        {\n            if (typeof session !== 'undefined' && session.getShopperCurrency)\n            {\n                beforeValue = session.getShopperCurrency().beforeValue;\n                symbol = session.getShopperCurrency().symbol;\n            }\n            else if (settings.shopperCurrency)\n            {\n                beforeValue = settings.shopperCurrency.beforeValue;\n                symbol = settings.shopperCurrency.symbol;\n            }\n            else if (sessionInfo)\n            {\n                beforeValue = sessionInfo.beforeValue;\n                symbol = sessionInfo.symbol;\n            }\n\n            if (!symbol)\n            {\n                symbol = '$';\n            }\n        }\n\n        value_string  = beforeValue || _.isUndefined(beforeValue) ? symbol + thousand_string :\n            thousand_string + symbol;\n\n        return negative ? (negativeprefix + value_string + negativesuffix) : value_string;\n    }\n\n %>\n<%\nfunction resizeImage (sizes, url, size)\n\t{\n\t\tvar resize = _.where(sizes, {name: size})[0];\n\t\turl = url || '';\n\n\t\tif (!!resize)\n\t\t{\n\t\t\treturn url + (~url.indexOf('?') ? '&' : '?') + resize.urlsuffix;\n\t\t}\n\n\t\treturn url;\n\t}\n%>\n\n<aside>\n\n\t<div class=\"row-fluid row-fluid-qw\">\n\n\t\t<% _.each(data.items, function (item, index) { %>\n\n\t\t\t<% if ((index % items_per_row) == 0 && index > 0) { %>\n\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"row-fluid\">\n\n\t\t\t<% }  %>\n\n\t\t\t<div class=\"span<%= grid_columns %>\">\n\n\t\t\t\t<% var item_url = '\/'+ item.urlcomponent %>\n                \t\t<% var item_msrp_price = item.pricelevel1_formatted %>\n                \t\t<% var item_you_save = item.pricelevel1 - item.onlinecustomerprice_detail.onlinecustomerprice %>\n                \t\t<% var item_now = item.onlinecustomerprice_detail.onlinecustomerprice_formatted %>\n\n\t\t\t\t<div class=\"item-cell item-cell-grid\">\n\n\t\t\t\t\t<a class=\"thumbnail\" href=\"<%= item_url %>\">\n\n\t\t\t\t\t\t<img src=\"<%= resizeImage(SC.ENVIRONMENT.siteSettings.imagesizes, item.cms.image.url, 'thumbnail') %>\" alt=\"<%= item.cms.image.alt_text %>\" \/>\n\n\t\t\t\t\t<\/a>\n\n\t\t\t\t\t<h5 class=\"qw-feat-item-box-name\">\n\n\t\t\t\t\t\t<a href=\"<%= item_url %>\"><%= item.storedisplayname2 || item.displayname || item.itemid || item.name %><\/a>\n\n\t\t\t\t\t<\/h5>\n\n\t\t\t\t\t\t<div class=\"qw-feat-item-box-price\">\n                    \t\t\t<% if (item_msrp_price > item_now) { %>\n                    \t\t\t\t<div class=\"product-views-price\">\n    \t\t\t\t\t\t\t\t<span class=\"product-views-price-old\">MSRP: <%= item_msrp_price %><\/span>\n    \t\t\t\t\t\t\t\t<span>You save: <%= formatCurrency(item_you_save) %><\/span>\n                        \t\t\t\t\t<span class=\"product-views-price-lead\">Now: <%= item_now %><\/span>\n                    \t\t\t\t<\/div>\n                    \t\t\t<% } else { %>\n                        \t\t\t<span class=\"product-views-price-lead\"> <%= item_msrp_price %> <\/span>\n                    \t\t\t<% } %>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"qw-feat-item-box-cta\">\n\t\t\t\t\t\t<a class=\"btn qw-cta-btn\" href=\"<%= item_url %>\">View<\/a>\n\t\t\t\t\t\t<\/div>\n\n\t\t\t\t<\/div>\n\n\t\t\t<\/div>\n\n\t\t<% }); %>\n\n\t<\/div>\n\n<\/aside>","merchzone_qwatts_tmpl":"<style>\naside .row-fluid h5, .cms-content aside .row-fluid .btn {\n    display: block !important;\n}\n.qw-featured-items-header{\n    display:block;\n    text-align:center;\n    margin: 40px 0px;\n}\ndiv.item-cell a.thumbnail{\n\tdisplay:inline-block;\n\tmin-height: 200px;\n    max-height: 200px;\n}\na.thumbnail img{\n\tmax-width:200px;\n        max-height:175px\n}\n.item-cell.item-cell-grid{\n    margin: 5px 10px;\n    border-radius: 7px;\n    padding: 30px !important;\n    min-height: 300px;\n    -webkit-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.15);\n    -moz-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.15);\n    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.15);\n\n    -webkit-tranisition: all ease;\n    -moz-tranisition: all ease;\n    tranisition: all ease;\n}\n\n.item-cell.item-cell-grid:hover{\n    -webkit-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.10);\n    -moz-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.10);\n    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.10);\n}\n.product-views-price span {\n    display: block;\n}\nh5 {\n    margin-bottom: 10px;\n}\nh5 > a {\n    font-weight: normal;\n    color: #3A3A3A;\n}\n[class^=\"qw-feat-item-box\"]{\n\ttext-align: center;\n}\n.qw-feat-item-box-name{\n\tmin-height:50px;\n}\n.qw-feat-item-box-price{\n\tmin-height:75px;\n}\n.qw-feat-item-box-cta{\n\tmax-width: 300px;\n    \tmargin: 0 auto;\n}\n.qw-feat-item-box-cta .qw-cta-btn{\n\tbackground:#efefef;\n\tcolor:#777;\n}\n.qw-feat-item-box-cta .qw-cta-btn:hover{\n\tbackground: #EE202F;\n    color: #FFF;\n}\n<\/style>\n\n\n<div class=\"qw-featured-items-header\">\n\t<h3>FEATURED ITEMS<\/h3>\n<\/div>\n<% var items_per_row = 4, grid_columns = 12 \/ items_per_row; %>\n\n <%\nfunction formatCurrency (value, symbol)\n    {\n        var value_float = parseFloat(value)\n        ,    negative = value_float < 0\n        ,    groupseparator = ','\n        ,    decimalseparator = '.'\n        ,    negativeprefix = '('\n        ,    negativesuffix = ')'\n        ,    thousand_string = ''\n        ,     beforeValue = true\n        ,    sessionInfo = SC.getSessionInfo && SC.getSessionInfo('currentCurrency');\n\n        if (isNaN(value_float))\n        {\n            return value;\n        }\n\n        value_float = parseInt((Math.abs(value_float) + 0.005) * 100, 10) \/ 100;\n\n        var value_string = value_float.toString()\n        ,    settings = SC && SC.ENVIRONMENT && SC.ENVIRONMENT.siteSettings ? SC.ENVIRONMENT.siteSettings : {};\n\n        if (Object.prototype.hasOwnProperty.call(window,'groupseparator'))\n        {\n            groupseparator = window.groupseparator;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings,'groupseparator'))\n        {\n            groupseparator = settings.groupseparator;\n        }\n\n        if (Object.prototype.hasOwnProperty.call(window,'decimalseparator'))\n        {\n            decimalseparator = window.decimalseparator;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings, 'decimalseparator'))\n        {\n            decimalseparator = settings.decimalseparator;\n        }\n\n        if (Object.prototype.hasOwnProperty.call(window,'negativeprefix'))\n        {\n            negativeprefix = window.negativeprefix;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings,'negativeprefix'))\n        {\n            negativeprefix = settings.negativeprefix;\n        }\n\n        if (Object.prototype.hasOwnProperty.call(window,'negativesuffix'))\n        {\n            negativesuffix = window.negativesuffix;\n        }\n        else if (Object.prototype.hasOwnProperty.call(settings,'negativesuffix'))\n        {\n            negativesuffix = settings.negativesuffix;\n        }\n\n        value_string = value_string.replace('.',decimalseparator);\n        var decimal_position = value_string.indexOf(decimalseparator);\n\n        \/\/ if the string doesn't contains a .\n        if (!~decimal_position)\n        {\n            value_string += decimalseparator+'00';\n            decimal_position = value_string.indexOf(decimalseparator);\n        }\n        \/\/ if it only contains one number after the .\n        else if (value_string.indexOf(decimalseparator) === (value_string.length - 2))\n        {\n            value_string += '0';\n        }\n\n        for (var i=value_string.length-1; i>=0; i--)\n        {\n                                \/\/If the distance to the left of the decimal separator is a multiple of 3 you need to add the group separator\n            thousand_string =    (i > 0 && i < decimal_position && (((decimal_position-i) % 3) === 0) ? groupseparator : '') +\n                                value_string[i] + thousand_string;\n        }\n\n        if (!symbol)\n        {\n            if (typeof session !== 'undefined' && session.getShopperCurrency)\n            {\n                beforeValue = session.getShopperCurrency().beforeValue;\n                symbol = session.getShopperCurrency().symbol;\n            }\n            else if (settings.shopperCurrency)\n            {\n                beforeValue = settings.shopperCurrency.beforeValue;\n                symbol = settings.shopperCurrency.symbol;\n            }\n            else if (sessionInfo)\n            {\n                beforeValue = sessionInfo.beforeValue;\n                symbol = sessionInfo.symbol;\n            }\n\n            if (!symbol)\n            {\n                symbol = '$';\n            }\n        }\n\n        value_string  = beforeValue || _.isUndefined(beforeValue) ? symbol + thousand_string :\n            thousand_string + symbol;\n\n        return negative ? (negativeprefix + value_string + negativesuffix) : value_string;\n    }\n\n %>\n<%\nfunction resizeImage (sizes, url, size)\n\t{\n\t\tvar resize = _.where(sizes, {name: size})[0];\n\t\turl = url || '';\n\n\t\tif (!!resize)\n\t\t{\n\t\t\treturn url + (~url.indexOf('?') ? '&' : '?') + resize.urlsuffix;\n\t\t}\n\n\t\treturn url;\n\t}\n%>\n\n<aside>\n\n\t<div class=\"row-fluid row-fluid-qw\">\n\n\t\t<% _.each(data.items, function (item, index) { %>\n\n\t\t\t<% if ((index % items_per_row) == 0 && index > 0) { %>\n\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"row-fluid\">\n\n\t\t\t<% }  %>\n\n\t\t\t<div class=\"span<%= grid_columns %>\">\n\n\t\t\t\t<% var item_url = '\/'+ item.urlcomponent %>\n                \t\t<% var item_msrp_price = item.pricelevel1_formatted %>\n                \t\t<% var item_you_save = item.pricelevel1 - item.onlinecustomerprice_detail.onlinecustomerprice %>\n                \t\t<% var item_now = item.onlinecustomerprice_detail.onlinecustomerprice_formatted %>\n\n\t\t\t\t<div class=\"item-cell item-cell-grid\">\n\n\t\t\t\t\t<a class=\"thumbnail\" href=\"<%= item_url %>\">\n\n\t\t\t\t\t\t<img src=\"<%= resizeImage(SC.ENVIRONMENT.siteSettings.imagesizes, item.cms.image.url, 'thumbnail') %>\" alt=\"<%= item.cms.image.alt_text %>\" \/>\n\n\t\t\t\t\t<\/a>\n\n\t\t\t\t\t<h5 class=\"qw-feat-item-box-name\">\n\n\t\t\t\t\t\t<a href=\"<%= item_url %>\"><%= item.storedisplayname2 || item.displayname || item.itemid || item.name %><\/a>\n\n\t\t\t\t\t<\/h5>\n\n\t\t\t\t\t\t<div class=\"qw-feat-item-box-price\">\n                    \t\t\t<% if (item_msrp_price > item_now) { %>\n                    \t\t\t\t<div class=\"product-views-price\">\n    \t\t\t\t\t\t\t\t<span class=\"product-views-price-old\">MSRP: <%= item_msrp_price %><\/span>\n    \t\t\t\t\t\t\t\t<span>You save: <%= formatCurrency(item_you_save) %><\/span>\n                        \t\t\t\t\t<span class=\"product-views-price-lead\">Now: <%= item_now %><\/span>\n                    \t\t\t\t<\/div>\n                    \t\t\t<% } else { %>\n                        \t\t\t<span class=\"product-views-price-lead\"> <%= item_msrp_price %> <\/span>\n                    \t\t\t<% } %>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"qw-feat-item-box-cta\">\n\t\t\t\t\t\t<a class=\"btn qw-cta-btn\" href=\"<%= item_url %>\">View<\/a>\n\t\t\t\t\t\t<\/div>\n\n\t\t\t\t<\/div>\n\n\t\t\t<\/div>\n\n\t\t<% }); %>\n\n\t<\/div>\n\n<\/aside>"};