\/a>").appendTo(".living-menu .dropdown");$("<\/a>").appendTo(".bedroom-menu .dropdown");$("<\/a>").appendTo(".dining-menu .dropdown");$("<\/a>").appendTo(".office-menu .dropdown");$("<\/a>").appendTo(".decor-menu .dropdown");$("<\/a>").appendTo(".kids-menu .dropdown");$("<\/a>").appendTo(".clearance-menu .dropdown");$("<\/a>").appendTo(".mattress-menu .dropdown");$(".kids-menu .title span").each(function(){$(this).text($(this).text().replace("Kids",""))});$(".clearance-menu .title span").each(function(){$(this).text($(this).text().replace("Clearance",""))});n="";$('<\/ul>').insertAfter(".mattress-menu .title");$(".mattress-menu .title span").each(function(){var t=$(this).text(),i;t==="Size"?($(this).parents(".details").addClass("size-section"),n=".size-section",$(this).parents(".row").addClass("mattress-row-1")):t==="Type"?($(this).parents(".details").addClass("type-section"),n=".type-section",$(this).parents(".row").addClass("mattress-row-2")):t==="Brand"?($(this).parents(".details").addClass("brand-section"),n=".brand-section",$(this).parents(".box").appendTo(".mattress-row-1")):t==="Comfort"?($(this).parents(".details").addClass("comfort-section"),n=".comfort-section",$(this).parents(".box").appendTo(".mattress-row-1")):t==="Bedding Accessories"?($(this).parents(".details").addClass("bedAccess-section"),n=".bedAccess-section",$(this).parents(".box").addClass("accessBox").appendTo(".mattress-row-2")):(i=$(this).parents(".title").html().trim(),$(""+i+"<\/li>").appendTo(n+" .subcategories"),$(this).parents(".box").remove())});n="";$('<\/ul>').insertAfter(".living-menu .title");$(".living-menu .title span").each(function(){var t=$(this).text(),i;console.log("title == ",t);t==="Sets"?($(this).parents(".details").addClass("sets-section"),n=".sets-section",$(this).parents(".row").addClass("living-row-1")):t==="Fabric"?($(this).parents(".details").addClass("fabric-section"),n=".fabric-section",$(this).parents(".row").addClass("living-row-2")):t==="Leather"?($(this).parents(".details").addClass("leather-section"),n=".leather-section",$(this).parents(".box").appendTo(".living-row-1")):t==="Tables"?($(this).parents(".details").addClass("tables-section"),n=".tables-section",$(this).parents(".box").appendTo(".living-row-1")):t==="Media"?($(this).parents(".details").addClass("media-section"),n=".media-section",$(this).parents(".box").appendTo(".living-row-2")):t==="Additional Pieces"?($(this).parents(".details").addClass("addPieces-section"),n=".addPieces-section",$(this).parents(".box").addClass("accessBox").appendTo(".living-row-2")):(i=$(this).parents(".title").html().trim(),$(""+i+"<\/li>").appendTo(n+" .subcategories"),$(this).parents(".box").remove())});t("bedroom-menu");t("dining-menu");t("office-menu");t("decor-menu");t("kids-menu");t("clearance-menu")})Order HistoryPrivacy PolicyTerms & ConditionsFinancing/Lease To OwnTrack My DeliveryLoginRegisterCartWish ListProduct Compare Log in Reset Password Change Email