// JavaScript Document

$(document).ready(function() {
  $('#s1').cycle({ 
    delay:  800, 
    speed:  800, 
    after: onAfter 
}); 
 
function onAfter() { 
    $('#title') 
        .html(this.alt); 
}; 
 });

$(document).ready(function(){
	// Get the text from the label element
	var labelTxt = $('#search_form label').text();
	// Put the text from the label element into the search field's value	
	$('#s').attr('value',labelTxt);
	// Focus & blur effects
	$('#s').focus(function(){
		if ((this.value == '') || (this.value == labelTxt)) {
			$(this).val('');
		}
	});
	$('#s').blur(function(){
		if (this.value == '') {
			$(this).val(labelTxt);
		}
	});
	// On submit change the value while server side code is run
	$("#go").click(function(){
		$('#s').attr('value','Searching...');		
	});
});
