if(typeof originalTheme==="undefined"){var originalTheme={}
}(function(){originalTheme.news={};
jQuery(document).ready(function(){jQuery("#main .news_wrapper").each(function(){A(jQuery(this))
})
});
function A(B){jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/load-more-news.action",data:{max: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()
}})
}originalTheme.news.loadMoreNews=function(B){B.find("#load_more_news_link .load_more_text").hide();
B.find("#load_more_news_link .load_more_image").show();
B.find("#load_more_news_link").addClass("load_more_link_loading");
jQuery.ajax({type:"POST",url:contextPath+"/ajaxactions/load-more-news.action",data:{max:B.find("#maxVarNews").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("#news_vars").remove();
B.find("#load_more_news_link").remove();
B.find("#news_container").append(C)
}})
};
originalTheme.news.showNewsItem=function(B){jQuery("#news_"+B).show();
jQuery("#news_show_"+B).hide();
jQuery("#news_hide_"+B).show()
};
originalTheme.news.hideNewsItem=function(B){jQuery("#news_"+B).hide();
jQuery("#news_show_"+B).show();
jQuery("#news_hide_"+B).hide()
}
})();

