/* some basic wob functions

	most - if not all - of them require prototype
*/
/**
 * Greps all <a> tags with attribute rel="external" and
 * inserts a target="_blank" into the DOM tree.
 */
function externalLinks() {
	var anchors = $$('a[rel="external"]');
	for (var i=0; i<anchors.length; i++) {
		anchor = anchors[i];
		anchor.target = "_blank";
	}
}
document.observe("dom:loaded",externalLinks);


function hide() {
	var elem = $('aktivitaet');
	if (elem == null) return true;
	$('aktivitaet').observe('click', function(e){
		$('aktivitaet').hide();
		}
	);
}
document.observe("dom:loaded",hide);
