/*CUFON
=====================================*/
Cufon.replace('body#home div.headerbox p', {hover: true});
Cufon.replace('h1, h2, h3, body#home div.headerbox p, div.artikel h4, div.artikel strong, div.artikelSmall h4, div.artikelSmall strong', { fontFamily: 'Gill Sans' });

/*DEFAULT TEXT
=====================================*/

$(document).ready(function()
{
	$(".defaultText").focus(function()
	{
		if ($(this).val() == $(this).attr("default"))
		{
			$(this).removeClass("defaultTextActive");
			$(this).val("");
		}
	});
	
	$(".defaultText").blur(function()
	{
		if ($(this).val() == "")
		{
			$(this).addClass("defaultTextActive");
			$(this).val($(this).attr("default"));
		}
	});
});

/*JREJECT
=====================================*/
$(document).ready(function() {
	$.reject({
		reject: { }, // Reject all renderers for demo
		closeCookie: true,
		display: ['firefox','chrome','msie'], // Displays only firefox, chrome, and opera
		imagePath: serverpad + 'websites/implementatie/script/iewarning/',
		header: 'Bent u ervan op de hoogte dat uw versie van Internet Explorer verouderd is?', // Header of pop-up window  
		paragraph1: 'Voor de beste gebruikservaring van onze website, raden we u aan om een nieuwere of andere browser te gebruiken.', // Paragraph 1  
		paragraph2: 'Klik op één van de iconen om naar de download pagina te gaan.', // Paragraph 2
		closeMessage: 'Als u dit venster sluit gaat u er mee akkoord dat de volledige werking van deze website niet kan worden gegarandeerd.', // Message displayed below closing link  
		closeLink: 'Sluit dit venster' // Text for closing link  
	});
	return false;
});


/*BREADCRUMB
=====================================*/
$(function(){
	$('.winkels').easyListSplitter({ colNumber: 3 });
});

/*BREADCRUMB
=====================================*/
$(function(){
	$("div.breadcrumb a:last").addClass('last');
});

/*TABLE
=====================================*/
$(function(){
	$("div#content table tr:even").addClass('even');
	$("table").each(function(){
		$(this).after("<div class=\"clear\"></div>");
	});
});


/*TABLE
=====================================*/
$(function(){
	$("div#header").each( function() {
		if ($(this).children().length == 0) {
			$(this).remove();
		}
	});
});
/*SLIDESHOW
=====================================*/
$(function() {
	$('body#home div#header').cycle({
		fx: 'fade',
		speed: '400', 
		timeout: 8000
	});
});

$(function() {
	$('body#page div#header') 
		.before('<div id="nav">') 
		.cycle({ 
			fx:     'fade', 
			speed:  '400', 
			timeout: 8000,
			cleartype:  1, // enable cleartype corrections
			pager:  '#nav'
		});
});

$(function() {
	$('div.headerbox div.box').mouseover(function() {
		$('body#page div#header').cycle('pause'); 
	}).mouseout(function() {
		$('body#page div#header').cycle('resume'); 
	});
});

/* MENU
=====================================*/

$(function() {
	$("ul.subnav").parent().append("<span></span>");
	$("ul.topnav li span").hover(function() {
		$(this).parent().find("ul.subnav").slideDown('fast').show();

		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.subnav").slideUp('slow');
		});

		}).hover(function() { 
			$(this).addClass("subhover");
		}, function(){
			$(this).removeClass("subhover");
	});
});
