/** ---------- PAGEPEEL ---------- **/

/** $(document).ready(function(){
 
//Page Flip on hover
 
	$("#pageflip").hover(function() {
		$("#pageflip img , .msg_block").stop()
			.animate({
				width: '307px', 
				height: '319px'
			}, 500); 
		} , function() {
		$("#pageflip img").stop() 
			.animate({
				width: '35px', 
				height: '35px'
			}, 220);
		$(".msg_block").stop() 
			.animate({
				width: '35px', 
				height: '35px'
			}, 200);
	});
 
	
}); **/
/** ---------- TEASERS INDEX ---------- **/

/** ---------- VRAAG EN ANTWOORD ---------- **/

$(document).ready(function() { 
  $('#faqs h4').each(function() { 
    var tis = $(this), state = false, answer = tis.next('div').slideUp(); 
    tis.click(function() { 
      state = !state; 
      answer.slideToggle(state); 
      tis.toggleClass('active',state); 
    }); 
  }); 
});

/** ---------- PING FIX ---------- **/
    $(document).ready(function(){
        $(document).pngFix();
    });
/** ---------- SPONSOR FOOTER FADE ---------- **/
$(document).ready(function() {
    $('#sponsor').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		delay:7500,
		random:true,
		pause:true,
		cleartypeNoBg:true
	});
});
/** ---------- SPONSOR HEADER FADE ---------- **/
$(document).ready(function() {
    $('#footer_sponsors').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		delay:7500,
		random:true,
		pause:true,
		cleartypeNoBg:true
	});
});
/** ---------- MENU ---------- **/
	  $(document).ready(function(){
			$("#topmenu li").hover(
				function(){ $("ul", this).fadeIn("slow"); }, 
				function() { } 
			);
	  	if (document.all) {
				$("#topmenu li").hoverClass ("sfHover");
			}
	  });
	  
		$.fn.hoverClass = function(c) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(c);  },
					function() { $(this).removeClass(c); }
				);
			});
		};	  
/** ---------- NIEUWSSLIDER ---------- **/
 $(document).ready( function(){	
		$('#lofslidecontent45').lofJSidernews( {interval:5000,
											   direction:'opacity',
											   duration:2000,
											   easing:'easeInOutSine'} );						
	});
/** ---------- TABS ---------- **/
$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});

/** ---------- TEASERS ---------- **/
$(function(){
	$('img.captify').captify({
		// all of these options are... optional
		// ---
		// speed of the mouseover effect
		speedOver: 'fast',
		// speed of the mouseout effect
		speedOut: 'normal',
		// how long to delay the hiding of the caption after mouseout (ms)
		hideDelay: 500,	
		// 'fade', 'slide', 'always-on'
		animation: 'slide',		
		// text/html to be placed at the beginning of every caption
		prefix: '',		
		// opacity of the caption on mouse over
		opacity: '0.5',					
		// the name of the CSS class to apply to the caption box
		className: 'caption-bottom',	
		// position of the caption (top or bottom)
		position: 'bottom',
		// caption span % of the image
		spanWidth: '100%'
	});
});


