// Remove loading icon
$(".loading").remove();

// Append products to current .masonry group. Might want to change this to the correct masonry call
$(".masonry").append("\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1375-marmot-pendant\">\n      <div class=\"imgwrap\"><img alt=\"Pendant-serena-lilly\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1375/pendant-serena-lilly.png?1367851996\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Marmot Pendant<\/h3>,\n          $275.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1374-mara-hoffman-frida-bikini\">\n      <div class=\"imgwrap\"><img alt=\"Mara-hoffman-frida-top\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1374/mara-hoffman-frida-top.png?1367851950\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Mara Hoffman Frida Bikini<\/h3>,\n          $195.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1373-joie-nice-sandals\">\n      <div class=\"imgwrap\"><img alt=\"Joie-sandals\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1373/joie-sandals.png?1367851892\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Joie Nice Sandals<\/h3>,\n          $115.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1372-bindi-lavender-decorative-pillow\">\n      <div class=\"imgwrap\"><img alt=\"John-robshaw-pillow\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1372/john-robshaw-pillow.png?1367851827\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Bindi Lavender Decorative Pillow<\/h3>,\n          $125.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1371-set-of-4-archer-napkins\">\n      <div class=\"imgwrap\"><img alt=\"John-robshaw-napkins\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1371/john-robshaw-napkins.png?1367851776\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Set of 4 Archer Napkins<\/h3>,\n          $45.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1370-rex-ikat-pool-towel\">\n      <div class=\"imgwrap\"><img alt=\"Ikat-towel-pottery-barn\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1370/ikat-towel-pottery-barn.png?1367851706\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Rex Ikat Pool Towel<\/h3>,\n          $24.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1369-foil-dot-scarf\">\n      <div class=\"imgwrap\"><img alt=\"Foil-dot-scarf-calypso\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1369/foil-dot-scarf-calypso.png?1367851647\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Foil Dot Scarf<\/h3>,\n          $225.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1368-ceramic-barnacle-object\">\n      <div class=\"imgwrap\"><img alt=\"Ceramic-barnacle-williams-sonoma-home\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1368/ceramic-barnacle-williams-sonoma-home.png?1367851597\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Ceramic Barnacle Object<\/h3>,\n          $895.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1367-bold-cat-eye-sunglasses\">\n      <div class=\"imgwrap\"><img alt=\"Cat-eye-sunglasses-c-wonder\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1367/cat-eye-sunglasses-c-wonder.png?1367851537\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Bold Cat Eye Sunglasses<\/h3>,\n          $78.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1366-shark-bait-bracelet\">\n      <div class=\"imgwrap\"><img alt=\"Bracelet-tina-chou\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1366/bracelet-tina-chou.png?1367851497\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Shark Bait Bracelet<\/h3>,\n          $40.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1365-bonita-basic-set\">\n      <div class=\"imgwrap\"><img alt=\"Bonita-basic-set-heath-ceramics\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1365/bonita-basic-set-heath-ceramics.png?1367851454\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Bonita Basic Set<\/h3>,\n          $112.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1364-serefina-arrowhead-stud-earrings\">\n      <div class=\"imgwrap\"><img alt=\"Arrowhead-earrings\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1364/arrowhead-earrings.png?1367851268\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Serefina Arrowhead Stud Earrings<\/h3>,\n          $45.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1363-gold-cup-bangle\">\n      <div class=\"imgwrap\"><img alt=\"Br-gcup-gld-navy\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1363/br-gcup-gld-navy.jpg?1367514913\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Gold Cup Bangle<\/h3>,\n          $25.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1362-charles-philip-shanghai-anchor-canvas-smoking-slippers\">\n      <div class=\"imgwrap\"><img alt=\"9d464ff7d7117afc0995149a07dd2375\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1362/9d464ff7d7117afc0995149a07dd2375.jpg?1367514729\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Charles Philip Shanghai Anchor Canvas Smoking Slippers<\/h3>,\n          $135.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1361-pineapple-case-for-iphone-5\">\n      <div class=\"imgwrap\"><img alt=\"10a3c50c7536fd4b996676426724af48\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1361/10a3c50c7536fd4b996676426724af48.jpg?1367514639\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Pineapple case for iPhone 5<\/h3>,\n          $30.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1360-polka-dot-underwire-tank\">\n      <div class=\"imgwrap\"><img alt=\"28e73c79c903a4b2e64e17d6b71e100a\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1360/28e73c79c903a4b2e64e17d6b71e100a.jpg?1367514520\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Polka-dot underwire tank<\/h3>,\n          $98.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1359-sunkissed-shorts\">\n      <div class=\"imgwrap\"><img alt=\"59e7dbd993c6ef01b3720af20160e6ae\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1359/59e7dbd993c6ef01b3720af20160e6ae.jpg?1367514381\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Sunkissed shorts<\/h3>,\n          $40.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1358-linen-baseball-sweater\">\n      <div class=\"imgwrap\"><img alt=\"0342ca1ac7a83979dde1865cdfeee7d6\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1358/0342ca1ac7a83979dde1865cdfeee7d6.jpg?1367514278\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Linen baseball sweater<\/h3>,\n          $75.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1357-tory-burch-shawn-logo-double-wrap-bracelet\">\n      <div class=\"imgwrap\"><img alt=\"Screen_shot_2013-05-02_at_12.57.34_pm\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1357/Screen_shot_2013-05-02_at_12.57.34_PM.png?1367513984\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Tory Burch &#x27;Shawn&#x27; Logo Double Wrap Bracelet<\/h3>,\n          $95.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1356-adrianna-papell-pleated-chiffon-fit-flare-dress\">\n      <div class=\"imgwrap\"><img alt=\"07482bf955fb3a9107ab013bc91f6529\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1356/07482bf955fb3a9107ab013bc91f6529.jpg?1367513701\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Adrianna Papell Pleated Chiffon Fit &amp; Flare Dress<\/h3>,\n          $158.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1355-kate-spade-lucille-stretch-cotton-shift-dress\">\n      <div class=\"imgwrap\"><img alt=\"58014aa6c429cc9a63d033516995539a\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1355/58014aa6c429cc9a63d033516995539a.jpg?1367513481\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">kate spade &#x27;lucille&#x27; stretch cotton shift dress<\/h3>,\n          $268.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1354-michael-kors-striped-interior-continental-wallet\">\n      <div class=\"imgwrap\"><img alt=\"Abce5b155b1ac8cb76fc5f63b9741af7\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1354/abce5b155b1ac8cb76fc5f63b9741af7.png?1367513311\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Michael Kors Striped Interior Continental Wallet<\/h3>,\n          $158.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1353-shea-wedge\">\n      <div class=\"imgwrap\"><img alt=\"Bfea7de72d1aedb26d87d15c78360070\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1353/bfea7de72d1aedb26d87d15c78360070.jpg?1367513098\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Shea Wedge<\/h3>,\n          $79.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1352-hampton-fit-dot-crop\">\n      <div class=\"imgwrap\"><img alt=\"Ca3dee7ec8a254be17f7221717be5274\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1352/ca3dee7ec8a254be17f7221717be5274.jpg?1367512970\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Hampton fit dot crop<\/h3>,\n          $90.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1351-orla-kiely-trunnel-of-love-dress\">\n      <div class=\"imgwrap\"><img alt=\"18531cbf33e6481c5613b1d173ca6944\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1351/18531cbf33e6481c5613b1d173ca6944.jpg?1367512832\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Orla Kiely Trunnel of Love Dress<\/h3>,\n          $522.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1350-rebecca-minkoff-affair-mini-shoulder-bag\">\n      <div class=\"imgwrap\"><img alt=\"D440ffc97b78cec49cbbf2ec091e36f3\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1350/d440ffc97b78cec49cbbf2ec091e36f3.png?1367512322\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Rebecca Minkoff &#x27;Affair - Mini&#x27; Shoulder Bag<\/h3>,\n          $195.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1349-cambridge-satchel-upwardly-mobile-satchel\">\n      <div class=\"imgwrap\"><img alt=\"Ef1d26a53f9f9508249ced23a50c12d9\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1349/ef1d26a53f9f9508249ced23a50c12d9.jpg?1367512181\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Cambridge Satchel Upwardly Mobile Satchel<\/h3>,\n          $175.00\n\n      <\/div>\n<\/a>      <div class=\"icons\">\n        <span id=\"heart\" class=\"heart\">\n            <div class=\"heart-popover\">\n            <a href=\"#\" class=\"heart-login\">h<\/a>\n            <\/div>\n        <\/span>\n\n      <\/div>\n  <\/div>\n")

// Handle pagination replacement or deletion depending on if there are remaining products
  $('.pagination').replaceWith('<div class=\"pagination\"><a class=\"previous_page\" rel=\"prev\" href=\"/boutique?page=7\">Page<\/a> <a rel=\"start\" href=\"/boutique?page=1\">1<\/a> <a href=\"/boutique?page=2\">2<\/a> <a href=\"/boutique?page=3\">3<\/a> <a href=\"/boutique?page=4\">4<\/a> <a href=\"/boutique?page=5\">5<\/a> <a href=\"/boutique?page=6\">6<\/a> <a rel=\"prev\" href=\"/boutique?page=7\">7<\/a> <em class=\"current\">8<\/em> <a rel=\"next\" href=\"/boutique?page=9\">9<\/a> <a href=\"/boutique?page=10\">10<\/a> <a href=\"/boutique?page=11\">11<\/a> <a href=\"/boutique?page=12\">12<\/a> <span class=\"gap\">&hellip;<\/span> <a href=\"/boutique?page=56\">56<\/a> <a href=\"/boutique?page=57\">57<\/a> <a class=\"next_page\" rel=\"next\" href=\"/boutique?page=9\">Next Page ><\/a><\/div>');

reload_masonry();
ajax_items();