$(document).ready(function()
{
	// $.browser.msie && parseInt($.browser.version) < 7 && $('#header').pngfix();

	$('#chooser .choose a').each(function(i)
	{
		var self = $(this);

		self.click(function()
		{
			$('#chooser .description').load(self.attr('href'), null, function()
			{
				self.parents('ul').find('li.active').removeClass('active');
				self.parents('li').addClass('active');
			});

			return false;
		});
	});

	var active = $('#chooser .choose .active a');
	if (active.length < 1)
	{
		active = $('#chooser .choose a:first');
	}
	active.click();

	$('#class a.delete').click(function()
	{
		if (confirm('Are you sure?'))
		{
			var self = $(this);

			$.post(self.attr('href'), {confirm: '1'}, function(data)
			{
				window.location = window.location;
			});
		}

		return false;
	});

	$('table.stripe tr:nth-child(even)').addClass('alt');
});

