$(document).ready(function() {
	
	
	//clear the search field onclick and onfocus
	$.fn.search = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	
};
$("#s").search();


/*if ( $("#accordion").length > 0 ) {
	$('#accordion').accordion({
			header: "h3"
		});	
};*/



$('ul#subnav').append('<li class="print"><a href="#print" title="Print this page">Print this page</a></li>');
	$('ul#subnav li.print a').click(function() {
		window.print();
		return false;
	});


});

$(document).ready(function() {
	
	jQuery(document).ready(function(){
		$('#accordion h3').click(function() {
			$(this).next().slideToggle('normal');
			return false;
		}).next().hide();
	});
	
	
	$('#slideshow').cycle({ 
    fx:    'fade', 
    speed:  1000, 
	timeout: 7000
 	});
	
});
