$(document).ready(function() {
    $('#fader').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed: '2500'
	});
	
	$("a.fancyBox").fancybox({
		'showCloseButton': true,
		'overlayOpacity':0.6,
		'overlayColor':'#000',
		'speedIn':1000,
		'speedOut':600,
		'titleShow':false
	});
	
	$("#contactform").validate();
	
	$.localScroll();
	
	$('.required').each(function() {
    var default_value = this.value;
    $(this).focus(function() {
        if(this.value == default_value) {
            this.value = '';
        }
    });
    $(this).blur(function() {
        if(this.value == '') {
            this.value = default_value;
        }
    });
});

});

