var buttonoff = true;
var baroff = true;

$j = jQuery.noConflict();

$j(document).ready(function() {
	
	//Corner Misc
	$j('#main').corner();
	$j('#sidebar>ul>li').corner();

	//Sidebar Hovering
	$j("#sidebar>ul>li:not(.current)").hover(function() {
		$j(this).stop().animate({ backgroundColor: "#FFFFFF" }, 500);
	}, function() {
		$j(this).stop().animate({ backgroundColor: "#DBDBDB" }, 1000);
	});

	/*$j("#sidebar li.current").hover(function() {
		$j(this).stop().animate({ backgroundColor: "#999999" }, 500);
	}, function() {
		$j(this).stop().animate({ backgroundColor: "#FFFFFF" }, 1000);
	});*/

	//Navbar
	$j('#navbar a:not(.current)').hover(function() {
		$j(this).stop().animate({ backgroundColor: "#515151" }, 500);
	}, function() {
		$j(this).stop().animate({ backgroundColor: "#000000" }, 1000);
	});


	//Other Sites Bar
	$j('#othersites-show').click(function() {
		if ($j(this).hasClass('open')) {
			$j('#othersites').animate({'height':'0px'}, 250);
			//$j(this).css('background-image', 'url(add.png)');
			$j(this).removeClass('open');
		} else {
			$j('#othersites').animate({'height':'25px'}, 250);
			//$j(this).css('background-image', 'url(delete.png)');
			$j(this).addClass('open');
		}
		return false;
	});
	
	$j('.quote-link').click(function() {
		var quote_text = $j(this).attr('title');
		//var quote_text = $j(this).parent().parent().parent().find('.comment-text:first').text();
		console.log(quote_text);
		$j('#comment').text($j('#comment').text()+'<blockquote>'+quote_text+'</blockquote>');
		return false;
	});


});