var _gaq = _gaq || []; var tid = setInterval(rotateRecent, 2000); var arr1 = new Array(5); var arr2 = new Array(5); var arr3 = new Array(5); var arr4 = new Array(5); var arr5 = new Array(5); arr1[0] = ""; arr2[0] = "/reviews/cbd-oil-hemp-review/cbd-oil/"; arr3[0] = "https://cdn.consumerlab.com/images/review/267_image_nm_cannabidiol-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[0] = "CBD and Hemp Oils Reviewed by ConsumerLab.com"; arr5[0] = "Learn How Much CBD Is Really in Hemp Oils & Pills"; arr1[1] = ""; arr2[1] = "/reviews/turmeric-curcumin-supplements-spice-review/turmeric/"; arr3[1] = "https://cdn.consumerlab.com/images/review/250_image_nm_turmeric-supplements-reviewed-by-consumerlab-noseal-2017o.jpg"; arr4[1] = "Turmeric and Curcumin Supplements and Spices Reviewed by ConsumerLab.com"; arr5[1] = "31% of Turmeric/Curcumin Products Fail CL's Tests "; arr1[2] = ""; arr2[2] = "/reviews/Review_Glucosamine_Chondroitin_MSM_Boswellia_Supplements/jointsupplements/"; arr3[2] = "https://cdn.consumerlab.com/images/review/278_image_nm_joint-health-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[2] = "Glucosamine, Chondroitin, MSM and Boswellia Supplements for Joint Health Reviewed by ConsumerLab.com"; arr5[2] = "Joint Pain? See Our Top Supplement Picks"; arr1[3] = ""; arr2[3] = "/reviews/Joint_Supplements_Glucosamine_Chondroitin_MSM_Boswellia_Dogs_Cats/jointsupplements_pets/"; arr3[3] = "https://cdn.consumerlab.com/images/review/279_image_nm_joint-health-supplements-for-pets-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[3] = "Glucosamine, Chondroitin, and MSM for Pets Reviewed by ConsumerLab.com"; arr5[3] = "Joint Health Supplements for Dogs and Cats"; arr1[4] = ""; arr2[4] = "/reviews/canned-tuna-and-salmon-review/canned-tuna-and-salmon/"; arr3[4] = "https://cdn.consumerlab.com/images/review/277_image_nm_canned-tuna-and-salmon-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[4] = "Canned tuna and salmon reviewed by ConsumerLab.com"; arr5[4] = "Find the Best Tuna and Salmon and Avoid Mercury"; arr1[5] = ""; arr2[5] = "/reviews/Probiotic-Supplements-and-Kombucha-Drinks/probiotics/"; arr3[5] = "https://cdn.consumerlab.com/images/review/270_image_nm_probiotics-kefir-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[5] = "Probiotic Supplements Reviewed by ConsumerLab.com"; arr5[5] = "41 Probiotic Supplements and Drinks Tested"; function rotateRecent() { var lRotateId = $('#rotateId').val(); var lRotateSize = 5; lRotateId++; if (lRotateId > lRotateSize) { lRotateId = 1; } $('#rotateId').val(lRotateId); ShowRecentReviewInfo(lRotateId - 1); } function hoverRecent(lRotateId) { ShowRecentReviewInfo(lRotateId-1); //var lRotateSize = 6; //lRotateId++; //if (lRotateId > lRotateSize) { // lRotateId = 1; //} $('#rotateId').val(lRotateId); //tid = null; //tid = setInterval(rotateRecent, 8000); } function ShowRecentReviewInfo(lRotateId){ $('#homepagetext1').html(arr1[lRotateId]); $('#reviewlink1').attr("href", arr2[lRotateId]); $('#reviewimageA1').attr("href", arr2[lRotateId]); $('#reviewimage1').attr("src", arr3[lRotateId]); $('#reviewimage1').attr("alt", arr4[lRotateId]); $('#reviewimage1').attr("title", arr4[lRotateId]); $('#li0').attr("class", "RecentA"); $('#li1').attr("class", "RecentA"); $('#li2').attr("class", "RecentA"); $('#li3').attr("class", "RecentA"); $('#li4').attr("class", "RecentA"); $('#iCaret0').css("color", "#ffffff"); $('#iCaret1').css("color", "#ffffff"); $('#iCaret2').css("color", "#ffffff"); $('#iCaret3').css("color", "#ffffff"); $('#iCaret4').css("color", "#ffffff"); $('#li' + lRotateId).attr("class", "RecentAHigh"); $('#iCaret' + lRotateId).css("color", "#1c44a8"); } function highlightTab(lTabId) { //$('#tdTab1').attr("background", "images/hp_tab_off.jpg"); //$('#tdTab2').attr("background", "images/hp_tab_off.jpg"); //$('#tdTab3').attr("background", "images/hp_tab_off.jpg"); //$('#tdTab' + lTabId).attr("background", "images/hp_tab_on.jpg"); $('#sTab1').attr("class", "tabOff"); $('#sTab2').attr("class", "tabOff"); $('#sTab3').attr("class", "tabOff"); $('#sTab' + lTabId).attr("class", "tabOn"); $('#content1').attr("style", "display:none"); $('#content2').attr("style", "display:none"); $('#content3').attr("style", "display:none"); $('#content' + lTabId).attr("style", ""); }