dojo.behavior.add({
	'.table_cart_contents .top': {
		found	: function(node) {
			node.akContent = dojo.query('.content', node.parentNode)[0];
			node.akContentScrollHeight = node.akContent.scrollHeight;
			
			dojo.style(node.akContent, {
				display		: 'none',
				visibility	: 'visible'
			});
			
			node.akAnimShow = new dojo.animateProperty({
				node		: node.akContent,
				properties	: {
					height	: {
						start	: 1,
						end		: node.akContentScrollHeight
					}
				},
				beforeBegin	: function() {dojo.style(node.akContent, 'display', '')},
				duration	: 500,
				easing		: function(n) {
					var s = 1.70158 * 1.525;
					n = n*2;
					if(n < 1){ return (Math.pow(n, 2)*((s+1)*n - s))/2; }
					n-=2;
					return (Math.pow(n, 2)*((s+1)*n + s) + 2)/2;
				}
			});
			
			node.akAnimHide = new dojo.animateProperty({
				node		: node.akContent,
				properties	: {
					height	: {
						end	: 1
					}
				},
				onEnd		: function() {dojo.style(node.akContent, 'display', 'none')},
				duration	: 500,
				easing		: function(n) {
					var s = 1.70158 * 1.525;
					n = n*2;
					if(n < 1){ return (Math.pow(n, 2)*((s+1)*n - s))/2; }
					n-=2;
					return (Math.pow(n, 2)*((s+1)*n + s) + 2)/2;
				}
			});
		}, 
		onclick	: function(evt) {
			if (dojo.style(this.akContent, 'display') == 'none')
				this.akAnimShow.play();
			else
				this.akAnimHide.play();
		}
	}
});
