//<!--   für Counter-Pixel
function replace(text,from,to)  // replace strings in strings
 {
    while (( ti=text.indexOf(from) ) >= 0)
    {
        text = text.substr(0,ti)+to+text.substr(ti+1);
    }    
    return text;
 } 

function x_escape(text)  // extended escape function
 {
    var x_chars = "*2A+2B-2D.2E/2F_5F";
    
    text = escape(text);
    for (ci=0; ci < x_chars.length; ci+=3)
    {
        text = replace(text,x_chars.substr(ci,1),"%"+x_chars.substr(ci+1,2));
    }
    return text;
 }   
 
function getCounterPixel (myurl, params) {
	var CGI="http://count.eon.com/cgi-bin/count/eon-energie/"+myurl;
	if ((params.substring(0,1) != "&") && (params != "")) params = "&" + params;
	document.write("<IMG SRC=\""+CGI+"?"+x_escape(document.referrer)+params+"\" WIDTH=\"1\" HEIGHT=\"1\">");
}
//--> Ende Counter-Pixel

function checkBrowser(){
	this.ver=navigator.appVersion;
	this.name=navigator.appName;
	this.dom=document.getElementById?1:0;
	this.ie6=(this.name.indexOf("Microsoft")>-1 && this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.name.indexOf("Microsoft")>-1 && this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(this.name.indexOf("Microsoft")>-1 && document.all && !this.dom)?1:0;
	this.ie=(this.ie6 || this.ie5 || this.ie4)?1:0;
	this.mo7=(this.name.indexOf("Netscape")>-1 && this.ver.indexOf("Firebird/0.7") && this.dom)?1:0;
	this.mo9=(this.name.indexOf("Netscape")>-1 && this.ver.indexOf("Firefox/0.9") && this.dom)?1:0;
	this.mo=(this.mo7 || this.mo9)?1:0;
	this.ns5=(this.name.indexOf("Netscape")>-1 && this.dom && parseInt(this.ver) >= 5 && !this.mo) ?1:0;
	this.ns4=(this.name.indexOf("Netscape")>-1 && document.layers && !this.dom)?1:0;
	this.ns=(this.ns5 || this.ns4)?1:0;	
	this.bw=(this.ie || this.ns || this.mo);
	return this
}
bw=new checkBrowser();

//Build Objects
function makeObj ( obj , nest1, nest2 ) {
	( !nest1 ) ? nestSet = '' : nestSet = 'document.' + nest1 + '.'  ;				
	( !nest2 ) ? nestSet = nestSet : nestSet = nestSet + '.' + 'document.' + nest2 + '.'  ;
	this.el=0;
	this.css=0;
	if (bw.dom)	{
		this.el=document.getElementById(obj);
		this.css=document.getElementById(obj).style;
		this.scrollHeight=this.el.offsetHeight;	//added_091116
		this.clipHeight=this.el.offsetHeight;	//added_091116
	}
	if (bw.ie4) {
		this.el=document.all[obj];
		this.css=document.all[obj].style;
		this.scrollHeight=this.el.offsetHeight;	//added_091116
		this.clipHeight=this.el.offsetHeight;	//added_091116
	}
	if (bw.ns4) {
		this.el=eval(nestSet+'document.'+obj);
		this.css=eval(nestSet+'document.'+obj);
		this.scrollHeight=this.css.document.height;	//added_091116
		this.clipHeight=this.css.clip.height;		//added_091116
	}
	//Start:added_091116
	this.up=goUp;
	this.down=goDown;
	this.moveIt=moveIt;
	this.x;
	this.y;
	//End:added_091116
	this.obj = obj + "Object";
	eval(this.obj + "=this")
	return this ;
}