jQuery(function(){

//	DoAlign();

	$(window).resize(function() {
		DoAlign();
	});	

	$('.hentry').jScrollPane({
			verticalDragMinHeight: 10,
			verticalDragMaxHeight: 10
	});

	$("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").fancybox();


	$('input[title]').each(function() {
		if($(this).val() === '') {$(this).val($(this).attr('title'));}
  
		$(this).focus(function() {
			if($(this).val() === $(this).attr('title')) {$(this).val('').addClass('focused');}
		});
  
		$(this).blur(function() {
			if($(this).val() === '') {$(this).val($(this).attr('title')).removeClass('focused');}
		});
	 });

});

function DoAlign()
{
	var mTop = ( $(window).height() - 600 )  / 2;
	$('#container').css('margin-top', mTop);
	$('#container').removeClass('center');
}
