/* HOVERINTENT CONFIG */
$(document).ready(function(){
  $(".callist2 ul li").hoverIntent (
  function () {	
    //geef de volledige content voor de DIV weer
    $(this).find(".calintro").show();
    var height = $(this).find(".calbox").height();	
    if (height < 80 ) {
      height = 80;
    }
    //verander de hoogte van de DIV en animeer deze
    $(this).find(".calitem").animate({ 
      height: height+"px"
    }, 650 , function(){});	
  },

  function () {
    //verander de hoogte van de DIV tot de standaardhoogte en animeer deze
    $(this).find(".calitem").animate({ 
      height: "80px"
    }, 200 );	
    //verberg de extra content
    $(this).find(".calintro").hide();
    }
  );

    $(".callist ul li").hoverIntent (
		function () {	
				//geef de volledige content voor de DIV weer
				$(this).find(".calintro").show();
				var height = $(this).find("span.calbox").height();	
				if (height < 64 ) {
					height = 64;
				}
				//verander de hoogte van de DIV en animeer deze
				$(this).find(".calitem").animate({ 
						height: height+"px"
					}, 650 , function(){});	
		},
		function () {
			//verander de hoogte van de DIV tot de standaardhoogte en animeer deze
			$(this).find(".calitem").animate({ 
				height: "64px"
			}, 200 );	
			//verberg de extra content
			$(this).find(".calintro").hide();
		}
	);

	$(".newslist ul li").hoverIntent (
		function () {	
				//geef de volledige content voor de DIV weer
				//$(this).find(".newsintro").show();
				var height = $(this).find("span.newsbox").height();	
				if (height < 55 ) {
					height = 55;
				}
				//verander de hoogte van de DIV en animeer deze
				$(this).find("a.newsitem").animate({ 
						height: height+"px"
					}, 650 , function(){});	
		},
		function () {
			//verander de hoogte van de DIV tot de standaardhoogte en animeer deze
			$(this).find("a.newsitem").animate({ 
				height: "55px"
			}, 200 );	
			//verberg de extra content
			//$(this).find(".newsintro").hide();
		}
	);

});


/* sIFR CONFIGURATIE */
var gotham = { src: '/images/fonts/gotham.swf' };
sIFR.activate(gotham);


sIFR.replace(gotham, {
  selector: '.h1 h1, .h1 p',
  css: '.sIFR-root { background-color: #FFFFFF; color: #FAA82B; text-transform: uppercase; font-size: 36px;  }',
  transparent: true
});

sIFR.replace(gotham, {
  selector: '.submenu h2',
  css: '.sIFR-root { margin: 0; padding: 0; background-color: #FFFFFF; color: #FAA82B; font-size: 32px; line-height: 32px;  }',
  transparent: true
});

sIFR.replace(gotham, {
  selector: '.widget h2',
  css: '.sIFR-root { margin-left: 5px; background-color: #FFFFFF; color: #FAA82B; text-align: center; text-transform: uppercase; font-size: 26px;  }',
  transparent: true
});

sIFR.replace(gotham, {
  selector: 'h2',
  css: '.sIFR-root { background-color: #FFFFFF; color: #FAA82B; text-transform: uppercase; font-size: 26px;  }',
  transparent: true
});

sIFR.replace(gotham, {
  selector: '#ad h1',
  css: '.sIFR-root { background-color: #FFFFFF; color: #FAA82B; font-size: 42px; text-align: center;  }',
  transparent: true
});


/* FANCYBOX CONFIGURATIE */
$(document).ready(function() {
  $("a.fancy").fancybox({
    'transitionIn'	: 'elastic',
    'transitionOut'	: 'elastic'
  });
  
  $("a.fancyr").fancybox({
    'transitionIn'	: 'elastic',
    'transitionOut'	: 'elastic',
	'titleShow' : true
  });


  $("a.youtube").fancybox({
    'transitionIn'	: 'fade',
    'transitionOut'	: 'fade',
    'width'     : 425,
    'height'     : 356,
	'hideOnContentClick' : false,
	'hideOnOverlayClick' : false
  });

$("a.iframe").fancybox({
  });

  $("a.tour").fancybox({
    'width'     : 780,
    'height'     : 520,
	'hideOnOverlayClick' : false
  });

  $("a.history").fancybox({
    'width'     : 780,
    'height'     : 520,
	'hideOnOverlayClick' : false
  });

  $("a.offerte").fancybox({
    'width'     : 550,
    'height'     : 495,
	'enableEscapeButton': false,
	'hideOnContentClick' : false,
	'hideOnOverlayClick' : false
  });

  $("a.tickets").fancybox({
    'width'     :  550,
    'height'     : 650,
	'enableEscapeButton': false,
	'hideOnContentClick' : false,
	'hideOnOverlayClick' : false
  });

  $("a.kaartje").fancybox({
    'width'     : 720,
    'height'     : 480,
    'transitionIn'	: 'elastic',
    'transitionOut'	: 'elastic'
  });

$("a.route").fancybox({
    'width'     : 780,
    'height'     : 540,
	'enableEscapeButton': false,
	'hideOnContentClick' : false,
	'hideOnOverlayClick' : false
  });

  $("a.menukaart").fancybox({
    'width'     : 640,
    'height'     : 720,
	'hideOnContentClick' : false,
    'transitionIn'	: 'elastic',
    'transitionOut'	: 'elastic'
  });

});

