
/* 
	form checker
*/
function check_this_form()
{
	args = check; // check_this_form.arguments;
	
	var ret = new Array();
	
	for (i=0; i<(args.length); i++)
	{	
		if((o = document.getElementById(args[i])) && args[i] != 'to')
		{
			if(o.value == '')
			{
				// fout
				o.style.backgroundColor = "#DDDDDD";
				ret[ret.length] = false;
			}
			else
			{
				// goed
				o.style.backgroundColor = "#FFFFFF";
			}
		}
	}
	
	if(ret.length > 0)
	{
		if(o = document.getElementById('form_error_report'))
		{	
			o.innerHTML = 'De gemarkeerde velden zijn verplicht om in te vullen.';
		}
		
		return false;
	}
	else
	{
		return true;
	}
}

$(document).ready(function(){
			$(".nav")
			.superfish({
				animation : { opacity:"show",height:"show"}
			})
			.find(">li[ul]")
				.mouseover(function(){
					//$("ul", this).bgIframe({opacity:false});
				})
				.find("a")
					.focus(function(){
						//$("ul", $(".nav>li[ul]")).bgIframe({opacity:false});
					});
		});