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/L-tryptophan_5-HTP/tryptophan/"; arr3[0] = "https://cdn.consumerlab.com/images/review/275_image_nm_l-trypophan-and-5-HTP-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[0] = "L-Tryptophan and 5-HTP (5-Hydroxy-L-tryptophan) Supplements Reviewed By Consumerlab.com"; arr5[0] = "Choose the Best L-Tryptophan and 5-HTP Supplements "; arr1[1] = ""; arr2[1] = "/reviews/chromium_supplements/chromium/"; arr3[1] = "https://cdn.consumerlab.com/images/review/274_image_nm_chromium-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[1] = "Chromium Supplements Reviewed by ConsumerLab.com"; arr5[1] = "Chromium Supplements: Find Out Which Are Best"; arr1[2] = ""; arr2[2] = "/reviews/Green_Tea_Review_Matcha_Supplements_and_Bottled/Green_Tea/"; arr3[2] = "https://cdn.consumerlab.com/images/review/271_image_nm_green-tea-bags-and-drinks-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[2] = "Green Tea Supplements, Drinks, and Brewable Teas Review"; arr5[2] = "What's Really In Green Tea? "; arr1[3] = ""; arr2[3] = "/reviews/turmeric-curcumin-supplements-spice-review/turmeric/"; arr3[3] = "https://cdn.consumerlab.com/images/review/250_image_nm_turmeric-supplements-reviewed-by-consumerlab-noseal-2017o.jpg"; arr4[3] = "Turmeric and Curcumin Supplements and Spices Reviewed by ConsumerLab.com"; arr5[3] = "31% of Turmeric/Curcumin Products Fail CL's Tests "; arr1[4] = ""; arr2[4] = "/reviews/cbd-oil-hemp-review/cbd-oil/"; arr3[4] = "https://cdn.consumerlab.com/images/review/267_image_nm_cannabidiol-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[4] = "CBD and Hemp Oils Reviewed by ConsumerLab.com"; arr5[4] = "Learn How Much CBD Is Really in Hemp Oils & Pills"; 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", ""); }