window.addEvent( 'domready', function() {	
	/*$('search-form').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		
		//Empty the log and show the spinning indicator.
		var tapestry = $('inner').empty();
		$( 'ajax-indicator' ).setStyle( 'display', 'block' );
		
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) { 
			$( 'ajax-indicator' ).setStyle( 'display', 'none' );
			tapestry.set('html', response);
		}});
		
		//Send the form.
		this.send();
	});*/
	
	$('user-input').addEvent('focus', function(e){
		if( this.value == 'Username...' ){
			this.value = '';
		}
	});
	
	$( 'user-input' ).addEvent( 'blur', function(e){
		if( this.value=='' ){
			this.value='Username...';
		}
	});
	
	var aboutSlide = new Fx.Slide('about-inner');
	aboutSlide.hide();
	
	$('about-toggle').addEvent('click', function(e){
		e.stop();
		aboutSlide.toggle();
	});

});

/*window.addEvent( 'load', function(){
	$('inner').empty();
	$( 'ajax-indicator' ).setStyle( 'display', 'block' );	
	var req = new Request.HTML( {url: 'tapestry.php', update: $('inner'), onComplete: function(){
		$( 'ajax-indicator' ).setStyle( 'display', 'none' );
	}} );
		
	req.get( {'user':''} )
});*/
