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/multivitamin_review_comparisons/multivitamins/"; arr3[0] = "https://cdn.consumerlab.com/images/review/262_image_nm_multivitamins-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[0] = "Multivitamin/Multimineral Supplements Reviewed by ConsumerLab.com"; arr5[0] = "Problems with 46% of Multivitamins - Particularly Gummies"; arr1[1] = ""; arr2[1] = "/reviews/melatonin-supplements/melatonin/"; arr3[1] = "https://cdn.consumerlab.com/images/review/melatonin-supplements-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[1] = "Melatonin Supplements Reviewed by ConsumerLab.com"; arr5[1] = "The Best Melatonin Supplements and How to Use Them"; arr1[2] = ""; arr2[2] = "/reviews/turmeric-curcumin-supplements-spice-review/turmeric/"; arr3[2] = "https://cdn.consumerlab.com/images/review/turmeric-supplements-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[2] = "Turmeric and Curcumin Supplements and Spices Reviewed by ConsumerLab.com"; arr5[2] = "31% of Turmeric/Curcumin Products Fail CL's Tests "; arr1[3] = ""; arr2[3] = "/reviews/magnesium-supplement-review/magnesium/"; arr3[3] = "https://cdn.consumerlab.com/images/review/magnesium-supplements-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[3] = "Magnesium Supplements Reviewed By ConsumerLab.com"; arr5[3] = "Best and Worst Quality Magnesium Supplements Identified"; arr1[4] = ""; arr2[4] = "/reviews/Black_Currant_Borage_Evening_Primrose_and_Flaxseed_Oils_Sources_of_ALA_and_GLA_Omega-3_and_-6_Fatty_Acids/flaxseed/"; arr3[4] = "https://cdn.consumerlab.com/images/review/263_image_nm_ala-gla-supplements-tested-by-consumerlab-seal-noseal-2017.jpg"; arr4[4] = "Flaxseed Oil, Evening Primrose Oil, Borage Oil, Hemp Oil and Black Currant Oil Supplements Reviewed by ConsumerLab.com"; arr5[4] = "Is Your Oil Supplement Fresh? Flaxseed, Hemp and More"; arr1[5] = ""; arr2[5] = "/reviews/vitamin_D_supplements_review/Vitamin_D/"; arr3[5] = "https://cdn.consumerlab.com/images/review/vitamin-d-supplements-reviewed-by-consumerlab-noseal-2017.jpg"; arr4[5] = "Vitamin D Supplements Reviewed By ConsumerLab.com"; arr5[5] = "Be Sure You're Avoiding Problems with Vitamin D"; 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", ""); }