
if(self!=top){
	top.location.replace(window.location.href);
}
function ae_contentLinks(target){
	var contentlinks = document.getElementById(target);
	var links = contentlinks.getElementsByTagName("a");
	for (var i = 0; i < links.length; i++){
		if(links[i].getAttribute('href')){
			var thislink = links[i].getAttribute('href').toString();
			if(thislink.substring(0, 7) == 'http://'){
				links[i].setAttribute("target", "_blank");
			}
		}
	}
}
function ae_PopupLupe(target){
	var contentlinks = document.getElementById(target);
	var targets = contentlinks.getElementsByTagName("a");
	for (var i = 0; i < targets.length; i++){
		if(targets[i].getAttribute("rel")){
			if(targets[i].getAttribute("rel").substr(0, 9) == "shadowbox"){
				if(targets[i].firstChild.nodeName=="IMG"){
					if(targets[i].parentNode.className!="tx-andshadowbox-text"){
						if (typeof document.createElementNS != 'undefined') {
							var img = document.createElementNS('http://www.w3.org/1999/xhtml', 'img');
						}
						if (typeof document.createElement != 'undefined') {
							var img = document.createElement('img');
						}
						var targetname = targets[i].childNodes[0];
						var completetarget = targetname.nodeValue + ' ';
						targetname.nodeValue = completetarget;
						targets[i].setAttribute("style","display:block;position:relative;");
						img.setAttribute("src", "/fileadmin/template.v1/_styleimages/icon-lupe.gif");
						img.setAttribute("style", "display:block; position:absolute; z-index:5; width:16px; height:16px; right:1px; bottom:1px; padding:0; margin:0; border:0 none;");
						img.className="ae_lupe";
						img.setAttribute("border", "0");
						img.setAttribute("alt", "Pfeil");
						targets[i].appendChild(img);
					}
				}
			}
		}
	}
}
function blendOver() {
	var $alt = $('#animation DIV.topslice');
	
	if($alt.next().length){
		var $neu = $alt.next();
	}else{
		var $neu = $('#animation DIV:first');
	}
	$alt.addClass('secondslice');
	$alt.removeClass('topslice');
	$neu.css({opacity: 0.0});
	$neu.addClass('topslice');
	
	$neu.animate({opacity: 1.0}, 2000, function(){
		$('#animation DIV.topslice p').animate({bottom: 0}, 500, function() {
			$('#animation DIV.secondslice p').css({bottom: '-25px'});
			$alt.removeClass('secondslice');
		});
	});
}


