var iTotalImg	= 4;
var iCurImg		= 1;

$(document).ready(function() 
{
	init();
});

function init()
{
	$('#footer li:last').addClass('last');
	
	$('ul#navigation li').each(function() {
		$(this).prepend( '<a class="absolute" href="' 
			+ $(this).find('> a').attr('href') + '">' 
			+ $(this).find('> a').text() + '</a>' );
	});
	
	/*
		IE6 wil vaste breedtes in geval van display: block;, anders pakt hij 100% breedte
		CSS oplossing is alle items dezelfde breedte geven
	*/
	if ( jQuery.browser.msie && parseInt(jQuery.browser.version) < 7 )
	{
		$('ul#navigation > li > a').each(function() 
		{	
			$(this).css('width', parseInt( $(this).text().length * 8.2 ) + 'px');
		});
	}
	
	$('ul#navigation li').hover(
	function () {
		$(this).addClass('hover');
	}, 
	function () {
		$(this).removeClass('hover');
	});
	
	$('#whiteblocks h4').each(function() {
		var h4 	= $(this).text();
		var pos	= h4.indexOf(' ');
		$(this).html( '<span>' + h4.substring(0, pos ) + '</span>' + h4.substring(pos) );
	});
	var zoekbox = $('#zoekbox').val();
	$('#zoekbox').focus(function(){
		if($(this).val() == zoekbox){
			$(this).val('');
		}
	})
	.blur(function(){
		if($(this).val() == ''){
			$(this).val(zoekbox);
		}
	});
};
