<!--

	$(function(){
		
		$("#nb, #nb img").click(function(){
			
			
			
			/*	
			$(".wacht").hide();
			$('.wacht').show('clip', { direction: 'horizontal' }, 500);
			var ani = false;
			*/

			var w = $(document).width();
			w = Math.round(w/2);
			w = w - 350;
			 
			$("#newsletter").animate({
				left: w + "px"						 
			});
			
			$(".sluiten").click(function(){
				$("#newsletter").animate({
					left: "-600px"
				},function(){
					//$("#newsletter").hide();	
				});
				return false;
			});
			
	//		$('.songs').show('blind', { direction: 'vertical' },  1000);
			
			$(".nb").submit(function(){
				var id = $(this).attr("id");								  	
				var ok = true;
				var strFouten = "";
				$.each($("#" + id + " .verplicht"),function(){
					var wat = $(this).attr("not") + "";
					if($(this).val() + "" == "" || wat == $(this).val()) {
						ok = false;
						if($(this).attr("fout") !== undefined) strFouten += $(this).attr("fout") + "\n";
						$(this).css("background-color","#FF0000");	
					} else {
						$(this).css("background-color","#FFF");	
					}											
				});
				
				//if(!ok) alert(strFouten);	
				return ok;
			});		
			
		});
			
		
	});

-->
