// Cufon replacements
Cufon.replace("nav#topmenu li, #tagcloud", { hover: true });
Cufon.replace("section.usp li", { textShadow: "2px 2px rgba(0, 0, 0, 0.4)", hover: true} );
Cufon.replace("h1, h2, h3, h4, h5, h6, div.title, div.subtitle, div.icon div.description");

// Add div.clear to some sections
$(function() {
	$("aside#home, aside#footerItems, ul.news").each(function() {
		$("<div>").addClass("clear").appendTo($(this));
	});
});

// Show last tweets
$(function(){
	$(".tweet").tweet({
		username: "optie1lemmer123",
		join_text: null,
		count: 3,
		loading_text: "Laatste tweets laden..."
	});
});


$(function() {
    $('.item.slideshow .slides').cycle();
});


// Default input tekst
$(function(){
	$(".NBinput input").each(function() {
		$(this).attr("title", $(this).val());
	});
	$(".NBinput input").focus(function()
	{
		if ($(this).val() == $(this).attr("title"))
		{
			$(this).removeClass("defaultTextActive");
			$(this).val("");
		}
	});

	$(".NBinput input").blur(function()
	{
		if ($(this).val() == "")
		{
			$(this).addClass("defaultTextActive");
			$(this).val($(this).attr("title"));
		}
	});
});
