var t;

window.addEvent('domready', function() {
	var textarea = $('comment_text'), log = $('log');
	
	// We define the highlight morph we're going to
	// use when firing an event
	
	
	// Here we start adding events to textarea.
	// Note that 'focus' and 'keyup' are native events, while 'burn'
	// is a custom one we've made
	textarea.addEvents({
		focus: function() {
			// When focusing, if the textarea contains value "Type here", we
			// simply clear it.
			if (textarea.value.contains('Say Something') || textarea.value.contains('Type here to make the first post to your conversation')){
				textarea.fade(0.5);
				
				t=setTimeout("timeout('comment_text')",400);
				
				}
		},
		keyup: function() {
				
				textarea.fade(1);
				 
				textarea.style.color = "#000000";
			
			}
		
		
		
	});
});

function timeout(id)
{
	
clearTimeout(t);
$(id).set('html', '');

}