/* File Name: MobileMenu Author: Matt Kersley Author URI: https://github.com/mattkersley/Responsive-Menu Licence: This script is 100% free, no restrictions */ (function (a) { function f(a) { document.location.href = a } function g() { return a(".mnav").length ? true : false } function h(b) { var c = true; b.each(function () { if (!a(this).is("ul") && !a(this).is("ol")) { c = false } }); return c } function i() { return a(window).width() < b.switchWidth } function j(b) { return a.trim(b.clone().children("ul, ol").remove().end().text()) } function k(b) { return a.inArray(b, e) === -1 ? true : false } function l(b) { b.find(" > li").each(function () { var c = a(this), d = c.find("a").attr("href"), f = function () { if (c.parent().parent().is("li")) { return c.parent().parent().find("a").attr("href") } else { return null } }; if (c.find(" ul, ol").length) { l(c.find("> ul, > ol")) } if (!c.find(" > ul li, > ol li").length) { c.find("ul, ol").remove() } if (!k(f(), e) && k(d, e)) { c.appendTo(b.closest("ul#mmnav").find("li:has(a[href=" + f() + "]):first ul")) } else if (k(d)) { e.push(d) } else { c.remove() } }) } function m() { var b = a('