// JavaScript Document
// When the DOM is ready, initialize the scripts.
jQuery(function( $ ){

	// Get a reference to the container.
	var div = $( "#panel" );
	var button = $( "#bt_shop_src" );
	var height = div.height(); 
	
	
	div.hide().css({ height : 0 }); 

	// Bind the link to toggle the slide.
	button.click(
		function( event ){
			// Prevent the default event.
			event.preventDefault();

			// Toggle the slide based on its current
			// visibility.
			if (div.is( ":hidden" )){

				// Hide - slide down.
				//inner.slideDown( 2000 );
				//inner.height( 113 );
				div.show().animate({ height : 120 }, { duration: 2000})  
			} else {
				// Show - slide up.
				//inner.slideUp( 2000 );
				div.animate({ height: 0 }, { duration: 2000, complete: function () {
					div.hide();
				} })  
			}
		}
	);

});
