/* Navigation */

$(document).ready(function() {
						   
var divOffset = $('#content').offset().top;
var pOffset = $('#homediv').offset().top;
var pScroll = pOffset - divOffset;
$('#content').animate({scrollTop: '+=' + pScroll + 'px'}, 1, 'easeOutQuad');
$('#specialisatie_reeks2').fadeOut(0, function() {});
$('#specialisatie_reeks3').fadeOut(0, function() {});
						   	   
						  						   
$('.home').click(function() {
var divOffset = $('#content').offset().top;
var pOffset = $('#homediv').offset().top;
var pScroll = pOffset - divOffset;
$('#content').animate({scrollTop: '+=' + pScroll + 'px'}, 540, 'easeOutQuad');
$( "#content" ).animate({ height: "400px" }, { duration: 540, queue: false });
});
$('#visie').click(function() {
var divOffset = $('#content').offset().top;
var pOffset = $('#visiediv').offset().top;
var pScroll = pOffset - divOffset;
$('#content').animate({scrollTop: '+=' + pScroll + 'px'}, 540, 'easeOutQuad');
$( "#content" ).animate({ height: "815px" }, { duration: 540, queue: false });
});
$('#medewerkers').click(function() {
var divOffset = $('#content').offset().top;
var pOffset = $('#medewerkersdiv').offset().top;
var pScroll = pOffset - divOffset;
$('#content').animate({scrollTop: '+=' + pScroll + 'px'}, 540, 'easeOutQuad');
$( "#content" ).animate({ height: "1280px" }, { duration: 540, queue: false });
});
$('#specialisatie').click(function() {
var divOffset = $('#content').offset().top;
var pOffset = $('#specialisatiediv').offset().top;
var pScroll = pOffset - divOffset;
$('#content').animate({scrollTop: '+=' + pScroll + 'px'}, 540, 'easeOutQuad');
$( "#content" ).animate({ height: "1765px" }, { duration: 540, queue: false });
});
$('#contact').click(function() {
var divOffset = $('#content').offset().top;
var pOffset = $('#contactdiv').offset().top;
var pScroll = pOffset - divOffset;
$('#content').animate({scrollTop: '+=' + pScroll + 'px'}, 540, 'easeOutQuad');
$( "#content" ).animate({ height: "2185px" }, { duration: 540, queue: false });
});


/* Specialiteiten pagina */

$('.specialisatie_next_1').click(function() {
$('#specialisatie_reeks1').fadeOut(400);
$('#specialisatie_reeks2').delay(450).fadeIn(700);
});
$('.specialisatie_next_2').click(function() {
$('#specialisatie_reeks2').fadeOut(400);
$('#specialisatie_reeks3').delay(450).fadeIn(700);
});
$('.specialisatie_next_3').click(function() {
$('#specialisatie_reeks3').fadeOut(400);
$('#specialisatie_reeks1').delay(450).fadeIn(700);
});
$('.specialisatie_prev_1').click(function() {
$('#specialisatie_reeks1').fadeOut(400);
$('#specialisatie_reeks3').delay(450).fadeIn(700);
});
$('.specialisatie_prev_3').click(function() {
$('#specialisatie_reeks3').fadeOut(400);
$('#specialisatie_reeks2').delay(450).fadeIn(700);
});
$('.specialisatie_prev_2').click(function() {
$('#specialisatie_reeks2').fadeOut(400);
$('#specialisatie_reeks1').delay(450).fadeIn(700);
});

});


/* slideshow */

$(document).ready(function() {
$('#splash_intro').slideshow({
timeout: 8000,fadetime: 2000, type: 'sequence'}
);});

/* lightbox */

$(function() { 
$('#routemap a').lightBox();
$('#zoom a').lightBox();
$('#kantoor_fotos a').lightBox();
$('#foto_link a').lightBox();
$('#medewerker_1 a').lightBox();
$('#medewerker_2 a').lightBox();
$('#medewerker_3 a').lightBox();
$('#medewerker_4 a').lightBox();
$('#medewerker_5 a').lightBox();
$('#medewerker_6 a').lightBox();
$('#medewerker_7 a').lightBox();
$('#medewerker_8 a').lightBox();
});


/* Show hide stuff*/

<!--
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) 
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; } } //-->
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features); } //-->


