				Cufon.replace('h2, h3, h4', {hover: true});
				Cufon.replace('.hoofdmenu ul li a', {textShadow: '#272d5a 1px 1px', hover: true});
				Cufon.replace('h1', {textShadow: '#22264e 1px 1px'});

			//	Cufon.replace('.panel_koopzondagen h3', {textShadow: '#634c13 1px 1px'});
				

$(document).ready(function()			{


	$("h1, h2, h3, .hoofdmenu ul li a").animate({ opacity: "1" }, 300);
	
	$(".topmenu, .topmenu2").fadeIn(200);
	$("#ticker, .intro, .panel, .blokken, .koopzondagblokken, .aanbiedingblokken, .note").fadeIn(500);

	$('.header-img').delay(1000).cycle({
		fx:     'fade',
		speed: '700',
		timeout: '6000'
   });	
   
 	$('.slideshow').delay(1000).cycle({
		fx:     'scrollHorz',
		speed: '700',
		timeout: '4000'
   });	  
  

   //open item
	$(".item").click(function() {

		$(".item").css({ opacity: "0.5", filter: "" });

		//$(this).find(".zoom").css({ display: "none" }); //zoomknop van geklikte item uit.
      var offset = $(this).position();
		  
      $(".full-item:visible").toggle();
		
      var full_item = $(this).parent().next().find(".full-item");
        
		$(full_item).css({
			top: (offset.top - 30),
			left: (offset.left - 40)
		}).toggle();
	});  
					
	//close item-data			
	$(".item-data .full-item .close").click(function() {
		$(".item").css({ opacity: "1", filter: "" });
		
		$(".item").css({ /*backgroundColor: "#a98121",*/ opacity: "1", filter: "" });
		
		//$(".zoom").css({ display: "block" });
		$(this).parent().css({ display: "none" });				
	}); 	

   //marquee ticker
	$('div#ticker marquee').delay(3000).marquee('pointer').mouseover(function () {
		$(this).trigger('stop');
	}).mouseout(function () {
		$(this).trigger('start');
	}).mousemove(function (event) {
		if ($(this).data('drag') == true) {
			this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
		}
	}).mousedown(function (event) {
		$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
		$(this).data('drag', false);
	});			

   // home hover the panels
   $(".blokken .blok").hover(function() {
   	$(this).find("img.blokimg").stop().animate({ opacity: "0.6", filter: ""  }, 200 );
   } , function() { 
   	$(this).find("img.blokimg").stop().animate({ opacity: "1", filter: ""  }, 200 );
   });	
   $(".aanbiedingblokken .aanbiedingblok").hover(function() {
   	$(this).find("img.overlay").stop().animate({ opacity: "0.6", filter: ""  }, 200 );
   } , function() { 
   	$(this).find("img.overlay").stop().animate({ opacity: "1", filter: ""  }, 200 );
   });

   // fotos hover the panels
   $(".foto-blokken .foto-blok").hover(function() {
   	$(this).find("img").stop().animate({ opacity: "0.6", filter: ""  }, 200 );
   } , function() { 
   	$(this).find("img").stop().animate({ opacity: "1", filter: ""  }, 200 );
   });	
   
	//agenda link		
	$(".panel_agenda_info").click(function() {
		$(".panel_agenda_info_data").toggle();			
	});    
	$(".close-this").click(function() {
		$(this).parent().toggle();			
	}); 	
	
  
   
   //lightbox
   $('.posterpanel a, a[rel=lightbox]').lightBox({
      overlayBgColor: '#272d5a',
      txtImage: 'Foto',
      txtOf: 'van',
      imageBtnClose: 'images/lightbox-btn-close.gif',
      imageBtnPrev: 'images/lightbox-btn-prev.gif',
      imageBtnNext: 'images/lightbox-btn-next.gif',
      imageLoading: 'images/lightbox-ico-loading.gif'
	});			
});
