
	//-------------------------------------------------------------------
	// ADD LISTENER
	// addListener(window, "load", changeContent);
	//-------------------------------------------------------------------
	var addListener = function() {
		if ( window.addEventListener ) {
			return function(el, type, fn) {
				el.addEventListener(type, fn, false);
			};
		} else if ( window.attachEvent ) {
			return function(el, type, fn) {
				var f = function() {
					fn.call(el, window.event);
				};
				el.attachEvent('on'+type, f);
			};
		} else {
			return function(el, type, fn) {
				element['on'+type] = fn;
			}
		}
	}();





function teaserLink(){

//TEASER LINK VERHALTEN AUF DIV

	var teaserBox = document.getElementById('teaserContainer');

	
	if(teaserBox){
		var divColl = teaserBox.getElementsByTagName('div');

		for(var i=0; divColl[i]; i++){
		
			if(divColl[i].className.indexOf('teaser') >= 0){
				
	

				divColl[i].aTag = divColl[i].getElementsByTagName('a')[0];
				
				
				
				if(divColl[i].aTag){
				
					divColl[i].style.cursor = "pointer";
	
					addListener(divColl[i], 'click', function(){
	
						if(this.aTag.getAttribute('onclick')){
							this.aTag.onclick();
						}else{
	
						var myTarget = "_self";
							if(this.aTag.target){myTarget=this.aTag.target};
							var newWindow = window.open(this.aTag.href, myTarget );
	
						}
	
						})
				}

			}

		}
	}
}

addListener(window, "load", teaserLink);