$(document).ready(function(){
	$(".trigger").click(function(){
		$(".panel").toggle("fast");
		$(this).toggleClass("active");
		return false;
	});
});

setTimeout(function() {
	$(document).ready(function() {
		setTimeout(function() {

		title = $("#freeow-title2").val();
		message = $("#freeow-message2").val();
				
		// With options
		$("#freeow");
		$("#freeow").freeow(title, message, {
					
			classes: ["gray", "error"],
			autoHide: true
		});
		}, 1000);

	});
}, 2000);

//twitter
jQuery(function($){
   $(".tweet").tweet({
      join_text: "auto",
       username: "stoetenslagh",
       count: 1,
       loading_text: "Laden van twitter"
     });
   });
   
//Facebook
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/nl_NL/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel();
});

$(document).ready(function(){ 
    $(document).pngFix(); 
}); 
   
$(document).ready(function() {
	$('.fade').innerfade({ 
			'speed'			: 'slow', 
			'timeout'		: 8000, 
			'type'			: 'sequence', 
			 
		}); 

	$("a#zoom").fancybox();

	$("#various3").fancybox({
		'width'				: 750,
		'height'			: 645,
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'scrolling'   		: 'no',

		'type'				: 'iframe'
	});
	
	$("#various3b").fancybox({
		'width'				: 750,
		'height'			: 645,
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'scrolling'   		: 'no',

		'type'				: 'iframe'
	});

	$("#various3c").fancybox({
		'width'				: 750,
		'height'			: 645,
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'scrolling'   		: 'no',

		'type'				: 'iframe'
	});

	$("#various3d").fancybox({
		'width'				: 750,
		'height'			: 645,
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'scrolling'   		: 'no',

		'type'				: 'iframe'
	});


});



$(document).ready(function(){
	$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});

setTimeout(function() {
(function ($) {

	$(document).ready(function() {
		
		title = $("#freeow-title").val();
		message = $("#freeow-message").val();
		
		// With options
		$("#freeow").freeow(title, message, {
			classes: ["gray", "error"],
			autoHide: true
		});
	
	});

}(jQuery));
}, 5000);

