jQuery = nextQuery; jQuery("document").ready(function(){ // add button beside search box jQuery("#searchWrapper").append(' '); jQuery("#searchField").attr("style","background:none; padding-left:5px; width:80%;"); jQuery("#nmxSearch").click(function(){ document.location = "/busnutramax2/categories.aspx?Keyword="+jQuery("#searchField").val(); }); // show vet and csp prices if(jQuery(".nextProdDiscount").length){ jQuery("#ctl00_ctl00_ctl00_cphMain_cphMain_cphMain_pdtProduct_pnlPriceWrapper").html(jQuery("#ctl00_ctl00_ctl00_cphMain_cphMain_cphMain_pdtProduct_spnDisplayedPrice").html()); jQuery(".nextProdDiscount").prev().prepend("Vet price: ").next().prepend("
Your price: "); } // superscript registered marks jQuery(".nextProdName, .nextShortDesc, a").each(function(){ jQuery(this).html(jQuery(this).html().replace("\u00AE","®")); }); AddProductDisclaimers(); }); var animalProducts = ("ah-product|Calxequin®|CoMal® Q10|Consil®|Cosequin®|Cosevite®|Crananidin®|Curaflex®|Dasuquin®|Denamarin®|Denosyl®|Marin®|Proviable®|Quinicarn®|Welactin®").split("|"); var animalProductsBy = " sold by Nutramax Laboratories Veterinary Sciences, Inc."; var humanProducts = ("yh-product|Avmacol®|Avmacol™|Avoca ASU®|Cosamin®|OmegaMint™").split("|"); var humanProductsBy = " sold by Nutramax Laboratories Consumer Care, Inc."; var animalProductsLegal = "", humanProductsLegal = "", productsLegal = ""; function AddProductDisclaimers(){ // add vet disclaimer line to banner2 if (location.href.indexOf("/busnutramax")>-1){ jQuery("body").addClass("ah"); jQuery(".copyR, .cus").css("margin-top","10px"); //jQuery("body").append("
Human products on Vet-EZ-Order.com are sold by Nutramax Laboratories Consumer Care, Inc. Veterinary products on Vet-EZ-Order.com are sold by
Nutramax Laboratories Veterinary Sciences, Inc. All Intellectual Property is owned by Nutramax Laboratories, Inc.
"); //jQuery(".ui-mobile-viewport #aspnetForm").append("

© 2009-2014 Nutramax Laboratories, Inc. All rights reserved

Human products on Vet-EZ-Order.com are sold by Nutramax Laboratories Consumer Care, Inc. Veterinary products on Vet-EZ-Order.com are sold by
Nutramax Laboratories Veterinary Sciences, Inc. All Intellectual Property is owned by Nutramax Laboratories, Inc.

"); /* if(jQuery(".banner1 .nextBannerCell.nextBannerCellCenter").html().indexOf("®")>-1){ jQuery(".banner1 .nextBannerCell.nextBannerCellCenter").append('
is sold by Nutramax Laboratories Veterinary Sciences, Inc.
'); } else if(jQuery(".nextHierarchyFinalText").text().trim()!="Products for You" && jQuery(".nextHierarchyFinalText").text().trim()!="Bargain Buys"){ jQuery(".banner1 .nextBannerCell.nextBannerCellCenter").closest("table").after('
Products sold by Nutramax Laboratories Veterinary Sciences, Inc.
'); } jQuery(".sold-by-disclaimer").attr("style","font-style:italic; font-weight:normal; text-align:center;"); jQuery(".sold-by-disclaimer.vet2").attr("style","font-style:italic; font-weight:normal; text-align:center; color:#333; margin-bottom:20px;");*/ animalProductsLegal = getDisclaimer(animalProducts, animalProductsBy).trim(); humanProductsLegal = getDisclaimer(humanProducts, humanProductsBy).trim(); var productNamesInDisclaimers = false; //productNamesInDisclaimers = true; if (humanProductsLegal == "" && animalProductsLegal != "" ){ jQuery("body").addClass("ah-products"); } if (humanProductsLegal != "" && animalProductsLegal == ""){ jQuery("body").addClass("yh-products"); } // both divisions if(humanProductsLegal != "" && animalProductsLegal != "" || productNamesInDisclaimers){ productsLegal = " "; } else if(humanProductsLegal != "" || animalProductsLegal != ""){ productsLegal = humanProductsLegal+" "+animalProductsLegal; //jQuery(".ui-btn").css("background","none"); if (humanProductsLegal == "" && animalProductsLegal != "" ){ jQuery("body").addClass("ah"); jQuery("body").addClass("ah-products"); } if (humanProductsLegal != "" && animalProductsLegal == ""){ jQuery("body").removeClass("ah"); jQuery("body").addClass("yh"); jQuery("body").addClass("yh-products"); } // one division or the other if (humanProductsLegal == "" && animalProductsLegal.indexOf(" are ") > -1 ){ productsLegal = "These products are " + animalProductsBy; } else if (animalProductsLegal == "" && humanProductsLegal.indexOf(" are ") > -1 ){ productsLegal = "These products are " + humanProductsBy; } // no products mentioned if (animalProductsLegal == "" && humanProductsLegal == ""){ productsLegal = ""; } } if (productsLegal.trim() != ""){ //jQuery("#ctl00_cphMain_mhrCategoryHeader_pnlMobileHeader") jQuery(".ui-mobile-viewport .nextTopBanner:visible").after('
'+productsLegal+'
'); //jQuery(".sold-by-disclaimer.mobile-top").attr("style","font-style:italic; font-weight:normal; text-align:left; color:#333; padding-left:20px; padding-right:20px; margin-bottom:20px; -border-top:solid 1px #d8d8d8; -border-bottom:solid 1px #d8d8d8;"); jQuery(".main.subcategories").append('
'+productsLegal+'
'); //jQuery(".sold-by-disclaimer.bottom").attr("style","display:inline-block; font-style:italic; font-weight:normal; text-align:left; color:#333; margin-bottom:20px; margin-top:100px;"); jQuery(".ui-mobile-viewport .sold-by-disclaimer.bottom").hide();//.appendTo("#aspnetForm"); jQuery(".nextProductDetailTabbedTable").after('
'+productsLegal+'
'); //jQuery(".sold-by-disclaimer.details").attr("style","width:250px; font-style:italic; font-weight:normal; text-align:left; color:#333; margin-bottom:20px; margin-top:30px;"); jQuery(".nextTileProductBanner").after('
'+productsLegal+'
'); //jQuery(".sold-by-disclaimer.top").attr("style","font-style:italic; font-weight:normal; text-align:center; color:#333; margin-bottom:20px;"); //jQuery(".nextProductListWrapper").append('
'+productsLegal+'
'); //jQuery(".sold-by-disclaimer.bottom2").attr("style","font-style:italic; font-weight:normal; text-align:center; color:#333; margin-bottom:50px; margin-top:50px;"); } } else{ jQuery("body").addClass("yh"); // //jQuery(".ui-mobile-viewport .nextCatalogFooter") jQuery(".ui-mobile-viewport .nextContent").after(''); jQuery(".ui-mobile-viewport .nextCatalogFooter").appendTo(jQuery(".ui-mobile-viewport .nextContent")); } } function getDisclaimer(products, soldBy){ var tmp,addclass=products[0];disclaimer = ""; jQuery.each(products, function(index,value){ if(jQuery(".nextCategoryTable .nextCatLinks, .nextProdName, .nextProductTarget, .nextCategoryTarget").filter(":contains('"+value.trim()+"')").length){ disclaimer += ", "+value; jQuery(".nextCategoryTable .nextCatLinks, .nextProdName, .nextProductTarget, .nextCategoryTarget").filter(":contains('"+value.trim()+"')").each(function(){ jQuery(this).addClass("brand").addClass(addclass); }); } }); if (disclaimer.trim().lastIndexOf(", ") == -1){ return ""; } else if (disclaimer.trim().lastIndexOf(", ") == 0){ disclaimer = disclaimer.replace(", ","")+" is "+soldBy; return disclaimer; } disclaimer = disclaimer.replace(", ","").trim(); if (disclaimer.indexOf(", ") == disclaimer.lastIndexOf(", ") && disclaimer.lastIndexOf(", ")>-1){ disclaimer = disclaimer.replace(", "," and "); } else{ tmp = disclaimer.substring(disclaimer.lastIndexOf(", ")); disclaimer = disclaimer.replace(tmp, tmp.replace(", ",", and ")); } return disclaimer+" are "+soldBy; }