// homepage fader
	$(document).ready(
		function(){
			$('#fade').innerfade({
				animationtype: 'fade',
				speed: 1500,
				timeout: 4000,
				type: 'sequence'
			});
		}
	);

// actiefader
// homepage fader
	$(document).ready(
		function(){
			$('#adv').innerfade({
				animationtype: 'fade',
				speed: 500,
				timeout: 3000,
				type: 'sequence'
			});
		}
	);

// rss reader settings

$(document).ready(function () {
	$('#rss').rssfeed('http://www.retailnews.nl/rss/rss.xml', {
		limit: 3,
		header: false,
		content: false,
		date: false
	});
});

// slidert

$(function(){
	$('#slider1 img:gt(0)').hide();
	setInterval(function(){$('#slider1 :first-child').fadeOut(3000).next('img').fadeIn(3000).end().appendTo('#slider1');}, 3000);
 
});

$(function(){
	$('#slider2 img:gt(0)').hide();
	setInterval(function(){$('#slider2 :first-child').fadeOut(3000).next('img').fadeIn(3000).end().appendTo('#slider2');}, 3000);
 
});

$(function(){
	$('#banner img:gt(0)').hide();
	setInterval(function(){$('#banner:first-child').fadeOut(3000).next('img').fadeIn(3000).end().appendTo('#banner');}, 3000);
 
});

// fancybox

$(document).ready(function() {
    	$("#video").fancybox({
			'width'			: 850,
			'height'		: 478,
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'no',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
	$("#tour").fancybox({
			'width'			: 640,
			'height'		: 480,
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'no',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
	$("#tour2").fancybox({
			'width'			: 640,
			'height'		: 480,
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'no',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});

	$("#tour3").fancybox({
			'width'			: 640,
			'height'		: 480,
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'no',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});

         $("#extern").fancybox({
			'width'			: '75%' ,
			'height'		: '75%',
            'titleShow'     : 'false',
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'auto',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
        $("#extern2").fancybox({
			'width'			: '75%' ,
			'height'		: '75%',
            'titleShow'     : 'false',
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'auto',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
        $("#extern3").fancybox({
			'width'			: '75%' ,
			'height'		: '75%',
            'titleShow'     : 'false',
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'auto',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
	$("#video1").fancybox({
			'width'			: 850,
			'height'		: 478,
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'no',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
	$("#video2").fancybox({
			'width'			: 850,
			'height'		: 478,
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'no',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
	$("#video3").fancybox({
			'width'			: 850,
			'height'		: 478,
			'overlayOpacity'	: 0.8,
			'overlayColor'		: '#000',
			'scrolling'		: 'no',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'			: 'iframe'
		});
});


