(function ($) {
	$(function () {
		$('ul.sf-menu').superfish();

		$('#slideshow').cycle();

		// get the searchnow href, override the setting, and remove the href
		// $.fn.displetform.global_config.options.targetUrl = $('#searchnow a').attr('href');
		$('#searchnow a').removeAttr('href');

		// Example customization: don't draw a hide button
//		$('#displetform').displetform({
//			'render_functions': {
//				'draw_buttons': function () {
//					var row = $('<tr></tr>').appendTo(this.container);
//					var td = $('<td colspan="' + (this.params.options.columns * 2) + '" style="text-align: center"></td>').appendTo(row);
//					var search_button = $('<button id="search">Search</button>').appendTo(td);
//					$('<a id="adv_search" href="' + this.params.options.targetUrl + '" title="Advanced Search">Advanced Search</a>').appendTo(td);
//
//					// Don't draw the hide button
//					// var hide_button = $('<button id="hide">Hide</button>').appendTo(td);
//					// hide_button.click(this.hideForm);
//
//					$(this.params.options.searchnow_selector).click(this.showForm);
//
//					search_button.click(this.submitForm);
//				}
//			},
//		});

		// $('#displetform').displetform();
	})
})(jQuery)
