// Find Objectfunction MM_findObj(n, d) { //v3.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;}// Rollover ausfuehrenfunction MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}// Rollover rueckgaengigfunction MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}// Bilder vorladenfunction MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}// Gets Layer Referencefunction tmt_findObj(n){  var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");    x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");    }else{x=document.getElementById(n)}return x;}// Show/Hide Layerfunction MM_showHideLayers() {   var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){    for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];    v=(v=='show')?'visible':(v='hide')?'hidden':v;    if(obj)obj.style.visibility=v;}} else{    for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v; }}}/* Weitere Funktionen*/// --- Resize Fix for Layers// Opera & NS4 resize-Topnavigation Fix STARTvar ResizeTimer;var origW=window.innerWidth;var origH=window.innerHeight;// Opera / NS4.x resize-Topnavigaton Fix Check function checkResize() {	clearTimeout( ResizeTimer );	if ( !OP && !NS ) return true;	if ( OP && !(window.innerWidth==origW && window.innerHeight==origH)) location.reload();	else if ( NS && !(window.outerWidth==origW && window.outerHeight==origH)) location.reload();	ResizeTimer = window.setTimeout("checkResize()", 500);	return true;}// Opera & NS4 (on Mac) resize-Topnavigation Fix END			// hides corrupted HTML-Page when using Netscape-Resize-Patchfunction grayOutPageOnNetscapeReload(){ 	var grayOutAllLayer = new Layer(innerWidth);	with(grayOutAllLayer){		left = 0;		top = 0;		clip.height = innerHeight;		clip.width = innerWidth;		bgColor = "#BBBBBB";		zIndex = 1000;		document.open();		document.write("Reloading, please wait...");		document.close();		visibility = "show";	}}var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0, IE4 = 0, MAC = 0, NT4=0, IE6 = 0, WIN = 0;var sUriPrefix;function DHTML_init() {	if (window.opera) OP = 1;	if(document.getElementById) {		DHTML = 1;		DOM = 1;	}	if(document.all && !OP) {		DHTML = 1;		MS = 1;	}	if(document.layers && !OP) {		DHTML = 1;		NS = 1;	}	if (MS && !DOM) IE4 = 1;	// check for Mac.	if (navigator.userAgent.toLowerCase().indexOf("mac")>-1) MAC = 1;	// new detection for IE 7!	if (navigator.userAgent.toLowerCase().indexOf("msie 7")>-1) IE6 = 1;	if (navigator.userAgent.toLowerCase().indexOf("msie 6")>-1) IE6 = 1;	if (navigator.userAgent.toLowerCase().indexOf("windows nt;")>-1) NT4 = 1;	if (navigator.userAgent.toLowerCase().indexOf("windows")>-1) WIN = 1;}function getImageObjectForNS4(id, d){	if (!NS) return null;	var searchResult = null;	if (!d) d = document;	if (d.images[''+id+'']) searchResult = d.images[''+id+''];	for (var i=0; !searchResult && i < d.layers.length; i++){			 		searchResult = getImageObjectForNS4( id, d.layers[i].document );	}	return searchResult;}// initialise the window status bar and bugfix scrollbar for MAC+IEfunction initPage(windowStatus){	if ( OP || NS ){	// Opera / NS4 Resize Patch		clearTimeout( ResizeTimer );		if (NS){			origW=window.outerWidth;			origH=window.outerHeight;		}		ResizeTimer = window.setTimeout("checkResize()",500);	}	if (MAC && MS) { window.resizeBy(0,1); window.resizeBy(0,-1); } // garanties the scrollbar on mac+IE		window.status = windowStatus;	window.defaultStatus = windowStatus;		// remove the rectangle around links for IE+Win	if (MS&&WIN) { document.onmousedown = ExplorerFix; };		// call PSYMA 	init_survey();		return true;}// remove the rectangle around links for IE+Win only onClick-event, TAB function remainsfunction ExplorerFix() {	for (a in document.links) document.links[a].onfocus = document.links[a].blur; 	}// service function to get Layer-object in NS4 no matter how much surrounding layersfunction getLayerObjectForNS4(id, d){	if (!NS) return null;	var searchResult = null;	if (!d) d = document;	if (d.layers[''+id+'']) searchResult = d.layers[''+id+''];	for (var i=0; !searchResult && i < d.layers.length; i++){			 		searchResult = getLayerObjectForNS4( id, d.layers[i].document );	}	return searchResult;}// almost like the getElem-function of DHTML.js, but can only get layer-objects// and has advanced capabilities for NS4 using getLayerObjectForNS4()function getLayerById(id, d){	if (id == '' && !id ) return null;	var layerObject = null;	if (NS) layerObject = getLayerObjectForNS4( id, d );	else if (MS) layerObject = document.all[''+id+''];	else if (DOM) layerObject = document.getElementById(id);		return layerObject;}function isObject(){	return ( (this.object==null)?false:true );}// returns the parent-Layer of the layer with the given id as an objectfunction getParentLayer( ){	if (!this.isObject()) return null;	var parentLayerObject = null;	if (NS) parentLayerObject = new Layer( this.object.parentLayer.name );	else if (MS){		var parentObject = this.object.parentElement;		while (parentObject && parentObject.parentElement && parentObject.tagName.toLowerCase() != "div")			parentObject = parentObject.parentElement;		if (parentObject && parentObject.tagName.toLowerCase() != "div") parentObject = null;	} else if (DOM){		var parentObject = this.object.parentNode ;		while (parentObject && parentObject.parentNode && !((parentObject.nodeType==1 || OP) && parentObject.tagName.toLowerCase()=="div") )			parentObject = parentObject.parentNode ;		if ( !( parentObject && (parentObject.nodeType==1 || OP) && parentObject.tagName.toLowerCase()=="div") ) parentObject = null;	}	return (new Layer(null)).convertLayerToEmbLayer( parentObject );}function getId(){	if ( !this.isObject() ) return null;	if (MS || DOM) return this.object.id;	else if (NS) return this.object.name;}function show(){	if ( !this.isObject() ) return true;	if (NS) this.object.visibility = "show";	else if (MS || DOM) this.object.style.visibility = "visible";}function hide(){	if ( !this.isObject() ) return true;	if (NS) this.object.visibility = "hide";	else if (MS || DOM) this.object.style.visibility = "hidden";}function setBgColor( newColor ){	if ( !this.isObject() ) return true;	if (NS) this.object.bgColor = newColor;	else this.object.style.backgroundColor = newColor;}function setX( newXPosition ){	if ( !this.isObject() ) return true;	if (NS) this.object.left = newXPosition;	else if (MS || DOM) this.object.style.left=newXPosition+"px";}function setY( newYPosition ){	if ( !this.isObject() ) return true;	if (NS) this.object.top = newYPosition;	else if (MS || DOM) this.object.style.top = newYPosition+"px";}function getX(){	var w = -1;	if ( !this.isObject() ) return w;	if (MS || DOM) w = this.object.offsetLeft;	else if (NS) w = this.object.left;	return w;}function getY(){	var w = -1;	if ( !this.isObject() ) return w;	if (MS || DOM) w = this.object.offsetTop;	else if (NS) w = this.object.top;	return w;}function getAbsoluteY(){	var absTop = 0;	if ( !this.isObject() ) return -1;	var layerObject = this;	if (NS) return this.object.pageY;	while( layerObject.isObject() ){		absTop = absTop + layerObject.getY();		layerObject = layerObject.getParentLayer();	}	return absTop;}function getWidth(){	var w = -1;	if ( !this.isObject() ) return w;	if (DOM && !OP) this.object.style.width = "auto"; // needed but can reset a layers size in strict HTML4.01	if (IE4 || OP) w = this.object.style.pixelWidth;	else if (MS || (DOM && !OP)) w = this.object.offsetWidth; // IE5+ & NS6	else if (NS) w = this.object.clip.width;	return w;}function getHeight(){	var w = -1;	if ( !this.isObject() ) return w;	if (DOM && !OP) this.object.style.height = "auto";	if (MS || (DOM && !OP)) w = this.object.offsetHeight;	else if (NS) w = this.object.clip.height;	else if (OP) w = this.object.style.pixelHeight;	return w;}// setting width and height for layers// used on initalization and when positioning highlight layers// on Mozilla 0.9x+ don't use getWidth or getHeight (on the same layer) after this function, this// would shrink layer size to its contents sizefunction setSize( newWidth, newHeight ){	if ( !this.isObject() ) return true;	if (!NS){		with (this.object.style) {			if (MS || OP){				pixelWidth = newWidth;				pixelHeight = newHeight;			}	else if (DOM && !OP){						width = newWidth+"px";				height = newHeight+"px";			}		}	} else if (NS){		this.object.resizeTo(newWidth, newHeight);		with(this.object.clip){			top = 0;			left = 0;			width = newWidth;			height = newHeight;		}	}}var popUps = new Array();function openChild(source, name, attributes) {	if (!popUps[name] || popUps[name].closed==true) {		window.open(source,name,attributes);	} else {		popUps[name].close();		popUps[name] = window.open(source,name,attributes);	}}DHTML_init(); // this library is automaticly initialized during loading	
