$( document ).ready( function(){
	$('.slides ul').jcarousel({
		scroll: 1,
		auto:5,
		wrap: 'both',
		initCallback: _init_carousel,
		buttonNextHTML: null,
		buttonPrevHTML: null
	});
});
$('.field').each(function() {
		check_fields(this);
	});
	
	$('.field').focus(function() {
        if(this.title==this.value) {
            this.value = '';
            check_fields(this);
        }
    }).blur(function(){
        if(this.value=='') {
            this.value = this.title;
            check_fields(this);
        }
    });

function _init_carousel(carousel) {
	$('.slider-nav .next').bind('click', function() {
		carousel.next();
		return false;
	});
	
	$('.slider-nav .prev').bind('click', function() {
		carousel.prev();
		return false;
	});
};

