$(document).ready(function() {
	
	$('.entry a.title').click(function() {
		$('.entry .content').slideUp();
		$(this).parents('.entry').find('.content').slideDown();
		return false;
	});
	$('.pwi_container .pwi_photo a').live('click', function() {
		$('.comment').slideUp();
		$(this).parent('.pwi_photo').find('.comment').slideDown();
		return false;
	})
	$('.menu .links a').click( function () {
		$('.menu .links a.active').removeClass('active');
		$(this).addClass('active');
		$('.content .tab').fadeOut('slow').eq( $('.menu .links a').index($(this)) ).fadeTo('slow',0.4);
	});
	if(window.location.hash) {
		$('.menu .links a').each( function() {
			//console.log(window.location.hash);
			if ($(this).attr('href')==window.location.hash) $(this).click();
		});
	}
	$('a.internlink').click(function() {
		//$('.content .tab').fadeOut('slow');
		var tab = $('.content .tab.'+$(this).attr('href').substr(1));
		$('.menu .links a').eq( $('.content .tab').index(tab) ).click();
		//tab.fadeIn('slow');
		//return false;
	});
	$('.menu').hide().fadeTo('slow',0.5);

});
function changebox(i) {}
