//clear the text in the searchbox

function clearText(field){

if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;

}

// Galleryview script
$(document).ready(function() {
	$('#photos').galleryView({
	    panel_width: 680,
	    panel_height: 286,
	    transition_speed: 1500,
	    transition_interval: 5000,
	    nav_theme: 'dark',
	    border: '1px solid white',
	    pause_on_hover: true
	});

});



// make sure the $ is pointing to JQuery and not some other library

(function($){
// add a new method to JQuery
$.fn.equalHeight = function() {
// find the tallest height in the collection
// that was passed in (.column)
tallest = 0;
this.each(function(){
thisHeight = $(this).height();
if( thisHeight > tallest)
tallest = thisHeight;
});

// set each items height to use the tallest value found
this.each(function(){
$(this).height(tallest);
});
}
})(jQuery);

