function blokspambot(id,domein){
adres=( id+ "@" + domein);
woord=( id+ " @ " + domein);
document.write('<a href=\"mailto:' + adres + '"\>')	;
document.write(woord);
document.write('</a>');
}
function blokspambotalt(id,domein,disp){
adres=(id+ "@" + domein);
woord=(disp);
document.write('<a href=\"mailto:' + adres + '"\>')	;
document.write(woord);
document.write('</a>');
}
function blokspambotsub(id,domein,disp){
adres=(id+ "@" + domein);
woord=( id+ " @ " + domein);
document.write('<a href=\"mailto:' + adres + '?subject=' + disp + '"\>')	;
document.write(woord);
document.write('</a>');
}

function displayContent(currContent,currLink) 
{
	var cont = document.getElementById(currContent).style;
	var link = document.getElementById(currLink).style;
	var contVisible = (cont.display == "block");
	cont.display = (contVisible ? "none":"block");
	link.display = (contVisible ? "block":"none");
	return false;
}

// B: tabs
$(document).ready(function() {
	$(".tab_container .tab_content").hide();
	$(".tab_container ul.tabs").find("li:first").addClass("active").show();
	$(".tab_container .tab_container_content").find(".tab_content:first").show();
	
	$(".tab_container ul.tabs li").click(function() {
		var tb = $(this).parent().parent()[0];
		$(this).parent().find("li").removeClass("active");
		$(this).addClass("active");
		var idx = $(this).find("a").attr("tabindex");
		$(tb).find("div.tab_content").hide();
		$(tb).find("div.tab_content").eq(idx-1).fadeIn();
		return false;
	});
	
	$("#reactieBox").click(function() {
		$('html, body').animate({ scrollTop: $("#forumblock").offset().top }, 500);
		//$("#aantalReactiesKop").click ();
	});
});
// E: tabs

// B: lightbox
$(document).ready(function() {
	//$("a[rel^='lightbox[gallery]'] img").removeAttr("title"); // problem when pic is too small
	$("a[rel^='lightbox[gallery]'] img").removeAttr("alt");
	//$("a[rel^='lightbox[gallery]']").prettyPhoto({theme:'pp_default', slideshow:false, social_tools:'', title:false});
	$("a[rel^='lightbox[gallery]']").prettyPhoto({image_markup: '<div style="width:300px"><hr style="width:300px" /><img id="fullResImage" src="{path}" /></div>',theme:'pp_default', slideshow:false, social_tools:'', title:false});
	$("a[rel^='floatinglogin']").prettyPhoto({slideshow:false, social_tools:'', show_title:false});
});
// E: lightbox


