function switchCSS(el){
	$.get("/js/switchcolor.php");
//	$.ajax({url:"/js/switchcolor.php",cache:false});
	var css = document.getElementById('css');
	nieuw = css.href.indexOf('zwart')>0 ? 'wit' : 'zwart';
	el.innerHTML = nieuw=='wit' ? 'zwart' : 'wit';
	$('.rondingen').remove();
	var src='';
	css.href = '/css/' + nieuw + '.css';
	$('.box h3 img').each(function(){
		src = $(this).attr('src');
		$(this).attr('src',src+'&1');
	});
	setTimeout("$('.box').corner('15px');",0);
}

function slider(item){
	closeSliders(item);
	// toggle - fadeToggle - slideToggle
	$('#'+item).slideToggle(300);
	if (item=='inloggen')
		setTimeout("$('#inloggen input:eq(0)').focus()",300);
}

function closeSliders(item){
	$('.slider:not(#'+item+')').css('display','none');
}

$(document).ready(function() {

	$(document).pngFix();
	$(".box").corner('15px');
	$('#content h3').next('p').addClass('prev-h3');
	$('#content p').next('ul').prev().addClass('next-ul');
	$("a").not("[@href^='/']").attr('target','_blank');
	//$.gaTracker('UA-2421524-1');

//	jQuery.fn.fadeToggle = function(speed, easing, callback) {
//		return this.animate({opacity: 'toggle'}, speed, easing, callback);
//	};
});

function inloggen(el){
	if (el.email.value==''){
		el.email.focus();
		return false;
	}
	else if (el.wachtwoord.value==''){
		el.wachtwoord.focus();
		return false;
	}
	else return true;
}