var cus = function () {
	// Equals supplied elements heights
	var eq = function () {
		// Extend passed in arguments
		var items = $(arguments);
		var lg = 0;

		// Loop through all elems getting largest
		items.each(function (i) {
			var item = $(items[i]);

			if (item.height() > lg) {
				lg = item.height();
			}
		});

		// Set all elements to largest
		items.each(function (i) {
			var item = $(items[i]);
			
			if (item.height() < lg) {
				item.height(lg);
			}
		});
	};


	var prepFlash = function () {
		var so = new SWFObject("/assets/swf/featured.swf", "banner1", "984", "306", "#ffffff");
		so.addParam("menu", "false");
		so.addVariable("xmlSrc","/home/data.xml");
		so.write("flashNav");
	};

	return {
		eq: eq,
		prepFlash: prepFlash
	};
}();

$(document).ready(function () {
	cus.eq($('#categories'), $('#dateListing'));
	cus.eq($('#sideComments'), $('#sideRecentPosts'));
	cus.prepFlash();
});