/*
-------------------------------------------------------------------
Enter Music Publishing - DRUM! Magazine -- JavaScript functions
author:   web@spacewalk.com
version:  2008.08.19
-------------------------------------------------------------------
*/

/* START JQUERY-DEPENDENT CODE */

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

$(document).ready(function(){

/* Scrolling of li elements in #photo-scroller  */
$('div#photo-scroller').serialScroll({
	items:'li',
	prev:'a.photo-scroller-prev',
	next:'a.photo-scroller-next',
	start:0, // 1st item has an index of 0
	duration: 400, // length of scrolling animation
	force:true,
	stop:false,
	lock:false,
	cycle:true, // if true, rewind once you reach the end
	easing:'easeOutQuart', // easing equation defined above
	exclude: 4,
	step: 1
});// end serialScroll

});//end document.ready

/* END JQUERY-DEPENDENT CODE */

// setting and clearing the default content of the search field
function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}