var show = true;
function showBubble(){
	this.blur();

	if(show){
		$('#Bubble').css("overflow","hidden").fadeIn('slow', function(){$(this).show()});
	}else{
		$('#Bubble').css("overflow","hidden").fadeOut('slow', function(){$(this).hide()});
	}
	show = !show;
	return false;
}

noticeShow = true;
function showNotice(){
	this.blur();

	if(noticeShow){
		$('#swapNotice').html('Zuklappen');
		$('.NoticeBody').slideDown('fast');
	}else{
		$('#swapNotice').html('Eintragen');
		$('.NoticeBody').slideUp('fast');
	}
	noticeShow = !noticeShow;
	return false;
}

function createLink(text,fn){

	var link = document.createElement('a');
	link.setAttribute("href","javascript:void(0);");

	link.appendChild(document.createTextNode(text));
	$(link).set("id","swapNotice")
	$(link).click(fn);

	return link;

}

