TICKER = (function(){	var thisObj=this;	this.counter = 1;	this.commentt=[];	this.comment=[];	this.root = "";	changeCont=function(){		if(typeof this._data2!="undefined"){			this.counter++;				if(typeof this._data2[this.counter]=="undefined"){				this.counter=0;			}			if(this._data2[this.counter].headline!=''){				thisObj.root.innerHTML = this._data2[this.counter].headline;			}		}	}	return{		start:function(){			root = document.getElementById("tickerText");			if(typeof thisObj.root!="undefined"){				REQUEST.send("http://www.achtung-mode.com/script/getTicker.php5", "GET", "", "json", function(re){					thisObj._data3 = re;					thisObj._data2 = [];					for(var i=0;i<re.length;i++){						if(re[i].headline!=""){							thisObj._data2.push(re[i]);						}					}									});				fn = thisObj.changeCont;				window.setInterval(fn,5000);				}			},		toggel:function(){			if(typeof this.uebersicht=="object"){				this.uebersicht.style.display=="block"?$(this.uebersicht).setStyle("display", "none"):$(this.uebersicht).setStyle("display", "block");			}else{				this.uebersicht();				}		},		show:function(){			if(typeof this.uebersicht=="object"){				$(this.uebersicht).setStyle("display", "block");			}else{				this.uebersicht(true);				}		},		hide:function(){						if(typeof this.uebersicht=="object"){				$(this.uebersicht).setStyle("display", "none");			}		},		uebersicht:function(closeBut){			var thisObj2 = this;			if(typeof $=="function")				thisObj._elem = $("ticker");			this.uebersicht = $("div").get();			$(this.uebersicht).setStyle("display", "block");			this.uebersicht.className = "adminTicker";						////			if(typeof SUPERUSER!="undefined"){				closeBut = $("div").get();				closeBut.className="tickerCloseBut";					$(closeBut).append("close");					$(closeBut).addEvent("mouseup", function(){thisObj2.hide()});				$(this.uebersicht).append(closeBut);			}			////						var list = $("ul").get();			$(this.uebersicht).append(list);			for(i=0; i<thisObj._data3.length+1; i++){				(function(number){					var thisObj = this;					thisObj._numner = number;					var listField = $("li").get();					var h3 = $("h3").get();					h3.id="tickerHead"+number;										$(listField).append(h3);					$(list).append(listField);										if(typeof thisObj._data3[number] != 'undefined'){						h3.innerHTML = thisObj._data3[number].headline || ' ';					}else{						h3.innerHTML = ' ';					}					$(h3).addEvent("click", function(){comment[number].init(this, 'headline', 'true')});					////					/*if(thisObj._data2[number].text!=""){						var listField = $("li").get();							listField.innerHTML = thisObj._data2[number].text;						$(list).append(listField);						$(listField).id="tickerText"+number;						$(listField).addEvent("click", function(){comment[number].init(this, 'text', 'true')});					}*/					///					if(typeof ADMIN!="undefined"){						if (typeof thisObj._data3[number] != 'undefined') {							thisObj.comment[i] = new ADMIN.dbentry('news', thisObj._data3[number].id, true, ["tickerHead" + number, "tickerText" + number]);						}else{							thisObj.comment[i] = new ADMIN.dbentry('news', 'tempEntry', true, ["tickerHead" + number, "tickerText" + number]);						}												//thisObj.commenth[i] = new ADMIN.dbentry('news', thisObj._data2[number].id, true, ["tickerHead"+number, "tickerText"+number]);					}				})(i)			}			$("ticker").append(this.uebersicht);		}	}})();