var sliderHeight = "7.5em";

	$(document).ready(function(){
		
		//$(".chla_balls").css("display", "none");

		$('.slider').each(function () {
					var current = $(this);
					current.attr("box_h", current.height());
				}
		 );
		
		$(".slider").css("height", sliderHeight);
		$(".chla_balls").css("bottom", "0");
		$(".slider_menu").html('<a href="#"><img src="http://204.15.35.137/images/template/bullet_arrow_down.gif" width="16" height="16" class="icon"/>Read More</a>');
		$(".slider_menu a").click(function() { openSlider() },resetNodes)
	});
	
	function resetNodes()
	{
		alert('woo');
		$(chla_balls).css("bottom", "0");
		
	}


	function openSlider()
	{
		var open_height = $(".slider").attr("box_h") + "px";
		$(".slider").animate({"height": open_height}, {duration: "slow" });
		$(".slider").queue( function(){ $(chla_balls).css("bottom", "1px");$(chla_balls).css("bottom", "0"); $(this).dequeue();});


		$(".slider_menu").html('<a href="#"><img src="http://204.15.35.137/images/template/bullet_arrow_up.gif" width="16" height="16" class="icon"/>Close</a>');
		$(".slider_menu a").click(function() { closeSlider() })
		
	}
	
	function closeSlider()
	{
		$(".slider").animate({"height": sliderHeight}, {duration: "slow" });
		$(".slider").queue( function(){ $(chla_balls).css("bottom", "1px");$(chla_balls).css("bottom", "0"); $(this).dequeue();});


		$(".slider_menu").html('<a href="#"><img src="http://204.15.35.137/images/template/bullet_arrow_down.gif" width="16" height="16" class="icon"/>Read More</a>');
		$(".slider_menu a").click(function() { openSlider() })
	}

	