// JavaScript Document

$(document).ready(function() {
$('#s1').cycle({ 
    fx:    'fade', 
    speed:  2500,
	random:  1
 });

 
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...');		
	});
});

