$(document).ready( function () {
	$(".item_header").hover( function () {
		$(this).addClass('hover_hue');
	},
	function () {
		$(this).removeClass('hover_hue');
	});
});

function toggleStackItem(item_header) {
	var content = $(item_header).siblings('.item_content');
	var others = $("#stack").find('.item_content').not(content);

	others.slideUp();
	content.slideToggle();
	
	this_arrow = $(item_header).children('.arrow');
	this_now_arrow = $(item_header).children('.not_arrow');
		
	if (this_arrow.attr('src') == 'img/arrow.png') {
		this_arrow.attr('src', 'img/arrow_d.png');
	} else {
		this_arrow.attr('src', 'img/arrow.png');
	}
		
	if (this_now_arrow.attr('src') == 'img/donate_life.png') {
		this_now_arrow.attr('src', 'img/donate_life_d.png');
	} else {
		this_now_arrow.attr('src', 'img/donate_life.png');
	}
		
	$(".arrow").not(this_arrow).attr('src', 'img/arrow.png');
	$(".not_arrow").not(this_now_arrow).attr('src', 'img/donate_life.png');
}
