// JavaScript Document
$(function() {
	
	if ($('body').hasClass('browserIE6')) {
	}
	else {
		// Foto's uitvergroten bij mouseover en terug bij mouseout
		$('.zoomfoto').not('#contact .zoomfoto').mouseover(function(){
			$(this).stop().jScale({w: '100%', speed:750});
		}).mouseout(function(){
			$(this).stop().jScale({w: '48%', speed:500});
		});
			
		// Verticaal meubelmenu scrollen bij muisover
		$('ul#menu li a').not('#home a.but1, #bedrijf a.but2, #cert a.but3, #impressie a.but4, #route a.but5, #contact a.but6').mouseover(function(){
			$(this).stop().animate({marginLeft: 30}, {duration: 500, queue: false});
		});
	
		$('ul#menu li a').not('#home a.but1, #bedrijf a.but2, #cert a.but3, #impressie a.but4, #route a.but5, #contact a.but6').mouseout(function(){
			$(this).stop().animate({marginLeft: 0}, {duration: 500, queue: false});
		});
		
	}
	
	// select the thumbnails and make them trigger our overlay 
	$("#thumbs a").overlay({ 
	 
		// each trigger uses the same overlay with the id "gallery" 
		target: '#gallery'
			 
	// let the gallery plugin do its magic! 
	}).gallery({ 
	 
		// the plugin accepts its own set of configuration options 
		speed: 800 
	});

	
});
