﻿Viostream.Category.MediaListHandleSuccess = function(oXML, title, categoryId) {
	if (!Viostream.AjaxObject.DisplayErrors(oXML, "MediaList")) {
		var rsslink = $(".rss-link");
		if (rsslink.length)
			rsslink.attr("href", "/RSSFeed.axd?categoryId=" + categoryId)

		Viostream.hideLoader();
		this.CompleteLoad(oXML, categoryId, title);
	}
}
$(function(){
	$("#footer_menu").find(".popup").click(function() {
		var a = $(this);
		var w = window.open(a.attr("href"), a.text().replace(/\s+/g, "_"), 'width=760,height=500,resizable=1,scrollbars=yes');
		return !w;
	});
});