$(document).ready(function() {
				   
	var addFocusAndBlur = function($input, $val){
	
			$input.focus(function(){
				if (this.value == $val) {this.value = '';}
			});
	
			$input.blur(function(){
				if (this.value == '') {this.value = $val;}
			});
		}
	
	// example code to attach the events
	addFocusAndBlur(jQuery('#s'),'Search...');
	
	$('#slider').slides({
		effect: 'fade',
		fadeSpeed: 800,
		fadeEasing: 'easeInOutQuad',
		play: 4000,
		pause: 4000,
		hoverPause: true
	});
	
	$('.slideshow').cycle({ 
    fx:    'fade', 
    speed:  2500 
 	});
	
});


$(function() {
    $('#slideshow').cycle({
        fx:     'fade',
        speed:  'fast',
        timeout: 2500,
        pager:  '#nav',
        requeueOnImageNotLoaded: true,
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#nav li:eq(' + (idx) + ') a';
        }
    });
});








