/*
 * jQuery Code for Pampelmoose
 * requires: jQuery
 * version: 0.9
 * http://www.nemodesign.com/
 */

$(document).ready(function() {
	$('#topNav li:first').addClass('first');
	$('#get_recent_comments_wrap li:even').addClass('even');
	$('#get_recent_comments_wrap li:odd').addClass('odd');
	
	$('h4 a.rsswidget').each(function() {
		$(this).find('img').remove();
		var content = $(this).not(':empty').html();
		$(this).parent('h4').append(content);
		$(this).remove();
	});
	
	$('a.trigger').live('click', function(e) {
		$(this).next('ul').slideToggle('fast');
		$(this).next('ul').append('<li class="close">close</li>');
		$('li.close').live('click', function(o) {
			$(this).parent('ul').slideToggle('fast');
			$(this).remove();
		});
		return false;
	});
});
