$(document).ready(function(){			  
// Menu
$('#nav').droppy();
// Validation
$('#bestelform').FormValidate({});
$('.form_login').FormValidate({});
$('#validate').FormValidate();
$('#gastenboekform').FormValidate({});
// Prettyphoto
// $("a[rel^='imageview']").prettyPhoto({theme:'light_rounded'});
// Elastic
$("#berichtgastenboek").elastic();
// Accordion
$("#accordion").accordion({
	collapsible: true,
	active: false,
	fillSpace: false,
	autoHeight: false
});
// Clientlogin
$("#open").click(function(){
//$("#toppanel").slideToggle("slow");
	if($("#toppanel").is(':visible'))
	{
	$("#toppanel").slideUp("slow");
	$("#knopextra").fadeOut("slow");
	$("#open").text("Bandnet");
	}
else
	{
	$("#toppanel").slideDown("slow");
	$("#knopextra").fadeIn("slow");
	$("#open").text("Sluiten");
	}	
});
// Pageflip
$("#pageflip").hover(function() {

$("#pageflip img , .msg_block").stop()
	.animate({
		width: '307px', 
		height: '319px'
	}, 500); 
} , function() {
$("#pageflip img").stop() 
	.animate({
		width: '50px', 
		height: '52px'
	}, 220);
$(".msg_block").stop() 
	.animate({
	width: '50px', 
	height: '50px'
}, 200);
});
// coinslider
$('#slider').coinslider({
	width: 920, // width of slider panel
	height: 310, // height of slider panel
	spw: 7, // squares per width
	sph: 5, // squares per height
	delay: 3000, // delay between images in ms
	sDelay: 30, // delay beetwen squares in ms
	opacity: 0.7, // opacity of title and navigation
	titleSpeed: 1000, // speed of title appereance in ms
	effect: 'random', // random, swirl, rain, straight
	navigation: true, // prev next and buttons
	links : false, // show images as links
	hoverPause: true // pause on hover	
});
// mailspam
$('.mailspam').dcSpamless();

});
