$(function(){

	//SOCIAL MEDIA HOVER
	if (navigator.appName != "Microsoft Internet Explorer") {
		$('.socialIcon').fadeTo(0, 0.7);
		$('.socialIcon').hover( function() {
			$(this).stop(true, true).fadeTo(300, 1);
		}, function() {
			$(this).stop(true, true).fadeTo(300, 0.7);
		});
	}

	//CUFON
	Cufon.replace('h1')('h2')('#nav a', { hover : true });

	//CYCLE ARTIKEL HOME
	$('#header_cycle').cycle({
		fx: 'fade',
		timeout: 4500
	});

	//CYCLE NEWS ARCHIVE
	$('#newsArchive').cycle({
		fx: "scrollVert",
		timeout: 0,
		startingSlide:   0,
		pager:  '.pager',
		pagerAnchorBuilder: function(idx, slide) {
			return '<a href="#"> &bull; </a>';
		},

		before: function(slide,next){
				$("#newsArchive").animate({
				'height' :  $(next).height()
				}, 1000);
		}
	}, 500);
	
	//CYCLE FOTOGALLERY ARCHIVE
	$('#fotogallery').cycle({
		fx: "scrollHorz",
		timeout: 0,
		startingSlide:   0,
		pager:  '.pager',
		pagerAnchorBuilder: function(idx, slide) {
			return '<a href="#"> &bull; </a>';
		},

		before: function(slide,next){
				$("#newsArchive").animate({
				'height' :  $(next).height()
				}, 1000);
		}
	}, 500);

	//FANCYBOX
		$(".fancybox").fancybox();
		
		$(".fancyIframe").fancybox({
			'type' : 'iframe',
			'width': 700,
			'height': 470
		});		

	//FANCYBOX IFRAME
		$("a.fancyboxIframe").fancybox({
			'width'				: '85%',
			'height'			: '85%',
			'autoScale'     	: false,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'				: 'iframe'
		});

	//FANCYBOX PROJECTEN
	$("a.gallery").fancybox();

});



