function clearTextBox(inputBox, textString, cssClass) {
	if (inputBox) {
		if (!textString || inputBox.value == textString) {
			inputBox.value = '';
		}
		if (cssClass) {
			inputBox.className = cssClass;
		}
	}
	return true;
}

function setTextBox(inputBox, textString, cssClass) {
	if (inputBox) {
		if (inputBox.value == '') {
			inputBox.value = textString;
			if (cssClass) {
				inputBox.className = cssClass;
			}
		}
	}

	return true;
}

$(document).ready(function() {
	$('.cycle div:first').fadeIn(1000, function() {
		$('.cycle').cycle({
			'delay': 1000,
			'fx': 'fade',
			'timeout': 5000,
			'speed': 2000
		});
	});

	$(".rightscrollable").scrollable({ vertical: true, circular: true, speed: 2000, items: '.rightscrollableitems' }).autoscroll({interval: 8000});
	$(".rightscrollablenoautostart").scrollable({ vertical: true, circular: true, speed: 2000 }).autoscroll({autoplay: false, interval: 8000});

	$(".clientscrollable").scrollable({ circular: true, speed: 2000, items: '.clientscrollableitems' }).autoscroll({interval: 3000});
});
