Files
firstgarden-web-gnu/VR/2019(night)data/graphics/KolorMenu/KolorMenu.min.js
2025-07-02 14:07:56 +09:00

76 lines
37 KiB
JavaScript

(function(){var k=!0,l=null,n=!1;
KolorMenu=function(o,q){function r(){B?B=n:setTimeout(function(){B=k;r()},1E3);s&&(jQuery("#"+q).width()!=i||jQuery("#"+q).height()!=m)&&p.f()}function t(a){if("undefined"==typeof a.data("sized")){for(var b=0,d=a.find(">li>p"),e=0,f=d.length;e<f;e++)d.eq(e).height()>b&&(b=d.eq(e).height());("Explorer"!=kolorBrowserDetect.browser||6<kolorBrowserDetect.version)&&a.find(">li>p").css("height",b+"px");a.find(">li>p").css("line-height",b+"px");a.data("sized",k)}}function u(a,b){var d=ktools.Color.hex2rgb(b.border_color);
"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?a.css("border-color","rgb("+d[0]+","+d[1]+","+d[2]+")"):a.css("border-color","rgba("+d[0]+","+d[1]+","+d[2]+","+b.border_alpha+")");a.css("border-width",b.border_width+"px");a.css("border-style",b.border_style);a.css("-moz-border-radius",b.border_radius+"px");a.css("-webkit-border-radius",b.border_radius+"px");a.css("border-radius",b.border_radius+"px");d=ktools.Color.hex2rgb(b.background_color);"Explorer"==kolorBrowserDetect.browser&&
9>kolorBrowserDetect.version?a.css("background","rgb("+d[0]+","+d[1]+","+d[2]+")"):a.css("background","rgba("+d[0]+","+d[1]+","+d[2]+","+b.background_alpha+")")}function x(){var c=d.find(".kolorMenu >li"),b=0,g=0;c.each(function(){b+=jQuery(this).height();g<jQuery(this).height()&&(g=jQuery(this).height())});var b=b+(c.length-1)*a.item_spacer,g=g+a.item_spacer,c=a.margins_both?2*a.margin_y:a.margin_y,e=a.margins_both?a.margin_y:0,f=0,h=b+a.item_spacer+2*a.border_width;a.margins_on_items?(f=m-2*a.border_width-
a.item_spacer,f<b+a.item_spacer+c&&(f=b+a.item_spacer+c)):(f=m-(a.margins_both?2*a.margin_y:a.margin_y)-2*a.border_width-a.item_spacer,f<b+a.item_spacer&&(f=b+a.item_spacer),h>f&&(h=f));var i=0;switch(a.position){case KolorMenu.POSITION.TOP_LEFT:case KolorMenu.POSITION.TOP:case KolorMenu.POSITION.TOP_RIGHT:a.margins_on_items?(c+h>f&&(h=f-c),i=a.margin_y):i=0;break;case KolorMenu.POSITION.LEFT:case KolorMenu.POSITION.RIGHT:a.margins_on_items?(c+h>f&&(h=f-c),i=a.margin_y+(f-h-c)/2):i=(f-h)/2;break;
case KolorMenu.POSITION.BOTTOM_LEFT:case KolorMenu.POSITION.BOTTOM:case KolorMenu.POSITION.BOTTOM_RIGHT:a.margins_on_items?c+h>f?(h=f-c,i=e):i=f-h-a.margin_y:i=f-h}rootMenuHeightPaddingLess=f-i;d.find(".kolorMenuMain").css("height",f+"px");d.find(".kolorMenuMain").css("min-height",g+"px");d.find(".kolorMenu").css("height",h+"px");d.find(".kolorMenu").css("padding-top",i+"px")}function y(){var c=d.find(".kolorMenu >li"),b=0,g=0;c.each(function(){b+=jQuery(this).width();g<jQuery(this).width()&&(g=jQuery(this).width())});
var b=b+((c.length-1)*a.item_spacer+1),g=g+(a.item_spacer+1),c=0,e=b+a.item_spacer+2*a.border_width;a.margins_on_items?(c=i-2*a.border_width-a.item_spacer,0>c&&(c=0)):(c=i-(a.margins_both?2*a.margin_x:a.margin_x)-2*a.border_width-a.item_spacer,0>c&&(c=0),e>c&&(e=c));var f=0,h=a.margins_both?2*a.margin_x:a.margin_x,j=a.margins_both?a.margin_x:0;switch(a.position){case KolorMenu.POSITION.TOP_LEFT:case KolorMenu.POSITION.LEFT:case KolorMenu.POSITION.BOTTOM_LEFT:a.margins_on_items?(h+e>c&&(e=c-h),f=a.margin_x):
f=0;break;case KolorMenu.POSITION.TOP:case KolorMenu.POSITION.BOTTOM:a.margins_on_items?(h+e>c&&(e=c-h),f=a.margin_x+(c-e-h)/2):f=(c-e)/2;break;case KolorMenu.POSITION.TOP_RIGHT:case KolorMenu.POSITION.RIGHT:case KolorMenu.POSITION.BOTTOM_RIGHT:a.margins_on_items?h+e>c?(e=c-h,f=j):f=c-e-a.margin_x:f=c-e}d.find(".kolorMenuMain").css("width",c+"px");d.find(".kolorMenuMain").css("min-width",g+"px");kolorBrowserDetect.isIE()?d.find(".kolorMenu").css("width",e+1+"px"):d.find(".kolorMenu").css("width",
e+"px");d.find(".kolorMenu").css("padding-left",f+"px")}function z(){var c,b;d.find("ul.kolorMenu").find(">li").each(function(){b=jQuery(this).find(">ul");if(0<b.length){c=jQuery(this).offset();b.css("width","");b.css("height","");b.css("overflow-x","");b.css("overflow-y","");var g=n,e=b.height(),g=n,e=b.width(),f="top",h="0";jQuery(window).width()>i&&0<d.parent()[0].offsetLeft&&(c.left-=d.parent()[0].offsetLeft);jQuery(window).height()>m&&0<d.parent()[0].offsetTop&&(c.top-=d.parent()[0].offsetTop);
if(a.sub_orientation==KolorMenu.DIRECTION.VERTICAL){b.find("li").last().css("margin-bottom",a.item_spacer+"px");b.find("li").css("overflow","hidden");switch(a.position){case KolorMenu.POSITION.BOTTOM_RIGHT:case KolorMenu.POSITION.BOTTOM:case KolorMenu.POSITION.BOTTOM_LEFT:g=c.top<b.height();e=c.top;f="bottom";break;default:g=c.top+b.height()+jQuery(this).height()>m,e=m-(c.top+jQuery(this).height()),f="top"}g&&(b.css("height",e+"px"),b.css("overflow-x","hidden"),b.css("overflow-y","scroll"));b.css(f,
"100%");switch(a.position){case KolorMenu.POSITION.TOP_RIGHT:case KolorMenu.POSITION.RIGHT:case KolorMenu.POSITION.BOTTOM_RIGHT:g=c.left+jQuery(this).width()-2*a.item_spacer<b.width();b.width()>i?(e=i,h=c.left+jQuery(this).width()-i-2*a.item_spacer):(e=b.width(),h=c.left+jQuery(this).width()-b.width()-2*a.item_spacer);f="right";g||(h="0");break;default:g=c.left+b.width()+2*a.item_spacer>i,b.width()>i?(h=-c.left,e=i-2*a.item_spacer):(h=i-(b.width()+c.left)+2*a.item_spacer,e=b.width()),f="left",g||
(h="0")}g&&b.css("width",e+"px");"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?b.css(f,h+"px"):b.css(f,h-a.border_width-a.item_spacer+"px")}if(a.sub_orientation==KolorMenu.DIRECTION.HORIZONTAL){b.find("li").last().css("padding-right",a.item_spacer+"px");b.find("li").css("overflow","hidden");switch(a.position){case KolorMenu.POSITION.TOP_RIGHT:case KolorMenu.POSITION.BOTTOM_RIGHT:case KolorMenu.POSITION.RIGHT:g=b.width()>c.left+jQuery(this).width();b.width()>i?(e=i,h=c.left+
jQuery(this).width()-i,g&&b.css("overflow-x","scroll")):(e=b.width(),h=c.left+jQuery(this).width()-b.width());f="right";g||(h="0");break;default:g=c.left+b.width()>i,b.width()>i?(h=-c.left,e=i,g&&b.css("overflow-x","scroll")):(h=i-(b.width()+c.left),e=b.width()),f="left",g||(h="0")}g&&(b.css("width",e+"px"),b.css("overflow-y","hidden"));"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?b.css(f,h+"px"):b.css(f,h-a.border_width-a.item_spacer+"px");switch(a.position){case KolorMenu.POSITION.BOTTOM_RIGHT:case KolorMenu.POSITION.BOTTOM:case KolorMenu.POSITION.BOTTOM_LEFT:g=
c.top<b.height();e=c.top;f="bottom";break;default:g=c.top+b.height()+jQuery(this).height()>=m,e=m-(c.top+jQuery(this).height()),f="top"}g&&(b.css("height",e+"px"),b.css("overflow-y","scroll"));b.css(f,"100%")}}})}function v(){var c,b;d.find("ul.kolorMenu").find(">li").each(function(){b=jQuery(this).find(">ul");if(0<b.length){c=jQuery(this).offset();b.css("width","");b.css("height","");b.css("overflow-x","");b.css("overflow-y","");var g=n,e=b.height(),g=n,e=b.width(),f="top";jQuery(window).width()>
i&&0<d.parent()[0].offsetLeft&&(c.left-=d.parent()[0].offsetLeft);jQuery(window).height()>m&&0<d.parent()[0].offsetTop&&(c.top-=d.parent()[0].offsetTop);if(a.sub_orientation==KolorMenu.DIRECTION.VERTICAL){b.find("li").last().css("margin-bottom",a.item_spacer+"px");b.find("li").css("overflow","hidden");switch(a.position){case KolorMenu.POSITION.BOTTOM_RIGHT:case KolorMenu.POSITION.BOTTOM_LEFT:case KolorMenu.POSITION.BOTTOM:g=b.height()>c.top+jQuery(this).height()+a.item_spacer;e=c.top+jQuery(this).height()+
a.item_spacer;f="bottom";break;default:g=b.height()+c.top>m,e=m-c.top,f="top"}g&&(b.css("height",e+"px"),b.css("overflow-x","hidden"),b.css("overflow-y","scroll"));"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?b.css(f,"0"):b.css(f,("bottom"==f?0-a.border_width-a.item_spacer:0-a.border_width)+"px");switch(a.position){case KolorMenu.POSITION.TOP_RIGHT:case KolorMenu.POSITION.RIGHT:case KolorMenu.POSITION.BOTTOM_RIGHT:g=c.left-2*a.item_spacer<b.width();e=c.left-2*a.item_spacer;
f="right";break;default:g=c.left+jQuery(this).width()+b.width()>i,e=i-c.left-jQuery(this).width()-2*a.item_spacer,f="left"}g&&b.css("width",e+"px");b.css(f,"100%")}if(a.sub_orientation==KolorMenu.DIRECTION.HORIZONTAL){b.find("li").last().css("padding-right",a.item_spacer+"px");b.find("li").css("overflow","hidden");switch(a.position){case KolorMenu.POSITION.TOP_RIGHT:case KolorMenu.POSITION.RIGHT:case KolorMenu.POSITION.BOTTOM_RIGHT:g=c.left-a.item_spacer<b.width();e=c.left-a.item_spacer;f="right";
break;default:g=c.left+jQuery(this).width()+b.width()>i,e=i-c.left-jQuery(this).width()-a.item_spacer,f="left"}g&&(b.css("width",e+"px"),b.css("overflow-x","scroll"),b.css("overflow-y","hidden"));b.css(f,"100%");switch(a.position){case KolorMenu.POSITION.BOTTOM_RIGHT:case KolorMenu.POSITION.BOTTOM:case KolorMenu.POSITION.BOTTOM_LEFT:g=b.height()>c.top+jQuery(this).height();e=c.top+jQuery(this).height();f="bottom";break;default:g=c.top+b.height()>m,e=m-c.top,f="top"}g&&(b.css("height",e+"px"),b.css("overflow-y",
"scroll"));"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?b.css(f,"0"):b.css(f,("bottom"==f?0-a.border_width-a.item_spacer:0-a.border_width)+"px")}}})}function A(){function c(c){if(c.currentTarget&&void 0!=c.currentTarget&&""!=a.item_selected_color)for(var d=c.currentTarget.id,h=0;h<b;h++){g=p.d().get(h);jQuery("p#"+g.getName()).removeClass("menuSelected");e=g.c().size();for(var i=0;i<e;i++)f=g.c().get(i),f.getName()==d?(jQuery("p#"+g.getName()).addClass("menuSelected"),jQuery("p#"+
f.getName()).addClass("menuSelected")):jQuery("p#"+f.getName()).removeClass("menuSelected")}ktools.Device.isTouch()&&c.data.A?(jQuery("ul.kolorMenu li ul.kolorMenuGroup").removeClass("forceDisplayNone"),jQuery(this).parent().find("ul.kolorMenuGroup").addClass("forceDisplayBlock")):(ktools.Code.eval(c.data.l.j()),ktools.Device.isTouch()?(jQuery("ul.kolorMenu li ul.kolorMenuGroup").removeClass("forceDisplayBlock"),jQuery("ul.kolorMenu li ul.kolorMenuGroup").addClass("forceDisplayNone"),setTimeout(function(){jQuery("ul.kolorMenu li ul.kolorMenuGroup").removeClass("forceDisplayNone")},
50)):(jQuery("ul.kolorMenu li:hover ul.kolorMenuGroup").css("display","none"),setTimeout(function(){jQuery("ul.kolorMenu li ul.kolorMenuGroup").css("display","")},50)))}for(var b=p.d().size(),g=l,e=0,f=l,h=0;h<b;h++){var g=p.d().get(h),e=g.c().size(),i=jQuery.extend(jQuery.extend(k,{},a),jQuery.extend(k,{},g.e()));g.g()&&u(d.find("p#"+g.getName()).parent().find("ul"),i);d.find("p#"+g.getName()).data("object",g);g.j()!=l?d.find(".kolorMenuItem #"+g.getName()).unbind("click").bind("click",{l:g},c):
ktools.Device.isTouch()&&d.find(".kolorMenuItem #"+g.getName()).unbind("click").bind("click",{l:g,A:k},c);for(i=0;i<e;i++)f=g.c().get(i),d.find("p#"+f.getName()).data("object",f),f.j()!=l&&d.find(".kolorMenuItem #"+f.getName()).unbind("click").bind("click",{l:f},c)}d.find("p").unbind("mouseenter").bind("mouseenter",function(){var b=l,b=jQuery(this).data("object").k()?jQuery.extend(jQuery.extend(k,{},a),jQuery.extend(k,{},jQuery(this).data("object").e())):jQuery.extend(jQuery.extend(k,{},a),jQuery.extend(k,
{},jQuery(this).data("object").getParent().e()),jQuery.extend(k,{},jQuery(this).data("object").e())),c=ktools.Color.hex2rgb(b.item_hover_bg_color),e=b.item_hover_bg_alpha;a.use_hover_effect&&jQuery(this).hasClass("menuSelected")&&(c=ktools.Color.hex2rgb(a.item_selected_hover_color),e=a.item_selected_hover_alpha);a.use_hover_effect&&("Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?jQuery(this).css("background","rgb("+c[0]+","+c[1]+","+c[2]+")"):jQuery(this).css("background","rgba("+
c[0]+","+c[1]+","+c[2]+","+e+")"));c=ktools.Color.hex2rgb(b.item_hover_border_color);"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?jQuery(this).css("border-color","rgb("+c[0]+","+c[1]+","+c[2]+")"):jQuery(this).css("border-color","rgba("+c[0]+","+c[1]+","+c[2]+","+b.item_hover_border_alpha+")");jQuery(this).css("border-width",b.item_hover_border_width+"px");jQuery(this).css("border-style",b.item_hover_border_style);jQuery(this).css("-moz-border-radius",b.item_hover_border_radius+
"px");jQuery(this).css("-webkit-border-radius",b.item_hover_border_radius+"px");jQuery(this).css("border-radius",b.item_hover_border_radius+"px");a.force_font_menu&&jQuery(this).data("object").i()?(jQuery(this).css("font-family",'"'+a.force_font_menu_family+'", sans-serif'),jQuery(this).css("color","#"+a.force_font_menu_color),jQuery(this).css("font-size",a.force_font_menu_size+"px"),jQuery(this).css("font-weight",a.force_font_menu_weight),jQuery(this).css("font-style",a.force_font_menu_style),jQuery(this).css("text-decoration",
a.force_font_menu_decoration)):a.force_font_submenu&&!jQuery(this).data("object").i()?(jQuery(this).css("font-family",'"'+a.force_font_submenu_family+'", sans-serif'),jQuery(this).css("color","#"+a.force_font_submenu_color),jQuery(this).css("font-size",a.force_font_submenu_size+"px"),jQuery(this).css("font-weight",a.force_font_submenu_weight),jQuery(this).css("font-style",a.force_font_submenu_style),jQuery(this).css("text-decoration",a.force_font_submenu_decoration)):(jQuery(this).css("font-family",
'"'+b.item_hover_font_family+'", sans-serif'),jQuery(this).css("color","#"+b.item_hover_font_color),jQuery(this).css("font-size",b.item_hover_font_size+"px"),jQuery(this).css("font-weight",b.item_hover_font_weight),jQuery(this).css("font-style",b.item_hover_font_style),jQuery(this).css("text-decoration",b.item_hover_font_decoration));("left"==a.text_align||"right"==a.text_align)&&0<jQuery(this).parent().find("ul").length&&a.sub_orientation==KolorMenu.DIRECTION.HORIZONTAL&&t(d.find(".kolorMenu"))});
d.find("p").unbind("mouseleave").bind("mouseleave",function(){var b=l,b=jQuery(this).data("object").k()?jQuery.extend(jQuery.extend(k,{},a),jQuery.extend(k,{},jQuery(this).data("object").e())):jQuery.extend(jQuery.extend(k,{},a),jQuery.extend(k,{},jQuery(this).data("object").getParent().e()),jQuery.extend(k,{},jQuery(this).data("object").e())),c=ktools.Color.hex2rgb(b.item_out_bg_color),d=b.item_out_bg_alpha;a.use_hover_effect&&jQuery(this).hasClass("menuSelected")&&(c=ktools.Color.hex2rgb(a.item_selected_color),
d=a.item_selected_alpha);a.use_out_effect?(jQuery(this).hasClass("menuSelected")&&(c=ktools.Color.hex2rgb(b.item_selected_color),d=b.item_selected_alpha),"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?jQuery(this).css("background","rgb("+c[0]+","+c[1]+","+c[2]+")"):jQuery(this).css("background","rgba("+c[0]+","+c[1]+","+c[2]+","+d+")")):jQuery(this).hasClass("menuSelected")?(c=ktools.Color.hex2rgb(b.item_selected_color),d=b.item_selected_alpha,"Explorer"==kolorBrowserDetect.browser&&
9>kolorBrowserDetect.version?jQuery(this).css("background","rgb("+c[0]+","+c[1]+","+c[2]+")"):jQuery(this).css("background","rgba("+c[0]+","+c[1]+","+c[2]+","+d+")")):jQuery(this).css("background","");c=ktools.Color.hex2rgb(b.item_out_border_color);"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?jQuery(this).css("border-color","rgb("+c[0]+","+c[1]+","+c[2]+")"):jQuery(this).css("border-color","rgba("+c[0]+","+c[1]+","+c[2]+","+b.item_out_border_alpha+")");jQuery(this).css("border-width",
b.item_out_border_width+"px");jQuery(this).css("border-style",b.item_out_border_style);jQuery(this).css("-moz-border-radius",b.item_out_border_radius+"px");jQuery(this).css("-webkit-border-radius",b.item_out_border_radius+"px");jQuery(this).css("border-radius",b.item_out_border_radius+"px");a.force_font_menu&&jQuery(this).data("object").i()?(jQuery(this).css("font-family",'"'+a.force_font_menu_family+'", sans-serif'),jQuery(this).css("color","#"+a.force_font_menu_color),jQuery(this).css("font-size",
a.force_font_menu_size+"px"),jQuery(this).css("font-weight",a.force_font_menu_weight),jQuery(this).css("font-style",a.force_font_menu_style),jQuery(this).css("text-decoration",a.force_font_menu_decoration)):a.force_font_submenu&&!jQuery(this).data("object").i()?(jQuery(this).css("font-family",'"'+a.force_font_submenu_family+'", sans-serif'),jQuery(this).css("color","#"+a.force_font_submenu_color),jQuery(this).css("font-size",a.force_font_submenu_size+"px"),jQuery(this).css("font-weight",a.force_font_submenu_weight),
jQuery(this).css("font-style",a.force_font_submenu_style),jQuery(this).css("text-decoration",a.force_font_submenu_decoration)):(jQuery(this).css("font-family",'"'+b.item_out_font_family+'", sans-serif'),jQuery(this).css("color","#"+b.item_out_font_color),jQuery(this).css("font-size",b.item_out_font_size+"px"),jQuery(this).css("font-weight",b.item_out_font_weight),jQuery(this).css("font-style",b.item_out_font_style),jQuery(this).css("text-decoration",b.item_out_font_decoration));c=jQuery(this).find("img:first");
c.css("max-width",b.item_thumb_max_width+"px");c.css("max-height",b.item_thumb_max_height+"px");0<b.item_title_max_width&&(d="max-width",b.item_title_max_width_limit||(d="width"),0<c.length?jQuery(this).css(d,b.item_title_max_width+b.item_thumb_max_width+b.margin_title_thumb+"px"):jQuery(this).css(d,b.item_title_max_width+"px"),0<c.length&&("top"==a.text_align||"bottom"==a.text_align)?jQuery(this).find(">span").css("width",b.item_thumb_max_width+"px"):jQuery(this).find(">span").css("width",b.item_title_max_width+
"px"),jQuery(this).find(">span").css("overflow","hidden"),("left"==a.text_align||"right"==a.text_align)&&jQuery(this).find(">span").css("display","inline-block"),jQuery(this).find(">span").css("text-overflow","ellipsis"),jQuery(this).find(">span").css("white-space","nowrap"),jQuery(this).find(">span").css("vertical-align","middle"),jQuery(this).css("overflow","hidden"),jQuery(this).css("text-overflow","ellipsis"),jQuery(this).css("white-space","nowrap"),jQuery(this).css("vertical-align","middle"));
"Explorer"==kolorBrowserDetect.browser&&7>kolorBrowserDetect.version&&(c.css("width",b.item_thumb_max_width+"px"),c.css("height",b.item_thumb_max_height+"px"),0<b.item_title_max_width&&b.item_title_max_width_limit&&(0<c.length?jQuery(this).css("width",b.item_title_max_width+b.item_thumb_max_width+b.margin_title_thumb+"px"):jQuery(this).css("width",b.item_title_max_width+"px")))});d.find("p").mouseleave()}function w(){var c='<div id="'+o+'" class="kolorMenuContainer" style="position:absolute;z-index:'+
a.zorder+';"><div class="kolorMenuMain"><ul class="kolorMenu">';a.current_group!=l?(C=a.current_group,c+=j(a.current_group)):c+=j(l);c+="</ul></div></div>";kolorBrowserDetect.isIE()&&!kolorBrowserDetect.isEdge()&&(c=toStaticHTML(c));jQuery("#"+q).prepend(c)}function j(c){for(var b="",d=p.d().size(),e=l,f=0,h=l,i=0;i<d;i++){var e=p.d().get(i),f=e.c().size(),j=0;switch(a.position){case KolorMenu.POSITION.BOTTOM_RIGHT:case KolorMenu.POSITION.BOTTOM:case KolorMenu.POSITION.BOTTOM_LEFT:j=i;break;default:j=
d-i}if(e.g()){b+='<li class="kolorMenuItem" '+(kolorBrowserDetect.isIE()?'aria-haspopup="true" ':"")+'style="z-index:'+j+';">';b+='<p id="'+e.getName()+'" class="'+e.h()+'"'+(a.padding_main!=l?' style="padding:'+a.padding_main+'px;"':"")+(0<a.item_title_max_width?a.item_title_tooltip?' title="'+e.a()+'"':"":"")+">";if(("left"==a.text_align||"top"==a.text_align)&&""!=e.a())b+="<span class='mainLevel"+("top"==a.text_align&&""!=e.b()?" overThumb":"")+"'"+("left"==a.text_align&&""!=e.b()?" style='margin-right:"+
a.margin_title_thumb+"px;'":"")+">"+e.a()+"</span>";""!=e.b()&&(b+='<img src="'+e.b()+'" class="mainLevel'+("top"==a.text_align?" overThumb":"")+("bottom"==a.text_align?" underThumb":"")+'" alt="'+e.a()+'" />');if(("right"==a.text_align||"bottom"==a.text_align)&&""!=e.a())b+="<span class='mainLevel"+("bottom"==a.text_align&&""!=e.b()?" underThumb":"")+"'"+("right"==a.text_align&&""!=e.b()?" style='margin-left:"+a.margin_title_thumb+"px;'":"")+">"+e.a()+"</span>";b+="</p>";b+='<ul class="kolorMenuGroup">';
e.m(k)}if(c==l||c&&c==e.h())for(var m=0;m<f;m++){var h=e.c().get(m),o="subLevel";!e.g()&&1==f&&(h.m(k),o="mainLevel");b+='<li class="kolorMenuItem" '+(kolorBrowserDetect.isIE()?'aria-haspopup="true" ':"")+'style="z-index:'+j+';">';b+='<p id="'+h.getName()+'" class="'+h.h()+'"'+(a.padding_sub!=l?' style="padding:'+a.padding_sub+'px;"':"")+(0<a.item_title_max_width?a.item_title_tooltip?' title="'+h.a()+'"':"":"")+">";if(("left"==a.text_align||"top"==a.text_align)&&""!=h.a())b+="<span class='"+o+("top"==
a.text_align&&""!=h.b()?" overThumb":"")+"'"+("left"==a.text_align&&""!=h.b()?" style='margin-right:"+a.margin_title_thumb+"px;'":"")+">"+h.a()+"</span>";""!=h.b()&&(b+='<img src="'+h.b()+'" class="'+o+("top"==a.text_align?" overThumb":"")+("bottom"==a.text_align?" underThumb":"")+'" alt="'+h.a()+'" />');if(("right"==a.text_align||"bottom"==a.text_align)&&""!=h.a())b+="<span class='"+o+""+("bottom"==a.text_align&&""!=h.b()?" underThumb":"")+"'"+("right"==a.text_align&&""!=h.b()?" style='margin-left:"+
a.margin_title_thumb+"px;'":"")+">"+h.a()+"</span>";b+="</p>";b+="</li>"}e.g()&&(b+="</ul></li>")}return b}var a={position:KolorMenu.POSITION.TOP_LEFT,orientation:KolorMenu.DIRECTION.HORIZONTAL,sub_orientation:KolorMenu.DIRECTION.VERTICAL,margin_x:8,margin_y:8,margins_on_items:n,margins_both:n,background_color:"b3b3b3",background_alpha:0.4,border_color:"ffffff",border_alpha:1,border_width:0,border_style:KolorMenu.BORDER_STYLE.NONE,border_radius:7,use_out_effect:k,item_out_bg_color:"4d4d4d",item_out_bg_alpha:1,
item_out_border_color:"424542",item_out_border_alpha:1,item_out_border_width:0,item_out_border_style:KolorMenu.BORDER_STYLE.NONE,item_out_border_radius:7,item_out_font_family:KolorMenu.FONT_FAMILY.ARIAL.value,item_out_font_color:"ffffff",item_out_font_size:14,item_out_font_weight:KolorMenu.FONT_WEIGHT.NORMAL,item_out_font_style:KolorMenu.FONT_STYLE.NORMAL,item_out_font_decoration:KolorMenu.TEXT_DECORATION.NONE,use_hover_effect:k,item_hover_bg_color:"575757",item_hover_bg_alpha:1,item_hover_border_color:"424542",
item_hover_border_alpha:1,item_hover_border_width:0,item_hover_border_style:KolorMenu.BORDER_STYLE.NONE,item_hover_border_radius:7,item_hover_font_family:KolorMenu.FONT_FAMILY.ARIAL.value,item_hover_font_color:"ffffff",item_hover_font_size:14,item_hover_font_weight:KolorMenu.FONT_WEIGHT.NORMAL,item_hover_font_style:KolorMenu.FONT_STYLE.NORMAL,item_hover_font_decoration:KolorMenu.TEXT_DECORATION.NONE,item_selected_color:"",item_selected_alpha:1,item_selected_hover_color:"",item_selected_hover_alpha:1,
item_selected_font_color:"ffffff",open_callback:n,padding_main:l,padding_sub:l,text_align:"right",force_font_menu:n,force_font_menu_color:"",force_font_menu_family:"",force_font_menu_size:"",force_font_menu_weight:"",force_font_menu_style:"",force_font_menu_decoration:"",force_font_submenu:n,force_font_submenu_color:"",force_font_submenu_family:"",force_font_submenu_size:"",force_font_submenu_weight:"",force_font_submenu_style:"",force_font_submenu_decoration:"",item_thumb_max_width:200,item_thumb_max_height:100,
margin_title_thumb:10,item_title_max_width:0,item_title_max_width_limit:n,item_title_tooltip:k,item_spacer:5,full_size:k,use_i18n:k,current_group:l,zorder:0,device:"desktop",scale_offsets:k,scale:1},i=0,m=0,B=n,E=new ktools.Collection,C=l,d=l,F=n,p=this,G=n,H=n,s=n,I=n,D=n;this.setReady=this.K=function(a){G=a};this.isReady=this.isReady=function(){return G};this.getKolorMenuGroups=this.d=function(){return E};this.addKolorMenuGroup=this.q=function(a){E.add(a)};this.setKolorMenuOptions=this.G=function(c){a=
jQuery.extend(a,c)};this.getKolorMenuOptions=this.z=function(){return a};this.changeLanguage=this.u=function(){if(a.use_i18n){updateKolorMenu(o);for(var c=p.d().size(),b=l,d=0,e=l,f=0;f<c;f++){b=p.d().get(f);d=b.c().size();e=b.a();b.g()&&""!=e&&(jQuery("#"+b.getName()).prop("title")&&jQuery("#"+b.getName()).prop("title",e),kolorBrowserDetect.isIE()&&!kolorBrowserDetect.isEdge()&&(e=toStaticHTML(e)),jQuery("#"+b.getName()).find("span").html(e));for(var h=0;h<d;h++){var e=b.c().get(h),i=e.a();""!=i&&
(jQuery("#"+e.getName()).prop("title")&&jQuery("#"+e.getName()).prop("title",i),kolorBrowserDetect.isIE()&&!kolorBrowserDetect.isEdge()&&(i=toStaticHTML(i)),jQuery("#"+e.getName()).find("span").html(i))}}}};this.openKolorMenu=this.B=function(){if(!H){if(!ktools.Device.isTouch()){var c="<style type='text/css'>ul.kolorMenu li:hover>*{display:block;}</style>";kolorBrowserDetect.isIE()&&!kolorBrowserDetect.isEdge()&&(c=toStaticHTML(c));jQuery(c).appendTo("head")}I||(a.scale_offsets&&(a.margin_x=Math.round(a.margin_x*
a.scale),a.margin_y=Math.round(a.margin_y*a.scale)),a.border_width=Math.round(a.border_width*a.scale),a.border_radius=Math.round(a.border_radius*a.scale),a.item_out_border_width=Math.round(a.item_out_border_width*a.scale),a.item_out_border_radius=Math.round(a.item_out_border_radius*a.scale),a.item_out_font_size=Math.round(a.item_out_font_size*a.scale),a.item_hover_border_width=Math.round(a.item_hover_border_width*a.scale),a.item_hover_border_radius=Math.round(a.item_hover_border_radius*a.scale),a.item_hover_font_size=
Math.round(a.item_hover_font_size*a.scale),a.force_font_menu&&(a.force_font_menu_size=Math.round(a.force_font_menu_size*a.scale)),a.force_font_submenu&&(a.force_font_submenu_size=Math.round(a.force_font_submenu_size*a.scale)),a.padding_main!=l&&(a.padding_main=Math.round(a.padding_main*a.scale)),a.padding_sub!=l&&(a.padding_sub=Math.round(a.padding_sub*a.scale)),a.item_thumb_max_width=Math.round(a.item_thumb_max_width*a.scale),a.item_thumb_max_height=Math.round(a.item_thumb_max_height*a.scale),a.item_title_max_width=
Math.round(a.item_title_max_width*a.scale),a.item_spacer=Math.round(a.item_spacer*a.scale),I=k);w();d=jQuery("#"+o);d.css("top","9999px");d.css("left","9999px");var b=d.find(".kolorMenu li>p>img"),g=0;0==b.length?(s=k,p.f()):(b.bind("load",function(){g++;if(b.length==g){s=k;p.f()}}),b.bind("error",function(){g++}));F||(jQuery(window).bind("resize",r),F=k);a.open_callback&&ktools.Code.eval(a.open_callback);H=k}};this.applyAll=this.f=function(){i=0==i?jQuery("#"+q).width():kolorBrowserDetect.isAtLeastIEX(11)&&
document.msFullscreenElement!=l?document.getElementById(q).clientWidth:jQuery("#"+q).width();m=0==m?jQuery("#"+q).height():kolorBrowserDetect.isAtLeastIEX(11)&&document.msFullscreenElement!=l?document.getElementById(q).clientHeight:jQuery("#"+q).height();u(d.find(".kolorMenuMain"),a);A();"left"==a.text_align?d.find("ul.kolorMenu p").css("text-align","right"):"top"==a.text_align?(d.find("ul.kolorMenu p").css("text-align","center"),d.find("ul.kolorMenu span.overThumb").css("display","block"),d.find("ul.kolorMenu span.overThumb").css("padding-bottom",
"5px"),d.find("ul.kolorMenu img.overThumb").css("vertical-align","top")):"bottom"==a.text_align&&(d.find("ul.kolorMenu p").css("text-align","center"),d.find("ul.kolorMenu span.underThumb").css("display","block"),a.force_font_submenu?d.find("ul.kolorMenu span.underThumb.subLevel").css("line-height",a.force_font_submenu_size+"px"):d.find("ul.kolorMenu span.underThumb.subLevel").css("line-height",a.item_out_font_size+"px"),a.force_font_menu?d.find("ul.kolorMenu span.underThumb.mainLevel").css("line-height",
a.force_font_menu_size+"px"):d.find("ul.kolorMenu span.underThumb.mainLevel").css("line-height",a.item_out_font_size+"px"),d.find("ul.kolorMenu span.underThumb").css("margin-top","5px"),d.find("ul.kolorMenu img.underThumb").css("vertical-align","top"));if(""!=a.item_selected_color){var c=ktools.Color.hex2rgb(a.item_selected_color),b=document.createElement("style");b.type="text/css";"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?b.styleSheet.cssText="#"+o+" .menuSelected { background-color: rgb("+
c[0]+","+c[1]+","+c[2]+"); }":"Explorer"==kolorBrowserDetect.browser&&10>kolorBrowserDetect.version?b.styleSheet.cssText="#"+o+" .menuSelected { background-color: rgba("+c[0]+","+c[1]+","+c[2]+","+a.item_selected_alpha+"); }":b.innerHTML=kolorBrowserDetect.isIE()&&!kolorBrowserDetect.isEdge()?toStaticHTML("#"+o+" .menuSelected { background-color: rgba("+c[0]+","+c[1]+","+c[2]+","+a.item_selected_alpha+"); }"):"#"+o+" .menuSelected { background-color: rgba("+c[0]+","+c[1]+","+c[2]+","+a.item_selected_alpha+
"); }";document.getElementsByTagName("head")[0].appendChild(b);c=document.createElement("style");"Explorer"==kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?c.styleSheet.cssText="#"+o+" .menuSelected span { color: #"+a.item_selected_font_color+"; }":"Explorer"==kolorBrowserDetect.browser&&10>kolorBrowserDetect.version?c.styleSheet.cssText="#"+o+" .menuSelected span { color: #"+a.item_selected_font_color+"; }":c.innerHTML=kolorBrowserDetect.isIE()&&!kolorBrowserDetect.isEdge()?toStaticHTML("#"+
o+" .menuSelected span { color: #"+a.item_selected_font_color+"; }"):"#"+o+" .menuSelected span { color: #"+a.item_selected_font_color+"; }";document.getElementsByTagName("head")[0].appendChild(c)}c=d.find(".kolorMenuMain").children().find("ul");d.css("top","");d.css("right","");d.css("bottom","");d.css("left","");switch(a.orientation){case KolorMenu.DIRECTION.VERTICAL:d.find(".kolorMenuMain").css("display","block").css("padding","0 "+a.item_spacer+"px "+a.item_spacer+"px");d.find(".kolorMenu>li").css("float",
"none").css("padding",a.item_spacer+"px 0 0 0");a.full_size&&x();break;case KolorMenu.DIRECTION.HORIZONTAL:"Explorer"==kolorBrowserDetect.browser&&7>kolorBrowserDetect.version?d.find(".kolorMenuMain").css("display","inline").css("zoom",1).css("padding","0 "+a.item_spacer+"px 0 0"):d.find(".kolorMenuMain").css("display","inline-block").css("padding","0 "+a.item_spacer+"px 0 0"),d.find(".kolorMenu>li").css("float","left").css("margin",a.item_spacer+"px 0 "+a.item_spacer+"px "+a.item_spacer+"px"),("left"==
a.text_align||"right"==a.text_align)&&t(d.find(".kolorMenu")),a.full_size&&y()}switch(a.sub_orientation){case KolorMenu.DIRECTION.VERTICAL:c.css("padding","0 "+a.item_spacer+"px");c.find(">li").css("display","block").css("margin",a.item_spacer+"px 0 0");break;case KolorMenu.DIRECTION.HORIZONTAL:c.css("padding","0"),"Explorer"==kolorBrowserDetect.browser&&7>kolorBrowserDetect.version?c.find(">li").css("display","inline").css("zoom",1).css("margin",a.item_spacer+"px 0 0 "+a.item_spacer+"px"):c.find(">li").css("display",
"inline-block").css("margin",a.item_spacer+"px 0 "+a.item_spacer+"px "+a.item_spacer+"px")}switch(a.position){case KolorMenu.POSITION.TOP_LEFT:(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.HORIZONTAL)&&d.css("left",a.margin_x+"px");(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.VERTICAL)&&d.css("top",a.margin_y+"px");break;case KolorMenu.POSITION.TOP:a.margins_on_items?a.margins_on_items&&a.orientation==KolorMenu.DIRECTION.VERTICAL&&d.css("left",(i-d.width())/2+a.margin_x+"px"):
a.full_size&&a.orientation==KolorMenu.DIRECTION.HORIZONTAL?d.css("left",a.margin_x):d.css("left",(i-d.width())/2+a.margin_x+"px");(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.VERTICAL)&&d.css("top",a.margin_y+"px");break;case KolorMenu.POSITION.TOP_RIGHT:(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.HORIZONTAL)&&d.css("right",a.margin_x+"px");(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.VERTICAL)&&d.css("top",a.margin_y+"px");break;case KolorMenu.POSITION.RIGHT:(!a.margins_on_items||
a.orientation!=KolorMenu.DIRECTION.HORIZONTAL)&&d.css("right",a.margin_x+"px");a.orientation==KolorMenu.DIRECTION.VERTICAL?a.margins_on_items||d.css("top",(m-d.height())/2+a.margin_y+"px"):d.css("top",(m-d.height())/2+a.margin_y+"px");break;case KolorMenu.POSITION.BOTTOM_RIGHT:(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.HORIZONTAL)&&d.css("right",a.margin_x+"px");(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.VERTICAL)&&d.css("bottom",a.margin_y+"px");a.orientation==KolorMenu.DIRECTION.HORIZONTAL&&
"inline-block"==d.find(".kolorMenuMain").css("display")&&d.find(".kolorMenuMain").css("vertical-align","bottom");break;case KolorMenu.POSITION.BOTTOM:a.margins_on_items?a.margins_on_items&&a.orientation==KolorMenu.DIRECTION.VERTICAL&&d.css("left",(i-d.width())/2+a.margin_x+"px"):a.full_size&&a.orientation==KolorMenu.DIRECTION.HORIZONTAL?d.css("left",a.margin_x+"px"):d.css("left",(i-d.width())/2+a.margin_x+"px");(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.VERTICAL)&&d.css("bottom",a.margin_y+
"px");a.orientation==KolorMenu.DIRECTION.HORIZONTAL&&"inline-block"==d.find(".kolorMenuMain").css("display")&&d.find(".kolorMenuMain").css("vertical-align","bottom");break;case KolorMenu.POSITION.BOTTOM_LEFT:(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.HORIZONTAL)&&d.css("left",a.margin_x+"px");(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.VERTICAL)&&d.css("bottom",a.margin_y+"px");a.orientation==KolorMenu.DIRECTION.HORIZONTAL&&"inline-block"==d.find(".kolorMenuMain").css("display")&&
d.find(".kolorMenuMain").css("vertical-align","bottom");break;case KolorMenu.POSITION.LEFT:(!a.margins_on_items||a.orientation!=KolorMenu.DIRECTION.HORIZONTAL)&&d.css("left",a.margin_x+"px"),a.orientation==KolorMenu.DIRECTION.VERTICAL?a.margins_on_items||d.css("top",(m-d.height())/2+a.margin_y+"px"):d.css("top",(m-d.height())/2+a.margin_y+"px")}a.orientation==KolorMenu.DIRECTION.VERTICAL?v():z()};this.applyResetCSS=this.s=function(){var a=d.find(".kolorMenuMain").children().find("ul"),b=d.find("li.kolorMenuItem");
d.find("ul").removeData();d.find("p").css("height","");d.find("p").css("line-height","");d.css("top","");d.css("right","");d.css("bottom","");d.css("left","");d.find(".kolorMenuMain").css("width","");d.find(".kolorMenuMain").css("height","");d.find(".kolorMenu").css("width","");d.find(".kolorMenu").css("padding-left","");b.css("margin","");b.css("padding","");a.css("top","");a.css("right","");a.css("bottom","");a.css("left","")};this.showKolorMenu=this.o=function(){d.show();D&&(D=n,p.f())};this.hideKolorMenu=
this.n=function(){D=k;d.hide()};this.changeSelectedItem=this.v=function(a){for(var b=p.d().size(),a=a&&a[0]?a[0]:"",d=0,e=l,f=0;f<b;f++){group=p.d().get(f);jQuery("p#"+group.getName()).removeClass("menuSelected");jQuery("p#"+group.getName()).mouseenter();jQuery("p#"+group.getName()).mouseleave();for(var d=group.c().size(),h=0;h<d;h++)e=group.c().get(h),e.h()==a?(jQuery("p#"+group.getName()).addClass("menuSelected"),jQuery("p#"+e.getName()).addClass("menuSelected"),jQuery("p#"+group.getName()).mouseenter(),
jQuery("p#"+group.getName()).mouseleave()):jQuery("p#"+e.getName()).removeClass("menuSelected"),jQuery("p#"+e.getName()).mouseenter(),jQuery("p#"+e.getName()).mouseleave()}};this.changeCurrentGroup=this.t=function(a){if(a[0]&&""!=a[0]){if(a[0]!=C){C=a[0];a=j(a[0]);kolorBrowserDetect.isIE()&&!kolorBrowserDetect.isEdge()&&(a=toStaticHTML(a));jQuery("#"+q).find(".kolorMenuMain .kolorMenu").html(a);var b=d.find(".kolorMenu li>p>img"),g=0;0==b.length?(s=k,p.f()):(b.bind("load",function(){g++;b.length==
g&&(s=k,p.f())}),b.bind("error",function(){g++}))}"none"==d.css("display")&&p.o()}else p.n()}};KolorMenu.DIRECTION={VERTICAL:"vertical",HORIZONTAL:"horizontal"};KolorMenu.POSITION={TOP_LEFT:"topleft",TOP:"top",TOP_RIGHT:"topright",RIGHT:"right",BOTTOM_RIGHT:"bottomright",BOTTOM:"bottom",BOTTOM_LEFT:"bottomleft",LEFT:"left"};KolorMenu.BORDER_STYLE={SOLID:"solid",DOTTED:"dotted",DASHED:"dashed",DOUBLE:"double",GROOVE:"groove",RIDGE:"ridge",INSET:"inset",OUTSET:"outset",NONE:"none"};
KolorMenu.FONT_WEIGHT={NORMAL:"normal",BOLD:"bold"};KolorMenu.FONT_STYLE={NORMAL:"normal",ITALIC:"italic"};KolorMenu.TEXT_DECORATION={UNDERLINE:"underline",OVERLINE:"overline",LINE_THROUGH:"line-through",BLINK:"blink",NONE:"none"};
KolorMenu.FONT_FAMILY={ARIAL:{name:"Arial",value:"Arial,'DejaVu Sans','Liberation Sans',Freesans,sans-serif"},ARIAL_NARROW:{name:"Arial Narrow",value:"'Arial Narrow','Nimbus Sans L',sans-serif"},ARIAL_BLACK:{name:"Arial Black",value:"'Arial Black',Gadget,sans-serif"},BOOKMAN:{name:"Bookman",value:"'Bookman Old Style',Bookman,'URW Bookman L','Palatino Linotype',serif"},CENTURY_GOTHIC:{name:"Century Gothic",value:"'Century Gothic',futura,'URW Gothic L',Verdana,sans-serif"},COMIC_SANS_MS:{name:"Comic Sans MS",
value:"'Comic Sans MS',cursive"},CONSOLE:{name:"Console",value:"Consolas,'Lucida Console','DejaVu Sans Mono',monospace"},COURIER:{name:"Courier",value:"'Courier New',Courier,'Nimbus Mono L',monospace"},GEORGIA:{name:"Georgia",value:"Constantia,Georgia,'Nimbus Roman No9 L',serif"},HELVETICA:{name:"Helvetica",value:"Helvetica,Arial,'DejaVu Sans','Liberation Sans',Freesans,sans-serif"},IMPACT:{name:"Impact",value:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},LUCIDA_SANS:{name:"Lucida Sans",
value:"'Lucida Sans Unicode','Lucida Grande','Lucida Sans','DejaVu Sans Condensed',sans-serif"},PALATINO:{name:"Palatino",value:"Cambria,'Palatino Linotype','Book Antiqua','URW Palladio L',serif"},TAHOMA:{name:"Thaoma",value:"'Tahoma',sans-serif"},TIMES_NEW_ROMAN:{name:"Times New Roman",value:"Cambria,'Times New Roman','Nimbus Roman No9 L','Freeserif',Times,serif"},TREBUCHET:{name:"Trebuchet",value:"'Trebuchet MS',sans-serif"},VERDANA:{name:"Verdana",value:"Verdana, sans-serif"}};
KolorMenuObject=function(){var o="",q="",r="",t="",u="",x=n,y=n,z="",v={},A=l,w=new ktools.Collection;this.setName=this.H=function(j){o=j};this.setTitle=this.N=function(j){q=j};this.setI18nText=this.F=function(j){r=j};this.setAction=this.C=function(j){t=j};this.setThumbnail=this.M=function(j){u=j};this.setSubMenu=this.L=function(j){x=j};this.setMainLevel=this.m=function(j){y=j};this.setCssClass=this.D=function(j){z=j};this.getName=this.getName=function(){return o};this.getTitle=this.a=function(){return q};
this.getI18nText=this.w=function(){return r};this.getAction=this.j=function(){return t};this.getThumbnail=this.b=function(){return u};this.getSubMenu=this.g=function(){return x};this.getMainLevel=this.i=function(){return y};this.getCssClass=this.h=function(){return z};this.addOption=this.r=function(j,a){v[j]=a};this.setOptions=this.I=function(j){v=j};this.getOptions=this.e=function(){return v};this.setParent=this.J=function(j){A=j};this.getParent=this.getParent=function(){return A};this.addChild=
this.p=function(j){w.add(j)};this.getChildren=this.c=function(){return w};this.hasChildren=this.k=function(){return Boolean(0<w.size())}};})();