$(document).ready(function (){
	$('#slider').cycle({
		speed: 800,
		timeout: 6000
	});
	
	$('#slideProg div').cycle({
		speed: 300,
		timeout: 10000,
		next:   '#next', 
		prev:   '#prev'
	});
	
	$('#blogSlide').cycle({
		speed: 300,
		timeout: 10000,
		pager:  '#pager',
		// callback fn that creates a thumbnail to use as pager anchor 
		pagerAnchorBuilder: function(idx, slide) { 
			return '<a href="#"><img src="' + slide.src + '" height="50" /></a>'; 
		}
	});
	
	$('#contactForm input').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;
			}
		});
	});
	
	$("#accesmap, #accesmap2").fancybox({
		'width'				: 740,
		'height'			: 350,
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	
	
});

