/**********TransObj() Version 3.6.1, last modified: 11.08.2003*********//**********************Part of the O.M. JS-API*************************//**********************************************************************//*Vorliegende Version unterstuetzt:Netscape Navigator 4.x und ab 6.1Internet Explorer ab 4.xMozilla (alle bekannten Versionen und Derivate)Safari fuer Macintosh (ausser cssobj)Opera (absolut positionierte Ebenen, kein clipTo, clipBy, keine relativen Positionen)*//**********************************************************************//********Definition der Ebenen-Objektklasse********/function TransObj(){	if (this.w3c)	{		this.elm = (typeof arguments[0]=='string') ? document.getElementById(arguments[arguments.length-1]) : arguments[0];		this.css = this.elm.style;		if (!this.nn4) this.doc = this.elm;		this.img = this.elm.getElementsByTagName('img');		this.form = this.elm.getElementsByTagName('form');		this.id = this.elm.id;		this.cssobj = (this.ie || (this.ie && this.pc)) ? this.evaluateStyleObjIE4() : (!this.opera) ? this.evaluateStyleObj() || this.elm.style : this.elm.style;		this.w = this.elm.offsetWidth;		this.h = this.elm.offsetHeight;		this.inframe=null;	}	if (this.nn4)	{		if (typeof arguments[0]=='string')		{			nnpath = new Array();			nnpath[0] = document[arguments[0]];			for (var i = 1; i < arguments.length; i++)			{				nnpath[i] = nnpath [i-1].document[arguments[i]];			}			var Cont = nnpath[nnpath.length-1];			nnpath = null;			this.elm = Cont;		}		else if(typeof arguments[0]=='object')		{			this.elm = arguments[0];		}		this.css = this.elm;		this.doc = this.elm.document;		this.id = this.elm.id;		this.img = this.doc.images;		this.form = this.doc.forms;		this.x = this.elm.pageX;		this.y = this.elm.pageY;		this.xrel = this.elm.left;		this.yrel = this.elm.top;		this.z = this.css.zIndex;		this.clip = 'Die Eigenschaft \'clip\' steht in diesem Browser nicht zur Verfuegung.';		this.ct = this.css.clip.top;		this.cr = this.css.clip.right;		this.cb = this.css.clip.bottom;		this.cl = this.css.clip.left;		this.w = this.cr;		this.h = this.cb;		this.bgColor = this.css.bgColor;		this.visibility = (this.css.visibility == "inherit") ? "inherit" : (this.css.visibility == "show") ? "visible" : "hidden";	}	if (this.nn5 || this.safari)	{		if (this.nn601)		{			this.x = parseInt(document.defaultView.getComputedStyle(this.elm,null).getPropertyValue('left'));			this.y = parseInt(document.defaultView.getComputedStyle(this.elm,null).getPropertyValue('top'));		}		else if (this.safari)		{			this.x = (this.cssobj.position=='absolute') ?  this.elm.offsetLeft : this.elm.offsetLeft + document.getElementsByTagName('BODY')[0].offsetLeft;			this.y = (this.cssobj.position=='absolute') ? this.elm.offsetTop : this.elm.offsetTop + document.getElementsByTagName('BODY')[0].offsetTop;		}		else if (this.nn5)		{			this.x = this.elm.offsetLeft;			this.y = this.elm.offsetTop;		}		this.xrel = (this.cssobj.left) ? parseInt(this.cssobj.left) : 'Die Eigenschaft \'xrel\' steht in diesem Browser nicht zur Verfuegung.';		this.yrel = (this.cssobj.left) ? parseInt(this.cssobj.top) : 'Die Eigenschaft \'yrel \' steht in diesem Browser nicht zur Verfuegung.';		this.z = this.cssobj.zIndex || "Die Voreinstellung der Eigenschaft \'z\' kann in diesem Browser nicht ausgelesen werden.";		//this.z = this.getStyleAttribute('z-index');	}	if (this.nn4 || this.nn5 || this.safari)	{		this.windowWidth = window.innerWidth;		this.windowHeight = window.innerHeight;	}	if (this.ie || this.opera)	{		if (this.ie4)		{			this.x = this.css.pixelLeft;			this.y = this.css.pixelTop;			dfgbdf		}		else if (this.ie5 || this.ie6)		{			this.x = (this.pc) ? this.elm.offsetLeft : (this.cssobj.position == 'absolute') ? this.css.pixelLeft : (this.elm.parentNode == document.getElementsByTagName('BODY')[0]) ? this.elm.clientLeft : parseInt(this.elm.offsetLeft) + parseInt(document.body.currentStyle.marginLeft);			this.y = (this.pc) ? this.elm.offsetTop : (this.cssobj.position == 'absolute') ? this.css.pixelTop : (this.elm.parentNode == document.getElementsByTagName('BODY')[0]) ? this.elm.clientTop : parseInt(this.elm.offsetTop) + parseInt(document.body.currentStyle.marginTop);		}		else if (this.opera)		{			this.x = this.elm.offsetLeft;			this.y = this.elm.offsetTop;		}		if (!this.opera) this.xrel = parseInt(this.elm.currentStyle.left);		if (!this.opera) this.yrel = parseInt(this.elm.currentStyle.top);		this.z = this.cssobj.zIndex;		this.windowWidth = document.body.offsetWidth;		this.windowHeight = document.body.offsetHeight;	}			if (this.w3c)	{		this.clip = this.cssobj.clip || 'Die Eigenschaft \'clip\' steht in diesem Browser nicht zur Verfuegung.';		this.ct = (this.cssobj.clip && this.cssobj.clip != 'auto') ? Number(this.clip.split("rect(")[1].split(")")[0].split("px")[0]) : 0;		this.cr = (this.cssobj.clip && this.cssobj.clip != 'auto') ? Number(this.clip.split("rect(")[1].split(")")[0].split("px")[1]) : this.w;		this.cb = (this.cssobj.clip && this.cssobj.clip != 'auto') ? Number(this.clip.split("rect(")[1].split(")")[0].split("px")[2]) : this.h;		this.cl = (this.cssobj.clip && this.cssobj.clip != 'auto') ? Number(this.clip.split("rect(")[1].split(")")[0].split("px")[3]) : 0;		this.bgColor = this.cssobj.backgroundColor;		this.visibility = (this.cssobj.visibility == "") ? "inherit" : this.cssobj.visibility;	}	this.obj = this.id+"TransObj";	eval(this.obj +"= this");	this.elm.obj = this;	this.xlr = - (this.windowWidth - this.x - this.w);	this.ylr = - (this.windowHeight - this.y - this.h);	this.exx = this.x;	this.exy = this.y;	this.initx = this.x;	this.inity = this.y;	this.xreg = 0;	this.yreg = 0;	this.regx = this.x;	this.regy = this.y;	this.xdiff = (typeof(this.xrel) == 'number') ? this.x - this.xrel : 0;	this.ydiff = (typeof(this.yrel) == 'number') ? this.y - this.yrel : 0;	this.slideID = "";	this.slideCounter = 0;	this.slideStatus = 1;	this.dragDirection = 'all';}TransObj.prototype.mac = (navigator.platform.indexOf('Mac')>-1) ? true : false;TransObj.prototype.pc = (navigator.platform.indexOf('Mac')<0) ? true : false;TransObj.prototype.nn = (navigator.appName=="Netscape" && navigator.userAgent.indexOf('Safari') < 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.ie = (navigator.appName=="Microsoft Internet Explorer" && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.safari = (navigator.userAgent.indexOf('Safari') > -1) ? true : false;TransObj.prototype.opera = (navigator.userAgent.indexOf('Opera') > -1) ? true : false;TransObj.prototype.nn3 = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==3 && navigator.userAgent.indexOf('Safari') < 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.ie3 = (navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.indexOf('MSIE 3') > 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.nn4 = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4 && navigator.userAgent.indexOf('Safari') < 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.ie4 = (navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.indexOf('MSIE 4') > 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.nn5 = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=5 && navigator.userAgent.indexOf('Safari') < 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.ie5 = (navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.indexOf('MSIE 5') > 0) && navigator.userAgent.indexOf('Opera') < 0 ? true : false;TransObj.prototype.nn601 = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=5 && navigator.userAgent.substring(navigator.userAgent.indexOf('Netscape6')+10,navigator.userAgent.length) < 6.1 && navigator.userAgent.indexOf('Safari') < 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.ie6 = (navigator.appName=="Microsoft Internet Explorer" && navigator.appVersion.indexOf('MSIE 6') > 0 && navigator.userAgent.indexOf('Opera') < 0) ? true : false;TransObj.prototype.w3c = (document.getElementById) ? true : false;TransObj.prototype.moveTo = t_o_MoveTo;TransObj.prototype.moveElmByLowerRightTo = t_o_MoveElmByLowerRightTo;TransObj.prototype.moveBy = t_o_MoveBy;TransObj.prototype.register = t_o_Register;TransObj.prototype.slideTo = t_o_SlideTo;TransObj.prototype.slideBy = t_o_SlideBy;TransObj.prototype.slide = t_o_Slide;TransObj.prototype.stopSliding = t_o_StopSliding;TransObj.prototype.onSlideEnd = new Function();TransObj.prototype.resizeTo = t_o_ResizeTo;TransObj.prototype.resizeBy = t_o_ResizeBy;TransObj.prototype.setRelativeSizeTo = t_o_SetRelativeSizeTo;TransObj.prototype.clipTo = t_o_ClipTo;TransObj.prototype.clipBy = t_o_ClipBy;TransObj.prototype.show = t_o_Show;TransObj.prototype.hide = t_o_Hide;TransObj.prototype.placeElement = t_o_Display;TransObj.prototype.removeElement = t_o_NoDisplay;TransObj.prototype.stackTo = t_o_StackTo;TransObj.prototype.stackBy = t_o_StackBy;TransObj.prototype.write = t_o_Write;TransObj.prototype.attachSrc = t_o_AttacheSrc;TransObj.prototype.changeSrc = t_o_ChangeSrc;TransObj.prototype.update = t_o_Update;if (TransObj.prototype.w3c) TransObj.prototype.evaluateStyleObj = t_o_intern_evaluateStyleObj;if (TransObj.prototype.w3c) TransObj.prototype.evaluateStyleObjIE4 = t_o_intern_evaluateStyleObjIE4;if (TransObj.prototype.nn5 || TransObj.prototype.safari) TransObj.prototype.getStyleAttribute = t_o_intern_getStyleAttribute;TransObj.prototype.registerEventHandler = t_o_registerEventHandler/********Definiton der Methoden********/function t_o_MoveTo(x,y){	//alert(this.id+"\nx: "+x+"\nx: "+this.x+"\nexx: "+this.exx+"\nxreg: "+this.xreg+"\nxlr: "+this.xlr+"\nwindowWidth: "+this.windowWidth+"\nregx: "+this.regx+"\ncss.left: "+this.css.left)	if (x!=null)	{		this.exx = x - this.xreg;		this.x = Math.round(x) - this.xreg;		this.xrel = this.x - this.xdiff;		this.xlr = - (this.windowWidth - this.x - this.w);		this.regx = Math.round(x);		this.css.left = x - this.xreg - this.xdiff;	}	if (y!=null)	{		this.exy = y - this.yreg;		this.y = Math.round(y) - this.yreg;		this.yrel = this.y - this.ydiff;		this.ylr = - (this.windowHeight - this.y - this.h);		this.regy = Math.round(y);		this.css.top = y - this.yreg - this.ydiff;	}	//document.forms[0].elements[0].value = this.x + "/" + this.y;	//document.forms[0].elements[1].value = this.regx + "/" + this.regy;}function t_o_MoveBy(x,y){	this.moveTo(this.exx+this.xreg+x,this.exy+this.yreg+y)}function t_o_MoveElmByLowerRightTo(xlr,ylr){	var x;	var y;	if (xlr != null) x = this.windowWidth - this.w + xlr + this.xreg;	if (ylr != null) y = this.windowHeight - this.h + ylr + this.yreg;	this.moveTo(x,y)}function t_o_Register(x,y){	this.xreg = x;	this.yreg = y;	this.regx = this.x + this.xreg;	this.regy = this.y + this.yreg;	this.moveTo(this.x,this.y)}function t_o_SlideTo(endx,endy,speed,fr){	if (this.slideStatus == 1)	{		this.slideStatus = 0;		if (endx==null) endx = this.x;		if (endy==null) endy = this.y;		var dx = endx - this.x - this.xreg;		var dy = endy - this.y - this.yreg;		var Q = Math.sqrt(Math.pow(dx,2)+Math.pow(dy,2))/speed;		var xinc = (Q != 0) ? dx / Q : 0;		var yinc = (Q != 0) ? dy / Q : 0;		this.slideID = setInterval(this.obj+".slide("+xinc+","+yinc+","+Q+","+endx+","+endy+","+dx+","+dy+","+speed+")",fr)		//alert(Q)		//alert("endx: "+endx+"\nendy: "+endy+"\ndx: "+dx+"\ndy: "+dy+"\nQ: "+Q+"\nxinc: "+xinc+"\nyinc: "+yinc)	}}function t_o_SlideBy(endx,endy,speed,fr){	this.slideTo(this.regx+endx,this.regy+endy,speed,fr)}function t_o_Slide(x,y,Q,endx,endy,dx,dy){	x = (Math.abs(this.regx-endx)>Math.abs(x)) ? x : endx-this.x-this.xreg;	y = (Math.abs(this.regy-endy)>Math.abs(y)) ? y : endy-this.y-this.yreg;	this.moveBy(x,y)	this.slideCounter = this.slideCounter+1;	if (this.slideCounter>Q)	{		clearInterval(this.slideID)		this.slideCounter = 0;		this.slideStatus = 1;		this.onSlideEnd();	}}function t_o_StopSliding(){	clearInterval(this.slideID);	this.slideCounter = 0;	this.slideStatus = 1;}function t_o_ResizeTo(w,h){	if (w!=null)	{		this.w = this.cr = w;		if (this.nn4) this.css.clip.width = this.w;		this.css.width = this.w;	}	if (h!=null)	{		this.h = this.cb = h;		if (this.nn4) this.css.clip.height = this.h;		this.css.height = this.h;	}	if (this.ie || this.nn5) Clip = "rect(0," + this.w + "," + this.h + ",0)";	if (this.ie || this.nn5) this.css.clip = Clip;}function t_o_ResizeBy(w,h){	this.resizeTo(this.w+w,this.h+h);}function t_o_SetRelativeSizeTo(sx,sy){	var x;	var y;	if (sx != null && typeof sx == 'number' && sx <= 0)	{		x = this.windowWidth+sx;	}	else if (sx != null && typeof sx == 'string' && sx.indexOf('%') > 0)	{		x = this.windowWidth * (parseFloat(sx) / 100)	}	if (sy != null && typeof sy == 'number' && sy <= 0)	{		y = this.windowHeight+sy;	}	else if (sy != null && typeof sy == 'string' && sy.indexOf('%') > 0)	{		y = this.windowHeight * (parseFloat(sy) / 100)	}	this.resizeTo(x,y)}function t_o_ClipTo(ct,cr,cb,cl){		this.ct = (ct >= 0 && cb-ct >= 0) ? ct : 0;		this.cr = (cr >= 0 && cr-cl >= 0 && cr <= this.w) ? cr : this.w;		this.cb = (cb >= 0 && cb-ct >= 0 && cb <= this.h) ? cb : this.h;		this.cl = (cl >= 0 && cr-cl >= 0) ? cl : 0;				if (this.nn4) this.css.clip.top = this.ct;		if (this.nn4) this.css.clip.right = this.cr;		if (this.nn4) this.css.clip.bottom = this.cb;		if (this.nn4) this.css.clip.left = this.cl;				if (this.ie || this.nn5 || this.safari) Clip = "rect(" + this.ct + "px," + this.cr + "px," + this.cb + "px," + this.cl + "px)";		if (this.ie || this.nn5 || this.safari) this.css.clip = Clip;}function t_o_ClipBy(ct,cr,cb,cl){	this.clipTo(this.ct+ct,this.cr-cr,this.cb-cb,this.cl+cl);}function t_o_Show(){	this.css.visibility = (this.ie || this.nn5 || this.safari || this.opera) ? "visible" : "show";}function t_o_Hide(){	this.css.visibility = (this.ie || this.nn5 || this.safari || this.opera) ? "hidden" : "hide";}function t_o_Display(){	if (!this.nn4) this.css.display = 'inline';}function t_o_NoDisplay(){	if (!this.nn4) this.css.display = 'none';}function t_o_StackTo(Z){	this.z = Z;	this.css.zIndex = Z;}function t_o_StackBy(Z){	this.stackTo(this.z + Z)}function t_o_Write(Text){	if (this.nn4)	{		this.doc.open();		this.doc.write(Text);		this.doc.close();	}	else	{		this.elm.innerHTML = Text;	}}function t_o_AttacheSrc(Q,name,color){	if (this.nn4)	{		this.css.clip.width = this.w;		this.css.clip.height = this.h;			this.elm.src = Q;	}	else	{		this.resizeTo(this.w,this.h)		this.inframe = name;		this.elm.innerHTML = "<iframe src='"+Q+"' name='"+name+"' width='"+(this.w)+"' height='"+(this.h)+"' scrolling='no' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0' bgcolor='#"+color+"' style='border:0px'></iframe>"	}}function t_o_ChangeSrc(Q){	if (this.nn4)	{		this.elm.src = Q;	}	else	{		window.frames[this.inframe].document.location.href = Q;	}}function t_o_Update(){	if (this.nn)	{		this.windowWidth = window.innerWidth;		this.windowHeight = window.innerHeight;	}	if (this.ie)	{		this.windowWidth = document.body.offsetWidth;		this.windowHeight = document.body.offsetHeight;	}	}function t_o_intern_evaluateStyleObj(){	for (var i=0;i<document.styleSheets.length;i++)	{		for (var j=0;j<document.styleSheets[i].cssRules.length;j++)		{			if (document.styleSheets[i].cssRules[j].selectorText == "#"+this.id || document.styleSheets[i].cssRules[j].selectorText == "*[ID\""+this.id+"\"]")			{				return document.styleSheets[i].cssRules[j].style;				break;			}		}	}	return false;}function t_o_intern_evaluateStyleObjIE4(){	for (var i=0;i<document.styleSheets.length;i++)	{		for (var j=0;j<document.styleSheets[i].rules.length;j++)		{			if (document.styleSheets[i].rules[j].selectorText == "#"+this.id || document.styleSheets[i].rules[j].selectorText == "*#"+this.id)			{				return document.styleSheets[i].rules[j].style;				break;			}		}	}	return false;}function t_o_intern_getStyleAttribute(attr){	document.defaultView.getComputedStyle(this.elm,null).getPropertyValue(attr);}function doNothing(){}function t_o_registerEventHandler(t_o_event,t_o_action,status,cursor){	if (this.w3c && (!this.ie && !this.nn4))	{		status = status || false;		this.elm.style.cursor = cursor;		this.elm.addEventListener(t_o_event,t_o_action,status);		//alert(status)	}	else if (this.nn4 || this.ie)	{		if (this.ie && cursor)		{			if (cursor == 'pointer') cursor = (this.pc) ? 'hand' : cursor; 			this.elm.style.cursor = cursor;		}		eval("this.elm.on" + t_o_event + " = " + t_o_action);	}	if (this.nn4)	{		t_o_event = t_o_event.toUpperCase();		this.elm.captureEvents(Event.t_o_event);	}}