var screenwidth = screen.width; if (screenwidth <= 1024) { document.write('<link rel="stylesheet" href="css/small.css" type="text/css" media="screen" />'); }

ddsmoothmenu.init({
	mainmenuid: "smoothmenu1",
	orientation: 'h',
	classname: 'ddsmoothmenu',
	contentsource: "markup"
})

$(document).ready(function(){	

 	/* Cufon */
	Cufon.DOM.ready(function() {
	 	Cufon.replace('h1', { fontFamily: 'Segeo Print' });
		Cufon.replace('h2', { fontFamily: 'Segeo Print' });
	});


	/* Rondleiding slide-in */
	$('#rondleiding').click(function() {
		$(this).stop().animate({"top": "-300px"}, "slow");
		$('#rondleiding2').stop().fadeIn();
	});
	$('#rondleiding_close').click(function() {
		$('#rondleiding').stop().animate({"top": "50px"}, "slow");
		$('#rondleiding2').stop().fadeOut();
	});
	$("#rondleiding").hover(
	function() {
		$(this).animate({"opacity": "0.9"}, "fast");
	},
	function() {
		$(this).animate({"opacity": "1"}, "slow");
	});
	

	/* Standard animations */
	$(".button").hover(
	function() {
		$(this).stop().animate({"padding-left": "30px"}, "slow");
	},
	function() {
		$(this).stop().animate({"padding-left": "0px"}, "slow");
	});

	/* Init elementen */
	$(".fancybox").fancybox({
		'autoScale'			: true,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic'
	});

	$('#slides').slides({
		preload: true,
		preloadImage: 'scripts/slides/examples/Standard/img/loading.gif',
		generatePagination: true,
		slideSpeed: 1000,
		play: 3000,
		pause: 2000,
		hoverPause: true
	});
	
	$(".slider").sudoSlider({
		numeric: 	false,
		fade: 		true,
		prevNext: 	false,
		updateBefore: true,
		speed:		2000,
		pause: 		1000,
		auto:		true
	});

	var icons = {
		header: "accordion_close",
		headerSelected: "accordion_open"
	};
	// Accordion
	$(".accordion").accordion({
		autoHeight: false,
		header: "h4",
		fillSpace: false,
		alwaysOpen: false,
		navigation: true,
		collapsible: true,
		active: false,
		icons: icons
	});
	$("#toggle").button().toggle(function() {
		$(".accordion").accordion("option", "icons", false);
	}, function() {
		$(".accordion").accordion("option", "icons", icons);
	});

});
