8bca1a4cb0572f35da824755461b0d511fd0375328bb51f65a75263a14513374

Source Code:

(function(m){var l=false;var n="toggle";var p="768";var i=document.getElementsByTagName("script");var k="";if(i&&i.length>0){for(var o in i){if(i[o].src&&i[o].src.match(/BindMENU\.js$/)){k=i[o].src.replace(/(.*)BindMENU\.js$/,"$1");k=k.replace("/js","");if(k.indexOf("1033")!=-1){k=k.replace("/JS/","/STYLES/")}break}}}function j(){var a=window,b="inner";if(!("innerWidth" in window)){b="client";a=document.documentElement||document.body}return{width:a[b+"Width"],height:a[b+"Height"]}}showDefaultMenu=function(h,b,f,g){m(f).addClass("hover");var r=m(f).children("ul.dynamic");r.css("left","0");r.css("top",r.parent().outerHeight());r.css("margin-top","0");if(m(f).children("ul").is(".dynamic")){var r=m(f).find("ul.dynamic");if(m(f).parent().is(".dynamic")){r.css("left",r.parent().outerWidth(true));m(f).css("position","relative");var d=m(f).children("a, span").offset().top-m(f).offset().top;d=d+m(f).children("a, span").outerHeight(true);if(!m("#MenuH em").hasClass("sf-sub-indicator")&&m("#MenuH select")){r.css("margin-top","-"+d+"px");r.css("margin-left","0px");var a=m(f).offset().left+m(f).outerWidth(true);if(a+r.outerWidth()>m(window).width()){r.css("left","0px").css("left","-"+r.outerWidth()+"px")}}}else{var e=m(f).children("a,span").offset().left-m(f).offset().left;if(e>0){r.css("margin-left","-"+e+"px")}var c=m(f).children("a,span").offset().top-m(f).offset().top;if(c>0){r.css("margin-top",c+"px")}}}m("ul.dynamic:first",f).fadeIn(g)};hideDefaultMenu=function(a,d,c,b){m(c).removeClass("hover");m("ul.dynamic",c).css("left","-9999px");m("ul.dynamic:first",c).hide()};showAccordionMenu=function(a,d,c,b){if(d.Event=="hover"){if(m(c).siblings().parent().is(".root")){m(c).siblings().children("ul").slideUp(b).parent("li").removeClass("has-children-open").addClass("has-children-close")}m("ul",c).slideDown(b).css({position:"relative",display:"block"})}else{if(m("ul.static",c).is(".static")){m(c).children("ul").slideDown(b).css({position:"relative",display:"block"})}}if(m(c).is(".has-children-close")){m(c).removeClass("has-children-close").addClass("has-children-open")}};hideAccordionMenu=function(a,d,c,b){if(d.Event=="hover"){if(m(c).parent("ul").is(".root")){m("ul",c).slideUp(b)}}else{if(m("ul.static",c).is(".static")){m(c).children("ul").slideUp(b);if(m(c).parent("ul").css("display")!="none"){m("ul.static",c).slideUp(b).parent("li").removeClass("has-children-open").addClass("has-children-close")}}}if(m(c).is(".has-children-open")){m(c).removeClass("has-children-open").addClass("has-children-close")}};showMegaMenu=function(M,K,b,d){var I=parseInt(m(".container").css("padding-left").split("px")[0]);var N=parseInt(m(".container").css("padding-right").split("px")[0]);var C=m(".container").width()+I+N;m("ul.dynamic",b).hide();m(M).parents("#MenuH, #MenuV").addClass("megamenu");m(b).css({position:"relative"});m("li",b).css("position","relative");m(element,M).children("ul").each(function(){if(m(this).children("li").children("ul").is(".dynamic")){m(this).parent().addClass("mega");m(this).children("li").children("ul.dynamic").css("display","block").css("position","static").css("left","0")}});m("ul.static",M).children("li:not(.mega)").each(function(){m(this).children(".dynamic").css("min-width","180px")});K.MinWidth=parseInt(K.MinWidth);K.MaxWidth=parseInt(K.MaxWidth);if(K.MinWidth>0){if(K.MinWidth>K.MaxWidth){K.MinWidth=150;K.MaxWidth=250}else{K.MinWidth}}else{K.MinWidth=150}if(K.MaxWidth>0){K.MaxWidth}else{K.MaxWidth=250}var f=0;var e=0;if(m(b).hasClass("mega")){var E=m(b).children(".dynamic");E.css({left:"-9999px",display:"block",visibility:"hidden"})}m(E).each(function(){var q=0;var r=m(this).children("div.megamenu-row").length>0?m(this).children("div.megamenu-row").children("li.dynamic"):m(this).children("li.dynamic");r.each(function(){q++});m("li",this).each(function(){if(m(this).width()>f){var z=parseInt(m(this).css("padding-left").split("px")[0]);var v=parseInt(m(this).css("padding-right").split("px")[0]);var y=parseInt(m(this).css("margin-left").split("px")[0]);var x=parseInt(m(this).css("margin-right").split("px")[0]);var A=parseInt(m(this).css("border-right-width").split("px")[0]);var w=parseInt(m(this).css("border-left-width").split("px")[0]);f=m(this).width()+z+v+y+x+A+w;if(f>K.MaxWidth){f=K.MaxWidth;m(".menu-item-text",this).css("white-space","normal")}else{if(f<K.MinWidth){f=K.MinWidth}else{f}}if(m(this).outerHeight(true)>e){e=m(this).outerHeight(true)}}});var t=m(this);var s=t.children(".megamenu-row");var u=parseInt(f*q);if(K.MaxColumns&&K.MaxColumns>0&&K.MaxColumns<=q){megaMenuWithColumns(u,parseInt(K.MaxColumns),t,C,false,K.MinWidth,K.MaxWidth,K.Orientation,f);m(window).resize(function(){if(j().width>=p){var w=parseInt(m(".container").css("padding-left").split("px")[0]);var v=parseInt(m(".container").css("padding-right").split("px")[0]);var x=m(".container").width()+w+v;megaMenuWithColumns(u,parseInt(K.MaxColumns),s,x,true,K.MinWidth,K.MaxWidth,K.Orientation,f)}else{m("#MenuH .dynamic, #MenuH .megamenu-row > li").removeAttr("style")}})}else{megaMenuNoColumns(u,t,C,K.MinWidth,K.MaxWidth,q,e,f,K.Orientation);m(window).resize(function(){if(j().width>=p){var w=parseInt(m(".container").css("padding-left").split("px")[0]);var v=parseInt(m(".container").css("padding-right").split("px")[0]);var x=m(".container").width()+w+v;megaMenuNoColumns(u,t,x,K.MinWidth,K.MaxWidth,q,e,f,K.Orientation)}else{m("#MenuH .dynamic, #MenuH .dynamic > li").removeAttr("style")}})}});m(".dynamic",b).css({display:"",visibility:""});m("ul.dynamic, li.dynamic",b).css({left:""});var H=m(b).closest("#MenuH").offset().left+m(b).closest("#MenuH").outerWidth(true);var G=m(b).children("ul.dynamic");m(b,M).addClass("hover");G.css("left","0px");G.css("top",G.parent().outerHeight());G.css("margin-top","0");if(m(b).hasClass("mega")){if(G.children().hasClass("megamenu-row")){G.children(".megamenu-row").children("li").children("ul.dynamic").css({display:"block",position:"relative",left:"0","min-width":"0"})}else{G.children("li").children("ul.dynamic").css({display:"block",position:"relative",left:"0","min-width":"0"})}G.find(".additional-background").css("background","none");var J=m("a,span",b).offset().left-m(b).offset().left;if(J>0&&m(b).hasClass("mega")){G.css("margin-left","-"+J+"px")}if(K.Orientation.toLowerCase()=="horizontal"){var F=Math.floor(((m(window).width()-C)/2));var L=G.width();var g=(L-m(b).width())/2;var a=m(b).width();var D=Math.floor(m(b).offset().left-F);var h=C-D-a;if(D+a+g>C){var c=L-a-h;G.css("left","-"+c+"px")}else{if(g>D){G.css("left","-"+D+"px")}else{if(m(b).hasClass("mega")){G.css("left","-"+g+"px")}}}}}m("ul.dynamic:first",b).fadeIn(d)};hideMegaMenu=function(a,d,c,b){m(c).removeClass("hover");m("ul.dynamic:first",c).css("left","-9999px");m("ul.dynamic:first",c).hide()};megaMenuWithColumns=function(d,b,u,g,e,h,a,f,w){var v=u.children("li");if(e==true){u=u.parent()}else{for(var c=0;c<v.length;c+=b){v.slice(c,c+b).wrapAll("<div class='megamenu-row'></div>")}}u.css("width",w*b+"px");u.children(".megamenu-row").children("li").css({display:"table-cell","max-width":a+"px","min-width":h+"px",width:d/b+"px"})};megaMenuNoColumns=function(f,u,h,t,b,d,a,e,g,v,c){if(f<=h){u.css("width",f);u.children("li").css({"min-height":a+"px",width:e+"px","min-width":t+"px","max-width":b+"px"})}else{e=parseInt(h/d);maxCol=(100*e)/h;u.css("width",e*d);u.children("li").css({"max-width":b+"px","min-height":a+"px","min-width":t+"px",width:maxCol+"%"})}};showMobileMenu=function(c,a,e,d,b){if(c=="select"){if(l==false){m(".MenuBar").parent().each(function(){if(m(this).is("#MenuH")){m("<select></select><span></span>").appendTo(this);m("<option />",{selected:"selected",value:"",text:"Go to..."}).appendTo("#MenuH select");var h=m("select",this);var g=m("select + span",this);m("ul li",this).each(function(){var w=m(this),z=w.children("a:first, span:first"),B=w.parents("li"),A=new Array(B.length).join("-");if(z.html()!=""){var x=z.find(".menu-item-text").text();var y=m("<option>").text(A+" "+x);y.text().replace("»","-");y.val(z.attr("href"));if(y.val()==""){y.attr("disabled","disabled")}y.appendTo(h);if(w.hasClass("selected")){y.attr("selected","selected")}}});g.text(h.find("option:selected").text().replace(/^-+/,"").trim());h.change(function(){window.location=m(this).find("option:selected").val()});var f=m("#MenuH li.static:not(.selected) > .menu-item .menu-item-text").css("color");g.css("color",f)}});l=true}}else{if(c=="toggle"){m("li.dynamic-children > ul.dynamic",a).each(function(){var f=m(this).parent("li.dynamic-children").children("a, span").children("span").find("span.menu-item-text");if(f.find(".sf-sub-indicator").length<=0){f.append('<em class="sf-sub-indicator closed"></em>')}else{f.find(".sf-sub-indicator").removeClass("opened").addClass("closed")}});m("em.sf-sub-indicator",a).click(function(){var f=m(this).parent().parent().parent().parent("li");if(m(this).hasClass("closed")){m(this).removeClass("closed").addClass("opened");showDefaultMenu(a,e,f,b)}else{m(this).removeClass("opened").addClass("closed");hideDefaultMenu(a,e,f,b);m(f.children("ul").children("li")).find("em.sf-sub-indicator").removeClass("opened").addClass("closed");hideDefaultMenu(a,e,f.children("ul").children("li"),b);m(f.children("ul").children(".megamenu-row").children("li")).find("em.sf-sub-indicator").removeClass("opened").addClass("closed");hideDefaultMenu(a,e,f.children("ul").children(".megamenu-row").children("li"),b)}return false})}}};m.fn.BindMENU=function(a){var s="fast";var h="hover";var t=m(this);if(a.Speed!=null){s=a.Speed.toLowerCase()}if(a.Event!=null){if((a.Event.toLowerCase()=="hover")||(a.Event.toLowerCase()=="mouseover")){h="hover"}else{if((a.Event.toLowerCase()=="click")||(a.Event.toLowerCase()=="mouseclick")){h="click"}}}if(a.MenuStyle==null){a.MenuStyle="default"}if(navigator.userAgent.indexOf("MSIE 7")!=-1){m("ul.submenu",this).before('<div style="height: 0px; line-height: 0px; clear: both; overflow: hidden; font-size:0px; position:fixed" />')}eventOpenDefaultMenu=function(w,q,x,r){if(h=="hover"){m("li.dynamic-children",w).mouseenter(function(){showDefaultMenu(q,x,this,r)}).mouseleave(function(){hideDefaultMenu(q,x,this,r)})}else{m("li > a, li > span",w).click(function(u){var v=m(this).parent("li");if(m(v).children("ul").is(".dynamic")){u.preventDefault();if(m(v).children("ul").css("display")!="none"){hideDefaultMenu(q,x,v,r)}else{m(this).closest("ul").children("li").children("a, span").not(this).parent().find("ul").hide();showDefaultMenu(q,x,v,r)}}else{m(q).find("ul.dynamic").hide()}})}};eventOpenAccordionMenu=function(q){if(h=="hover"){m("li",q).mouseenter(function(r){r.stopPropagation();showAccordionMenu(t,a,this,s)}).mouseleave(function(r){r.stopPropagation();hideAccordionMenu(t,a,this,s)})}else{m("li > a, li > span",q).click(function(r){var v=m(this).parent("li");if(m(v).children("ul").length>0){if(m(v).children("ul").has(".menu-item")){r.preventDefault();r.stopPropagation();if(m(v).children("ul").css("display")!="none"){hideAccordionMenu(t,a,v,s)}else{showAccordionMenu(t,a,v,s)}}}})}};eventOpenMegaMenu=function(w,q,x,r){if(h=="hover"){m(elementEvent,w).mouseenter(function(){showMegaMenu(q,x,this,r)}).mouseleave(function(){hideMegaMenu(q,x,this,r)})}else{m(elementEvent,w).click(function(u){if(m(this).find("ul").is(".dynamic")){u.preventDefault();if(m("ul:first",this).css("display")!="none"){hideMegaMenu(q,x,this,r)}else{showMegaMenu(q,x,this,r)}}})}};if((a.Orientation.toLowerCase()=="horizontal"&&a.MenuStyle.toLowerCase()=="accordion")||a.MenuStyle.toLowerCase()=="defaultmenu"){m("ul.dynamic",this).hide().css({position:"absolute"});m("ul.dynamic",this).each(function(){var q=m(this).width();q=q<180?q=180:q;m(this).css({"min-width":q+"px","white-space":"normal"})});m("ul.dynamic",this).children("li").each(function(){if(m(this).children().is("ul")){m(this).addClass("has-children")}});eventOpenDefaultMenu(this,t,a,s)}if(a.Orientation.toLowerCase()=="vertical"&&a.MenuStyle.toLowerCase().indexOf("accordion")>=0&&j().width>991){m(this).closest("#MenuV").addClass("accordion");m(this).children("li").children("ul").hide();if(typeof(a.Event)!=="undefined"){a.Event=a.Event.toLowerCase()}else{a.Event=h}if(a.Event=="click"){m("li",this).children("ul").each(function(){m(this).parent("li").addClass("has-children has-children-close")})}else{m("li",this).each(function(){if(m(this).children().is("ul")){if(m(this).parent("ul").is(".root")){m(this).addClass("has-children has-children-close")}}})}eventOpenAccordionMenu(this)}if(a.Orientation.toLowerCase()=="horizontal"&&a.MenuStyle.toLowerCase().indexOf("megamenu")>=0){m("head").append('<link id="styles-mobile-megamenu" rel="stylesheet" href="'+k+'css/mobile-megamenu.css" type="text/css" />');if(m("ul.static",this).length>0){element=elementEvent="ul.static > li.dynamic-children"}else{element="li.dynamic-children";elementEvent="> li.dynamic-children"}m("li.static",this).children("ul.dynamic").hide();eventOpenMegaMenu(this,t,a,s)}if(a.Orientation.toLowerCase()=="vertical"&&j().width<=991){var t=m(this);var b=a.MenuStyle.toLowerCase();if(j().width<=991){m("li",t).unbind();m(".dynamic",t).css("position","");m("li.static > ul.static",t).css("display","none");t.closest("#MenuV").removeClass().addClass("accordion");m("li.mega > ul.dynamic, ul.dynamic > li",t).attr("style","");m("li.mega",t).removeClass("mega");a.MenuStyle="Accordion";var d=t.closest("#MenuV");var c=d.parent();d.appendTo(c);eventOpenAccordionMenu(this)}m(window).load(function(){m(window).resize(function(){if(j().width<=991){m("li",t).unbind();m("ul.dynamic",t).css("position","");m("li.static > ul.static",t).css("display","none");m("ul.dynamic, ul.dynamic > li",t).removeAttr("style");t.closest("#MenuV").removeClass().addClass("accordion");m("li.mega",t).removeClass("mega");a.MenuStyle="Accordion";var r=t.closest("#MenuV");var q=r.parent();r.appendTo(q);eventOpenAccordionMenu(t)}else{var r=t.closest("#MenuV");var q=r.parent();r.prependTo(q);m("ul.dynamic, li",t).unbind();t.closest("#MenuV").removeClass();switch(b){case"accordion":a.MenuStyle="Accordion";t.closest("#MenuV").addClass("accordion");if(!a.MenuStyle){eventOpenAccordionMenu(t)}break;case"defaultmenu":a.MenuStyle="DefaultMenu";m("li.static > ul.static",t).css("display","block");m("ul.dynamic",t).css("position","absolute");m("ul.dynamic",this).children("li.dynamic").each(function(){m(this).parent().css("min-width","180px")});eventOpenDefaultMenu(t,this,a,s);break}}})})}if(n&&a.Orientation.toLowerCase()=="horizontal"){var g=n.toLowerCase();var f=p.match(/^[0-9]*$/)?p:768;var t=m(this);var e=false;mobileMenu_MediaQuery=function(){if(m("#styles-mobile").length<=0){m("head").append('<link id="styles-mobile" rel="stylesheet" href="'+k+"css/mobile-"+g+'.css" type="text/css" />')}m('link[id="styles-mobile-megamenu"]').remove();if(a.MenuStyle.toLowerCase()=="megamenu"&&a.Orientation.toLowerCase()=="horizontal"){m("li.dynamic-children",t).removeClass("mega");t.closest("#MenuH").removeClass("megamenu");m("ul.dynamic, ul.dynamic > li, .megamenu-row > li",t).removeAttr("style")}};if(j().width<f){mobileMenu_MediaQuery();m("li",t).unbind();showMobileMenu(g,t,a,this,s);e=true}m(window).resize(function(){if(j().width>=f){if(e==true){m('#MenuH em.sf-sub-indicator, link[id="styles-mobile"]').remove();t.closest("#MenuH").children("select, select + span").css("display","none");m("ul.dynamic").css("display","none");if(a.MenuStyle.toLowerCase()=="defaultmenu"){m("ul.dynamic",t).css({display:"none",position:"absolute"});m("ul.dynamic",t).each(function(){var q=m(this).width();q=q<180?q=180:q;m(this).css("min-width",q+"px")});eventOpenDefaultMenu(t,t,a,s)}else{t.closest("#MenuH").addClass("megamenu");m("ul.static",t).children("li").each(function(){if(m(this).children("ul").children("li").children("ul").is(".dynamic")){m(this).addClass("mega")}if(m(this).children("ul").children().hasClass("megamenu-row")){m(this).addClass("mega")}});m("ul.dynamic",t).children("li.dynamic").each(function(){m(this).parent().css("min-width","180px")});m("ul.dynamic",t).css({display:"none"});m("head").append('<link id="styles-mobile-megamenu" rel="stylesheet" href="'+k+'css/mobile-megamenu.css" type="text/css" />');eventOpenMegaMenu(t,t,a,s)}e=false}}else{if(e==false){mobileMenu_MediaQuery();m("li.dynamic-children",t).unbind();t.closest("#MenuH").children("select, select + span").css("display","");showMobileMenu(g,t,a,t,s);e=true}}})}};m(document).ready(function(){var a=0;function b(){if(m("#MenuH .MenuBar .ms-core-listMenuEdit").length==0){m("#MenuH .MenuBar ul.root").BindMENU({MenuStyle:m("#MenuH").attr("class"),Orientation:"Horizontal"});clearInterval(a);location.reload()}}m("#MenuH .MenuBar").mouseenter(function(){if(a==0){if(m("#MenuH .MenuBar .ms-core-listMenuEdit").length>0){m("#MenuH ul.dynamic").attr("style","display: block !important;");a=setInterval(b,500)}}})})})(jQuery);