$(document).ready(function () {
		$('.themen_box li a').hover(function () {
				$imgs = $(this.parentNode.parentNode.parentNode).find('.themen_box_image');
				$imgs.find('a').hide();
				if ($(this.parentNode).hasClass('selected')) {
					$imgs.find('.selected').show();
				} else {
					$imgs.find('.' + this.parentNode.className).show();
					$(this.parentNode).addClass('hover');
				}
			}, function () {
				$imgs = $(this.parentNode.parentNode.parentNode).find('.themen_box_image');
				$imgs.find('a').hide();
				$imgs.find('.selected').show();
				$(this.parentNode).removeClass('hover');
			});
	});
	
function decryptThis(s) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(2)); 
	}
	return r;
}

function decrypt_mail(element, email, params) {
	if (!params) var params = '';
	element.href = 'mailto:' + decryptThis(email) + params;
}

var coverzoom = null;
function cz(img,titel,w,h) {
	var url = "/coverzoom-0-0/?image=" + img + "&titel=" + titel;
	if (w && h) {
		url =  url + "&w=" + w + "&h=" + h;
		coverzoom = window.open(url,"Bigimage","width="+w+",height="+h);
	} else {
		coverzoom = window.open(url,"Bigimage","width=150,height=30");
	}
	coverzoom.focus();
}