$(document).ready(function() {
	
		if($(".sollicitatieform form")){
			$(".sollicitatieform form").validate();	
		}

	
/* ========== DISPLAY HOMEPAGE ========== */

	$('#slider').coinslider({
		width: 960, // width of slider panel
		height: 325, // height of slider panel
		spw: 9, // squares per width
		sph: 3, // squares per height
		delay: 6000, // delay between images in ms
		sDelay: 20, // delay beetwen squares in ms
		opacity: 1, // opacity of title and navigation
		titleSpeed: 500, // speed of title appereance in ms
		effect: 'straight', // random, swirl, rain, straight
		navigation: false, // prev next and buttons
		links : false, // show images as links 
		hoverPause: true // pause on hover
	});
	
	$('.file').change(function(){
		var myvalue = $('.file').attr('value');
		$('.fakefile input').attr('value',myvalue);
	});
	
$(".fancyvideo").click(function() {
		$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'			: 800,
			'height'		: 475,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'overlayShow'	: true,
			'overlayOpacity': 0.8,
			'overlayColor'	: '#000',
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'speedIn'		: 'slow',
			'speedOut'		: 'fast',
			'type'			: 'swf',
			'swf'			: {
			'wmode'				: 'transparent',
			'allowfullscreen'	: 'true'	
			}
			
		});

		return false;
	});
		
});

 

/* ========== CUFON ========== */

 Cufon.replace('h1, .logo, .image span', { fontFamily: 'quadraad-bold' });
 Cufon.replace('h2, h3, h4, .nav a span.head, .subnav a, form label', { fontFamily: 'quadraad' });
 
/* ========== END ========== */
