// Functies
$(document).ready(function(){

// Elastic					   
$("#textarea").elastic();

// Prettyphoto
$("a.fotoshow").prettyPhoto({
	theme: 'dark_square'
});
  jQuery("#formID").validationEngine();
// Validatie
//$('.contactform').validation();
//$('.routeform').validation();

// Innerfade
$('#balkfader').innerfade({ 
	speed: 2000,
	timeout: 7000,
	type: 'random'
});

// Recensie
$('#addrecensie').click(function() {
	$('.recensies_add').slideToggle();
});

// Twitter
$('#twitter').jTweetsAnywhere({
	username: 'snackplaza_urk',
	count: 1,
	showFollowButton: false
});

// Fadein
// setTimeout(function(){ $('#balkfader img').fadeIn(2000); }, 200);

// Qtip
$('.fotos li a').qtip({
	content:'Klik op een foto voor vergroting',
	style: { name: 'light' },
	position: {
		corner: {
          	tooltip: 'topMiddle',
			target: 'topMiddle'
			}
	 	}
	});
$('.contact_3 .imgg').qtip({
	content:'Klik op de afbeelding voor vergroting',
	style: { name: 'light' },
	position: {
		corner: {
          	tooltip: 'topMiddle',
			target: 'topMiddle'
			}
	 	}
	});
});

// secure
var message="Function Disabled!"
function clickIE4(){ if (event.button==2){ return false; } }
function clickNS4(e){ 
	if (document.layers||document.getElementById&&!document.all) {
		if (e.which==2||e.which==3){ return false; } 
		}
	}
if(document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } 
else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } 
document.oncontextmenu=new Function("return false") 
