// JavaScript Document

$(document).ready(function(){	
						   
	$("p.show").click(function () {
		$("div.more").toggleClass("open");
		$(this).toggleClass("open");
		$(this).html("Lees meer");
		$("p.show.open").html("Sluiten");
	}); 			
							   
	
	$('ul.slideshow') 
	.cycle({ 
	   fx:     'scrollHorz', 
		speed:  '1000', 
		timeout: '4000',
		pager:  '.nav' 
	});	
	
	$("ul.slideshow li").colorbox({width:"742", transition:"none", scrolling:false, inline:true, href:function(){ return $(this).children(".popup").html(); }});
	
	
	//var $example = $("a[rel='example1']");
	//$example.colorbox({href:function(){return "slides.html #slide" +
	//$example.index(this); }}); 
	//	


});

Cufon.replace('div.about h1', { fontFamily: 'roti' });
Cufon.replace('div#intro p', { fontFamily: 'roti' });
Cufon.replace('body.home div#content h1', { fontFamily: 'roti' });
Cufon.replace('ul#nav li.right em', { fontFamily: 'roti'});
Cufon.replace('ul#nav li em', { fontFamily: 'roti'});
Cufon.replace('ul#nav li.right span', { fontFamily: 'roti',
			  hover: {
				color: '#eb1c23;'
				} 
			});
Cufon.replace('ul#nav li span', { fontFamily: 'roti',
			  hover: {
				color: '#eb1c23;'
				} 
			});
Cufon.replace('div.quickLink1 span a', { fontFamily: 'roti' });
Cufon.replace('div.quickLink2 span a', { fontFamily: 'roti' });
Cufon.replace('div#content h1', { fontFamily: 'roti' });
Cufon.replace('div#sidebar div.quote h1', { fontFamily: 'roti' });
Cufon.replace('div#sidebar h1.cufon', { fontFamily: 'roti' });
Cufon.replace('p.intro', { fontFamily: 'roti' });
Cufon.replace('p.signature', { fontFamily: 'roti' });
Cufon.replace('blockquote em', { fontFamily: 'roti' }); // ITALIC!
