// Executes after everything else on page is loaded
$(window).bind('load', function() {
	activateHoverOnComments();
	//activateSnippetList();
	postsSpecific();
	activateCodeFormatting();
	$("blockquote").bquoteExt();
});

function activateSnippetList() {
	$('.snippet-list span.datetime').hide();

	$('.snippet-list span.title').mouseover(function() {
		$(this).next().show();
	});

	$('.snippet-list span.title').mouseout(function() {
		$(this).next().hide();
	});
}

function activateCodeFormatting() {
	$.beautyOfCode.init({
		brushes: ['Xml', 'JScript', 'CSharp', 'Plain', 'Php', 'Ruby', 'Bash'],
		theme: "DevelopingInTheDark"
	});
}

function activateHoverOnComments() {
	$('.comment').mouseover(function() {
		$(this).find('.comment-web-url').show();

	});
	$('.comment').mouseout(function() {
		$('.comment-web-url').hide();
	});
}

function postsSpecific() {
	// Spam post
	$('#google-captcha-img-link').click(function() {
		$('#google-captcha-img').fadeIn(2000);
		return false;
	});

}

