if(typeof originalTheme==="undefined"){var originalTheme={}
}(function(){originalTheme.spaces={};
jQuery(document).ready(function(){A()
});
function A(){jQuery.ajax({type:"POST",data:{categoryKey:jQuery("#spacelistVarCategoryKey").html(),spacesSelectedTab:jQuery("#spacelistVarSpacesSelectedTab").html(),selectedTeam:jQuery("#spacelistVarSelectedTeam").html(),spaceDirectory:jQuery("#spacelistVarSpaceDirectory").html(),closedCategories:jQuery("#spacelistVarClosedCategories").html()},url:contextPath+"/ajaxactions/load-spaces.action",success:function(B){B=originalTheme.validateAjaxResponse(B);
jQuery("#spaces_wrapper").html(B);
jQuery("#spaces_loader").hide();
jQuery("#spaces_wrapper").show()
},error:function(B){alert(B.status+" "+B.statusText)
}})
}originalTheme.spaces.filterSpaceList=function(B){originalTheme.spaces.filterSpaceList(B,"",false)
};
originalTheme.spaces.filterSpaceList=function(B,C){originalTheme.spaces.filterSpaceList(B,C,false)
};
originalTheme.spaces.filterSpaceList=function(B,C,D){jQuery("#spacelist_container").fadeTo("fast",0.5);
jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/filter-spaces.action",data:{spacesSelectedTab:B,selectedTeam:C,closedCategories:jQuery("#spacelistVarClosedCategories").html(),spaceDirectory:jQuery("#spacelistVarSpaceDirectory").html()},success:function(E){E=originalTheme.validateAjaxResponse(E);
jQuery("#spacelist_container").html(E);
jQuery("#spacelist_menu .active").removeClass("active");
jQuery("#spacelist_team .active_team").removeClass("active_team");
jQuery("#spacelist_"+B).addClass("active");
if(C!=""){jQuery("#spacelist_team #team_"+C).addClass("active_team")
}if(D){jQuery("#spacelist_menu #team_"+C).addClass("active")
}jQuery("#spacelist_container").fadeTo("fast",1)
},error:function(E){alert(E.status+" "+E.statusText)
}})
};
originalTheme.spaces.hideSpaceSection=function(B){jQuery("#space_list_"+B).hide();
jQuery("#space_caption_"+B).hide();
jQuery("#space_caption_closed_"+B).show()
};
originalTheme.spaces.showSpaceSection=function(B){jQuery("#space_list_"+B).show();
jQuery("#space_caption_"+B).show();
jQuery("#space_caption_closed_"+B).hide()
};
originalTheme.spaces.hideSubSpaceSection=function(B){jQuery("#space_sub_list_"+B).hide();
jQuery("#space_sub_caption_"+B).hide();
jQuery("#space_sub_caption_closed_"+B).show()
};
originalTheme.spaces.showSubSpaceSection=function(B){jQuery("#space_sub_list_"+B).show();
jQuery("#space_sub_caption_"+B).show();
jQuery("#space_sub_caption_closed_"+B).hide()
}
})();

