$(function() {
	// Action for the View-thumbnails only
	if ( $('a.thumblink').length > 0 ) {
		$('a.thumblink').lightBox({
			overlayBgColor:'#000',
			overlayOpacity: 0.75,
			imageLoading:  '/assets/templates/default/images/lightbox-ico-loading.gif',
			imageBtnClose: '/assets/templates/default/images/lightbox-btn-close.gif',
			imageBtnPrev:  '/assets/templates/default/images/lightbox-btn-prev.gif',
			imageBtnNext:  '/assets/templates/default/images/lightbox-btn-next.gif',
			imageBlank:    '/assets/templates/default/images/lightbox-blank.gif',
			containerResizeSpeed: 350,
			txtImage: 'Afbeelding',
			txtOf: 'van'
		});
	}
});

var cc;

$(document).ready(function(){
	cc = window.location.search;
	if(location.pathname == "/producties.html") return;
	
	if(location.pathname != "/") {
		//alert(location.pathname);
		
		//$('ul.LIn_fullMode a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active');
		$('ul.LIn_fullMode a[href^="/' + location.pathname + '"]').addClass('active');
	}
	$("ul.LIn_fullMode a.nieuwstitel").each(function() {
		var hreflink = $(this).attr("href");
		//alert(location.pathname.toLowerCase() + " " + hreflink);
		if ("/"+hreflink.toLowerCase()==location.pathname.toLowerCase()) {
			$(this).addClass("active");
			//alert(hreflink);
		}
	});
	
	if($('#hfdstkid3').length>0){
		$('a.nieuwstitel').click(function () { 
			hh = $(this).attr('href');
			//alert(hh+cc);
			window.location = hh+cc;
			return false;
			event.preventDefault();
		});
	};
	if($('#hfdstkid5').length>0){
		$('a.nieuwstitel, li.subactive1 a').click(function () { 
			hh = $(this).attr('href');
			window.location = hh+cc;
			return false;
			event.preventDefault();
		});
	};
	
	
});

