var Builder={NODEMAP:{AREA:"map",CAPTION:"table",COL:"table",COLGROUP:"table",LEGEND:"fieldset",OPTGROUP:"select",OPTION:"select",PARAM:"object",TBODY:"table",TD:"table",TFOOT:"table",TH:"table",THEAD:"table",TR:"table"},node:function(A){A=A.toUpperCase();var F=this.NODEMAP[A]||"div";var B=document.createElement(F);try{B.innerHTML="<"+A+"></"+A+">"}catch(E){}var D=B.firstChild||null;if(D&&(D.tagName.toUpperCase()!=A)){D=D.getElementsByTagName(A)[0]}if(!D){D=document.createElement(A)}if(!D){return }if(arguments[1]){if(this._isStringOrNumber(arguments[1])||(arguments[1] instanceof Array)||arguments[1].tagName){this._children(D,arguments[1])}else{var C=this._attributes(arguments[1]);if(C.length){try{B.innerHTML="<"+A+" "+C+"></"+A+">"}catch(E){}D=B.firstChild||null;if(!D){D=document.createElement(A);for(attr in arguments[1]){D[attr=="class"?"className":attr]=arguments[1][attr]}}if(D.tagName.toUpperCase()!=A){D=B.getElementsByTagName(A)[0]}}}}if(arguments[2]){this._children(D,arguments[2])}return D},_text:function(A){return document.createTextNode(A)},ATTR_MAP:{className:"class",htmlFor:"for"},_attributes:function(A){var B=[];for(attribute in A){B.push((attribute in this.ATTR_MAP?this.ATTR_MAP[attribute]:attribute)+'="'+A[attribute].toString().escapeHTML().gsub(/"/,"&quot;")+'"')}return B.join(" ")},_children:function(B,A){if(A.tagName){B.appendChild(A);return }if(typeof A=="object"){A.flatten().each(function(C){if(typeof C=="object"){B.appendChild(C)}else{if(Builder._isStringOrNumber(C)){B.appendChild(Builder._text(C))}}})}else{if(Builder._isStringOrNumber(A)){B.appendChild(Builder._text(A))}}},_isStringOrNumber:function(A){return(typeof A=="string"||typeof A=="number")},build:function(B){var A=this.node("div");$(A).update(B.strip());return A.down()},dump:function(B){if(typeof B!="object"&&typeof B!="function"){B=window}var A=("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);A.each(function(C){B[C]=function(){return Builder.node.apply(Builder,[C].concat($A(arguments)))}})}};var conf_reflection_p=0;var conf_focus=4;var conf_slider_width=42;var conf_images_cursor="pointer";var conf_slider_cursor="default";var conf_imageflow="imageflow";var conf_loading="loading";var conf_images="images";var conf_captions="captions";var conf_scrollbar="scrollbar";var conf_slider="slider";var conf_imageoffsettop=20;var caption_id=0;var new_caption_id=0;var current=0;var target=0;var mem_target=0;var timer=0;var array_images=new Array();var new_slider_pos=0;var dragging=false;var dragobject=null;var dragx=0;var posx=0;var new_posx=0;var xstep=150;var jumper=8;function step(){switch(target<current-1||target>current+1){case true:moveTo(current+(target-current)/3);window.setTimeout(step,50);timer=1;break;default:timer=0;break}}function glideTo(A,B){target=A;mem_target=A;if(timer==0){window.setTimeout(step,50);timer=1}caption_id=B;caption=img_div.childNodes.item(array_images[caption_id]).getAttribute("alt");if(caption==""){caption="&nbsp;"}caption_div.innerHTML=caption;selectActiveLink(B+1);targetLink(B);if(dragging==false){new_slider_pos=(scrollbar_width*(-(A*100/((max-1)*xstep)))/100)-new_posx;slider_div.style.marginLeft=(new_slider_pos-conf_slider_width)+"px"}}function moveTo(J){current=J;var H=max;for(var E=0;E<max;E++){var B=img_div.childNodes.item(array_images[E]);var I=E*-xstep;if((I+max_conf_focus)<mem_target||(I-max_conf_focus)>mem_target){B.style.visibility="hidden";B.style.display="none"}else{var G=Math.sqrt(10000+J*J)+100;var A=J/G*size+size;B.style.display="block";var C=(B.h/B.w*B.pc)/G*size;switch(C>max_height){case false:var F=B.pc/G*size;break;default:C=max_height;var F=B.w*C/B.h;break}var D=(images_width*0.34-C)+images_top+((C/(conf_reflection_p+1))*conf_reflection_p)-conf_imageoffsettop;B.style.left=A-(B.pc/2)/G*size+images_left+"px";if(F&&C){B.style.height=C+"px";B.style.width=F+"px";B.style.top=D+"px"}B.style.visibility="visible";switch(J<0){case true:H++;break;default:H=H-1;break}switch(B.i==caption_id){case false:B.onclick=function(){glideTo(this.x_pos,this.i)};break;default:H=H+1;break}B.style.zIndex=H}J+=xstep}}function refresh(D){imageflow_div=document.getElementById(conf_imageflow);img_div=document.getElementById(conf_images);scrollbar_div=document.getElementById(conf_scrollbar);slider_div=document.getElementById(conf_slider);caption_div=document.getElementById(conf_captions);images_width=img_div.offsetWidth;images_top=imageflow_div.offsetTop;images_left=imageflow_div.offsetLeft;max_conf_focus=conf_focus*xstep;size=images_width*0.5;scrollbar_width=images_width*0.7;conf_slider_width=conf_slider_width*0.5;
max_height=images_width*0.51;imageflow_div.style.height=max_height+"px";img_div.style.height=images_width*0.338-conf_imageoffsettop+"px";caption_div.style.width=images_width+"px";caption_div.style.marginTop=images_width*0.03+"px";scrollbar_div.style.marginTop=images_width*0.01+"px";scrollbar_div.style.marginLeft=images_width*0.15+"px";scrollbar_div.style.width=scrollbar_width+"px";slider_div.onmousedown=function(){dragstart(this)};slider_div.style.cursor=conf_slider_cursor;max=img_div.childNodes.length;var B=0;for(var A=0;A<max;A++){var C=img_div.childNodes.item(A);if(C.nodeType==1){array_images[B]=A;C.onclick=function(){glideTo(this.x_pos,this.i)};C.x_pos=(-B*xstep);C.i=B;if(D==true){C.w=C.width;C.h=C.height}switch((C.w+1)>(C.h/(conf_reflection_p+1))){case true:C.pc=117.7684;break;default:C.pc=99.7684;break}C.url=C.getAttribute("longdesc");C.style.cursor=conf_images_cursor;B++}}max=array_images.length;moveTo(current);glideTo(current,caption_id)}function show(B){var A=document.getElementById(B);A.style.visibility="visible"}function hide(B){var A=document.getElementById(B);A.style.visibility="hidden";A.style.display="none"}window.onload=function(){if(document.getElementById(conf_imageflow)){hide(conf_loading);refresh(true);show(conf_images);show(conf_scrollbar);initMouseWheel();initMouseDrag()}glideTo(-((jumper-1)*150),jumper-1)};window.onresize=function(){if(document.getElementById(conf_imageflow)){refresh()}};window.onunload=function(){try{document=null}catch(A){}};function handle(B){var A=false;switch(B>0){case true:if(caption_id>=1){target=target+xstep;new_caption_id=caption_id-1;A=true}break;default:if(caption_id<(max-1)){target=target-xstep;new_caption_id=caption_id+1;A=true}break}if(A==true){glideTo(target,new_caption_id)}}function wheel(A){var B=0;if(!A){A=window.event}if(A.wheelDelta){B=A.wheelDelta/120}else{if(A.detail){B=-A.detail/3}}if(B){handle(B)}if(A.preventDefault){A.preventDefault()}A.returnValue=false}function initMouseWheel(){if(window.addEventListener){imageflow_div.addEventListener("DOMMouseScroll",wheel,false)}imageflow_div.onmousewheel=wheel}function dragstart(A){dragobject=A;dragx=posx-dragobject.offsetLeft+new_slider_pos}function dragstop(){dragobject=null;dragging=false}function drag(F){posx=document.all?window.event.clientX:F.pageX;if(dragobject!=null){dragging=true;new_posx=(posx-dragx)+conf_slider_width;if(new_posx<(-new_slider_pos)){new_posx=-new_slider_pos}if(new_posx>(scrollbar_width-new_slider_pos)){new_posx=scrollbar_width-new_slider_pos}var B=(new_posx+new_slider_pos);var E=B/((scrollbar_width)/(max-1));var D=Math.round(E);var A=(D)*-xstep;var C=D;dragobject.style.left=new_posx+"px";glideTo(A,C)}}function initMouseDrag(){document.onmousemove=drag;document.onmouseup=dragstop;document.onselectstart=function(){if(dragging==true){return false}else{return true}}}function getKeyCode(A){A=A||window.event;return A.keyCode}document.onkeydown=function(B){var A=getKeyCode(B);switch(A){case 39:handle(-1);break;case 37:handle(1);break}};function selectActiveLink(A){$$(".links ul li a").each(function(B){if(B.rel=="clip_"+A){B.addClassName("active")}else{B.removeClassName("active")}})}function targetLink(C){var A=$("leftScroll");var B=$("rightScroll");if(C==0){A.rel="clip_"+15}else{A.rel="clip_"+C}if(C==14){B.rel="clip_"+1}else{B.rel="clip_"+(C+2)}}function startGallery(){$$("ul#thumbnails li img").each(function(A){Event.observe(A,"mouseover",function(){$$(".galleryBox").each(function(B){B.hide()});$(A.alt).show()})})}function jumpTo(A){A=A-1;glideTo(-(A*150),A)}var clips=new Array("adressbuch","gruppen","termine","events","marketplace","companypages","mobile","bestoffers","applications","vernetzen","profil","persstartseite","suche","powersuche","nachrichten");Event.observe(window,"load",function(){$$(".links ul li a").invoke("observe","click",function(B){var A=this.rel.split("_")[1]-1;glideTo(-(A*150),A);return popup.open(B)});$$("#scrollbar a").invoke("observe","click",function(B){var A=this.rel.split("_")[1]-1;glideTo(-(A*150),A)})});var popup={WIDTH_LAYER:800,HEIGHT_LAYER:400,TOP_POSITION:145,LEFT_POSITION:200,OPEN_DELAY:750,POPUP_NAME:"thePopup",initialize:function(){this.objBody=$$("body")[0];this.popup=null;$("images").observe("click",function(B){var A=Event.element(B);if(A.tagName.toLowerCase()==="img"){return this.open(B)}}.bind(this))},open:function(A){var D=null;if(Object.isEvent(A)){var C=Event.element(A);D=C.longDesc;if(D==null||D.blank()){D=C.href}}else{D=A}this.close();var B="width="+this.WIDTH_LAYER+",height="+this.HEIGHT_LAYER+",left="+this.LEFT_POSITION+",top="+this.TOP_POSITION;B+=",status=no,scrollbars=no,resizable=yes,toolbar=no,menubar=yes,location=no,directories=no";this.popup=window.open(D);if(this.popup){this.popup._parent=window;this.popup.focus();Event.stop(A);return false}document.location=D;return true},close:function(){if(this.popup&&!this.popup.closed){this.popup.close()}return false}};function closePopup(){if(popup){popup.close()
}}window.onunload=closePopup;var tooltip={initialize:function(){$$(".tooltip.open").invoke("observe","click",tooltip.open)},open:function(F){var D=Event.element(F);if($("dbnTooltip")){$("dbnTooltip").remove()}var C=$$("body")[0];C.appendChild(Builder.node("div",{id:"dbnTooltip"},[Builder.node("a",{className:"tooltip close",id:"closeTooltip",href:"javascript:void(0);"},"Fenster schließen"),Builder.node("div",{id:"dbnTooltipContent"},D.rel)]));var A=$("dbnTooltip");var G=225;var B=Event.pointerY(F)-5;var E=Event.pointerX(F);A.style.width=G+"px";A.style.top=B+"px";A.style.left=E+"px";$("closeTooltip").style.width=G+20+"px";$("closeTooltip").style.height=A.offsetHeight+"px";F.stop();$$(".tooltip.close").invoke("observe","click",tooltip.close);return false},close:function(A){$("dbnTooltip").remove();$$("select").each(function(B){B.style.visibility="visible"})}};