window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	

	//--horizontal
	var myHorizontalSlide = new Fx.Slide('slider_content', {mode: 'horizontal'});

	$('sliderbtn').addEvent('click', function(e){
		e.stop();
		myHorizontalSlide.toggle();
	});

	// When Horizontal Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myHorizontalSlide.addEvent('complete', function() {
		//$('horizontal_status').set('html', status[myHorizontalSlide.open]);
		aswapImage(status[myHorizontalSlide.open])
	});


});


function aswapImage(astatus)
{

	if (astatus == "close"){
		document.getElementById('h_toggle').src = "img/show.gif";
	} else {
		document.getElementById('h_toggle').src = "img/hide.gif";
	};
}

