/* <![CDATA[ */


jQuery(document).ready(function() {
  

    /* product grid */

	jQuery('.products-grid tr').each(function() {
										
		
			jQuery(this).find('td.navoff:eq(1)').addClass('secondproduct');
			jQuery(this).find('td.navoff:first').addClass('firstproduct');
			jQuery(this).find('td.navoff:last').addClass('thirdproduct');
												
	});
	
	jQuery('.products-grid tr td').each(function() {
												 
			if(jQuery(this).next().hasClass("empty secondproduct")){
                   jQuery(this).addClass("grid-border-right");
			}
		
											 
	 });
	/* end product grid */
	
	
	/* layered navigation bureaustoelshop */
	
	

	
	jQuery("#shop12 .block-layered-nav span:last-child").removeClass("filterline");



        jQuery('#shop12 .block-layered-nav .filterline dd ol').each(function() {
				
				
			childCount = jQuery(this).children().length;		
			
			if (childCount == 1 && jQuery(this).children().hasClass("Nee"))
        	
			{
				jQuery(this).parent().prev().css('display', 'none');
            
        	}  


											 
	 });



	
	/*
	jQuery('.belgiebtw').hide();
	
	jQuery('.belgiebtw div').removeClass("input-box");
	
	
	jQuery('.bedrijf input').focusin(function() {

	jQuery('.belgiebtw').show();

    });
	
	jQuery('.bedrijf input').focusout(function() {

		if (jQuery(".bedrijf input").attr("value") != '') {
		
		jQuery('.belgiebtw').show();
		
		}

		else if (jQuery(".belgiebtw input").attr("value") != '') {
		
		jQuery('.belgiebtw').show();
		
		}
	
		else { jQuery('.belgiebtw').hide(); } 
	
	});
	*/

	jQuery(".catalog-product-view .alert a").attr("rel","nofollow");
	
		jQuery("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Afbeelding ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
});

		
		
/* ]]> */
