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/lycopene_supplements_review/lycopene/"; arr3[0] = "https://cdn.consumerlab.com/images/review/284_image_nm_lycopene-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[0] = "Lycopene Supplements Reviewed by ConsumerLab.com"; arr5[0] = "Not All Lycopene Pills Deliver -- See How They Vary"; arr1[1] = ""; arr2[1] = "/reviews/Protein_Powders_Shakes_Drinks_Sports/NutritionDrinks/"; arr3[1] = "https://cdn.consumerlab.com/images/review/283_image_nm_protein-powders-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[1] = "Protein, Meal, and Diet Powders, Shakes, and Drinks Tested by ConsumerLab.com"; arr5[1] = "See Which Protein Powders and Drinks Rated Best"; arr1[2] = ""; arr2[2] = "/reviews/fish_oil_supplements_review/omega3/"; arr3[2] = "https://cdn.consumerlab.com/images/review/281_image_nm_omega3-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[2] = "Fish Oil and Other Marine Oil Supplements Reviewed by ConsumerLab.com"; arr5[2] = "Best Fish & Marine Oils - Similar to Omega-3 Prescription Drugs"; arr1[3] = ""; arr2[3] = "/reviews/cbd-oil-hemp-review/cbd-oil/"; arr3[3] = "https://cdn.consumerlab.com/images/review/267_image_nm_cannabidiol-supplements-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[3] = "CBD and Hemp Oils Reviewed by ConsumerLab.com"; arr5[3] = "Learn How Much CBD Is Really in CBD Oils & Hemp Extracts"; arr1[4] = ""; arr2[4] = "/reviews/turmeric-curcumin-supplements-spice-review/turmeric/"; arr3[4] = "https://cdn.consumerlab.com/images/review/250_image_nm_turmeric-supplements-reviewed-by-consumerlab-noseal-2017o.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/canned-tuna-and-salmon-review/canned-tuna-and-salmon/"; arr3[5] = "https://cdn.consumerlab.com/images/review/277_image_nm_canned-tuna-and-salmon-reviewed-by-consumerlab-noseal-2018.jpg"; arr4[5] = "Canned tuna and salmon reviewed by ConsumerLab.com"; arr5[5] = "Find the Best Tuna and Salmon and Avoid Mercury"; 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", ""); }