if(typeof originalTheme==="undefined"){var originalTheme={}}(function(){originalTheme.activity={};jQuery(document).ready(function(){if(jQuery("#rw_activity_macro_wrapper").length>0){B()}});function B(){jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/init-activity-stream.action",data:{start:"0",stepSize:jQuery("#stepSizeVarActivity").html(),types:jQuery("#typesVarActivity").html(),categoryKey:jQuery("#categoryKeyVarActivity").html(),spaces:jQuery("#spacesVarActivity").html(),init:true},success:function(C){C=originalTheme.validateAjaxResponse(C);jQuery("#rw_activity_macro_wrapper").html(C);jQuery("#rw_activity_macro_loader").hide();jQuery("#rw_activity_macro_wrapper").show()},error:function(C){if(C.status!=0){jQuery("#rw_activity_macro_wrapper").html("<div class='rw_warning_box'>"+C.status+" "+C.statusText+"</div>").show();jQuery("#rw_activity_macro_loader").hide()}}})}function A(E,C,D){jQuery("#rw_activity_macro_container").fadeTo("fast",0.5);jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/update-activity-stream.action",data:{types:E,selectedTab:C,selectedTeam:D,start:"0",stepSize:jQuery("#stepSizeVarActivity").html(),categoryKey:jQuery("#categoryKeyVarActivity").html(),spaces:jQuery("#spacesVarActivity").html()},success:function(F){F=originalTheme.validateAjaxResponse(F);jQuery("#rw_activity_macro_container").html(F);jQuery("#rw_activity_macro_container").fadeTo("fast",1)},error:function(F){if(F.status!=0){jQuery("#rw_activity_macro_wrapper").html("<div class='rw_warning_box'>"+F.status+" "+F.statusText+"</div>").show();jQuery("#rw_activity_macro_loader").hide()}}})}originalTheme.activity.initFilter=function(C){jQuery('#rw_content_types input[type="checkbox"]:checked').each(function(){jQuery(this).parent().removeClass("rw_selected");jQuery(this).parent().find("input").attr("checked",false)});if(C.length>0){typeList=C.split(",");for(i=0;i<typeList.length;i++){var D=typeList[i];jQuery("#rw_content_types li.rw_type_"+D).addClass("rw_selected");jQuery("#rw_content_types li.rw_type_"+D).find("input").attr("checked",true)}jQuery("#rw_filter_button").addClass("rw_filter_on");jQuery("#rw_filter_button #rw_filter_button_off").hide();jQuery("#rw_filter_button #rw_filter_button_on").show()}else{jQuery("#rw_content_types li.rw_type_all").addClass("rw_selected");jQuery("#rw_content_types li.rw_type_all").find("input").attr("checked",true)}};originalTheme.activity.toggleThumbnail=function(F){var E=document.getElementById("twixie-"+F);if(E.className.indexOf("right")!=-1){E.className="rw_icon_container_16 rw_arrow_down"}else{E.className="rw_icon_container_16 rw_arrow_right"}var D="thumbnail-"+F;var C=document.getElementById(D);if(C.style.display=="none"){C.style.display=""}else{C.style.display="none"}};originalTheme.activity.loadMoreActivityStream=function(){jQuery("#rw_load_more_activity_link span.rw_load_more_text").hide();jQuery("#rw_load_more_activity_link img.rw_load_more_image").show();jQuery("#rw_load_more_activity_link").addClass("rw_load_more_link_loading");jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/update-activity-stream.action",data:{types:jQuery("#typesVarActivityMore").html(),selectedTab:jQuery("#selectedTabVarActivityMore").html(),selectedTeam:jQuery("#selectedTeamVarActivityMore").html(),start:jQuery("#startVarActivityMore").html(),stepSize:jQuery("#stepSizeVarActivity").html(),categoryKey:jQuery("#categoryKeyVarActivity").html(),spaces:jQuery("#spacesVarActivity").html()},success:function(C){C=originalTheme.validateAjaxResponse(C);jQuery("#rw_recently_vars").remove();jQuery("#rw_load_more_activity_link").remove();jQuery("#rw_activity_macro_container").append(C)},error:function(C){if(C.status!=0){jQuery("#rw_activity_macro_wrapper").html("<div class='rw_warning_box'>"+C.status+" "+C.statusText+"</div>").show();jQuery("#rw_activity_macro_loader").hide()}}})};originalTheme.activity.filterContent=function(){var E="";var C="";var D="";if(!jQuery("#rw_content_types li.rw_type_all").find("input").attr("checked")){jQuery('#rw_content_types input[type="checkbox"]:checked').each(function(){if(jQuery(this).val().length>0){E+=jQuery(this).val()+","}});if(E.length>0){E=E.substring(0,E.length-1)}}if(jQuery("#rw_space_filter_menu li.rw_active").length){C=jQuery("#rw_space_filter_menu li.rw_active").attr("id").substring(10)}if(jQuery("#rw_spaces_team li.rw_active_team").length){D=jQuery("#rw_spaces_team li.rw_active_team").attr("id").substring(8)}A(E,C,D)};originalTheme.activity.filterBySpaces=function(D,E){var C=jQuery("#rw_space_filter_menu");C.find("li.rw_active").removeClass("rw_active");C.find("#rw_spaces_"+D).addClass("rw_active");C.find("li.rw_active_team").removeClass("rw_active_team");if(E!=""){C.find("#rw_team_"+E).addClass("rw_active_team")}originalTheme.activity.filterContent()}})();
if(typeof originalTheme==="undefined"){var originalTheme={}}(function(){originalTheme.spaces={};jQuery(document).ready(function(){if(jQuery("#rw_spaces_macro").length>0){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("#rw_spaces_macro").html(B);jQuery("#rw_spaces_loader").hide();jQuery("#rw_spaces_macro").show()},error:function(B){if(B.status!=0){jQuery("#rw_spaces_macro").html("<div class='rw_warning_box'>"+B.status+" "+B.statusText+"</div>").show();jQuery("#rw_spaces_loader").hide()}}})}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("#rw_spaces_macro_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("#rw_spaces_macro_container").html(E);jQuery("#rw_spacelist_menu .rw_active").removeClass("rw_active");jQuery("#rw_spacelist_team .rw_active_team").removeClass("rw_active_team");jQuery("#rw_spacelist_"+B).addClass("rw_active");if(C!=""){jQuery("#rw_spacelist_team #rw_team_"+C).addClass("rw_active_team")}if(D){jQuery("#rw_spacelist_menu #rw_team_"+C).addClass("rw_active")}jQuery("#rw_spaces_macro_container").fadeTo("fast",1)},error:function(E){if(E.status!=0){jQuery("#rw_spaces_macro").html("<div class='rw_warning_box'>"+E.status+" "+E.statusText+"</div>").show();jQuery("#rw_spaces_loader").hide()}}})};originalTheme.spaces.toggleCategorySection=function(B){if(jQuery(B).hasClass("rw_category_closed")){jQuery(B).removeClass("rw_category_closed");jQuery(B).next().show()}else{jQuery(B).addClass("rw_category_closed");jQuery(B).next().hide()}}})();
if(typeof originalTheme==="undefined"){var originalTheme={}}(function(){originalTheme.news={};jQuery(document).ready(function(){jQuery("#main .rw_news_macro").each(function(){A(jQuery(this))})});function A(B){jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/load-news.action",data:{start:0,stepSize:B.find("#stepSizeVarNews").html(),profilePic:B.find("#profilePicVarNews").html(),spaces:B.find("#spacesVarNews").html(),type:B.find("#typeVarNews").html(),labels:B.find("#labelsVarNews").html(),content:B.find("#contentVarNews").html()},success:function(C){C=originalTheme.validateAjaxResponse(C);B.find("#news_container").append(C);B.find("#news_loader").remove();B.show()},error:function(C){if(C.status!=0){jQuery("#rw_news_macro").html("<div class='rw_warning_box'>"+C.status+" "+C.statusText+"</div>").show();jQuery("#news_loader").hide()}}})}originalTheme.news.loadMoreNews=function(B){B.find("#rw_load_more_news_link .rw_load_more_text").hide();B.find("#rw_load_more_news_link .rw_load_more_image").show();B.find("#rw_load_more_news_link").addClass("rw_load_more_link_loading");jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/load-news.action",data:{start:B.find("#startVarNews").html(),profilePic:B.find("#profilePicVarNews").html(),spaces:B.find("#spacesVarNews").html(),type:B.find("#typeVarNews").html(),labels:B.find("#labelsVarNews").html(),stepSize:B.find("#stepSizeVarNews").html(),content:B.find("#contentVarNews").html()},success:function(C){C=originalTheme.validateAjaxResponse(C);B.find("#rw_news_vars").remove();B.find("#rw_load_more_news_link").remove();B.find("#news_container").append(C)},error:function(C){if(C.status!=0){jQuery("#rw_news_macro").html("<div class='rw_warning_box'>"+C.status+" "+C.statusText+"</div>").show();jQuery("#news_loader").hide()}}})};originalTheme.news.toggleNewsItem=function(B){if(jQuery(B).parent().hasClass("rw_open")){jQuery(B).parent().removeClass("rw_open");jQuery(B).parent().find(".rw_news_item_content").hide()}else{jQuery(B).parent().addClass("rw_open");jQuery(B).parent().find(".rw_news_item_content").show()}}})();
if(typeof originalTheme==="undefined"){var originalTheme={}}(function(){originalTheme.spacenews={};jQuery(document).ready(function(){jQuery("#main .rw_space_news_macro").each(function(){A(jQuery(this))})});function A(B){jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/init-space-news.action",data:{collapsed:B.find("#collapsedVarSpaceNews").html(),pageId:B.find("#pageIdVarSpaceNews").html()},success:function(C){C=originalTheme.validateAjaxResponse(C);B.find("#rw_space_news_macro").html(C).show();B.find("#rw_space_news_loader").hide()},error:function(C){if(C.status!=0){jQuery("#rw_space_news_macro").html("<div class='rw_warning_box'>"+C.status+" "+C.statusText+"</div>").show();jQuery("#rw_space_news_loader").hide()}}})}originalTheme.spacenews.showSpaceNews=function(B){var C=jQuery(B).parent();C.find("#rw_space_news_container").show();C.find("#rw_space_news_show").hide();C.find("#rw_space_news_hide").show()};originalTheme.spacenews.hideSpaceNews=function(B){var C=jQuery(B).parent();C.find("#rw_space_news_container").hide();C.find("#rw_space_news_show").show();C.find("#rw_space_news_hide").hide()}})();

