// 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/1715-ruffoni-copper-pan-set\">\n      <div class=\"imgwrap\"><img alt=\"Ruffoni_copper_pan_set\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1715/Ruffoni_Copper_Pan_Set.png?1370356044\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Ruffoni Copper Pan Set<\/h3>,\n          $798.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/1714-square-hi-gloss-white-tray\">\n      <div class=\"imgwrap\"><img alt=\"Square-hi-gloss-white-tray\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1714/square-hi-gloss-white-tray.png?1370355996\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Square hi-gloss White Tray<\/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/1713-gingham-check-tablecloth\">\n      <div class=\"imgwrap\"><img alt=\"Gingham-tablecloth\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1713/gingham-tablecloth.png?1370355937\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Gingham Check Tablecloth<\/h3>,\n          $59.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/1711-ikat-nesting-bowls\">\n      <div class=\"imgwrap\"><img alt=\"Ikat_nesting_bowls\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1711/Ikat_Nesting_Bowls.png?1370355837\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Ikat Nesting Bowls<\/h3>,\n          $58.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/1710-wooden-ice-cream-spoons\">\n      <div class=\"imgwrap\"><img alt=\"Wooden_ice_cream_spoons_\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1710/Wooden_Ice_Cream_Spoons_.png?1370355777\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Wooden Ice Cream Spoons<\/h3>,\n          $8.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/1709-chalkboard-message-board\">\n      <div class=\"imgwrap\"><img alt=\"Chalkboard_message_board\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1709/Chalkboard_Message_Board.png?1370355704\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Chalkboard Message Board<\/h3>,\n          $20.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/1708-rhubarb-syrup\">\n      <div class=\"imgwrap\"><img alt=\"Rhubarb_syrup\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1708/Rhubarb_Syrup.png?1370355654\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Rhubarb Syrup<\/h3>,\n          $14.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/1707-big-head-rooster-salt-pepper-shakers\">\n      <div class=\"imgwrap\"><img alt=\"Salt-and-pepper-shakers-blue-and-white\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1707/salt-and-pepper-shakers-blue-and-white.png?1370355609\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Big Head Rooster Salt &amp; Pepper Shakers<\/h3>,\n          $36.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/1705-le-creuset-cast-iron-trivet\">\n      <div class=\"imgwrap\"><img alt=\"Le_creuset_cast_iron_trivet\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1705/Le_Creuset_Cast_Iron_Trivet.png?1370355405\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Le Creuset Cast Iron Trivet<\/h3>,\n          $65.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/1704-tort-serving-set\">\n      <div class=\"imgwrap\"><img alt=\"Tort_serving_set\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1704/Tort_Serving_Set.png?1370355358\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Tort Serving Set<\/h3>,\n          $36.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/1703-teak-harvest-table\">\n      <div class=\"imgwrap\"><img alt=\"Teak_harvest_table\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1703/Teak_Harvest_Table.png?1370355311\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Teak Harvest Table<\/h3>,\n          $1,900.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/1702-home-made-summer\">\n      <div class=\"imgwrap\"><img alt=\"Home_made_summer\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1702/Home_Made_Summer.png?1370355266\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Home Made Summer<\/h3>,\n          $35.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/1701-turquoise-stone-sonic-ring\">\n      <div class=\"imgwrap\"><img alt=\"Ring-shopbop\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1701/ring-shopbop.png?1370355011\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Turquoise Stone Sonic Ring<\/h3>,\n          $55.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/1700-pendant-embroidered-skater\">\n      <div class=\"imgwrap\"><img alt=\"Skater-dress-topshop\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1700/skater-dress-topshop.png?1370354848\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Pendant Embroidered Skater<\/h3>,\n          $120.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/1699-turquoise-drop-pendant\">\n      <div class=\"imgwrap\"><img alt=\"Turquoise-pendant-shopbop\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1699/turquoise-pendant-shopbop.png?1370354579\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Turquoise Drop Pendant<\/h3>,\n          $77.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/1698-jules-smith-surf-bangles\">\n      <div class=\"imgwrap\"><img alt=\"Jules-smith-surf-bangles-shopbop\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1698/jules-smith-surf-bangles-shopbop.png?1370354534\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Jules Smith Surf Bangles<\/h3>,\n          $105.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/1697-twiggy-clutch\">\n      <div class=\"imgwrap\"><img alt=\"Twiggy-clutch-shopbop\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1697/twiggy-clutch-shopbop.png?1370354451\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Twiggy Clutch<\/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/1696-tanner-flat-sandal\">\n      <div class=\"imgwrap\"><img alt=\"Tanner-flat-sandal-tory-burch\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1696/tanner-flat-sandal-tory-burch.png?1370354400\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Tanner Flat Sandal<\/h3>,\n          $325.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/1695-faux-fur-vest\">\n      <div class=\"imgwrap\"><img alt=\"Faux-fur-vest-buckle\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1695/faux-fur-vest-buckle.png?1370354357\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Faux Fur Vest<\/h3>,\n          $46.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/1694-dawson-small-bucket-bag\">\n      <div class=\"imgwrap\"><img alt=\"Dawson-small-bucket-bag-tory-burch\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1694/dawson-small-bucket-bag-tory-burch.png?1370354300\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Dawson Small Bucket Bag<\/h3>,\n          $325.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/1693-tory-burch-pricilla-mochila-suitcase\">\n      <div class=\"imgwrap\"><img alt=\"Pricilla-mochila-suitcase-tory-burch\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1693/pricilla-mochila-suitcase-tory-burch.png?1370354258\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Tory Burch Pricilla Mochila Suitcase<\/h3>,\n          $750.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/1691-elizabeth-james-wooster-sunglasses\">\n      <div class=\"imgwrap\"><img alt=\"Elizabeth-and-james-wooster-sunglasses-shopbop\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1691/elizabeth-and-james-wooster-sunglasses-shopbop.png?1370354120\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Elizabeth &amp; James Wooster Sunglasses<\/h3>,\n          $185.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/1690-bing-bang-peace-sign-stud-earrings\">\n      <div class=\"imgwrap\"><img alt=\"Peace-sign-stud-earrings-shopbop\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1690/peace-sign-stud-earrings-shopbop.png?1370354085\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Bing Bang Peace Sign Stud Earrings<\/h3>,\n          $35.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/1689-j-crew-cafe-printed-capri-pants\">\n      <div class=\"imgwrap\"><img alt=\"Jcrew-cafe-prints-wool-silk-pants-net-a-porter\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1689/jcrew-cafe-prints-wool-silk-pants-net-a-porter.png?1370354038\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">J.Crew Cafe Printed Capri Pants<\/h3>,\n          $273.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/1688-jean-vest\">\n      <div class=\"imgwrap\"><img alt=\"Jean-vest-madewell\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1688/jean-vest-madewell.png?1370353962\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Jean Vest<\/h3>,\n          $88.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/1687-kiki-printed-ballet-flats\">\n      <div class=\"imgwrap\"><img alt=\"Kiki-printed-ballet-flats-jcrew\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1687/kiki-printed-ballet-flats-jcrew.png?1370353927\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Kiki Printed Ballet Flats<\/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  <div class=\"item\" onload=\"height_adjust();\">\n    <a href=\"/boutique/1686-saudades-pillow\">\n      <div class=\"imgwrap\"><img alt=\"Saudades-pillow-cb2\" src=\"http://s3.amazonaws.com/matchbookmag-pro/products/small/1686/saudades-pillow-cb2.png?1370353858\" /><\/div>\n      <div class=\"index_description\">\n        <h3 style=\"display: inline;\">Saudades Pillow<\/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")

// 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=3\">Page<\/a> <a rel=\"start\" href=\"/boutique?page=1\">1<\/a> <a href=\"/boutique?page=2\">2<\/a> <a rel=\"prev\" href=\"/boutique?page=3\">3<\/a> <em class=\"current\">4<\/em> <a rel=\"next\" href=\"/boutique?page=5\">5<\/a> <a href=\"/boutique?page=6\">6<\/a> <a href=\"/boutique?page=7\">7<\/a> <a href=\"/boutique?page=8\">8<\/a> <a href=\"/boutique?page=9\">9<\/a> <span class=\"gap\">&hellip;<\/span> <a href=\"/boutique?page=64\">64<\/a> <a href=\"/boutique?page=65\">65<\/a> <a class=\"next_page\" rel=\"next\" href=\"/boutique?page=5\">Next Page ><\/a><\/div>');

reload_masonry();
ajax_items();