$(document).ready(function(){function d(a,c,d){var e=c+":"+d;if(b&&!(b=="undefined")){var f=b.split("[]");var g=new RegExp(c+":[01]","i");if(b.match(g)){b=b.replace(g,e)}else{b=b+"[]"+e}}else{b=e}return $.setCookie(a,b)}var a="toggleme";var b=$.getCookie(a);$(".tglWchild").addClass("active");if(b&&!(b=="undefined")){var e=$(".tglWchild").length;var f=$(".tglWchild").parent().next();for(c=0;c<=e;c++){var g=new RegExp("main"+c+":1","i");if(b.match(g)){$(f).eq(c).css({display:"none"});$(f).eq(c).prev().children(".tglWchild").removeClass("active").addClass("inactive");$(f).eq(c).prev().removeClass("categoryStrip").addClass("CategoryStripCollasped")}}}$(".tglWchild.active").toggle(function(){$(this).parent().next().slideUp(500);$(this).removeClass("active").addClass("inactive");$(this).parent().removeClass("categoryStrip").addClass("CategoryStripCollasped");var b=$(".tglWchild").index(this);var c="main"+b;var e="1";d(a,c,e)},function(){$(this).parent().next().slideDown(500);$(this).removeClass("inactive").addClass("active");$(this).parent().removeClass("CategoryStripCollasped").addClass("categoryStrip");var b=$(".tglWchild").index(this);var c="main"+b;var e="0";d(a,c,e)});$(".tglWchild.inactive").toggle(function(){$(this).parent().next().slideDown(500);$(this).removeClass("inactive").addClass("active");$(this).parent().removeClass("CategoryStripCollasped").addClass("categoryStrip");var b=$(".tglWchild").index(this);var c="main"+b;var e="0";d(a,c,e)},function(){$(this).parent().next().slideUp(500);$(this).removeClass("active").addClass("inactive");$(this).parent().removeClass("categoryStrip").addClass("CategoryStripCollasped");var b=$(".tglWchild").index(this);var c="main"+b;var e="1";d(a,c,e)});$(".tglNOchild").addClass("active");if(b&&!(b=="undefined")){var e=$("div.tglNOchild").length;var h=$(".tglNOchild").parent().next();for(c=0;c<=e;c++){var g=new RegExp("mix"+c+":1","i");if(b.match(g)){$(h).eq(c).css({display:"none"});$(h).eq(c).prev("div").children(".tglNOchild").removeClass("active").addClass("inactive");$(h).eq(c).prev("div").removeClass("categoryStrip").addClass("CategoryStripCollasped")}}}$(".tglNOchild.active").toggle(function(){$(this).parent().next().slideUp(500);$(this).removeClass("active").addClass("inactive");$(this).parent().removeClass("categoryStrip").addClass("CategoryStripCollasped");var b=$(".tglNOchild").index(this);var c="mix"+b;var e="1";d(a,c,e)},function(){$(this).parent().next().slideDown(500);$(this).removeClass("inactive").addClass("active");$(this).parent().removeClass("CategoryStripCollasped").addClass("categoryStrip");var b=$(".tglNOchild").index(this);var c="mix"+b;var e="0";d(a,c,e)});$(".tglNOchild.inactive").toggle(function(){$(this).parent().next().slideDown(500);$(this).removeClass("inactive").addClass("active");$(this).parent().removeClass("CategoryStripCollasped").addClass("categoryStrip");var b=$(".tglNOchild").index(this);var c="mix"+b;var e="0";d(a,c,e)},function(){$(this).parent().next().slideUp(500);$(this).removeClass("active").addClass("inactive");$(this).parent().removeClass("categoryStrip").addClass("CategoryStripCollasped");var b=$(".tglNOchild").index(this);var c="mix"+b;var e="1";d(a,c,e)})})
