function redirectTo(val) {
	window.location=val;	
}

function popUp(url, target, details) {
	window.open(url, target, details);	
}

function toggleItem(id, type, e) {

	var realelement = Event.findElement(e);
	if (realelement.match('div.textblock a')) return;

	var headline = $('headline_'+id);
	var content = $('content_'+id);

	if(content.style.display == "block") {
		headline.style.display = "";
		content.style.display = "none";
	} else {
		headline.style.display = "none";
		content.style.display = "block";
	}

	$$('#'+type+' .headline').each(function(n) {
		if(n != headline) n.style.display = "";
	});
	$$('#'+type+' .content').each(function(n) {
		if(n != content) n.style.display = "none";
	});

}

