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/apple-cider-vinegars-review/apple-cider-vinegar/"; arr3[1] = "https://cdn.consumerlab.com/images/review/266_image_nm_apple-cider-vinegar-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[1] = "Apple Cider Vinegar Supplements Reviewed by ConsumerLab.com"; arr5[1] = "Find the Best Apple Cider Vinegar and Avoid Problems"; arr1[2] = ""; arr2[2] = "/reviews/multivitamin_review_comparisons/multivitamins/"; arr3[2] = "https://cdn.consumerlab.com/images/review/262_image_nm_multivitamins-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[2] = "Multivitamin/Multimineral Supplements Reviewed by ConsumerLab.com"; arr5[2] = "Problems with 46% of Multivitamins - Particularly Gummies"; arr1[3] = ""; arr2[3] = "/reviews/melatonin-supplements/melatonin/"; arr3[3] = "https://cdn.consumerlab.com/images/review/melatonin-supplements-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[3] = "Melatonin Supplements Reviewed by ConsumerLab.com"; arr5[3] = "The Best Melatonin Supplements and How to Use Them"; arr1[4] = ""; arr2[4] = "/reviews/turmeric-curcumin-supplements-spice-review/turmeric/"; arr3[4] = "https://cdn.consumerlab.com/images/review/turmeric-supplements-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[4] = "Turmeric and Curcumin Supplements and Spices Reviewed by ConsumerLab.com"; arr5[4] = "31% of Turmeric/Curcumin Products Fail CL's Tests "; arr1[5] = ""; arr2[5] = "/reviews/fish_oil_supplements_review/omega3/"; arr3[5] = "https://cdn.consumerlab.com/images/review/fish-oil-supplements-reviewed-by-consumerlab-2016.jpg"; arr4[5] = "Fish Oil and Other Marine Oil Supplements Reviewed by ConsumerLab.com"; arr5[5] = "Best Fish Oil? See Our New Tests and Comparisons"; 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", ""); }