function SettingsBrowse(){function n(){}function r(t,n){n.path!==undefined&&i(n.path),e.push(new List),n.num===undefined&&(n.num=e.length-1),n.po=funcObj.settingsBrowse,e[n.num].createUI(n)}function i(e,n,r){var i=$(n).find("name").text(),s=(e.indexOf("settings")!=-1||e.indexOf("add_service")!=-1)&&!i;t.push({path:e,parameters:n,title:i,page:r,topLevel:s})}function s(){return t[t.length-1]}function o(n,r){if(r!==undefined&&r)try{e[n].deleteUI()}catch(i){}e[n]&&typeof e[n].destroy=="function"&&e[n].destroy(),e[n]={},e.pop(),t[n]={},t.pop(),t.length&&funcObj.dataAnalytics.sendPageEvent()}function u(t,n,r,i){t===null&&(t=e.length);while(e.length>t)f("100i",!0),o(e.length-1,!1);if(r){var u=funcObj.content.getSettingsSrc(),a,l=s().parameters,c=s().path;f("100i",!0),o(e.length-1,!1),srcObj[u[0]].getContent(funcObj.UIMain.getUID(),l,c,!0)}i&&message(i)}function a(t,n,r,i){funcObj.message.closeMessage();if(i===undefined||i===null||!i)f("100i",!1),o(e.length-1);e.length===0||n?setTimeout(function(){$("#content_browse").removeClass("disp_off"),$("#main_settings").addClass("disp_off").removeClass("disp_on"),funcObj.content.unsetSettingsSource(),l(),funcObj.browse.refreshBrowseScroll()},0):(funcObj.content.disableLoadAni(),f("100",t)),r&&funcObj.message.createQuickMessage(r)}function f(t,n){h()>0&&e[e.length-1].animateUI(t,n)}function l(){$("#content_settings").html("");for(var t=e.length-1;t>=0;t--)o(t,!0);funcObj.dropDown.removeUI(null)}function c(e){e?($("#main_settings").addClass("disp_on").removeClass("disp_off"),$("#content_settings").removeClass("vis_off").addClass("vis_on"),$("#content_browse").addClass("disp_off")):($("#content_browse").removeClass("disp_off"),$("#main_settings").removeClass("disp_on").addClass("disp_off"),$("#content_settings").removeClass("vis_on").addClass("vis_off"))}function h(){return e.length}function p(){var t=null;return h()>0&&(t=e[e.length-1]),t}function d(){t.length>0&&(t[t.length-1]={},t.pop())}var e=[],t=[];this.createPage=r,this.setPath=i,this.getPath=s,this.backToPage=u,this.removeLastPage=a,this.animatePanel=f,this.getNumLists=h,this.getLastList=p,this.toggleUI=c,this.removeLastRequest=d,n()};