diff --git a/index.html b/index.html index d58db0f..d9f7669 100644 --- a/index.html +++ b/index.html @@ -259,8 +259,9 @@ - - + + + diff --git a/vendor/jquery/jquery-migrate.js b/vendor/jquery/jquery-migrate.js new file mode 100644 index 0000000..2e84fcb --- /dev/null +++ b/vendor/jquery/jquery-migrate.js @@ -0,0 +1,2 @@ +/*! jQuery Migrate v1.4.1 | (c) jQuery Foundation and other contributors | jquery.org/license */ +"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g -1, + idevice: /ipad|iphone/i.test(navigator.userAgent), + detectie6: function() { + var e; + return (e = /MSIE (\d+)/.exec(navigator.userAgent)) && e[1] < 7 + }(), + detectie9: function() { + var e; + return (e = /MSIE (\d+)/.exec(navigator.userAgent)) && e[1] > 8 + }(), + ie9shadow: function() {}, + css3support: typeof document.documentElement.style.boxShadow === "string" || !document.all && document.querySelector, + prevobjs: [], + menus: null, + executelink: function(e, t, n) { + var r = t.length, + i = n.target; + while (--r > -1) { + if (t[r] === this) { + t.splice(r, 1); + if (i.href !== ddsmoothmenu.emptyhash && i.href && e(i).is("a") && !e(i).children("span." + ddsmoothmenu.arrowimages.down[0] + ", span." + ddsmoothmenu.arrowimages.right[0]).length) { + if (i.target && i.target !== "_self") { + window.open(i.href, i.target) + } else { + window.location.href = i.href + } + n.stopPropagation() + } + } + } + }, + repositionv: function(e, t, n, r, i, s, o) { + o = o || 0; + var u = 0, + a = r + i; + e.css({ + top: n, + display: "block" + }); + while (e.offset().top < i) { + e.css({ + top: ++n + }); + ++u + } + if (!u && t.offset().top + t.outerHeight() < a && e.data("height") + e.offset().top > a) { + e.css({ + top: i - t.parents("ul").last().offset().top - t.position().top + }) + } + s === "toggle" && e.css({ + display: "none" + }); + if (n !== o) { + e.addClass("repositionedv") + } + return [u, n] + }, + updateprev: function(e, t, n) { + var r = t.length, + i, s = n.parents().add(this); + while (--r > -1) { + if (s.index(i = t[r]) < 0) { + e(i).trigger("click", [1]); + t.splice(r, 1) + } + } + t.push(this) + }, + subulpreventemptyclose: function(e) { + var t = e.target; + if (t.href === ddsmoothmenu.emptyhash && $(t).parent("li").find("ul").length < 1) { + e.preventDefault(); + e.stopPropagation() + } + }, + getajaxmenu: function(e, t, n) { + var r = e("#" + t.contentsource[0]); + r.html("Loading Menu..."); + e.ajax({ + url: t.contentsource[1], + async: true, + error: function(e) { + r.html("Error fetching content. Server Response: " + e.responseText) + }, + success: function(i) { + r.html(i); + !!!n && ddsmoothmenu.buildmenu(e, t) + } + }) + }, + closeall: function(e) { + var t = ddsmoothmenu, + n; + if (!t.globaltrackopen) { + return + } + if (e.type === "mouseleave" || (e.type === "click" || e.type === "touchstart") && t.menus.index(e.target) < 0) { + n = t.prevobjs.length; + while (--n > -1) { + $(t.prevobjs[n]).trigger("click"); + t.prevobjs.splice(n, 1) + } + } + }, + emptyhash: $('').get(0).href, + buildmenu: function(e, t) { + var n = ddsmoothmenu; + n.globaltrackopen = n.closeonnonmenuclick || n.closeonmouseout; + var r = 0; + var i = n.globaltrackopen ? n.prevobjs : []; + var s = e("#" + t.mainmenuid).removeClass("ddsmoothmenu ddsmoothmenu-v").addClass(t.classname || "ddsmoothmenu"); + t.repositionv = t.repositionv !== false; + var o = s.find(">ul"); + var u = n.detecttouch ? "toggle" : t.method === "toggle" ? "toggle" : "hover"; + var a = o.find(">li>ul").parent(); + var f = t.orientation != "v" ? "down" : "right", + l = e(document.body); + o.click(function(e) { + e.target.href === n.emptyhash && e.preventDefault() + }); + if (u === "toggle") { + if (n.globaltrackopen) { + n.menus = n.menus ? n.menus.add(o.add(o.find("*"))) : o.add(o.find("*")) + } + if (n.closeonnonmenuclick) { + if (f === "down") { + s.click(function(e) { + e.stopPropagation() + }) + } + e(document).unbind("click.smoothmenu").bind("click.smoothmenu", n.closeall); + if (n.idevice) { + document.removeEventListener("touchstart", n.closeall, false); + document.addEventListener("touchstart", n.closeall, false) + } + } else if (t.closeonnonmenuclick) { + if (f === "down") { + s.click(function(e) { + e.stopPropagation() + }) + } + e(document).bind("click." + t.mainmenuid, function(e) { + o.find("li>a.selected").parent().trigger("click") + }); + if (n.idevice) { + document.addEventListener("touchstart", function(e) { + o.find("li>a.selected").parent().trigger("click") + }, false) + } + } + if (n.closeonmouseout) { + var c = f === "down" ? s : o; + c.bind("mouseleave.smoothmenu", n.closeall) + } else if (t.closeonmouseout) { + var c = f === "down" ? s : o; + c.bind("mouseleave.smoothmenu", function() { + o.find("li>a.selected").parent().trigger("click") + }) + } + if (!e('style[title="ddsmoothmenushadowsnone"]').length) { + e("head").append('') + } + var h; + e(window).bind("resize scroll", function() { + clearTimeout(h); + var t = o.find("li>a.selected").parent(), + n = e(".ddshadow").addClass("ddsmoothmenushadowsnone"); + t.eq(0).trigger("click"); + t.trigger("click"); + h = setTimeout(function() { + n.removeClass("ddsmoothmenushadowsnone") + }, 100) + }) + } + a.each(function() { + function p() { + a.removeClass("selected") + } + var s = e(this).css({ + zIndex: (t.zindexvalue || n.zindexvalue) + r-- + }); + var o = s.children("ul:eq(0)").css({ + display: "block" + }).data("timers", {}); + var a = s.children("a:eq(0)").css({ + paddingRight: n.arrowimages[f][2] + }).append(''); + var c = { + w: a.outerWidth(), + h: s.innerHeight(), + subulw: o.outerWidth(), + subulh: o.outerHeight() + }; + var h = f === "down" ? c.h : 0; + o.css({ + top: h + }); + u === "toggle" && o.click(n.subulpreventemptyclose); + s[u](function(r) { + if (!s.data("headers")) { + n.buildsubheaders(e, o.find(">li>ul").parent(), t, u, i); + s.data("headers", true).find(">ul").each(function(t, n) { + var r = e(n); + r.data("height", r.outerHeight()) + }).css({ + display: "none", + visibility: "visible" + }) + } + u === "toggle" && n.updateprev.call(this, e, i, s); + clearTimeout(o.data("timers").hidetimer); + a.addClass("selected"); + o.data("timers").showtimer = setTimeout(function() { + var r = f === "down" ? 0 : c.w; + var i = r, + p, d, v, m = 0; + r = s.offset().left + r + c.subulw > e(window).width() ? f === "down" ? -c.subulw + c.w : -c.w : r; + i = i !== r; + o.css({ + top: h + }).removeClass("repositionedv"); + if (t.repositionv && a.offset().top + h + o.data("height") > (v = e(window).height()) + (d = e(document).scrollTop())) { + p = (f === "down" ? 0 : a.outerHeight()) - o.data("height"); + m = n.repositionv(o, a, p, v, d, u, h)[0] + } + o.css({ + left: r, + width: c.subulw + }).stop(true, true).animate({ + height: "show", + opacity: "show" + }, n.transition.overtime, function() { + this.style.removeAttribute && this.style.removeAttribute("filter") + }); + if (i) { + o.addClass("repositioned") + } else { + o.removeClass("repositioned") + } + if (t.shadow) { + if (!s.data("$shadow")) { + s.data("$shadow", e("
").addClass("ddshadow toplevelshadow").prependTo(l).css({ + zIndex: s.css("zIndex") + })) + } + n.ie9shadow(s.data("$shadow")); + var g = o.offset(); + var y = g.left; + var b = g.top; + s.data("$shadow").css({ + overflow: "visible", + width: c.subulw, + left: y, + top: b + }).stop(true, true).animate({ + height: c.subulh + }, n.transition.overtime) + } + }, n.showhidedelay.showdelay) + }, function(t, r) { + var a = s.data("$shadow"); + if (u === "hover") { + p() + } else { + n.executelink.call(this, e, i, t) + } + clearTimeout(o.data("timers").showtimer); + o.data("timers").hidetimer = setTimeout(function() { + o.stop(true, true).animate({ + height: "hide", + opacity: "hide" + }, r || n.transition.outtime, function() { + u === "toggle" && p() + }); + if (a) { + if (!n.css3support && n.detectwebkit) { + a.children("div:eq(0)").css({ + opacity: 0 + }) + } + a.stop(true, true).animate({ + height: 0 + }, r || n.transition.outtime, function() { + if (u === "toggle") { + this.style.overflow = "hidden" + } + }) + } + }, n.showhidedelay.hidedelay) + }) + }) + }, + buildsubheaders: function(e, t, n, r, i) { + t.each(function() { + function l() { + a.removeClass("selected") + } + var t = ddsmoothmenu; + var s = e(this).css({ + zIndex: e(this).parent("ul").css("z-index") + }); + var o = s.children("ul:eq(0)").css({ + display: "block" + }).data("timers", {}), + u; + r === "toggle" && o.click(t.subulpreventemptyclose); + var a = s.children("a:eq(0)").append(''); + var f = { + w: a.outerWidth(), + subulw: o.outerWidth(), + subulh: o.outerHeight() + }; + o.css({ + top: 0 + }); + s[r](function(l) { + if (!s.data("headers")) { + t.buildsubheaders(e, o.find(">li>ul").parent(), n, r, i); + s.data("headers", true).find(">ul").each(function(t, n) { + var r = e(n); + r.data("height", r.height()) + }).css({ + display: "none", + visibility: "visible" + }) + } + r === "toggle" && t.updateprev.call(this, e, i, s); + clearTimeout(o.data("timers").hidetimer); + a.addClass("selected"); + o.data("timers").showtimer = setTimeout(function() { + var i = f.w; + var l = i, + c, h, p, d = 0; + i = s.offset().left + i + f.subulw > e(window).width() ? -f.w : i; + l = l !== i; + o.css({ + top: 0 + }).removeClass("repositionedv"); + if (n.repositionv && a.offset().top + o.data("height") > (p = e(window).height()) + (h = e(document).scrollTop())) { + c = a.outerHeight() - o.data("height"); + d = t.repositionv(o, a, c, p, h, r); + c = d[1]; + d = d[0] + } + o.css({ + left: i, + width: f.subulw + }).stop(true, true).animate({ + height: "show", + opacity: "show" + }, t.transition.overtime, function() { + this.style.removeAttribute && this.style.removeAttribute("filter") + }); + if (l) { + o.addClass("repositioned") + } else { + o.removeClass("repositioned") + } + if (n.shadow) { + if (!s.data("$shadow")) { + u = s.parents("li:eq(0)").data("$shadow"); + s.data("$shadow", e("
").addClass("ddshadow").prependTo(u).css({ + zIndex: u.css("z-index") + })) + } + var v = o.offset(); + var m = i; + var g = s.position().top - (c ? o.data("height") - a.outerHeight() - d : 0); + if (t.detectwebkit && !t.css3support) { + s.data("$shadow").css({ + opacity: 1 + }) + } + s.data("$shadow").css({ + overflow: "visible", + width: f.subulw, + left: m, + top: g + }).stop(true, true).animate({ + height: f.subulh + }, t.transition.overtime) + } + }, t.showhidedelay.showdelay) + }, function(n, u) { + var a = s.data("$shadow"); + if (r === "hover") { + l() + } else { + t.executelink.call(this, e, i, n) + } + clearTimeout(o.data("timers").showtimer); + o.data("timers").hidetimer = setTimeout(function() { + o.stop(true, true).animate({ + height: "hide", + opacity: "hide" + }, u || t.transition.outtime, function() { + r === "toggle" && l() + }); + if (a) { + if (!t.css3support && t.detectwebkit) { + a.children("div:eq(0)").css({ + opacity: 0 + }) + } + a.stop(true, true).animate({ + height: 0 + }, u || t.transition.outtime, function() { + if (r === "toggle") { + this.style.overflow = "hidden" + } + }) + } + }, t.showhidedelay.hidedelay) + }) + }) + }, + init: function(e) { + function o() { + if (s) { + return + } + if (typeof e.customtheme == "object" && e.customtheme.length == 2) { + var n = e.orientation == "v" ? t : t + ", " + t; + i.push([n, " ul li a {background:", e.customtheme[0], ";}\n", t, " ul li a:hover {background:", e.customtheme[1], ";}"].join("")) + } + i.push('\n\n"], + s = e.arrowswap ? 4 : 2; + if (e.arrowswap) { + n = ddsmoothmenu.arrowimages.right[1].replace(ddsmoothmenu.overarrowre, ddsmoothmenu.overarrowaddtofilename); + r = ddsmoothmenu.arrowimages.down[1].replace(ddsmoothmenu.overarrowre, ddsmoothmenu.overarrowaddtofilename); + jQuery(new Image).bind("load error", function(n) { + e.rightswap = n.type === "load"; + if (e.rightswap) { + i.push([t, " ul li a:hover .", ddsmoothmenu.arrowimages.right[0], ", ", t, " ul li a.selected .", ddsmoothmenu.arrowimages.right[0], " { background-image: url(", this.src, ");}"].join("")) + }--s; + o() + }).attr("src", n); + jQuery(new Image).bind("load error", function(n) { + e.downswap = n.type === "load"; + if (e.downswap) { + i.push([t, " ul li a:hover .", ddsmoothmenu.arrowimages.down[0], ", ", t, " ul li a.selected .", ddsmoothmenu.arrowimages.down[0], " { background-image: url(", this.src, ");}"].join("")) + }--s; + o() + }).attr("src", r) + } + jQuery(new Image).bind("load error", function(e) { + if (e.type === "load") { + i.push([t + " ul li a .", ddsmoothmenu.arrowimages.right[0], " { background: url(", this.src, ") no-repeat;width:", this.width, "px;height:", this.height, "px;}"].join("")) + }--s; + o() + }).attr("src", ddsmoothmenu.arrowimages.right[1]); + jQuery(new Image).bind("load error", function(e) { + if (e.type === "load") { + i.push([t + " ul li a .", ddsmoothmenu.arrowimages.down[0], " { background: url(", this.src, ") no-repeat;width:", this.width, "px;height:", this.height, "px;}"].join("")) + }--s; + o() + }).attr("src", ddsmoothmenu.arrowimages.down[1]); + e.shadow = this.detectie6 && (e.method === "hover" || e.orientation === "v") ? false : e.shadow || this.shadow; + jQuery(document).ready(function(t) { + if (e.shadow && ddsmoothmenu.css3support) { + t("body").addClass("ddcss3support") + } + if (typeof e.contentsource == "object") { + ddsmoothmenu.getajaxmenu(t, e) + } else { + ddsmoothmenu.buildmenu(t, e) + } + }) + } +}; +if (function(e) { + var t = false; + try { + e('').toggle(function() {}, function() { + t = true + }).trigger("click").trigger("click") + } catch (n) {} + return !t + }(jQuery)) { + (function() { + var e = jQuery.fn.toggle; + jQuery.extend(jQuery.fn, { + toggle: function(t, n) { + if (!jQuery.isFunction(t) || !jQuery.isFunction(n)) { + return e.apply(this, arguments) + } + var r = arguments, + i = t.guid || jQuery.guid++, + s = 0, + o = function(e) { + var n = (jQuery._data(this, "lastToggle" + t.guid) || 0) % s; + jQuery._data(this, "lastToggle" + t.guid, n + 1); + e.preventDefault(); + return r[n].apply(this, arguments) || false + }; + o.guid = i; + while (s < r.length) { + r[s++].guid = i + } + return this.click(o) + } + }) + })() +} +if (ddsmoothmenu.detectie9) { + (function(e) { + function t(e, t) { + return parseInt(e) + t + "px" + } + ddsmoothmenu.ie9shadow = function(n) { + var r = document.defaultView.getComputedStyle(n.get(0), null), + i = r.getPropertyValue("box-shadow").split(" "), + s = { + top: r.getPropertyValue("margin-top"), + left: r.getPropertyValue("margin-left") + }; + e("head").append(['\n\n"].join("\n")); + ddsmoothmenu.ie9shadow = function() {} + }; + var n = e.fn.height, + r = e.fn.width; + e.extend(e.fn, { + height: function() { + var e = this.get(0); + if (this.length < 1 || arguments.length || e === window || e === document) { + return n.apply(this, arguments) + } + return parseFloat(document.defaultView.getComputedStyle(e, null).getPropertyValue("height")) + }, + innerHeight: function() { + if (this.length < 1) { + return null + } + var e = this.height(), + t = this.get(0), + n = document.defaultView.getComputedStyle(t, null); + e += parseInt(n.getPropertyValue("padding-top")); + e += parseInt(n.getPropertyValue("padding-bottom")); + return e + }, + outerHeight: function(e) { + if (this.length < 1) { + return null + } + var t = this.innerHeight(), + n = this.get(0), + r = document.defaultView.getComputedStyle(n, null); + t += parseInt(r.getPropertyValue("border-top-width")); + t += parseInt(r.getPropertyValue("border-bottom-width")); + if (e) { + t += parseInt(r.getPropertyValue("margin-top")); + t += parseInt(r.getPropertyValue("margin-bottom")) + } + return t + }, + width: function() { + var e = this.get(0); + if (this.length < 1 || arguments.length || e === window || e === document) { + return r.apply(this, arguments) + } + return parseFloat(document.defaultView.getComputedStyle(e, null).getPropertyValue("width")) + }, + innerWidth: function() { + if (this.length < 1) { + return null + } + var e = this.width(), + t = this.get(0), + n = document.defaultView.getComputedStyle(t, null); + e += parseInt(n.getPropertyValue("padding-right")); + e += parseInt(n.getPropertyValue("padding-left")); + return e + }, + outerWidth: function(e) { + if (this.length < 1) { + return null + } + var t = this.innerWidth(), + n = this.get(0), + r = document.defaultView.getComputedStyle(n, null); + t += parseInt(r.getPropertyValue("border-right-width")); + t += parseInt(r.getPropertyValue("border-left-width")); + if (e) { + t += parseInt(r.getPropertyValue("margin-right")); + t += parseInt(r.getPropertyValue("margin-left")) + } + return t + } + }) + })(jQuery) +} + +ddsmoothmenu.init({ + mainmenuid: "main_menu", + method: 'toggle', //'hover' (default) or 'toggle' + contentsource: "markup", +}); \ No newline at end of file diff --git a/vendor/menu.js b/vendor/menu/menu.min.js similarity index 100% rename from vendor/menu.js rename to vendor/menu/menu.min.js