
// Simulate :hover on document table rows for IE6
document.observe('dom:loaded', function() {
	$$('#documents td.action .trigger').each( function(e) {
		Event.observe(e, 'click', function() {
			this.nextSiblings()[0].style.display='block';
			this.parentNode.style.zIndex='1000';
		});
	});
	$$('#documents td.action form').each( function(e) {
		Event.observe(e, 'submit', function() {
			this.ancestors()[0].style.display='none';
			this.ancestors()[1].style.zIndex='0';
		});
	});
	$$('#documents td.action .cancel').each( function(e) {
		Event.observe(e, 'click', function() {
			this.ancestors()[2].style.display='none';
			this.ancestors()[3].style.zIndex='0';
		});
	});
});