// =========================== GLOBAL JAVASCRIPT ===========================
// 	We maken gebruik van jQuery 1.3.2 via de Google AJAX Api.
// 	Onderstaande scripts worden op elke pagina gebruikt
// =========================================================================


// =========================== LOAD FUNCTIONS


//$(document).ready( function() {
//	$('input:password').dPassword();
//});

// 9. Defer to $(window).load (http://www.artzstudio.com/2009/04/jquery-performance-rules/)
// There is a temptation among jQuery developers to hook everything into the $(document).ready pseudo event. After all, it is used in most examples you will find.
// Although $(document).ready is incredibly useful, it occurs during page render while objects are still downloading. If you notice your page stalling while loading, all those $(document).ready functions could be the reason why.
// You can reduce CPU utilization during the page load by binding your jQuery functions to the $(window).load event, which occurs after all objects called by the HTML (including <iframe> content) have downloaded.
	
$(window).load(function(){
	// jQuery functions to initialize after the page has loaded.
	
	// IE6 fix for hover state of searchbutton
	$('input#searchsubmit').buttonHover({
		class_normal: 'searchsubmit',
		class_hover: 'searchsubmit_ie6_on'
	});	
	
	// Empty searchbox default text
	$('input#search').emptyonclick();

	
	//	Cufon.replace('h1', {hover: true}); 
	//	Cufon.replace('h2', {hover: true}); 
	//	Cufon.replace('h3', {hover: true});	
	$('a.jquery_lightbox_plugin').lightBox(); // Select all links with lightbox class

});


