$(document).ready(function() {

/**********************************************
CSS Modifications by jQuery
**********************************************/
$('#top ul li:last').css({
	'margin-right' : '0'
});

/**********************************************
Search Options
**********************************************/
$('#show_more_options').click(function() {
	$(this).text($(this).text() == 'Show options' ? 'Hide options' : 'Show options');
	if ($('#more_options').is(':hidden')) {
	$('#more_options').show();
	} else {
	$('#more_options').hide();
	}
});

$('#close_options a').click(function() {
	$('#show_more_options').text($('#show_more_options').text() == 'Show extra options' ? 'Hide extra options' : 'Show extra options');
	$('#more_options').hide();
});

/**********************************************
Opening / closing sidebar widgets
**********************************************/
$('.arr').click(function() {
	$(this).parent().next('ul').toggle();
});

/**********************************************
Opening / Closing large comments
**********************************************/
$('.full_comment').hide();

$('.d_comment').click(function() {
	$(this).hide();
	$(this).prev('.full_comment').show();
});

$('.full_comment').click(function() {
	$(this).hide();
	$(this).next('.d_comment').show();
});

$('.expand_it a').click(function() {
	$('.d_comment').hide();
	$('.full_comment').show();
});

/**********************************************
Latest comment style
**********************************************/
$('#comments li:first .full_comment').show();
$('#comments li:first .d_comment').hide();

});