function hopEvent(s) {self.location=s;}

$(document).ready(function(){
	$('h6.faq').click(function() {
		$(this).next().toggle('slow');
		if($(this).attr('class').match('open')){
			$(this).removeClass('open');
			$(this).addClass('close');
		}else{
			$(this).addClass('open');
			$(this).removeClass('close');
		}
	});
	$('.menu ul.navigatie li')
		.mouseenter(function(){
			$(this).addClass('hover');					 
		})
		.mouseleave(function(){
			$(this).removeClass('hover');					 
		})
	
	if($('.plaatsing ul.none li').size() > 0){
		$('.plaatsing ul.none li')
		.mouseover(function(){
			if($(this).hasClass('green_bg')){
				$(this).children('.msg').stop().animate({backgroundColor:'#6D1874',color: '#ffffff'},500);	
			}
			//$(this).addClass('hover');					 
		})
		.mouseout(function(){
			if($(this).hasClass('green_bg')){
				$(this).children('.msg').stop().animate({backgroundColor:'#C7D218',color: '#6D1874'},500);	
			}
			//$(this).removeClass('hover');					 
		});
		$('.plaatsing ul.none li.clickable')
			.click(function(){
				var goto = $(this).attr('rel');			
				location.href = goto;
			});
	}
	
	$('.inputfield input')
		.focus(function(){
			$(this).parent().addClass('active');								  
	  })
		.focusout(function(){
		$(this).parent().removeClass('active');										  
	  });
	
	
	$('.up a').click(function() {
       $('html,body').animate({scrollTop: 0}, 500);
		return false;
    });
	
	$('A.knop').each(function() {
		$(this).attr('class','button');
		var html = "<span><img src=\"gfx/btn/arrow-yellow.png\" />"+$(this).html()+"</span>";
		$(this).html(html);
	});

});

