function startSlideshow()
{

	$('#slideshow').cycle({
        fx: 'fade',
        timeout: 4000,
    	prev: '#controls_prev',
        pager: '#pager',
		next: '#controls_next',

		before: function() 
		{
			var obj = document.getElementById('caption');
			
			var title = this.getAttribute('alt');
			var url = this.getAttribute('url');
			if (!url)
				url = this.getAttribute('href');
			
			obj.innerHTML = title + ' <a href="'+ url +'">lezen &rsaquo;&rsaquo;</a>';
		}
		
	});
}


function startSimpleSlideshow()
{

	$('#slideshow').cycle({
        fx: 'fade',
        timeout: 5000
	});

}


function startTOC(index)
{
	$('#tocnav').accordion({
		autoheight: false,
		header: '.head',
		navigation: false,
		animated: 'slide',
		active: index
	});
}


function startFAQ()
{
	// hide all answers
	$('ul#faq li div').hide();
	
	// add toggle handler
	$('ul#faq li h2').click(function(which) 
	{ 
		$(this).next().toggle();
	});
}
