$(function(){
	// $(".language_toggle_en").click(function () {
	// 	$(".nl").hide();
	// 	$(".en").show();
	// 	return false;
	// });
	// 
	// $(".language_toggle_nl").click(function () {
	// 	$(".en").hide();
	// 	$(".nl").show();
	// 	return false;
	// });
	// 
	// $(".en").hide();
	// $(".nl").show();

	$("#contact_content").hide();

	// COMMENTS
	jQuery.fn.delay = function(time,func){
		this.each(function(){
			setTimeout(func,time);
		});

		return this;
	};
	
	$(".balloon").delay(10000, function(){
		$(".balloon").fadeOut("slow");
	});	
	
	$(".balloon").hide();
	$(".balloon1:first").show();
	$(".balloon2:first").show();
	$(".balloon3:first").show();
	
	$("#english").click(function () {
		$(".en").show();
		$(".nl").hide();
		return false;
	});
	
	$("#dutch").click(function () {
		$(".en").hide();
		$(".nl").show();
		alert('dutch');
		return false;
	});
	$('.language_toggle a').click(function (){
		alert(this.className);
		return false;
	});
	// $.ajax({ url:"/bg_img/lightbox_paper.png", cache:true, dataType:"text" });
});

//for firefox thickbox inline js
// $(".en").hide();
// $(".nl").show();
$(".menu").hide();
$(".menu_toggle").click(function () {
	what_menu = '#' + this.title;
	$(".menu_toggle").removeClass('selected');
	$(this).addClass('selected');
	$(".menu").hide();
	$(what_menu).show();
	return false;
});


$("#beer").show();
$("#beer_toggle").addClass('selected');
//endfor

$('.large_img_li').hide();
$('.large_img_li:first').show();
$('.large_img_li').click(function () {
	lastChild  = $('#large_img_container li:last').attr('id');
	$(this).hide();
	$(this).next().show();
	if (this.id == lastChild)
		$('.large_img_li:first').show();
});
$('.photo_nav').click(function () {
	target_id = '#' + this.title;
	$('.large_img_li').hide();
	$(target_id).show();
	return false;
});
list_length = $('#gallery li').attr('class');
gallery_width = list_length * 89 + 'px';
$('#gallery').css('width', gallery_width);
