$(document).ready(function(){
			
	$('#slider').nivoSlider({
		directionNavHide:false,
		controlNav:true,
		animSpeed:800,
		pauseTime:6000
	});
	
	$(".fancybox").fancybox();
	$(".fancyFrame").fancybox({
		'type'		: 'iframe',
		'width'		: '100%', 
		'height'		: '100%',
		'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
	$("#fancyYoutube").click(function() {
		$.fancybox({
				'padding'		: 0,
				'autoScale'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'title'			: this.title,
				'width'		: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
					 'wmode'		: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});
	
		return false;
	});
	$(".fancyNews").fancybox({
		'type'		: 'iframe',
		'width'		: 680,
		'height'	: 480
	});
	
	
});
