	
	function lib_img2(obj)
	{
		this.evnt = document.images[obj];
		this.name = obj;
		this.css = this.evnt.style;
		this.op = 100;
  		this.id = obj;
		this.obj = obj + "Object";
		eval(this.obj + "=this");
		return this;
	}
		
	lib_img2.prototype.setOpacity = function(o)
	{
		if(navigator.userAgent.match(/MSIE/)) this.css.filter = 'alpha(opacity='+ o +')'
		else this.css.MozOpacity = o/100
		this.op = o
	}
	
	lib_img2.prototype.setSrc = function(s)
	{
		this.evnt.src = s
	}

	im = 0;
	intervalle = 4000;
	constant = 1250;
	var time_ch = intervalle + constant;
	var speed = 50;
	var path = '../extension/telmediaaudaxis/design/telmediaaudaxis/images/logos/'
	_array = ['ez_publish.gif','sugar.gif','compiere.gif']

	for(i=0;i<_array.length;i++) _array[i] = path + _array[i]
	
	
	lib_img2.prototype.app_m = function()
	{
		if(this.op > 0){
			this.setOpacity(this.op -= 5);
			setTimeout(this.obj+".app_m()",speed)
		}
		else{
		if(im != _array.length - 1) im += 1; else im = 0
		this.setSrc(_array[im])
		setTimeout(this.obj+".app_p()",100)
		}
	}
	
	lib_img2.prototype.app_p = function()
	{
		if(this.op < 100){
		this.setOpacity(this.op += 5);
		setTimeout(this.obj+".app_p()",speed)
		}
		else setTimeout(this.obj+".app_m()",time_ch);
	}
	
	function switchImage(imgName,imgSrc){
  		if(imgSrc != "none") document.images[imgName].src = imgSrc;
	}

