(function($){function stopVideo(){$('.yt_player_iframe').each(function(){this.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*')});}
$('.nav li.menu-item .sub-menu').each(function(){$(this).parent().addClass('dropdown');});$(':button.navbar-toggle').click(function(){$('.collapse.navbar-collapse').toggleClass('in');$('body').toggleClass('overflowHidden');$(":button.navbar-toggle").toggleClass('collapsed');});$(".community-country select").change(function(){console.log($(this).val());if($(this).val()=="US"){$(".community-zip").show();}})
$(".infieldlabel").inFieldLabels();$("a.anchorLink").anchorAnimate()
$('#btn-nutrition').click(function(){$('#divNutrition').toggle();$('#btn-nutrition .down-arrow, #btn-nutrition .up-arrow').toggle()});$('.btn-go-contact').click(function(){$('#formUS').show();});$('.btn_us').click(function(){$('#formUS').show();$('#formInternational').hide();});$('.btn_international').click(function(){$('#formInternational').show();$('#formUS').hide();});$('#btn-faq').click(function(){$('#divFaq').toggle();$('#btn-faq .down-arrow, #btn-faq .up-arrow').toggle()});$('.panel-stun a.btn-popup-image').click(function(){$(this).siblings('.hidden-div').show();stopVideo();});$('.panel-stun a.btn-popup-text').click(function(){$(this).parent().parent().siblings('.hidden-div').show();});$('body#where-to-find a.interest-form-open').on('click',function(){$('#formUS.popup-form').addClass('open');return false;});$('.btn-popup-image, .btn-popup-text').magnificPopup({type:'inline',midClick:true,mainClass:'mfp-fade',});$('#select-Country').change(function(){if($('#select-Country').val()=='1'){$('#divContactUS').show();$('#divContactInternational').hide();}
if($('#select-Country').val()=='2'){$('#divContactUS').hide();$('#divContactInternational').show();}});$('body#where-to-find a.interest-form-open').on('click',function(){$('#formUS.popup-form').addClass('open');return false;});if($('.gform_wrapper div').hasClass('validation_error')){var d=$('.gform_wrapper div.validation_error').parent().parent().parent().parent();setTimeout(function(){d.removeClass('hidden-div');},1500);}
if($('body').hasClass('home')||$('body').is('#food-service'))
{var revSliderRef;if($('body').hasClass('home'))
{revSliderRef="revapi40";}
if($('body').is('#food-service'))
{revSliderRef="revapi41";}
$('#beyond-hero_wrapper').prepend('<div id="beyond-hero-nav-prev" class="revolution-nav prev"><div class="text noselect">PREV</div><div class="bar"></div></div>');$('#beyond-hero_wrapper').prepend('<div id="beyond-hero-nav-next" class="revolution-nav next"><div class="text noselect">NEXT</div><div class="bar"></div></div>');$('#beyond-hero-nav-prev').click(function()
{window[revSliderRef].revprev();});$('#beyond-hero-nav-next').click(function()
{window[revSliderRef].revnext();});}
$('body').is('#the-feed')
{$(".btn-feed-more").click(function(){$(".feed-sub-nav").addClass('shown');});$(".sub-link").click(function(){$(".feed-sub-nav").removeClass('shown');$(".sub-link").removeClass('selected');$(this).addClass('selected');});$(".main-link").click(function(){$(".feed-sub-nav").removeClass('shown');$(".sub-link").removeClass('selected');});}
if($('body').is('#beyondday'))
{'use strict';var cCanvas=document.getElementById('confetti-overlay');var gl=cCanvas.getContext('webgl');var vertexShader=gl.createShader(gl.VERTEX_SHADER);gl.shaderSource(vertexShader,`
		precision lowp float;

		attribute vec2 a_position; // Flat square on XY plane
		attribute float a_startAngle;
		attribute float a_angularVelocity;
		attribute float a_rotationAxisAngle;
		attribute float a_particleDistance;
		attribute float a_particleAngle;
		attribute float a_particleY;
		attribute vec3 a_particleColor;
		uniform float u_time; // Global state

		varying vec2 v_position;
		varying vec3 v_color;
		varying float v_overlight;

		void main() {
		float angle = a_startAngle + a_angularVelocity * u_time;
		float vertPosition = 1.1 - mod(u_time * .5 + a_particleY, 2.2);
		float viewAngle = a_particleAngle + mod(u_time * .1, 6.28);

		mat4 vMatrix = mat4(
		1.3, 0.0, 0.0, 0.0,
		0.0, 1.3, 0.0, 0.0,
		0.0, 0.0, 1.0, 1.0,
		0.0, 0.0, 0.0, 1.0
		);

		mat4 shiftMatrix = mat4(
		1.0, 0.0, 0.0, 0.0,
		0.0, 1.0, 0.0, 0.0,
		0.0, 0.0, 1.0, 0.0,
		a_particleDistance * sin(viewAngle), vertPosition, a_particleDistance * cos(viewAngle), 1.0
		);

		mat4 pMatrix = mat4(
		cos(a_rotationAxisAngle), sin(a_rotationAxisAngle), 0.0, 0.0,
		-sin(a_rotationAxisAngle), cos(a_rotationAxisAngle), 0.0, 0.0,
		0.0, 0.0, 1.0, 0.0,
		0.0, 0.0, 0.0, 1.0
		) * mat4(
		1.0, 0.0, 0.0, 0.0,
		0.0, cos(angle), sin(angle), 0.0,
		0.0, -sin(angle), cos(angle), 0.0,
		0.0, 0.0, 0.0, 1.0
		);

		gl_Position = shiftMatrix * pMatrix * vec4(a_position * 0.03, 0.0, 1.0);
		vec4 normal = vec4(0.0, 0.0, 1.0, 0.0);
		vec4 transformedNormal = normalize(pMatrix * normal);

		float dotNormal = abs(dot(normal.xyz, transformedNormal.xyz));
		float regularLighting = dotNormal / 2.0 + 0.5;
		float glanceLighting = smoothstep(0.92, 0.98, dotNormal);

		v_color = a_particleColor;

		v_position = a_position;
		v_overlight = 0.9 + glanceLighting * 0.1;
		}
		`);gl.compileShader(vertexShader);var fragmentShader=gl.createShader(gl.FRAGMENT_SHADER);gl.shaderSource(fragmentShader,`
		precision lowp float;
		varying vec2 v_position;
		varying vec3 v_color;
		varying float v_overlight;

		void main() {
		  gl_FragColor = vec4(v_color,1.0);
		  //vec4(v_color, 1.0 - smoothstep(0.9, v_overlight, length(v_position)));
		}
		`);gl.compileShader(fragmentShader);var shaderProgram=gl.createProgram();gl.attachShader(shaderProgram,vertexShader);gl.attachShader(shaderProgram,fragmentShader);gl.linkProgram(shaderProgram);gl.useProgram(shaderProgram);gl.bindBuffer(gl.ARRAY_BUFFER,gl.createBuffer());var colors=[{name:'teal',data:[33,187,185]},{name:'orange',data:[229,86,46]},{name:'green',data:[116,192,83]},{name:'yellow',data:[254,202,20]},{name:'purple',data:[133,73,147]},];var STRIDE=11;var attrs=[{name:'a_position',length:2,offset:0},{name:'a_startAngle',length:1,offset:2},{name:'a_angularVelocity',length:1,offset:3},{name:'a_rotationAxisAngle',length:1,offset:4},{name:'a_particleDistance',length:1,offset:5},{name:'a_particleAngle',length:1,offset:6},{name:'a_particleY',length:1,offset:7},{name:'a_particleColor',length:3,offset:8},];for(var i=0;i<attrs.length;i++){var name=attrs[i].name;var length=attrs[i].length;var offset=attrs[i].offset;var attribLocation=gl.getAttribLocation(shaderProgram,name);gl.vertexAttribPointer(attribLocation,length,gl.FLOAT,false,STRIDE*4,offset*4);gl.enableVertexAttribArray(attribLocation);}
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER,gl.createBuffer());var NUM_PARTICLES=50;var NUM_VERTICES=4;var NUM_INDICES=6;var vertices=new Float32Array(NUM_PARTICLES*STRIDE*NUM_VERTICES);var indices=new Uint16Array(NUM_PARTICLES*NUM_INDICES);for(var i=0;i<NUM_PARTICLES;i++){var axisAngle=Math.random()*Math.PI*2;var startAngle=Math.random()*Math.PI*2
var groupPtr=i*STRIDE*NUM_VERTICES;var color=colors[Math.floor(Math.random()*Math.floor(colors.length))];var particleDistance=Math.sqrt(Math.random());var particleAngle=Math.random()*Math.PI*2;var particleY=Math.random()*2.2;var angularVelocity=Math.random()*2+1;for(var j=0;j<4;j++){var vertexPtr=groupPtr+j*STRIDE;vertices[vertexPtr+2]=startAngle;vertices[vertexPtr+3]=angularVelocity;vertices[vertexPtr+4]=axisAngle;vertices[vertexPtr+5]=particleDistance;vertices[vertexPtr+6]=particleAngle;vertices[vertexPtr+7]=particleY;vertices[vertexPtr+8]=color.data[0]/255;vertices[vertexPtr+9]=color.data[1]/255;vertices[vertexPtr+10]=color.data[2]/255;}
vertices[groupPtr]=vertices[groupPtr+STRIDE*2]=-1;vertices[groupPtr+STRIDE]=vertices[groupPtr+STRIDE*3]=+1;vertices[groupPtr+1]=vertices[groupPtr+STRIDE+1]=-1;vertices[groupPtr+STRIDE*2+1]=vertices[groupPtr+STRIDE*3+1]=+1;var indicesPtr=i*NUM_INDICES;var vertexPtr=i*NUM_VERTICES;indices[indicesPtr]=vertexPtr;indices[indicesPtr+4]=indices[indicesPtr+1]=vertexPtr+1;indices[indicesPtr+3]=indices[indicesPtr+2]=vertexPtr+2;indices[indicesPtr+5]=vertexPtr+3;}
gl.bufferData(gl.ARRAY_BUFFER,vertices,gl.STATIC_DRAW);gl.bufferData(gl.ELEMENT_ARRAY_BUFFER,indices,gl.STATIC_DRAW);var timeUniformLocation=gl.getUniformLocation(shaderProgram,'u_time');var startTime=(window.performance||Date).now();gl.clearColor(0,0,0,0);gl.enable(gl.BLEND);gl.viewport(0,0,cCanvas.width,cCanvas.height);(function frame(){gl.uniform1f(timeUniformLocation,((window.performance||Date).now()-startTime)/1000);gl.clear(gl.COLOR_BUFFER_BIT);gl.drawElements(gl.TRIANGLES,NUM_INDICES*NUM_PARTICLES,gl.UNSIGNED_SHORT,0);requestAnimationFrame(frame);})()}
var popupConfettiCanvas=document.getElementById('popup-confetti-overlay');if(popupConfettiCanvas!==null)
{var popupConfettiAnimatorID;'use strict';var gl_popup=popupConfettiCanvas.getContext('webgl');var vertexShader_popup=gl_popup.createShader(gl_popup.VERTEX_SHADER);gl_popup.shaderSource(vertexShader_popup,`
		precision lowp float;

		attribute vec2 a_position; // Flat square on XY plane
		attribute float a_startAngle;
		attribute float a_angularVelocity;
		attribute float a_rotationAxisAngle;
		attribute float a_particleDistance;
		attribute float a_particleAngle;
		attribute float a_particleY;
		attribute vec3 a_particleColor;
		uniform float u_time; // Global state

		varying vec2 v_position;
		varying vec3 v_color;
		varying float v_overlight;

		void main() {
		float angle = a_startAngle + a_angularVelocity * u_time;
		float vertPosition = 1.1 - mod(u_time * .5 + a_particleY, 2.2);
		float viewAngle = a_particleAngle + mod(u_time * .1, 6.28);

		mat4 vMatrix = mat4(
		1.3, 0.0, 0.0, 0.0,
		0.0, 1.3, 0.0, 0.0,
		0.0, 0.0, 1.0, 1.0,
		0.0, 0.0, 0.0, 1.0
		);

		mat4 shiftMatrix = mat4(
		1.0, 0.0, 0.0, 0.0,
		0.0, 1.0, 0.0, 0.0,
		0.0, 0.0, 1.0, 0.0,
		a_particleDistance * sin(viewAngle), vertPosition, a_particleDistance * cos(viewAngle), 1.0
		);

		mat4 pMatrix = mat4(
		cos(a_rotationAxisAngle), sin(a_rotationAxisAngle), 0.0, 0.0,
		-sin(a_rotationAxisAngle), cos(a_rotationAxisAngle), 0.0, 0.0,
		0.0, 0.0, 1.0, 0.0,
		0.0, 0.0, 0.0, 1.0
		) * mat4(
		1.0, 0.0, 0.0, 0.0,
		0.0, cos(angle), sin(angle), 0.0,
		0.0, -sin(angle), cos(angle), 0.0,
		0.0, 0.0, 0.0, 1.0
		);

		gl_Position = shiftMatrix * pMatrix * vec4(a_position * 0.03, 0.0, 1.0);
		vec4 normal = vec4(0.0, 0.0, 1.0, 0.0);
		vec4 transformedNormal = normalize(pMatrix * normal);

		float dotNormal = abs(dot(normal.xyz, transformedNormal.xyz));
		float regularLighting = dotNormal / 2.0 + 0.5;
		float glanceLighting = smoothstep(0.92, 0.98, dotNormal);

		v_color = a_particleColor;

		v_position = a_position;
		v_overlight = 0.9 + glanceLighting * 0.1;
		}
		`);gl_popup.compileShader(vertexShader_popup);var fragmentShader_popup=gl_popup.createShader(gl_popup.FRAGMENT_SHADER);gl_popup.shaderSource(fragmentShader_popup,`
		precision lowp float;
		varying vec2 v_position;
		varying vec3 v_color;
		varying float v_overlight;

		void main() {
		  gl_FragColor = vec4(v_color,1.0);
		  //vec4(v_color, 1.0 - smoothstep(0.9, v_overlight, length(v_position)));
		}
		`);gl_popup.compileShader(fragmentShader_popup);var shaderProgram_popup=gl_popup.createProgram();gl_popup.attachShader(shaderProgram_popup,vertexShader_popup);gl_popup.attachShader(shaderProgram_popup,fragmentShader_popup);gl_popup.linkProgram(shaderProgram_popup);gl_popup.useProgram(shaderProgram_popup);gl_popup.bindBuffer(gl_popup.ARRAY_BUFFER,gl_popup.createBuffer());var colors_popup=[{name:'teal',data:[33,187,185]},{name:'orange',data:[229,86,46]},{name:'green',data:[116,192,83]},{name:'yellow',data:[254,202,20]},{name:'purple',data:[133,73,147]},];var STRIDE=11;var attrs_popup=[{name:'a_position',length:2,offset:0},{name:'a_startAngle',length:1,offset:2},{name:'a_angularVelocity',length:1,offset:3},{name:'a_rotationAxisAngle',length:1,offset:4},{name:'a_particleDistance',length:1,offset:5},{name:'a_particleAngle',length:1,offset:6},{name:'a_particleY',length:1,offset:7},{name:'a_particleColor',length:3,offset:8},];for(var i=0;i<attrs_popup.length;i++){var name=attrs_popup[i].name;var length=attrs_popup[i].length;var offset=attrs_popup[i].offset;var attribLocation=gl_popup.getAttribLocation(shaderProgram_popup,name);gl_popup.vertexAttribPointer(attribLocation,length,gl_popup.FLOAT,false,STRIDE*4,offset*4);gl_popup.enableVertexAttribArray(attribLocation);}
gl_popup.bindBuffer(gl_popup.ELEMENT_ARRAY_BUFFER,gl_popup.createBuffer());var NUM_PARTICLES=50;var NUM_VERTICES=4;var NUM_INDICES=6;var vertices_popup=new Float32Array(NUM_PARTICLES*STRIDE*NUM_VERTICES);var indices_popup=new Uint16Array(NUM_PARTICLES*NUM_INDICES);for(var i=0;i<NUM_PARTICLES;i++){var axisAngle=Math.random()*Math.PI*2;var startAngle=Math.random()*Math.PI*2
var groupPtr=i*STRIDE*NUM_VERTICES;var color=colors_popup[Math.floor(Math.random()*Math.floor(colors_popup.length))];var particleDistance=Math.sqrt(Math.random());var particleAngle=Math.random()*Math.PI*2;var particleY=Math.random()*2.2;var angularVelocity=Math.random()*2+1;for(var j=0;j<4;j++){var vertexPtr=groupPtr+j*STRIDE;vertices_popup[vertexPtr+2]=startAngle;vertices_popup[vertexPtr+3]=angularVelocity;vertices_popup[vertexPtr+4]=axisAngle;vertices_popup[vertexPtr+5]=particleDistance;vertices_popup[vertexPtr+6]=particleAngle;vertices_popup[vertexPtr+7]=particleY;vertices_popup[vertexPtr+8]=color.data[0]/255;vertices_popup[vertexPtr+9]=color.data[1]/255;vertices_popup[vertexPtr+10]=color.data[2]/255;}
vertices_popup[groupPtr]=vertices_popup[groupPtr+STRIDE*2]=-1;vertices_popup[groupPtr+STRIDE]=vertices_popup[groupPtr+STRIDE*3]=+1;vertices_popup[groupPtr+1]=vertices_popup[groupPtr+STRIDE+1]=-1;vertices_popup[groupPtr+STRIDE*2+1]=vertices_popup[groupPtr+STRIDE*3+1]=+1;var indicesPtr=i*NUM_INDICES;var vertexPtr=i*NUM_VERTICES;indices_popup[indicesPtr]=vertexPtr;indices_popup[indicesPtr+4]=indices_popup[indicesPtr+1]=vertexPtr+1;indices_popup[indicesPtr+3]=indices_popup[indicesPtr+2]=vertexPtr+2;indices_popup[indicesPtr+5]=vertexPtr+3;}
gl_popup.bufferData(gl_popup.ARRAY_BUFFER,vertices_popup,gl_popup.STATIC_DRAW);gl_popup.bufferData(gl_popup.ELEMENT_ARRAY_BUFFER,indices_popup,gl_popup.STATIC_DRAW);var timeUniformLocation_popup=gl_popup.getUniformLocation(shaderProgram_popup,'u_time');var startTime_popup=(window.performance||Date).now();gl_popup.clearColor(0,0,0,0);gl_popup.enable(gl_popup.BLEND);gl_popup.viewport(0,0,popupConfettiCanvas.width,popupConfettiCanvas.height);function popupConfettiAnimationLoop()
{gl_popup.uniform1f(timeUniformLocation_popup,((window.performance||Date).now()-startTime_popup)/1000);gl_popup.clear(gl_popup.COLOR_BUFFER_BIT);gl_popup.drawElements(gl_popup.TRIANGLES,NUM_INDICES*NUM_PARTICLES,gl_popup.UNSIGNED_SHORT,0);popupConfettiAnimatorID=requestAnimationFrame(popupConfettiAnimationLoop);}}
function updatePopupConfetti()
{if(popupConfettiCanvas!==null)
{var containerHeight=$('#signup-popup').outerHeight();var containerWidth=$('#signup-popup').outerWidth();if(containerHeight>containerWidth)
{popupConfettiCanvas.style.width=containerHeight+'px';popupConfettiCanvas.style.left=-((containerHeight-containerWidth)/2).toString()+'px';}
else
{popupConfettiCanvas.style.width=containerWidth+'px';popupConfettiCanvas.style.left='0px';}}}
function updateLandingConfetti()
{if($('body').is('#beyondday'))
{if(cCanvas!==null)
{var containerHeight=$('.hero').outerHeight();var containerWidth=$('.hero').outerWidth();if(containerHeight>containerWidth)
{cCanvas.style.width=containerHeight+'px';cCanvas.style.left=-((containerHeight-containerWidth)/2).toString()+'px';}
else
{cCanvas.style.width=containerWidth+'px';cCanvas.style.left='0px';}}}}
function showOffer(index)
{var currentOfferEl=$(".offers-wrapper [data-offer-index='"+index+"']");$(".offers-wrapper").children().css("display","none");currentOfferEl.css("display","block");}
function initOffers()
{if($('body').is('#beyondday'))
{$(".offer-tab").click(function(){showOffer($(this).attr('data-offer-index'));});showOffer(0);$('.offers-tabs-wrapper').css("visibility","visible");$('.offers-wrapper').css("visibility","visible");}}
function showLegal(index)
{var currentLegalEl=$("#offer-legal-popup .content-wrapper [data-offer-index='"+index+"']");console.log(currentLegalEl);$("#offer-legal-popup .legal-wrapper").css("visibility","hidden");currentLegalEl.css("visibility","visible");$('#offer-legal-popup').css("display","block");}
function initLegal()
{if($('body').is('#beyondday'))
{$(".offer-details-url").click(function(){showLegal($(this).attr('data-offer-index'));});$("#offer-legal-popup-close").click(function(){$('#offer-legal-popup').css("display","none");});$('#offer-legal-popup .legal-wrapper').css("visibility","hidden");}}
function initCoupons()
{if($('body').is('#beyondday'))
{$('.coupon-container .heading-wrapper').fitText(1.8);$('.coupon-wrapper .links-wrapper').fitText(2.5);}}
function updateGrayscale()
{if($(window).width()<768)
{$('.grayscale').addClass('grayscale-off');}
else
{$('.grayscale').removeClass('grayscale-off');}}
$(document).ready(function(){updateGrayscale();initOffers();initLegal();setTimeout(initCoupons,250);updateLandingConfetti();updatePopupConfetti();});$(window).resize(function(){updateGrayscale();updateLandingConfetti();updatePopupConfetti();});$('.community-wrapper select.country').on('change',function(){var mc=$('.community-wrapper input.mailcode'),c=$(this).val();if(c=='United States of America'){mc.attr('name','ZIPCODE');mc.attr('id','mce-ZIPCODE');}else{mc.attr('name','POSTAL');mc.attr('id','mce-POSTAL');}});function showNewsletterPopup()
{$('.popup-Email').removeClass("hidden-div");if(popupConfettiCanvas!==null)
{updatePopupConfetti();popupConfettiAnimatorID=requestAnimationFrame(popupConfettiAnimationLoop);}
var date=new Date();localStorage.NewsletterTimestamp=date.getTime();}
function hideNewsletterPopup()
{$('.popup-Email').addClass("hidden-div");if(popupConfettiCanvas!==null)
{cancelAnimationFrame(popupConfettiAnimatorID);}}
if(localStorage.NewsletterTimestamp)
{var currentDate=new Date();var savedDate=new Date(parseInt(localStorage.NewsletterTimestamp));if(currentDate.getMonth()!=savedDate.getMonth())
{setTimeout(showNewsletterPopup,15000);}}
else
{setTimeout(showNewsletterPopup,15000);}
$("#signup-popup-close").click(function(){hideNewsletterPopup();});if($('body').hasClass('home'))
{$('.homepage-product-carousel').slick({slidesToShow:4,slidesToScroll:1,infinite:true,prevArrow:$('#product-carousel-nav-prev'),nextArrow:$('#product-carousel-nav-next'),arrows:true,draggable:false,autoplay:true,autoplaySpeed:4000,speed:1000,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:1,arrows:true,draggable:false}},{breakpoint:778,settings:{slidesToShow:2,slidesToScroll:1,arrows:false,draggable:true}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,draggable:true}}]});$('.homepage-recipe-carousel').slick({slidesToShow:2,slidesToScroll:1,infinite:true,prevArrow:$('#recipe-carousel-nav-prev'),nextArrow:$('#recipe-carousel-nav-next'),arrows:true,draggable:false,autoplay:true,autoplaySpeed:4000,speed:1000,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1,arrows:true,draggable:false}},{breakpoint:778,settings:{slidesToShow:1,slidesToScroll:1,arrows:false,draggable:true}}]});$('.homepage-product-carousel .cta').css("visibility","hidden");$('.homepage-product-carousel .slick-slide').hover(function(){$(this).find(".cta").css("visibility","visible");},function(){$(this).find(".cta").css("visibility","hidden");});}
$('a.print-me').on('click',function(){window.print();return false;});$('.info-switch .button').off('click');$('.info-switch .button').on('click',function(){var th=$(this),i=th.attr('data-id');$('.product-single-thumb img').removeClass('active')
$('.nutrition-content .ingred').removeClass('active')
$('.nutrition-facts .nutrition-list').removeClass('active');$('.info-switch .title').removeClass('active');$('.info-switch .button').removeClass('active');th.addClass('active');if(th.hasClass('left'))
{$('.info-switch .title.left').addClass('active');}
else
{$('.info-switch .title.right').addClass('active');}
$('#nutrition-facts-'+i+'.nutrition-list').addClass('active')
$('#description-'+i+'.ingred').addClass('active');$('#product-image-'+i).addClass('active');});})(jQuery);(function($){})(jQuery);