}
    // createCookie("link", "null");
     document.cookie = "catView=grid";
+    
+    
     // don't display products on the main "products page"
     if ((window.location.href.indexOf("products-2") >= 0)){
         $("#gridView").css("display", "none");
             location.reload();
         });
     }
+    if ((window.location.href.indexOf("products-3") >= 0)){
+        $("#gridView").css("display", "none");
+        $("#listView").css("display", "none");
+        $("#grid").on("click", function (e) {
+            document.cookie = "catView=grid";
+            location.reload();
+        });
+        $("#list").on("click", function (e) {
+            document.cookie = "catView=list";
+            location.reload();
+        });
+    }
+    
+    
     // hide product display initially
     if ((window.location.href.indexOf("products-2/?michsci_category") >= 0)){
         $("#productsView").css("display", "inherit");
         $("#categoriesGridView").css("display", "none");
         $("#categoriesListView").css("display", "none");
     }
+    if ((window.location.href.indexOf("products-3/?michsci_category") >= 0)){
+        $("#productsView").css("display", "inherit");
+        $("#categoriesView").css("display", "none");
+        $("#gridView").css("display", "inherit");
+        $("#listView").css("display", "inherit");
+        $("#categoriesGridView").css("display", "none");
+        $("#categoriesListView").css("display", "none");
+    }
+    
+    
     // navigate back to products page if on single product page
     if ((window.location.href.indexOf("products-2/?pagename") >= 0)) {
 //        $("#viewBtns").css("display", "none");
             document.cookie = "view=list";
             location.reload();
         });
+    }
+    if ((window.location.href.indexOf("products-3/?pagename") >= 0)) {
+        //        $("#viewBtns").css("display", "none");
+        $("#grid").on("click", function (e) {
+            document.cookie = "view=grid";
+            window.location.href =  window.location.pathname;
+        });
+        $("#list").on("click", function (e) {
+            document.cookie = "view=list";
+            window.location.href =  window.location.pathname;
+        });
+        $("#tagBox").css("display", "none");
+    }
+    // change output view from list to grid
+    if (!(window.location.href.indexOf("products-3/?pagename") >= 0)) {
+        $("#grid").on("click", function (e) {
+            document.cookie = "view=grid";
+            location.reload();
+        });
+        $("#list").on("click", function (e) {
+            document.cookie = "view=list";
+            location.reload();
+        });
     }
         $("#categoryDropdown").change(function() {
             $("#catSubmit").submit();
 
     }
    // createCookie("link", "null");
     document.cookie = "catView=grid";
+    
+    
     // don't display products on the main "products page"
     if ((window.location.href.indexOf("products-2") >= 0)){
         $("#gridView").css("display", "none");
             location.reload();
         });
     }
+    if ((window.location.href.indexOf("products-3") >= 0)){
+        $("#gridView").css("display", "none");
+        $("#listView").css("display", "none");
+        $("#grid").on("click", function (e) {
+            document.cookie = "catView=grid";
+            location.reload();
+        });
+        $("#list").on("click", function (e) {
+            document.cookie = "catView=list";
+            location.reload();
+        });
+    }
+    
+    
     // hide product display initially
     if ((window.location.href.indexOf("products-2/?michsci_category") >= 0)){
         $("#productsView").css("display", "inherit");
         $("#categoriesGridView").css("display", "none");
         $("#categoriesListView").css("display", "none");
     }
+    if ((window.location.href.indexOf("products-3/?michsci_category") >= 0)){
+        $("#productsView").css("display", "inherit");
+        $("#categoriesView").css("display", "none");
+        $("#gridView").css("display", "inherit");
+        $("#listView").css("display", "inherit");
+        $("#categoriesGridView").css("display", "none");
+        $("#categoriesListView").css("display", "none");
+    }
+    
+    
     // navigate back to products page if on single product page
     if ((window.location.href.indexOf("products-2/?pagename") >= 0)) {
 //        $("#viewBtns").css("display", "none");
             document.cookie = "view=list";
             location.reload();
         });
+    }
+    if ((window.location.href.indexOf("products-3/?pagename") >= 0)) {
+        //        $("#viewBtns").css("display", "none");
+        $("#grid").on("click", function (e) {
+            document.cookie = "view=grid";
+            window.location.href =  window.location.pathname;
+        });
+        $("#list").on("click", function (e) {
+            document.cookie = "view=list";
+            window.location.href =  window.location.pathname;
+        });
+        $("#tagBox").css("display", "none");
+    }
+    // change output view from list to grid
+    if (!(window.location.href.indexOf("products-3/?pagename") >= 0)) {
+        $("#grid").on("click", function (e) {
+            document.cookie = "view=grid";
+            location.reload();
+        });
+        $("#list").on("click", function (e) {
+            document.cookie = "view=list";
+            location.reload();
+        });
     }
         $("#categoryDropdown").change(function() {
             $("#catSubmit").submit();