// clear search box text on click
// function CheckText(el, defaultValue) {
// 	if (el.value == "") {
// 		el.value = defaultValue;
// 	}
// 
// }
$.fn.clearOnFocus = function(){
    return this.focus(function(){
        var v = $(this).val();
        $(this).val( v === this.defaultValue ? '' : v );
    }).blur(function(){
        var v = $(this).val();
        $(this).val( v.match(/^\s+$|^$/) ? this.defaultValue : v );
    });
};

$('input').clearOnFocus();
$('textarea').clearOnFocus();


$(document).ready(function() {
	$("#slideshow").css("overflow", "hidden");
	$("#slideshow ul#slides").cycle({
		fx:'fade',
		pager: '#nav',
		slideExpr: 'li',
		pause:2
	});	
});
