$('.slideshow ul').cycle({
    prev: '.slideshow .slideshow-pagination .previous',
    next: '.slideshow .slideshow-pagination .next',
    pager: '.slideshow .slideshow-pagination .links'
});

$(function() {
	// form code
	
	$("#consultation-form input[type=text]").each(function(i){
		var input = this;
		if($(input).val().length > 0) {
			$(input).prev('label').css('display', 'none');
		}
		
		$(input).focus(function(){
			$(input).prev('label').css('display', 'none');
		});
		
		$(input).blur(function(){
			if($(input).val().length == 0) {
				$(input).prev('label').css('display', 'block');
			}
		});
	});
	
	var textarea = $("#consultation-form textarea[name=notes]");
	
	if(textarea.val() != 'Write additional notes here')
	{
		textarea.css({'color': '#333'});
	}
	
	textarea.focus(function(){
		if(textarea.val() == 'Write additional notes here')
		{
			textarea.val('');
			textarea.css({'color': '#333'});
		}
	});
	
	textarea.blur(function(){
		if(textarea.val() == '')
		{
			textarea.val('Write additional notes here');
			textarea.css({'color': '#a6a6a6'});
		}
	});
	
});
