$(document).ready(function() {

	$('body').removeClass('nojs');

	$('.home_image .hover').css('opacity', 0.0).show();

	$('.home_image').hover(function() {
		$(this).children('a').children('.hover').stop().fadeTo('slow', 1.0);
	},
	function() {
		$(this).children('a').children('.hover').stop().fadeTo('slow', 0.0);
	});
	
	$('.fancybox').fancybox({
		'overlayColor': '#000'
	});
	
	// stuff for the blog comments
	
	$('#comment-button').click(function () {
		$.get('/blog/user/themes/pixelhum/commentformajax.php', comment_vars, function(data) {
			$('#comment-form-box').html(data);
			Vanadium.init();
		});
	});
});
