﻿if(typeof(Soobb)=="undefined"){Soobb={}}if(typeof(Soobb.Labs)=="undefined"){Soobb.Labs={}}if(typeof(Soobb.Labs.UI)=="undefined"){Soobb.Labs.UI={}}Soobb.Labs.UI.Collapser=new (function(){var a=jQuery("#NavigatorMenu"),c=a.children("li");var b=c.filter("li:not(.Second)");var e=c.filter("li.Second");SecondMenus=[];b.children("a").attr("href","javascript:void(0)");b.each(function(f){jQuery(this).data("Number",f);SecondMenus[f]=c.slice(c.index(jQuery(this)),c.index(b.size()<f?null:b[f+1]))});if(b.length>1){b.click(function(f){if(f==null){f=window.event}var g=f.srcElement?f.srcElement:f.target;d(jQuery(g).parent().data("Number"));return false})}this.Init=function(f){d(f==null?0:f-1)};var d=function(f){if(!b[f]){return}b.not(":eq("+f+")").addClass("Collapse");b.filter(":eq("+f+")").removeClass("Collapse");e.hide();SecondMenus[f].show()};this.Init(1)})();