var pantone = {
	'please_click' : 0,
	'target' : 0,
	'delay' : 100
}

function initCollapse() {
	$(".collapser").each(function(){
		$(this).html('<a href="#">'+$(this).html()+'</a>');
		$(this).children("a").toggle(function(event){
			$(this).parent().siblings(".collapsible").slideDown(100);
			$(".fadebubble").fadeOut(200);
			event.preventDefault();
		},function(event){
			$(this).parent().next().slideUp(100);
			event.preventDefault();
		});
	});
}

$(document).ready(function() {
	//find all elements that should be collapsible and hide them.
	pantone.collapsed = $(".collapsible, .delayed");
	pantone.collapsed.hide();
	initCollapse();
	pantone.target = $(".delayed");
	setTimeout("please_click()",pantone.delay);
});

function please_click() {
	if(pantone.target.length < 1) {
		return;
	}
	
	pantone.target.slideDown('normal');
	pantone.please_click = 0;
	pantone.target = { "length" : 0 };
}