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,b,d){a=a.toUpperCase();var c=document.createElement(this.NODEMAP[a]||"div");try{c.innerHTML="<"+a+"></"+a+">"}catch(g){}var e=c.firstChild||null;if(e&&e.tagName.toUpperCase()!=a)e=e.getElementsByTagName(a)[0];e||(e=document.createElement(a));if(e){if(b)if(this._isStringOrNumber(b)||
b instanceof Array||b.tagName)this._children(e,b);else{var f=this._attributes(b);if(f.length){try{c.innerHTML="<"+a+" "+f+"></"+a+">"}catch(h){}e=c.firstChild||null;if(!e){e=document.createElement(a);for(attr in b)e[attr=="class"?"className":attr]=b[attr]}if(e.tagName.toUpperCase()!=a)e=c.getElementsByTagName(a)[0]}}d&&this._children(e,d);return e}},_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(a,b){if(b.tagName)a.appendChild(b);else if(typeof b=="object")b.flatten().each(function(d){if(typeof d=="object")a.appendChild(d);else Builder._isStringOrNumber(d)&&a.appendChild(Builder._text(d))});else Builder._isStringOrNumber(b)&&a.appendChild(Builder._text(b))},_isStringOrNumber:function(a){return typeof a=="string"||typeof a=="number"},build:function(a){var b=
this.node("div");$(b).update(a.strip());return b.down()},dump:function(a){if(typeof a!="object"&&typeof a!="function")a=window;"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+/).each(function(b){a[b]=
function(){return Builder.node.apply(Builder,[b].concat($A(arguments)))}})}},conf_reflection_p=0,conf_focus=4,conf_slider_width=42,conf_images_cursor="pointer",conf_slider_cursor="default",conf_imageflow="imageflow",conf_loading="loading",conf_images="images",conf_captions="captions",conf_scrollbar="scrollbar",conf_slider="slider",conf_imageoffsettop=20,caption_id=0,new_caption_id=0,current=0,target=0,mem_target=0,timer=0,array_images=[],new_slider_pos=0,dragging=false,dragobject=null,dragx=0,posx=
0,new_posx=0,xstep=150,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}}
function glideTo(a,b){mem_target=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(a){current=a;for(var b=max,d=0;d<max;d++){var c=img_div.childNodes.item(array_images[d]),g=d*-xstep;if(g+max_conf_focus<mem_target||g-max_conf_focus>mem_target){c.style.visibility="hidden";c.style.display="none"}else{g=Math.sqrt(1E4+a*a)+100;var e=a/g*size+size;c.style.display="block";var f=c.h/c.w*c.pc/g*size;switch(f>max_height){case false:var h=c.pc/g*size;break;default:f=max_height;h=c.w*f/c.h}var i=images_width*0.34-f+images_top+f/(conf_reflection_p+1)*conf_reflection_p-conf_imageoffsettop;
c.style.left=e-c.pc/2/g*size+images_left+"px";if(h&&f){c.style.height=f+"px";c.style.width=h+"px";c.style.top=i+"px"}c.style.visibility="visible";switch(a<0){case true:b++;break;default:b-=1}switch(c.i==caption_id){case false:c.onclick=function(){glideTo(this.x_pos,this.i)};break;default:b+=1}c.style.zIndex=b}a+=xstep}}
function refresh(a){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*=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;for(var b=0,d=0;d<
max;d++){var c=img_div.childNodes.item(d);if(c.nodeType==1){array_images[b]=d;c.onclick=function(){glideTo(this.x_pos,this.i)};c.x_pos=-b*xstep;c.i=b;if(a==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}c.url=c.getAttribute("longdesc");c.style.cursor=conf_images_cursor;b++}}max=array_images.length;moveTo(current);glideTo(current,caption_id)}function show(a){document.getElementById(a).style.visibility="visible"}
function hide(a){a=document.getElementById(a);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(){document.getElementById(conf_imageflow)&&refresh()};window.onunload=function(){window.onunload=null;try{document=null}catch(a){}};
function handle(a){var b=false;switch(a>0){case true:if(caption_id>=1){target+=xstep;new_caption_id=caption_id-1;b=true}break;default:if(caption_id<max-1){target-=xstep;new_caption_id=caption_id+1;b=true}}b==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;b&&handle(b);a.preventDefault&&a.preventDefault();a.returnValue=false}
function initMouseWheel(){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(a){posx=document.all?window.event.clientX:a.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;a=Math.round((new_posx+new_slider_pos)/(scrollbar_width/(max-1)));var b=a*-xstep;dragobject.style.left=new_posx+"px";glideTo(b,a)}}
function initMouseDrag(){document.onmousemove=drag;document.onmouseup=dragstop;document.onselectstart=function(){return dragging==true?false:true}}function getKeyCode(a){a=a||window.event;return a.keyCode}document.onkeydown=function(a){switch(getKeyCode(a)){case 39:handle(-1);break;case 37:handle(1)}};function selectActiveLink(a){$$(".links ul li a").each(function(b){b.rel=="clip_"+a?b.addClassName("active"):b.removeClassName("active")})}
function targetLink(a){var b=$("leftScroll"),d=$("rightScroll");b.rel=a==0?"clip_15":"clip_"+a;d.rel=a==14?"clip_1":"clip_"+(a+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-=1;glideTo(-(a*150),a)}
var clips=["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(a){var b=this.rel.split("_")[1]-1;glideTo(-(b*150),b);return popup.open(a)});$$("#scrollbar a").invoke("observe","click",function(){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",CONTENT_ANKER:"dbnLayerContent",initialize:function(){this.objBody=$$("body")[0];this.popup=null;$("images").observe("click",function(a){if(Event.element(a).tagName.toLowerCase()==="img")return this.open(a)}.bind(this))},open:function(a){var b=null;if(Object.isEvent(a)){var d=Event.element(a);b=d.longDesc;if(b==null||b.blank())b=d.href}else b=a;this.close();d="width="+this.WIDTH_LAYER+
",height="+this.HEIGHT_LAYER+",left="+this.LEFT_POSITION+",top="+this.TOP_POSITION;d+=",status=no,scrollbars=no,resizable=yes,toolbar=no,menubar=yes,location=no,directories=no";if(this.popup=window.open(b+"#"+this.CONTENT_ANKER,this.POPUP_NAME,d)){this.popup._parent=window;this.popup.focus();Event.stop(a);return false}document.location=b;return true},close:function(){this.popup&&!this.popup.closed&&this.popup.close();return false}};function closePopup(){popup&&popup.close()}
window.onunload=function(){window.onunload=null;closePopup()};
var tooltip={initialize:function(){$$(".tooltip.open").invoke("observe","click",tooltip.open)},open:function(a){var b=Event.element(a);$("dbnTooltip")&&$("dbnTooltip").remove();$$("body")[0].appendChild(Builder.node("div",{id:"dbnTooltip"},[Builder.node("a",{className:"tooltip close",id:"closeTooltip",href:"javascript:void(0);"},"Fenster schlie\u00dfen"),Builder.node("div",{id:"dbnTooltipContent"},b.rel)]));b=$("dbnTooltip");var d=Event.pointerY(a)-5,c=Event.pointerX(a);b.style.width="225px";b.style.top=
d+"px";b.style.left=c+"px";$("closeTooltip").style.width="245px";$("closeTooltip").style.height=b.offsetHeight+"px";a.stop();$$(".tooltip.close").invoke("observe","click",tooltip.close);return false},close:function(){$("dbnTooltip").remove();$$("select").each(function(a){a.style.visibility="visible"})}};

