/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
 
var $nymag_j = jQuery.noConflict();






/*
	tabs for jquery (most popular, etc. tabbed modules)
*/

function initTabbedModule(container_id) {
	var tabContainers = $nymag_j('#' + container_id + ' div.tabs-sidebar > div');
	tabContainers.hide().filter('.tab-open').show();
	
	$nymag_j('#' + container_id + ' div.tabs-sidebar ul.tabNav a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		$nymag_j('#' + container_id + ' div.tabs-sidebar ul.tabNav a').removeClass('selected');
		$nymag_j(this).addClass('selected');
		return false;
	}).filter('.tab-open').click();
}








