
function init(){

	//media/bullets/dot.gif
	objImg = document.images;
	for(i=0; i<objImg.length;i++){
		if(objImg[i].src.indexOf('popup_')>-1){
			objImg[i].onmouseover=function(){
					this.src='fileadmin/user_upload/redakteure/popup_mo.gif';
					this.alt='für Großansicht klicken';

					found=this.parentNode.onclick.toString().match(/'(.+?)'/);
					if(found){
						container=document.getElementById('preview');	
						container.innerHTML = '<IMG width=100 SRC=' + found[0] + '>'
						container.style.top=xPageY(this)+this.height+2;
						container.style.left=xPageX(this);
						container.style.visibility='visible'
					}

					}
			objImg[i].onmouseout=function(){
					this.src='fileadmin/user_upload/redakteure/popup.gif';
					container=document.getElementById('preview');
					container.style.visibility='hidden'
					}
			

		}
	
	}

}





function slide(ele,nr){
	if(navigator.appName=='Microsoft Internet Explorer'){
		applyTransition(ele)
	}
	index = ele.src.match(/(\d+)\.jpg$/); 
	index[1] = parseInt(index[1]);
	index[1]++;
        img_temp = new Image();
        img_temp.src = 'fileadmin/user_upload/redakteure/slide/aktiv/header'+index[1]+'.jpg';
	if(img_temp.width==0){index[1]=0}
       // if(index[1]==6){index[1]=0}
	ele.src = 'fileadmin/user_upload/redakteure/slide/aktiv/header'+index[1]+'.jpg';

}

 function applyTransition (oImg)
{
    oImg.filters(0).Apply();
    oImg.style.visibility = "visible";
    oImg.filters(0).Play();
}

