var EXAMPLE_TEXT_MARKER=183;function init_inputOnFocusColorValues(){$('input[type="text"]').focus(function(){tmp=this.value;if(tmp.charCodeAt(tmp.length-1)==EXAMPLE_TEXT_MARKER){this.value="";}if(this.className.indexOf("emnG_inputColor")==-1){this.className=this.className+" emnG_inputColor";}});$('input[type="password"]').focus(function(){this.value="";if(this.className.indexOf("emnG_inputPasswordColor")==-1){this.className=this.className+" emnG_inputPasswordColor";}});$("textarea").focus(function(){tmp=this.value;if(tmp.charCodeAt(tmp.length-1)==EXAMPLE_TEXT_MARKER){this.value="";}if(this.className.indexOf("emnG_textareaColor")==-1){this.className=this.className+" emnG_textareaColor";}});$(document).ready(function(){$(".ep_custom_tooltip").tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:10,extraClass:"emnG_spTooltip ep_text_left"});});}function changeInputTextColor(){var c=$('input[type="text"]');for(i=0;i<c.length;i++){if(c[i].value.charCodeAt(c[i].value.length-1)!=EXAMPLE_TEXT_MARKER){if(c[i].className.indexOf("emnG_inputColor")==-1){c[i].className=c[i].className+" emnG_inputColor";}}}var d=$("textarea");for(i=0;i<d.length;i++){if(d[i].value.charCodeAt(d[i].value.length-1)!=EXAMPLE_TEXT_MARKER){if(d[i].className.indexOf("emnG_textareaColor")==-1){d[i].className=d[i].className+" emnG_textareaColor";}}}}function hideAdditionalData(){if($("#ep_income_error").length>0){$("#additionalData").show();$("#additionalDataLink").html("Zusatzdaten ausblenden");}else{$("#additionalData").hide();}}if(jsAtTheBottom){init_inputOnFocusColorValues();changeInputTextColor();hideAdditionalData();}else{$(document).ready(function(){init_inputOnFocusColorValues();changeInputTextColor();hideAdditionalData();});}(function(c){c.dimensions={version:"1.2"};c.each(["Height","Width"],function(a,b){c.fn["inner"+b]=function(){if(!this[0]){return;}var g=b=="Height"?"Top":"Left",h=b=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+b]:d(this,b.toLowerCase())+d(this,"padding"+g)+d(this,"padding"+h);};c.fn["outer"+b]=function(l){if(!this[0]){return;}var j=b=="Height"?"Top":"Left",m=b=="Height"?"Bottom":"Right";l=c.extend({margin:false},l||{});var k=this.is(":visible")?this[0]["offset"+b]:d(this,b.toLowerCase())+d(this,"border"+j+"Width")+d(this,"border"+m+"Width")+d(this,"padding"+j)+d(this,"padding"+m);return k+(l.margin?(d(this,"margin"+j)+d(this,"margin"+m)):0);};});c.each(["Left","Top"],function(a,b){c.fn["scroll"+b]=function(f){if(!this[0]){return;}return f!=undefined?this.each(function(){this==window||this==document?window.scrollTo(b=="Left"?f:c(window)["scrollLeft"](),b=="Top"?f:c(window)["scrollTop"]()):this["scroll"+b]=f;}):this[0]==window||this[0]==document?self[(b=="Left"?"pageXOffset":"pageYOffset")]||c.boxModel&&document.documentElement["scroll"+b]||document.body["scroll"+b]:this[0]["scroll"+b];};});c.fn.extend({position:function(){var b=0,k=0,l=this[0],a,o,m,n;if(l){m=this.offsetParent();a=this.offset();o=m.offset();a.top-=d(l,"marginTop");a.left-=d(l,"marginLeft");o.top+=d(m,"borderTopWidth");o.left+=d(m,"borderLeftWidth");n={top:a.top-o.top,left:a.left-o.left};}return n;},offsetParent:function(){var a=this[0].offsetParent;while(a&&(!/^body|html$/i.test(a.tagName)&&c.css(a,"position")=="static")){a=a.offsetParent;}return c(a);}});function d(b,a){return parseInt(c.curCSS(b.jquery?b[0]:b,a,true))||0;}})(jQuery);(function(A){var D={},u,s,q,v=A.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),E=false;A.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){A.tooltip.blocked=!A.tooltip.blocked;}};A.fn.extend({tooltip:function(a){a=A.extend({},A.tooltip.defaults,a);x(a);return this.each(function(){A.data(this,"tooltip",a);this.tOpacity=D.parent.css("opacity");this.tooltipText=this.title;A(this).removeAttr("title");this.alt="";}).mouseover(t).mouseout(z).click(z);},fixPNG:v?function(){return this.each(function(){var a=A(this).css("backgroundImage");if(a.match(/^url\(["']?(.*\.png)["']?\)$/i)){a=RegExp.$1;A(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+a+"')"}).each(function(){var b=A(this).css("position");if(b!="absolute"&&b!="relative"){A(this).css("position","relative");}});}});}:function(){return this;},unfixPNG:v?function(){return this.each(function(){A(this).css({filter:"",backgroundImage:""});});}:function(){return this;},hideWhenEmpty:function(){return this.each(function(){A(this)[A(this).html()?"show":"hide"]();});},url:function(){return this.attr("href")||this.attr("src");}});function x(a){if(D.parent){return;}D.parent=A('<div id="'+a.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(A.fn.bgiframe){D.parent.bgiframe();}D.title=A("h3",D.parent);D.body=A("div.body",D.parent);D.url=A("div.url",D.parent);}function C(a){return A.data(a,"tooltip");}function y(a){if(C(this).delay){q=setTimeout(r,C(this).delay);}else{r();}E=!!C(this).track;A(document.body).bind("mousemove",B);B(a);}function t(){if(A.tooltip.blocked||this==u||(!this.tooltipText&&!C(this).bodyHandler)){return;}u=this;s=this.tooltipText;if(C(this).bodyHandler){D.title.hide();var a=C(this).bodyHandler.call(this);if(a.nodeType||a.jquery){D.body.empty().append(a);}else{D.body.html(a);}D.body.show();}else{if(C(this).showBody){var b=s.split(C(this).showBody);D.title.html(b.shift()).show();D.body.empty();for(var c=0,d;(d=b[c]);c++){if(c>0){D.body.append("<br/>");}D.body.append(d);}D.body.hideWhenEmpty();}else{D.title.html(s).show();D.body.hide();}}if(C(this).showURL&&A(this).url()){D.url.html(A(this).url().replace("http://","")).show();}else{D.url.hide();}D.parent.addClass(C(this).extraClass);if(C(this).fixPNG){D.parent.fixPNG();}y.apply(this,arguments);}function r(){q=null;if((!v||!A.fn.bgiframe)&&C(u).fade){if(D.parent.is(":animated")){D.parent.stop().show().fadeTo(C(u).fade,u.tOpacity);}else{D.parent.is(":visible")?D.parent.fadeTo(C(u).fade,u.tOpacity):D.parent.fadeIn(C(u).fade);}}else{D.parent.show();}B();}function B(c){if(A.tooltip.blocked){return;}if(c&&c.target.tagName=="OPTION"){return;}if(!E&&D.parent.is(":visible")){A(document.body).unbind("mousemove",B);}if(u==null){A(document.body).unbind("mousemove",B);return;}D.parent.removeClass("viewport-right").removeClass("viewport-bottom");var a=D.parent[0].offsetLeft;var b=D.parent[0].offsetTop;if(c){a=c.pageX+C(u).left;b=c.pageY+C(u).top;var e="auto";if(C(u).positionLeft){e=A(window).width()-a;a="auto";}D.parent.css({left:a,right:e,top:b});}var f=w(),d=D.parent[0];if(f.x+f.cx<d.offsetLeft+d.offsetWidth){a-=d.offsetWidth+20+C(u).left;D.parent.css({left:a+"px"}).addClass("viewport-right");}if(f.y+f.cy<d.offsetTop+d.offsetHeight){b-=d.offsetHeight+20+C(u).top;D.parent.css({top:b+"px"}).addClass("viewport-bottom");}}function w(){return{x:A(window).scrollLeft(),y:A(window).scrollTop(),cx:A(window).width(),cy:A(window).height()};}function z(a){if(A.tooltip.blocked){return;}if(q){clearTimeout(q);}u=null;var b=C(this);function c(){D.parent.removeClass(b.extraClass).hide().css("opacity","");}if((!v||!A.fn.bgiframe)&&b.fade){if(D.parent.is(":animated")){D.parent.stop().fadeTo(b.fade,0,c);}else{D.parent.stop().fadeOut(b.fade,c);}}else{c();}if(C(this).fixPNG){D.parent.unfixPNG();}}})(jQuery);(function(d){d.fn.bgiframe=(d.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(a){a=d.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},a);var b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+a.src+'"style="display:block;position:absolute;z-index:-1;'+(a.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(a.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":c(a.top))+";left:"+(a.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":c(a.left))+";width:"+(a.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":c(a.width))+";height:"+(a.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":c(a.height))+';"/>';return this.each(function(){if(d(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(b),this.firstChild);}});}:function(){return this;});d.fn.bgIframe=d.fn.bgiframe;function c(a){return a&&a.constructor===Number?a+"px":a;}})(jQuery);jQuery.timer=function(d,c){var d=d||100;if(!c){return false;}_timer=function(b,a){this.stop=function(){clearInterval(f.id);};this.internalCallback=function(){a(f);};this.reset=function(e){if(f.id){clearInterval(f.id);}var e=e||100;this.id=setInterval(this.internalCallback,e);};this.interval=b;this.id=setInterval(this.internalCallback,this.interval);var f=this;};return new _timer(d,c);};jQuery.ui||(function(q){var k=q.fn.remove,p=q.browser.mozilla&&(parseFloat(q.browser.version)<1.9);q.ui={version:"1.7.2",plugin:{add:function(b,a,d){var e=q.ui[b].prototype;for(var c in d){e.plugins[c]=e.plugins[c]||[];e.plugins[c].push([a,d[c]]);}},call:function(c,a,b){var d=c.plugins[a];if(!d||!c.element[0].parentNode){return;}for(var e=0;e<d.length;e++){if(c.options[d[e][0]]){d[e][1].apply(c.element,b);}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b);},hasScroll:function(d,b){if(q(d).css("overflow")=="hidden"){return false;}var c=(b&&b=="left")?"scrollLeft":"scrollTop",a=false;if(d[c]>0){return true;}d[c]=1;a=(d[c]>0);d[c]=0;return a;},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a));},isOver:function(d,b,e,f,c,a){return q.ui.isOverAxis(d,e,c)&&q.ui.isOverAxis(b,f,a);},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(p){var n=q.attr,o=q.fn.removeAttr,l="http://www.w3.org/2005/07/aaa",s=/^aria-/,r=/^wairole:/;q.attr=function(b,c,a){var d=a!==undefined;return(c=="role"?(d?n.call(this,b,c,"wairole:"+a):(n.apply(this,arguments)||"").replace(r,"")):(s.test(c)?(d?b.setAttributeNS(l,c.replace(s,"aaa:"),a):n.call(this,b,c.replace(s,"aaa:"))):n.apply(this,arguments)));};q.fn.removeAttr=function(a){return(s.test(a)?this.each(function(){this.removeAttributeNS(l,a.replace(s,""));}):o.call(this,a));};}q.fn.extend({remove:function(){q("*",this).add(this).each(function(){q(this).triggerHandler("remove");});return k.apply(this,arguments);},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui");},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});},scrollParent:function(){var a;if((q.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(q.curCSS(this,"position",1))&&(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1));}).eq(0);}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!a.length?q(document):a;}});q.extend(q.expr[":"],{data:function(a,b,c){return !!q.data(a,c[3]);},focusable:function(b){var a=b.nodeName.toLowerCase(),c=q.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(a)?!b.disabled:"a"==a||"area"==a?b.href||!isNaN(c):!isNaN(c))&&!q(b)["area"==a?"parents":"closest"](":hidden").length;},tabbable:function(a){var b=q.attr(a,"tabindex");return(isNaN(b)||b>=0)&&q(a).is(":focusable");}});function m(f,e,d,a){function b(g){var h=q[f][e][g]||[];return(typeof h=="string"?h.split(/,?\s+/):h);}var c=b("getter");if(a.length==1&&typeof a[0]=="string"){c=c.concat(b("getterSetter"));}return(q.inArray(d,c)!=-1);}q.widget=function(b,c){var a=b.split(".")[0];b=b.split(".")[1];q.fn[b]=function(d){var f=(typeof d=="string"),e=Array.prototype.slice.call(arguments,1);if(f&&d.substring(0,1)=="_"){return this;}if(f&&m(a,b,d,e)){var g=q.data(this[0],b);return(g?g[d].apply(g,e):undefined);}return this.each(function(){var h=q.data(this,b);(!h&&!f&&q.data(this,b,new q[a][b](this,d))._init());(h&&f&&q.isFunction(h[d])&&h[d].apply(h,e));});};q[a]=q[a]||{};q[a][b]=function(d,e){var f=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=q[a][b].eventPrefix||b;this.widgetBaseClass=a+"-"+b;this.options=q.extend({},q.widget.defaults,q[a][b].defaults,q.metadata&&q.metadata.get(d)[b],e);this.element=q(d).bind("setData."+b,function(h,j,g){if(h.target==d){return f._setData(j,g);}}).bind("getData."+b,function(g,h){if(g.target==d){return f._getData(h);}}).bind("remove",function(){return f.destroy();});};q[a][b].prototype=q.extend({},q.widget.prototype,c);q[a][b].getterSetter="option";};q.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled");},option:function(a,d){var b=a,c=this;if(typeof a=="string"){if(d===undefined){return this._getData(a);}b={};b[a]=d;}q.each(b,function(f,e){c._setData(f,e);});},_getData:function(a){return this.options[a];},_setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a);}},enable:function(){this._setData("disabled",false);},disable:function(){this._setData("disabled",true);},_trigger:function(a,g,f){var d=this.options[a],c=(a==this.widgetEventPrefix?a:this.widgetEventPrefix+a);g=q.Event(g);g.type=c;if(g.originalEvent){for(var b=q.event.props.length,e;b;){e=q.event.props[--b];g[e]=g.originalEvent[e];}}this.element.trigger(g,f);return !(q.isFunction(d)&&d.call(this.element[0],g,f)===false||g.isDefaultPrevented());}};q.widget.defaults={disabled:false};q.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b);}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false;}});if(q.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on");}this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(q.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable));},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(a.originalEvent.mouseHandled){return;}(this._mouseStarted&&this._mouseUp(a));this._mouseDownEvent=a;var b=this,d=(a.which==1),c=(typeof this.options.cancel=="string"?q(a.target).parents().add(a.target).filter(this.options.cancel).length:false);if(!d||c||!this._mouseCapture(a)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(a)!==false);if(!this._mouseStarted){a.preventDefault();return true;}}this._mouseMoveDelegate=function(e){return b._mouseMove(e);};this._mouseUpDelegate=function(e){return b._mouseUp(e);};q(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(q.browser.safari||a.preventDefault());a.originalEvent.mouseHandled=true;return true;},_mouseMove:function(a){if(q.browser.msie&&!a.button){return this._mouseUp(a);}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault();}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a));}return !this._mouseStarted;},_mouseUp:function(a){q(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a);}return false;},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance);},_mouseDelayMet:function(a){return this.mouseDelayMet;},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true;}};q.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function(b){b.widget("ui.accordion",{_init:function(){var e=this.options,a=this;this.running=0;if(e.collapsible==b.ui.accordion.defaults.collapsible&&e.alwaysOpen!=b.ui.accordion.defaults.alwaysOpen){e.collapsible=!e.alwaysOpen;}if(e.navigation){var f=this.element.find("a").filter(e.navigationFilter);if(f.length){if(f.filter(e.header).length){this.active=f;}else{this.active=f.parent().parent().prev();f.addClass("ui-accordion-content-active");}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix");}this.headers=this.element.find(e.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b(this).addClass("ui-state-hover");}).bind("mouseleave.accordion",function(){b(this).removeClass("ui-state-hover");}).bind("focus.accordion",function(){b(this).addClass("ui-state-focus");}).bind("blur.accordion",function(){b(this).removeClass("ui-state-focus");});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||e.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");b("<span/>").addClass("ui-icon "+e.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);if(b.browser.msie){this.element.find("a").css("zoom","1");}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(c){return a._keydown(c);}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0");}else{this.active.attr("aria-expanded","true").attr("tabIndex","0");}if(!b.browser.safari){this.headers.find("a").attr("tabIndex","-1");}if(e.event){this.headers.bind((e.event)+".accordion",function(c){return a._clickHandler.call(a,c,this);});}},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var a=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(d.autoHeight||d.fillHeight){a.css("height","");}},_setData:function(a,d){if(a=="alwaysOpen"){a="collapsible";d=!d;}b.widget.prototype._setData.apply(this,arguments);},_keydown:function(k){var h=this.options,j=b.ui.keyCode;if(h.disabled||k.altKey||k.ctrlKey){return;}var l=this.headers.length;var a=this.headers.index(k.target);var m=false;switch(k.keyCode){case j.RIGHT:case j.DOWN:m=this.headers[(a+1)%l];break;case j.LEFT:case j.UP:m=this.headers[(a-1+l)%l];break;case j.SPACE:case j.ENTER:return this._clickHandler({target:k.target},k.target);}if(m){b(k.target).attr("tabIndex","-1");b(m).attr("tabIndex","0");m.focus();return false;}return true;},resize:function(){var f=this.options,g;if(f.fillSpace){if(b.browser.msie){var a=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden");}g=this.element.parent().height();if(b.browser.msie){this.element.parent().css("overflow",a);}this.headers.each(function(){g-=b(this).outerHeight();});var h=0;this.headers.next().each(function(){h=Math.max(h,b(this).innerHeight()-b(this).height());}).height(Math.max(0,g-h)).css("overflow","auto");}else{if(f.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,b(this).outerHeight());}).height(g);}}},activate:function(a){var d=this._findActive(a)[0];this._clickHandler({target:d},d);},_findActive:function(a){return a?typeof a=="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?b([]):this.headers.filter(":eq(0)");},_clickHandler:function(s,o){var q=this.options;if(q.disabled){return false;}if(!s.target&&q.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(q.icons.headerSelected).addClass(q.icons.header);this.active.next().addClass("ui-accordion-content-active");var m=this.active.next(),p={options:q,newHeader:b([]),oldHeader:q.active,newContent:b([]),oldContent:m},r=(this.active=b([]));this._toggle(r,m,p);return false;}var n=b(s.currentTarget||o);var l=n[0]==this.active[0];if(this.running||(!q.collapsible&&l)){return false;}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(q.icons.headerSelected).addClass(q.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!l){n.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(q.icons.header).addClass(q.icons.headerSelected);n.next().addClass("ui-accordion-content-active");}var r=n.next(),m=this.active.next(),p={options:q,newHeader:l&&q.collapsible?b([]):n,oldHeader:this.active,newContent:l&&q.collapsible?b([]):r.find("> *"),oldContent:m.find("> *")},a=this.headers.index(this.active[0])>this.headers.index(n[0]);this.active=l?b([]):n;this._toggle(r,m,p,l,a);return false;},_toggle:function(y,r,t,q,p){var w=this.options,a=this;this.toShow=y;this.toHide=r;this.data=t;var x=function(){if(!a){return;}return a._completed.apply(a,arguments);};this._trigger("changestart",null,this.data);this.running=r.size()===0?y.size():r.size();if(w.animated){var u={};if(w.collapsible&&q){u={toShow:b([]),toHide:r,complete:x,down:p,autoHeight:w.autoHeight||w.fillSpace};}else{u={toShow:y,toHide:r,complete:x,down:p,autoHeight:w.autoHeight||w.fillSpace};}if(!w.proxied){w.proxied=w.animated;}if(!w.proxiedDuration){w.proxiedDuration=w.duration;}w.animated=b.isFunction(w.proxied)?w.proxied(u):w.proxied;w.duration=b.isFunction(w.proxiedDuration)?w.proxiedDuration(u):w.proxiedDuration;var o=b.ui.accordion.animations,v=w.duration,s=w.animated;if(!o[s]){o[s]=function(c){this.slide(c,{easing:s,duration:v||700});};}o[s](u);}else{if(w.collapsible&&q){y.toggle();}else{r.hide();y.show();}x(true);}r.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();y.prev().attr("aria-expanded","true").attr("tabIndex","0").focus();},_completed:function(a){var d=this.options;this.running=a?0:--this.running;if(this.running){return;}if(d.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""});}this._trigger("change",null,this.data);}});b.extend(b.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase();}},animations:{slide:function(a,m){a=b.extend({easing:"swing",duration:300},a,m);if(!a.toHide.size()){a.toShow.animate({height:"show"},a);return;}if(!a.toShow.size()){a.toHide.animate({height:"hide"},a);return;}var r=a.toShow.css("overflow"),n,q={},o={},p=["height","paddingTop","paddingBottom"],s;var l=a.toShow;s=l[0].style.width;l.width(parseInt(l.parent().width(),10)-parseInt(l.css("paddingLeft"),10)-parseInt(l.css("paddingRight"),10)-(parseInt(l.css("borderLeftWidth"),10)||0)-(parseInt(l.css("borderRightWidth"),10)||0));b.each(p,function(d,e){o[e]="hide";var c=(""+b.css(a.toShow[0],e)).match(/^([\d+-.]+)(.*)$/);q[e]={value:c[1],unit:c[2]||"px"};});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(o,{step:function(d,c){if(c.prop=="height"){n=(c.now-c.start)/(c.end-c.start);}a.toShow[0].style[c.prop]=(n*q[c.prop].value)+q[c.prop].unit;},duration:a.duration,easing:a.easing,complete:function(){if(!a.autoHeight){a.toShow.css("height","");}a.toShow.css("width",s);a.toShow.css({overflow:r});a.complete();}});},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1000:200});},easeslide:function(a){this.slide(a,{easing:"easeinout",duration:700});}}});})(jQuery);var STATIC_CSS_LINK="css";var checkboxesPerRow=Array();var objectToFade="";var timeoutToFade="";var fadeObject=false;var ep_rotate_link_clicked=false;function ge(b){return document.getElementById(b);}$(document).ready(function(){magazinLayerHeight();initTooltip();$(".ep_invisisbleinfobox_bottom").bgiframe();$(".ep_invisisbleinfobox").bgiframe();if($("#changing_img").size()>0){window.setTimeout("changeImg('#changing_img', '"+EMN.WebappPrefix+"/gfx/basic/landingpage/woman2_02.jpg')",3000);window.setTimeout("changeImg('#changing_img', '"+EMN.WebappPrefix+"/gfx/basic/landingpage/woman2_01.jpg')",5000);}if($("#ep_top_article").size()>0){$("#ep_top_article").accordion({header:".ep_top_title",event:"mouseover"});}});function changeInputType(d,c){d.type=c;}function magazinLayerHeight(){if($(".ep_magazin_layer").size()>0){$(".ep_magazin_layer").each(function(){var b=$(this).parent().height();$(this).css("height",b);$("#"+this.id+" a img").css("height",b);});}}function initTooltip(){if($(".ep_tool_icon").size()>0){if($(".ep_negative_choose").size()<=0){$(".ep_tool_icon").tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip"});}else{$(".ep_negative_choose .ep_tool_icon").tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip_neg"});}}if($(".ep_tool_icon_blue").size()>0){$(".ep_tool_icon_blue").tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip_blue"});}}function init_testHover(){if($(".ep_test_layer").size()>0){$(".ep_test_layer").each(function(){var d=$(this).parent().height();var a=d-6;$(this).css("height",d);$("#"+this.id+" img").css("height",a);});if($(".ep_negative_choose").size()>0){$(".ep_choosen_layer").each(function(){var d=$(this).parent().height();d=d-4;var a=d-10;$(this).css("height",d);$("#"+this.id+" img").css("height",a);});var b="#C60000";}else{var b="#269100";}$(".ep_test_layer").hover(function(){var a=$(this).parent().width();if($(this).attr("class")=="ep_test_layer ep_active"){a=a-10;$(this).css("border","5px solid "+b);$(this).css("width",a+"px");}else{$(this).css("border","3px solid "+b);}},function(){if($(this).attr("class")=="ep_test_layer ep_active"){}else{$(this).css("border","3px transparent");}});$(".ep_test_layer").click(function(){var k=count_selected("0");var g=$(this).parent().width();if($(this).attr("class")=="ep_test_layer"){if(k==true){g=g-10;$(this).attr("class","ep_test_layer ep_active");$(this).css("border","5px solid "+b);$(this).css("width",g+"px");var a=$(this).height();a=a-4;$(this).height(a);var j=$(this).prev().prev();$("#"+this.id+" img").attr("title","abw&auml;hlen");$(j).attr("value",1);var h=$(this).prev().prev().prev().prev();$(h).css("color","#269100 !important");}}else{g=g-6;$(this).attr("class","ep_test_layer");$(this).css("border","3px solid "+b);$(this).css("width",g+"px");var a=$(this).height();a=a+4;$(this).height(a);var j=$(this).prev().prev();$("#"+this.id+" img").attr("title","ausw&auml;hlen");$(j).attr("value",0);var h=$(this).prev().prev().prev().prev();$(h).css("color","#534F48 !important");}if($(".ep_negative_choose").size()<=0){$("#"+this.id+" img").tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip"});}else{$("#"+this.id+" img").tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip_neg"});}if($(".ep_testcontainer .ep_active").size()!=""){$("#ep_choose_count").html($(".ep_testcontainer .ep_active").size());}else{$("#ep_choose_count").html("0");}});}}function count_selected(d){if(d==0){var f=$(".ep_testcontainer .ep_active").size()+1;}else{var f=2;}var e=$("#ep_max_number").html();if(f<=e){return true;}else{return false;}}function toggleNav(c,d){if(c==1){$(d).addClass("ep_hover");}else{if(c==0){$(d).removeClass("ep_hover");}}}function ep_activeNav(b){$("#ep_mainnav li").removeClass("ep_active ep_hover");$("#ep_mainnav li").mouseover(function(){toggleNav(1,this);});$(b).addClass("ep_active");b.onmouseover="";}function highlightButton(d,e,f){$("#"+d+" .ep_outerspan").css("background-image","url("+e+")");$("#"+d+" .ep_innerspan").css("background-image","url("+f+")");$("#"+d).removeClass("ep_btn_dehighlight");$("#"+d).addClass("ep_btn_highlight");}function DehighlightButton(d,e,f){highlightButton(d,e,f);$("#"+d).removeClass("ep_btn_highlight");$("#"+d).addClass("ep_btn_dehighlight");}function highlightRedButton(b){highlightButton(b,redButton[2],redButton[3]);}function DehighlightRedButton(b){DehighlightButton(b,redButton[0],redButton[1]);}function highlightGreenButton(b){highlightButton(b,greenButton[2],greenButton[3]);}function DehighlightGreenButton(b){DehighlightButton(b,greenButton[0],greenButton[1]);}function highlightBlueButton(c,d){if(d!=null){$("#"+c).css("background-image","url("+blueButton_login[1]+")");}else{$("#"+c).css("background-image","url("+blueButton[1]+")");}}function DehighlightBlueButton(c,d){if(d!=null){$("#"+c).css("background-image","url("+blueButton_login[0]+")");}else{$("#"+c).css("background-image","url("+blueButton[0]+")");}}function highlightGreyButton(b){highlightButton(b,greyButton[2],greyButton[3]);}function DehighlightGreyButton(b){DehighlightButton(b,greyButton[0],greyButton[1]);}function highlightRedButtonS(b){highlightButton(b,redButtonS[2],redButtonS[3]);}function DehighlightRedButtonS(b){DehighlightButton(b,redButtonS[0],redButtonS[1]);}function highlightGreyButtonS(b){highlightButton(b,greyButtonS[2],greyButtonS[3]);}function DehighlightGreyButtonS(b){DehighlightButton(b,greyButtonS[0],greyButtonS[1]);}function highlightGreenButtonS(b){highlightButton(b,greenButtonS[2],greenButtonS[3]);}function DehighlightGreenButtonS(b){DehighlightButton(b,greenButtonS[0],greenButtonS[1]);}function highlightBlueButtonL(b){highlightButton(b,blueButton[2],blueButton[3]);}function DehighlightBlueButtonL(b){DehighlightButton(b,blueButton[0],blueButton[1]);}function highlightRedGreyButtonS(b){$("#"+b+" .ep_outerspan").css("background-image","url("+redGreyButtonS[2]+")");$("#"+b+" .ep_innerspan").css("background-image","url("+redGreyButtonS[3]+")");}function DehighlightRedGreyButtonS(b){$("#"+b+" .ep_outerspan").css("background-image","url("+redGreyButtonS[0]+")");$("#"+b+" .ep_innerspan").css("background-image","url("+redGreyButtonS[1]+")");}function highlightRedGoldButtonS(b){$("#"+b+" .ep_outerspan").css("background-image","url("+redGoldButtonS[2]+")");$("#"+b+" .ep_innerspan").css("background-image","url("+redGoldButtonS[3]+")");}function DehighlightRedGoldButtonS(b){$("#"+b+" .ep_outerspan").css("background-image","url("+redGoldButtonS[0]+")");$("#"+b+" .ep_innerspan").css("background-image","url("+redGoldButtonS[1]+")");}function changeMultiTab(c,d){$("#"+c+" .ep_tab_container").css("display","none");$("#"+c+"_"+d+"").css("display","block");$("#"+c+"_list li").removeClass("ep_active");$("#"+c+"_"+d+"_link").addClass("ep_active");}function changeImg(c,d){$(c).attr("src",d);}function toggleTeaserContent(b){if($("#"+b+"_arrow").attr("src").indexOf("arrow_close.gif")!=-1){document.getElementById(b+"_arrow").src=EMN.WebappPrefix+"/gfx/basic/icons/arrow_open.gif";if($.browser.msie&&$.browser.version<=6){$("#"+b+"_content").hide();}else{$("#"+b+"_content").animate({height:"toggle"});}}else{$("#"+b+"_arrow").attr("src",+EMN.WebappPrefix+"/gfx/basic/icons/arrow_close.gif");if($.browser.msie&&$.browser.version<=6){$("#"+b+"_content").show();}else{$("#"+b+"_content").animate({height:"toggle"});}}}function toogleFavorit(d){var f=d.src;if(d.src.indexOf("yes")!=-1){var e=f.replace(/yes/,"no");d.title="zu den Favoriten hinzuf&uuml;gen";}else{$;var e=f.replace(/no/,"yes");d.title="aus Favoriten entfernen";}d.src=e;$(d).tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip_blue"});}function changeMatchCheckBox(b){row=b.id.substring(6,b.id.indexOf("_"));if(null!=checkboxesPerRow[row]){checkboxesPerRow[row].src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif";}checkboxesPerRow[row]=b;if(b.src.indexOf("off.gif")!=-1){b.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_on.gif";}else{b.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif";}document.getElementById("ep_row"+row).value=b.id.substring(b.id.indexOf("_")+1,b.id.length);}function refresh_suggest(b){$("#ep_partner_suggest p").removeClass("highlight");$("#ep_partner_suggest p").removeClass("bold");if(b.indexOf("fav")==-1){$("#ep_partner_suggest .fav p img").each(function(a){if(this.src.indexOf("yes")!=-1){this.src=EMN.WebappPrefix+"/gfx/basic/icons/30x30_fav_yes_w.gif";}else{this.src=EMN.WebappPrefix+"/gfx/basic/icons/30x30_fav_no_w.gif";}});}if(b.indexOf("mp")!=-1){$("#ep_partner_suggest #mp p").addClass("highlight bold");$("#ep_partner_suggest .mp p").addClass("highlight");}else{if(b.indexOf("date")!=-1){$("#ep_partner_suggest #date p").addClass("highlight bold");$("#ep_partner_suggest .date p").addClass("highlight");}else{if(b.indexOf("age")!=-1){$("#ep_partner_suggest #age p").addClass("highlight bold");$("#ep_partner_suggest .age p").addClass("highlight");}else{if(b.indexOf("rate")!=-1){$("#ep_partner_suggest #rate p").addClass("highlight bold");$("#ep_partner_suggest .rate p").addClass("highlight");}else{if(b.indexOf("region")!=-1){$("#ep_partner_suggest #region p").addClass("highlight bold");$("#ep_partner_suggest .region p").addClass("highlight");}else{if(b.indexOf("mess")!=-1){$("#ep_partner_suggest #messages p").addClass("highlight bold");$("#ep_partner_suggest .messages p").addClass("highlight");}else{if(b.indexOf("fav")!=-1){$("#ep_partner_suggest #fav p").addClass("highlight bold");$("#ep_partner_suggest .fav p").addClass("highlight");$("#ep_partner_suggest .fav p img").each(function(a){if(this.src.indexOf("yes")!=-1){this.src=EMN.WebappPrefix+"/gfx/basic/icons/30x30_fav_yes_bl.gif";}else{this.src=EMN.WebappPrefix+"/gfx/basic/icons/30x30_fav_no_bl.gif";}});}}}}}}}}function minimize_maximize_teaser(d,c){if(document.getElementById(c).style.display=="none"){document.getElementById(c).style.display="block";}else{document.getElementById(c).style.display="none";}}function flash_cockpit(d,c){objectToFade=d;timeoutToFade=c;if(!fadeObject){blink_element();}}function unflash_cockpit(){fadeObject=false;}function blink_element(){fadeObject=true;if(objectToFade.style.visibility!="hidden"){objectToFade.style.visibility="hidden";}else{objectToFade.style.visibility="visible";}if(fadeObject){window.setTimeout("blink_element()",timeoutToFade);}}function openThickbox(l,h){var j=$("#"+l+"_TBinner").width();var k=$("#"+l+"_TBinner").height();if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("ep_TB_HideSelect")===null){if(!h){$("#emnG_tbOverlayMessageLayer").click(closeThickbox(l));}}}else{if(document.getElementById("TB_overlay")===null){if(!h){$("#emnG_tbOverlayMessageLayer").click(closeThickbox(l));}}}var m=tb_getPageSize();var n=m[0]-150;var o=m[1]-150;$("#emnG_tbOverlayMessageLayer").bgiframe();$("#emnG_tbOverlayMessageLayer").show();$("#"+l+"_TBinner").css({marginLeft:"-"+parseInt((j/2),10)+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#"+l+"_TBinner").css({marginTop:"-"+parseInt((k/2),10)+"px"});}$("#"+l+"_TBinner").show();}function closeThickbox(b){$("#emnG_tbOverlayMessageLayer").hide();$("#"+b+"_TBinner").hide();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","");}}function tb_getPageSize(){var f=document.documentElement;var e=window.innerWidth||self.innerWidth||(f&&f.clientWidth)||document.body.clientWidth;var d=window.innerHeight||self.innerHeight||(f&&f.clientHeight)||document.body.clientHeight;arrayPageSize=[e,d];return arrayPageSize;}function openOverlay(b){$("#emnG_tbOverlayMessageLayer").bgiframe();$("#emnG_tbOverlayMessageLayer").show();$("#overlay_"+b+"_outer").show();$("#overlay_"+b+"_inner").show();}function closeOverlay(b){$("#emnG_tbOverlayMessageLayer").hide();$("#overlay_"+b+"_outer").hide();$("#overlay_"+b+"_inner").hide();}function initialFlashText(b){if(b==0){$("#ep_video_teaser_desc").hide();}else{$("#ep_video_teaser_desc").show();}}function showFlashText(b){$("#ep_magazin_box_start").hide();$(".ep_flashtext").hide();$("#ep_flash_text_"+b).show();}function openPhotoTool(){var b=window.open("phototool.php","Phototool","width=705,height=616, resizable=yes , scrollbars=yes");b.focus();}function openDesc(){var b=window.open("popup_desc.php","Erklaerung","width=455, height= 420, resizable=yes , scrollbars=yes");b.focus();}function showThumbnailAsMain(b){bigThumbSrc=b.src.replace(/small/,"big");$("#ep_profile_mainpic img:first").attr("src",bigThumbSrc);$("#ep_profile_pics .ep_small_pic img").css("border","2px solid #fff");$(b).css("border","2px solid #DEDEDE");}function change_phototool_rotate(b){if(b==2||b==3){if(b==3){ge("ep_rotate_icon").src=EMN.WebappPrefix+"/gfx/basic/icons/btn_drehen_blue.gif";ge("ep_rotate_link").style.color="#004784;";}else{ge("ep_rotate_icon").src=EMN.WebappPrefix+"/gfx/basic/icons/btn_drehen_red.gif";ge("ep_rotate_link").style.color="#c60000;";}ep_rotate_link_clicked=!ep_rotate_link_clicked;if(ep_rotate_link_clicked){ge("ep_rotate_link").onclick=function(){change_phototool_rotate(3);};ge("ep_rotate_link").onmouseout=function(){change_phototool_rotate(-1);};}else{ge("ep_rotate_link").onclick=function(){change_phototool_rotate(2);};ge("ep_rotate_link").onmouseout=function(){change_phototool_rotate(0);};}}else{if(b==1){ge("ep_rotate_icon").src=EMN.WebappPrefix+"/gfx/basic/icons/btn_drehen_red.gif";ge("ep_rotate_link").style.color="#c60000;";}else{if(b==0){ge("ep_rotate_icon").src=EMN.WebappPrefix+"/gfx/basic/icons/btn_drehen_blue.gif";ge("ep_rotate_link").style.color="#004784;";}}}}function edit_in_place(b){if(typeof(b)=="string"){b=new Array(b);}for(i=0;i<b.length;i++){$("#"+b[i]).hide();$("#"+b[i]+"_hidden").show();$("#"+b[i]+"_hidden *").show();if($.browser.safari){$("#"+b[i]+"_hidden .inputs").css("width","310px");}}}function close_in_place(b){if(typeof(b)=="string"){b=new Array(b);}for(i=0;i<b.length;i++){$("#"+b[i]+"_hidden").hide();$("#"+b[i]+"_hidden *").hide();$("#"+b[i]).show();}}function checkSelects(b){close_in_place(b);}function checkTextBox(c,d){if($("#"+c+"_hidden #"+d).val()!=""){$("#"+c+"_form .error").css("visibility","hidden");$("#"+c+"_hidden h3").removeClass("red");$("#"+c+"_hidden #"+d).removeClass("input_border_error_red");close_in_place(c);return true;}else{$("#"+c+"_form .error").text("Bitte füllen Sie das Feld aus.");$("#"+c+"_form .error").css("visibility","visible");$("#"+c+"_hidden h3").addClass("red");$("#"+c+"_hidden #"+d).addClass("input_border_error_red");return false;}}function calculate_age(){$("#the_age").val("23");}function toggleBL(){if($("#regions").css("display")=="none"){$("#regions").show();$("#ep_bundeslaender").show();$("#regionslink").html("Bundesl&auml;nder ausblenden");}else{$("#regions").hide();$("#ep_bundeslaender").hide();$("#regionslink").html("Bundesl&auml;nder anzeigen");}}function toggleSingleBL(b){if($("#regions_"+b).css("display")=="none"){$("#regions_"+b).show();}else{$("#regions_"+b).hide();}}function toogleMessageText(b){if($("#message_"+b+"_sender").css("display")=="none"){$("#message_"+b+"_sender").show();$("#message_"+b+"_time").show();if($.browser.msie&&$.browser.version<=6){$("#message_"+b+"_longtext button").show();}$("#message_"+b+"_shorttext").animate({height:"toggle"});$("#message_"+b+"_longtext").animate({height:"toggle"});$("#message_"+b).attr("class","");$("#message_"+b+" ").children().removeClass("border_l_5_blue");$("#message_"+b+" ").children().removeClass("bold");$("#message_"+b+" .pv_userdesc a").css("font-weight","normal");}else{$("#message_"+b+"_sender").hide();$("#message_"+b+"_time").hide();if($.browser.msie&&$.browser.version<=6){$("#message_"+b+"_longtext button").hide();}$("#message_"+b+"_longtext").animate({height:"toggle"});$("#message_"+b+"_shorttext").animate({height:"toggle"});}}function togglePicsforFree(b){if(b==1){$("#contactstatus_img").attr("src",EMN.WebappPrefix+"/gfx/basic/icons/kontstat_fotoyes.gif");$("#photo_choose_label_yes").css("font-weight","bold !important");$("#photo_choose_label_no").css("font-weight","normal !important");}else{$("#contactstatus_img").attr("src",EMN.WebappPrefix+"/gfx/basic/icons/kontstat_fotono.gif");$("#photo_choose_label_yes").css("font-weight","normal !important");$("#photo_choose_label_no").css("font-weight","bold !important");}}function toggleBookmark(b){if($("#"+b).css("display")=="none"){$("#"+b).show();}else{$("#"+b).hide();}}function toggleVideoTeaser(k,j,g,h){$(".ep_video_container").hide();$("#ep_video_container_"+k).show();ClickTourNum=0;$(".ep_flashtext").hide();var f=k.length<2?"":k.substr(1);if($("#clicktour_img_w"+f).size()>0){$("#clicktour_img_w"+f).attr("src",$("#clicktour_img_w"+f).attr("src").replace(/[0-9]+/,0));}if($("#clicktour_img_e"+f).size()>0){$("#clicktour_img_e"+f).attr("src",$("#clicktour_img_e"+f).attr("src").replace(/[0-9]+/,0));}if($("#clicktour_img_r"+f).size()>0){$("#clicktour_img_r"+f).attr("src",$("#clicktour_img_r"+f).attr("src").replace(/[0-9]+/,0));}if($("#clicktour_img_w"+f).size()>0||$("#clicktour_img_r"+f).size()>0||$("#clicktour_img_e"+f).size()>0){$("#clicktour_left_"+k).hide();$("#clicktour_left_back_"+k).hide();$("#clicktour_right_"+k).hide();$("#clicktour_right_back_"+k).hide();$("#clicktour_link_"+k).show();}if(k=="r"){initFlashPlayer("/km/static/flash/player/player.swf","flashplayerMain_rundgang","445","376","debug=false&controlbar=none&skin=/km/static/flash/skins/playerSkin_startseite.swf&autostart=true&screencolor=#ffffff&streamer=rtmp://elitepartner-streaming.corpex-streaming.de/emn/&httpfallback=5,http://elitepartner-fallback.corpex-streaming.de/emn/&file=/km/static/flash/playlists/playlist-rundgang.xml&bwcheck=150,1000&bwanimation=true&icons=true&linktarget=_self&plugins=accessibility&resizing=true&stretching=none&accessibility.hide=true&accessibility.listener=captions_rundgang_main","ep_video_teaser_main_r");showClickTour_r();}else{if(k=="e"){initFlashPlayer("/km/static/flash/player/player.swf","flashplayerMain_erfolgsgeschichten","445","376","debug=false&controlbar=none&skin=/km/static/flash/skins/playerSkin_startseite.swf&autostart=true&screencolor=#ffffff&file=/km/static/flash/playlists/playlist-erfolgsgeschichten.xml&icons=true&linktarget=_self&plugins=accessibility&resizing=true&stretching=none&accessibility.hide=true&accessibility.listener=captions_erfolgsgeschichten_main","ep_video_teaser_main_e");showClickTour_e();}}}var ClicktourLinks=new Array();ClicktourLinks.w=EMN.WebappPrefix+"/registration/fregistrationpage.do";ClicktourLinks.r=EMN.WebappPrefix+"/registration/fregistrationpage.do";ClicktourLinks.e=EMN.WebappPrefix+"/erfolgsgeschichten/index.html";var ClickTourNum=0;function moveClickTour(g,m,l){var k=ClickTourNum;if(g=="left"){if(ClickTourNum>0){ClickTourNum--;$("#clicktour_link_"+m).attr("href","#");$("#clicktour_link_"+m).each(function(){this.onclick=function(){moveClickTour("right",m,l);return false;};});$("#clicktour_right_back_"+m).show();$("#clicktour_right_"+m).show();}if(ClickTourNum<=0){$("#clicktour_left_"+m).hide();$("#clicktour_left_back_"+m).hide();$("#clicktour_right_"+m).hide();$("#clicktour_right_back_"+m).hide();$("#clicktour_link_"+m).show();}}else{if(ClickTourNum<l){ClickTourNum++;$("#clicktour_left_"+m).show();$("#clicktour_left_back_"+m).show();$("#clicktour_right_back_"+m).show();$("#clicktour_right_"+m).show();}if(ClickTourNum==l){$("#clicktour_link_"+m).attr("href",ClicktourLinks[m]);$("#clicktour_link_"+m).removeAttr("onclick");$("#clicktour_right_"+m).hide();$("#clicktour_right_back_"+m).hide();}}$(".ep_flashtext").hide();$("#ep_flash_text_"+m+ClickTourNum).show();var j=$("#clicktour_img_"+m).attr("src");var h=j.replace(/[0-9]+/,ClickTourNum);$("#clicktour_img_"+m).attr("src",h);}function getRandomizedInterval(c,d){return Math.round(c+((d-c)*Math.random()));}var player;var currentPlayerName;var trackedFlashVideos=new Array("willkommen-main","rundgang-main","erfolgsgeschichten-main","landing1-main","landing2-main");function initFlashPlayer(k,o,n,l,h,j){var m=new SWFObject(k,o,n,l,"9","#FFFFFF");m.addParam("allowfullscreen","true");m.addParam("allowscriptaccess","always");m.addParam("wmode","transparent");m.addParam("flashvars",h);m.setAttribute("name",o);m.setAttribute("id",o);m.write(j);currentPlayerName=o;}if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(h,x,c,v,r,q,t,u,w,p){if(!document.getElementById){return;}this.DETECT_KEY=p?p:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(h){this.setAttribute("swf",h);}if(x){this.setAttribute("id",x);}if(c){this.setAttribute("width",c);}if(v){this.setAttribute("height",v);}if(r){this.setAttribute("version",new deconcept.PlayerVersion(r.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(q){this.addParam("bgcolor",q);}var y=t?t:"high";this.addParam("quality",y);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var s=(u)?u:window.location;this.setAttribute("xiRedirectUrl",s);this.setAttribute("redirectUrl","");if(w){this.setAttribute("redirectUrl",w);}};deconcept.SWFObject.prototype={useExpressInstall:function(b){this.xiSWFPath=!b?"expressinstall.swf":b;this.setAttribute("useExpressInstall",true);},setAttribute:function(d,c){this.attributes[d]=c;},getAttribute:function(b){return this.attributes[b];},addParam:function(c,d){this.params[c]=d;},getParams:function(){return this.params;},addVariable:function(c,d){this.variables[c]=d;},getVariable:function(b){return this.variables[b];},getVariables:function(){return this.variables;},getVariablePairs:function(){var f=new Array();var d;var e=this.getVariables();for(d in e){f[f.length]=d+"="+e[d];}return f;},getSWFHTML:function(){var g="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}g='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';g+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var j=this.getParams();for(var k in j){g+=[k]+'="'+j[k]+'" ';}var l=this.getVariablePairs().join("&");if(l.length>0){g+='flashvars="'+l+'"';}g+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}g='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';g+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var m=this.getParams();for(var k in m){g+='<param name="'+k+'" value="'+m[k]+'" />';}var h=this.getVariablePairs().join("&");if(h.length>0){g+='<param name="flashvars" value="'+h+'" />';}g+="</object>";}return g;},write:function(d){if(this.getAttribute("useExpressInstall")){var e=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(e)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var f=(typeof d=="string")?document.getElementById(d):d;f.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var h=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var g=navigator.plugins["Shockwave Flash"];if(g&&g.description){h=new deconcept.PlayerVersion(g.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var e=1;var k=3;while(e){try{k++;e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+k);h=new deconcept.PlayerVersion([k,0,0]);}catch(j){e=null;}}}else{try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(j){try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");h=new deconcept.PlayerVersion([6,0,21]);e.AllowScriptAccess="always";}catch(j){if(h.major==6){return h;}}try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(j){}}if(e!=null){h=new deconcept.PlayerVersion(e.GetVariable("$version").split(" ")[1].split(","));}}}return h;};deconcept.PlayerVersion=function(b){this.major=b[0]!=null?parseInt(b[0]):0;this.minor=b[1]!=null?parseInt(b[1]):0;this.rev=b[2]!=null?parseInt(b[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major){return false;}if(this.major>b.major){return true;}if(this.minor<b.minor){return false;}if(this.minor>b.minor){return true;}if(this.rev<b.rev){return false;}return true;};deconcept.util={getRequestParameter:function(h){var g=document.location.search||document.location.hash;if(h==null){return g;}if(g){var e=g.substring(1).split("&");for(var f=0;f<e.length;f++){if(e[f].substring(0,e[f].indexOf("="))==h){return e[f].substring((e[f].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var d=document.getElementsByTagName("OBJECT");for(var f=d.length-1;f>=0;f--){d[f].style.display="none";for(var e in d[f]){if(typeof d[f][e]=="function"){d[f][e]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(b){return document.all[b];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function uncheckCheckBox(b){b.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif";}function toggleCheckBoxImage(b){if(b.src.indexOf("off.gif")!=-1){if(canSelectMore(b.id)){b.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_on.gif";incrementCounter(b.id);return true;}else{return false;}}else{b.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif";decrementCounter(b.id);return false;}}function getBorderColor(){if(isNegativeContainer()){return"#C60000";}return"#269100";}function handleGroupCheckBoxClick(h){var e=h.target;var f=e.id.substring(0,e.id.lastIndexOf("_"));var g=e.id.substring(e.id.lastIndexOf("_")+1,e.id.length);toggleQuestionnaireCheckBox(f,e);$("#"+f).attr("value",g);}function handleSimpleCheckBoxClick(g){var h=g.target;var e=toggleCheckBoxImage(h);var f=$("#"+h.id).prev();if(e){if((f.attr("type")=="radio")||(f.attr("type")=="checkbox")){f.attr("checked","checked");}else{f.attr("value",1);}}else{if((f.attr("type")=="radio")||(f.attr("type")=="checkbox")){f.removeAttr("checked");}else{f.attr("value",0);}}}var toggleQuestionnaireCheckBoxList=new Object();function toggleQuestionnaireCheckBox(d,c){if(toggleQuestionnaireCheckBoxList[d]!=null){uncheckCheckBox(toggleQuestionnaireCheckBoxList[d]);}toggleQuestionnaireCheckBoxList[d]=c;toggleCheckBoxImage(c);}function setGroupCheckBoxes(){list=new Array("ep_q0090","ep_q0110","ep_q0100","ep_q0280","ep_q0290","ep_q0210","ep_q0220","ep_q0230","ep_q0300","ep_q0310","ep_q0320","ep_q0330","ep_q0340","ep_q0350","ep_q0360","ep_q0370","ep_q0380","ep_q0390","ep_q0400","ep_q0410","ep_q0420","ep_q0430","ep_q0440","ep_q0450","ep_q0460","ep_q0470","ep_q0480","ep_q0490","ep_q0500","ep_q0510","ep_q0520","ep_q0530","ep_q0540","ep_q0550","ep_q0560","ep_q0570","ep_q0580","ep_q0590","ep_q0600","ep_q0610","ep_q0620","ep_q0630","ep_q0640","ep_q0650","ep_q0660","ep_q0670","ep_q0680","ep_q0690","ep_q0700","ep_q0710","ep_q0720","ep_q0730","ep_q0740","ep_q0750","ep_q0760","ep_q0770","ep_q0780","ep_q0790","ep_q0800","ep_q0810","ep_q0820","ep_q0830","ep_q0840","ep_q0850","ep_q0860","ep_q0870","ep_q0880","ep_q0890","ep_q0900","ep_q0910","ep_q0920","ep_q0930","ep_q0940","ep_q0950","ep_q0960","ep_q0970","ep_q0980","ep_q0990","ep_q0150boolean","ep_q0150athome","ep_q0160","ep_geschlecht","ep_sucheGeschlecht","ep_q0120","ep_q0130","ep_q0050fish","ep_q0050dogs","ep_q0050cats","ep_q0050birds","ep_newsletter_choice");for(var f=0;f<list.length;f++){var h=$("#"+list[f]);if(h.length==0){continue;}$("img[id^='"+list[f]+"_']").bind("click",handleGroupCheckBoxClick);if(typeof(h.attr("value"))=="undefined"||h.attr("value")==""||h.attr("value")=="u"){h.attr("value",-1);}else{var g=h.attr("value");var e=$("#"+list[f]+"_"+g).get(0);if(typeof(e)!="undefined"){toggleQuestionnaireCheckBox(list[f],e);}}}}function setSimpleCheckBoxes(){list=new Array("qmagazines","q0140","q0240","q0250","q0260","q0270","qsavedata");for(var e=0;e<list.length;e++){var g=$("input[name='"+list[e]+"']");if(g.length==0){continue;}var h=g.next();h.bind("click",handleSimpleCheckBoxClick);var g=$("input[name='"+list[e]+"'][checked]");if(g.length){for(var f=0;f<g.length;f++){var h=g.next().get(f);toggleCheckBoxImage(h);}}}}function setQuestionnaireLayers(){list=new Array("qseasons","q1000","qliving","q1010","qfood","qvacation");registerClickLayer(list);}function initQuestionnaireTooltip(){if($(".ep_questionnaire_tool_icon").size()>0){$(".ep_questionnaire_tool_icon").tooltip({bodyHandler:function(){switch($(this).attr("longdesc")){case"5":return"<h3>trifft &uuml;berhaupt nicht zu</h3>";break;case"4":return"<h3>trifft eher nicht zu</h3>";break;case"3":return"<h3>trifft weniger zu</h3>";break;case"2":return"<h3>trifft einigerma&szlig;en zu</h3>";break;case"1":return"<h3>trifft &uuml;berwiegend zu</h3>";break;case"0":return"<h3>trifft vollkommen zu</h3>";break;}},track:true,delay:0,showURL:false,opacity:1,fixPNG:true,extraClass:"ep_questionnaire_tooltip"});}}$(document).ready(function(){initQuestionnaireTooltip();initQuestionnaireHover();setQuestionnaireLayers();setGroupCheckBoxes();setSimpleCheckBoxes();});function printWindow(){bversion=parseInt(navigator.appVersion);if(bversion>=4){window.print();}}function submitFormAndDisableElement(d,c){c.disabled=true;form=document.getElementById(d);form.submit();}function submitTwoButtonForm(d,c){form=document.getElementById(d);form.button_value.value=c;form.submit();}function submitManyButtonForm(e,f){form=document.getElementById(e);for(var d=0;d<form.product_id.length;d++){if(form.product_id[d].value==f){form.product_id[d].checked=true;}}form.submit();}function submitClickForm(c,d){if(c.keyCode==13){form=document.getElementById(d);form.submit();}else{return true;}}function submitPhoto(d,c){form=document.getElementById(d);if(c=="save0"){form.save0.value="true";}else{if(c=="save1"){form.save1.value="true";}else{if(c=="save2"){form.save2.value="true";}}}form.submit();}function submitUpdatePData(d,c){form=document.getElementById(d);if(c=="alias"){form.actalias.value="true";}else{if(c=="rating"){form.actrating.value="true";}}form.submit();}function saveRating(h,j,k){var l=document.getElementById(j);var m=null;for(var g=0;g<l.length;++g){if(l.options[g].selected==true){m=l.options[g].value;}}if(h!=null&&m!=null){new Ajax.Request(EMN.WebappPrefix+"/members/profiles/updateProfileRating.do",{method:"post",parameters:{chiffre:h,rating:m}});}}function disableButton(b){b.disabled=true;b.form.submit();}function switchMainWin(b){win=open(b,"mainwin");win.focus();}function openPopup(b){popwin=window.open(EMN.WebappPrefix+b+"","Popup","width=500,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(popwin.mainwin==null){popwin.mainwin=self;}popwin.focus();}function openPopup(k,j,f){var g=screen.width/2-f/2;var h=screen.height/2-j/2;popwin=window.open(EMN.WebappPrefix+k+"","Popup","width="+f+",height="+j+",top="+h+",left="+g+",scrollbars=no,status=no,toolbar=no,resizable=no,location=no");if(popwin.mainwin==null){popwin.mainwin=self;}popwin.focus();}function openPopupWithoutWebappPrefix(d){var e=screen.width/2-600/2;var f=screen.height/2-800/2;popwin=window.open(d,"Popup","width =800,height=650,top="+f+",left="+e+",scrollbars=no,status=no,toolbar=no,resizable=no,location=no");if(popwin.mainwin==null){popwin.mainwin=self;}popwin.focus();}function openTest(){tstwin=window.open(EMN.WebappPrefix+"/members/q/q1/qStart.do","Popup","width=765,height=610,top=0,left=0,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(tstwin.mainwin==null){tstwin.mainwin=self;}tstwin.focus();}function openAGB(){agbwin=window.open(EMN.WebappPrefix+"/agb.do","AGBPopup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(agbwin.mainwin==null){agbwin.mainwin=self;}agbwin.focus();}function openAGBSection(b){agbwin=window.open(EMN.WebappPrefix+"/agb.do#"+b,"AGBPopup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(agbwin.mainwin==null){agbwin.mainwin=self;}agbwin.focus();}function openAGBSized(b){agbwin=window.open(EMN.WebappPrefix+"/agb.do#"+b,"AGBPopup","width=400,height=400,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=no,location=no");if(agbwin.mainwin==null){agbwin.mainwin=self;}agbwin.focus();}function openEventAGB(){agbwin=window.open(EMN.WebappPrefix+"/service/event/agb.do","EventAGBPopup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(agbwin.mainwin==null){agbwin.mainwin=self;}agbwin.focus();}function openPrivacyTerms(){privacywin=window.open(EMN.WebappPrefix+"/datenschutz.do","PrivacyTermsPopup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(privacywin.mainwin==null){privacywin.mainwin=self;}privacywin.focus();}function openLotteryParticipationConditions(e,g){var h=EMN.WebappPrefix+"/aktionen/lotteryConditions.do";var f=h+"?ad_id="+e+"&pg="+g;win=window.open(f,"LotteryPopup","width=500,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(win.mainwin==null){win.mainwin=self;}win.focus();}function openFriendshipPortraitConditions(){var b=EMN.WebappPrefix+"/friendship/friendshipPortraitConditions.do";win=window.open(b,"Popup","width=600,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(win.mainwin==null){win.mainwin=self;}win.focus();}function openFriendshipPortraitPhotoConditions(){var b=EMN.WebappPrefix+"/friendship/friendshipPortraitPhotoConditions.do";win=window.open(b,"Popup","width=600,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(win.mainwin==null){win.mainwin=self;}win.focus();}function openOthersAboutMeExample(){var b=EMN.WebappPrefix+"/members/settings/othersAboutMeExample.do";win=window.open(b,"Popup","width=709,height=360,top=50,left=50,scrollbars=no,status=no,toolbar=no,resizable=no,location=no");if(win.mainwin==null){win.mainwin=self;}win.focus();}function openProductInfo(h,j,g,f){var k=f&&f!=""?"&effective_voucher_id="+f:"";productinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/info.do?product="+j+"&index="+g+k+"&productInfoType="+h,"Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(productinfowin.mainwin==null){productinfowin.mainwin=self;}productinfowin.focus();}function openProductInfoWithoutCheck(j,k,h,l,g){var m=g?"&effective_voucher_id="+g:"";productinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/info.do?product="+k+"&check=false&date="+h+"&domain="+l+m+"&productInfoType="+j,"Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(productinfowin.mainwin==null){productinfowin.mainwin=self;}productinfowin.focus();}function openHelp(){helpwin=window.open(EMN.WebappPrefix+"/hilfe/index.do","Popup","width=800,height=600,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(helpwin.mainwin==null){helpwin.mainwin=self;}helpwin.focus();}function openTestHelp(){helpwin=window.open(EMN.WebappPrefix+"/hilfe/test_help.do","Popup","width=520,height=300,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(helpwin.mainwin==null){helpwin.mainwin=self;}helpwin.focus();}function openSecurePasswordHelp(){helpwin=window.open(EMN.WebappPrefix+"/hilfe/securePassword.do","Popup","width=520,height=450,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(helpwin.mainwin==null){helpwin.mainwin=self;}helpwin.focus();}function openProfileHeadPopup(h,g){var k=EMN.WebappPrefix+"/members/profiles/profileHeadPopup.do";var f=k+"?chiffre="+h+"&location="+g;var j=window.open(f,"Popup","width=460,height=350,top=70,left=200,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(j.mainwin==null){j.mainwin=self;}j.focus();}function openEliteBlog(){var d="http://www.EliteBlog.de";var c=window.open(d,"EliteBlog","width=700,height=500,top=50,left=50,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(c.mainwin==null){helpwin.mainwin=self;}c.focus();}function openSuccessIndexHelp(){var b=window.open(EMN.WebappPrefix+"/members/successIndexPopup.do","Popup","width=500,height=380,top=50,left=150,scrollbars=no,status=no,toolbar=no,resizable=no,location=no");if(b.mainwin==null){b.mainwin=self;}b.focus();}function leftTeaserLink(){window.location.href=EMN.WebappPrefix+"/service/beratung/index.jsp";}function openDA(){dwin=window.open(EMN.WebappPrefix+"/misc/dufttypA.do","Popup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(dwin.mainwin==null){dwin.mainwin=self;}dwin.focus();}function openDB(){dwin=window.open(EMN.WebappPrefix+"/misc/dufttypB.do","Popup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(dwin.mainwin==null){dwin.mainwin=self;}dwin.focus();}function openSD(b){ppswin=window.open(EMN.WebappPrefix+"/misc/ppscales.do#"+b,"Popup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(ppswin.mainwin==null){ppswin.mainwin=self;}ppswin.focus();}function closePopup(){if(window.mainwin!=null){window.mainwin.focus();}window.close();window.mainwin.location.reload();}function closePopupWithoutReload(){window.close();opener.focus();}function openGallery(b){popup=window.open(b,"Popup","width=710,height=550,top=50,left=20,scrollbars=auto,status=no,toolbar=no,resizable=yes,location=no");if(popup.mainwin==null){popup.mainwin=self;}popup.focus();}function changeCountry(b){b.act.value="reload";b.submit();}function openDA(){dwin=window.open(EMN.WebappPrefix+"/misc/dufttypA.do","Popup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(dwin.mainwin==null){dwin.mainwin=self;}dwin.focus();}function openDB(){dwin=window.open(EMN.WebappPrefix+"/misc/dufttypB.do","Popup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(dwin.mainwin==null){dwin.mainwin=self;}dwin.focus();}function openSD(b){ppswin=window.open(EMN.WebappPrefix+"/misc/ppscales.do#"+b,"Popup","width=520,height=500,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(ppswin.mainwin==null){ppswin.mainwin=self;}ppswin.focus();}function closePopup(){if(window.mainwin!=null){window.mainwin.focus();}window.close();window.mainwin.location.reload();}function openGallery(b){popup=window.open(b,"Popup","width=710,height=550,top=50,left=20,scrollbars=auto,status=no,toolbar=no,resizable=yes,location=no");if(popup.mainwin==null){popup.mainwin=self;}popup.focus();}function changeCountry(b){b.act.value="reload";b.submit();}function onClickSelectDefault(c,d){if(c.value==d){c.select();}}function readProductInfo(j,f){var g=opener.getFormProperty("pForm","info_check");if(g.length>1){for(var k=0;k<g.length;k++){if(g[k].value==j){opener.setFormPropertyChecked("pForm","info_check",k,true);}}}else{opener.setFormPropertyVIP("pForm","info_check",true);}var h=opener.getFormProperty("pForm","product_id");for(k=0;k<h.length;k++){if(h[k].value==j){opener.setFormPropertyChecked("pForm","product_id",k,true);}}window.close();opener.focus();opener.submitFormByName("pForm");}function setFormPropertyVIP(f,d,e){document.forms[f].elements[d].checked=e;}function setFormProperty(f,d,e){document.forms[f].elements[d].value=e;}function setFormPropertyChecked(h,f,e,g){document.forms[h].elements[f][e].checked=g;}function getFormProperty(c,d){return document.forms[c].elements[d];}function submitFormByName(b){document.forms[b].submit();}function readVoucherProductInfo(c,d){window.close();opener.focus();url=EMN.WebappPrefix+"/ppreise_und_leistungen.do";url=url+"?effective_voucher_id="+c+"&campaignName="+d+"&info_check="+c;opener.location.href=url;}function changedProduct(f,e,d){if(e!=lastSelectedProduct){lastSelectedProduct=e;form=document.getElementById(f);form.action=d;form.submit();}}function submitTiedToVoucherProduct(c,d){form=document.getElementById(c);form.elements.effective_voucher_id.value=d;form.elements.info_check.value=d;form.submit();}function openVoucherInfoPopup(c,d){if(!d){voucherinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/voucherInfoWithoutProduct.do?evc="+c+"","Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");voucherinfowin.focus();}else{alert("currently not possible");}}function openProductVoucherInfoPopup(c,d){voucherinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/voucherInfoWithProduct.do?effective_voucher_id="+d+"&productInfoType="+c,"Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");voucherinfowin.focus();}function openProductVoucherInfoPopupWithoutCheck(f,d,e){voucherinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/voucherInfoWithProduct.do?check=false&effective_voucher_id="+d+"&date="+e+"&productInfoType="+f,"Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");voucherinfowin.focus();}function openUpsellingInfoPopup(){voucherinfowin=window.open(EMN.WebappPrefix+"/vipVorteileInfo.do","Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");voucherinfowin.focus();}function openCMSLink(b){cmsLinkwin=window.open(b,"CMSLink","width=590,height=700,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(cmsLinkwin.mainwin==null){cmsLinkwin.mainwin=self;}cmsLinkwin.focus();}function saveAliasAndMemo(h,j,f,g,k){if(!j){j="";}if(!f){f="";}if(!g){g="";}if(!k){k="";}new Ajax.Request(EMN.WebappPrefix+"/members/profiles/profileHeadPopupUpdateContact.do",{method:"post",parameters:{chiffre:h,aliasOrChiffre:j,memo:f,oldAliasOrChiffre:g,oldMemo:k},onSuccess:function(a){location.reload();}});}function saveRating(h,j,k){var l=document.getElementById(j);var m=null;for(var g=0;g<l.length;++g){if(l.options[g].selected==true){m=l.options[g].value;}}if(h!=null&&m!=null){new Ajax.Request(EMN.WebappPrefix+"/members/profiles/updateProfileRating.do",{method:"post",parameters:{chiffre:h,rating:m}});}}function SocialBookmarkSetDisplay(b){SocialBookmarkElement=document.getElementById("SocialBookmark").style;SocialBookmarkElement.visibility=(b?"visible":"hidden");SocialBookmarkState=b;}function SocialBookmarkToggle(){if(!SocialBookmarkState){SocialBookmarkSetDisplay(true);spStartMouseEvent();}else{SocialBookmarkSetDisplay(false);}}function SocialBookmarkToggleDisplay(c){if(!c){var c=window.event;}if(c.target){targ=c.target;}else{if(c.srcElement){targ=c.srcElement;}}if(targ.nodeType==3){targ=targ.parentNode;}if(targ.id=="SocialBookmarkLink"){spStopMouseEvent();return false;}var d=false;while(targ!=null){if(targ.id=="SocialBookmark"){d=true;break;}if(targ.id=="SocialBookmarkClose"){break;}targ=targ.parentNode;}if(!d){SocialBookmarkSetDisplay(false);spStopMouseEvent();}return false;}function spStartMouseEvent(){if(document.addEventListener){document.addEventListener("mouseup",SocialBookmarkToggleDisplay,true);}else{if(document.attachEvent){document.attachEvent("onmouseup",SocialBookmarkToggleDisplay);}else{document.onmouseup=SocialBookmarkToggleDisplay;}}}var spOldHandler=document.onmouseup;function spStopMouseEvent(){if(document.removeEventListener){document.removeEventListener("mouseup",SocialBookmarkToggleDisplay,true);}else{if(document.detachEvent){document.detachEvent("onmouseup",SocialBookmarkToggleDisplay);}else{document.onmouseup=spOldHandler;}}}function spInArray(d,f){for(var e in d){if(d[e]==f){return true;}}return false;}function toggleById(c){var d=document.getElementById(c);if(d.style.display!="block"){d.style.display="block";}else{d.style.display="none";}}function getURLParam(m){var n="";var o=window.location.href;if(o.indexOf("?")>-1){var h=o.substr(o.indexOf("?")).toLowerCase();var l=h.split("&");for(var j=0;j<l.length;j++){if(l[j].indexOf(m+"=")>-1){var k=l[j].split("=");n=k[1];break;}}}return n;}function registerCheckBox(d){var c=$("#"+d);$("[id^='"+d+"_']").bind("click",handleCheckBoxClick);if(typeof(c.attr("value"))=="undefined"||c.attr("value")==""){c.attr("value",-1);}}function handleCheckBoxClick(h){var e=h.target;var f=e.id.substring(0,e.id.lastIndexOf("_"));var g=e.id.substring(e.id.lastIndexOf("_")+1,e.id.length);toggleCheckBox(f,e);$("#"+f).attr("value",g);}var _toggleCheckBoxList=new Object();function toggleCheckBox(d,c){if(_toggleCheckBoxList[d]!=null){_toggleCheckBoxList[d].src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif";}_toggleCheckBoxList[d]=c;if(c.src.indexOf("off.gif")!=-1){c.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_on.gif";}else{c.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif";}}function maxRadios(f,h,g){var e="."+g+" input:checked";if($(e).length>f){h.checked=false;}}function openPhotoPage(){var b=window.open(EMN.WebappPrefix+"/members/settings/fphotos.do","Phototool","width=870, height=940, resizable=yes , scrollbars=yes");b.focus();}function openOriginalPhoto(e,f){var d=window.open(EMN.WebappPrefix+"/members/profiles/photo.do?chiffre="+e+"&slot="+f,"","width=820, height=1020, resizable=yes , scrollbars=no");d.focus();}function openGalleryPage(e,f){var d=window.open(EMN.WebappPrefix+"/members/profiles/gallery.do?chiffre="+e+"&slot="+f,"gallery","width=750,height=900,top=50,left=20,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");d.focus();}function openPhotoPageInfo(){var b=window.open(EMN.WebappPrefix+"/misc/photosInfo.do","Photoinfo","width=705, height=750, resizable=yes , scrollbars=yes");b.focus();}function showMainPhotoOfSlot(f,d){for(var e=0;e<=d;e++){if(e==f){$("#ep_slot"+e).css("display","block");$("#ep_small_pic"+e).addClass("ep_photo_selected");}else{$("#ep_slot"+e).hide();$("#ep_small_pic"+e).removeClass("ep_photo_selected");}}}var Picview=0;function tooglePicview(){if(Picview==0){$("#ep_profile_mainpic img").each(function(d){var f=$(this).attr("src");var e=f.replace("tid=2","tid=3");$(this).attr("src",e);});$(".jcarousel-item img").each(function(d){var f=$(this).attr("src");var e=f.replace("tid=4","tid=3");$(this).attr("src",e);});$(".ep_profile_pics img").each(function(d){var f=$(this).attr("src");var e=f.replace("tid=4","tid=3");$(this).attr("src",e);});$("#ep_infotext_picview_current_scrambled_true").show();$("#ep_text_changephoto_view_current_scrambled_true").show();$("#ep_infotext_picview_current_scrambled_false").hide();$("#ep_text_changephoto_view_current_scrambled_false").hide();Picview=1;}else{$("#ep_profile_mainpic img").each(function(d){var f=$(this).attr("src");var e=f.replace("tid=3","tid=2");$(this).attr("src",e);});$(".jcarousel-item img").each(function(d){var f=$(this).attr("src");var e=f.replace("tid=3","tid=4");$(this).attr("src",e);});$(".ep_profile_pics img").each(function(d){var f=$(this).attr("src");var e=f.replace("tid=3","tid=4");$(this).attr("src",e);});$("#ep_infotext_picview_current_scrambled_true").hide();$("#ep_text_changephoto_view_current_scrambled_true").hide();$("#ep_infotext_picview_current_scrambled_false").show();$("#ep_text_changephoto_view_current_scrambled_false").show();Picview=0;}}function canSelectMore(e){var f=$("#ep_choose_count");var h=$("#ep_max_number");if((f.length!=0)&&(h.length!=0)){return(f.html()<h.html());}var g=e.substring(0,e.lastIndexOf("_"));chosenName="#"+g+"_choose_count";maxName="#"+g+"_max_number";f=$(chosenName);h=$(maxName);if((f.length==0)&&(h.length==0)){return true;}return(f.html()<h.html());}function incrementCounter(g){var k=$("#ep_choose_count");if(k.length){var f=k.html();f++;k.html(f);return;}var h=g.substring(0,g.lastIndexOf("_"));var j="#"+h+"_choose_count";k=$(j);if(k.length){var f=k.html();f++;k.html(f);}}function decrementCounter(g){var k=$("#ep_choose_count");if(k.length){var f=k.html();if(f>0){if(f==1){f="0";}else{f--;}}k.html(f);return;}var h=g.substring(0,g.lastIndexOf("_"));var j="#"+h+"_choose_count";k=$(j);if(k.length){var f=k.html();if(f>0){if(f==1){f="0";}else{f--;}}k.html(f);}}function isNegativeContainer(){return($(".ep_negative_choose").size()>0);}function setTooltip(b){if(isNegativeContainer()){b.tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip_neg"});}else{b.tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip"});}}function selectTestLayer(h){var f=getBorderColor();h.attr("class","ep_test_layer ep_active");h.css("border","5px solid "+f);h.css("height",h.height()-4);var g=h.children("img");g.attr("title","abwählen");setTooltip(g);var e=h.prev().prev().prev().prev();e.css("color","#269100");}function deselectTestLayer(j){var f=getBorderColor();j.attr("class","ep_test_layer");j.css("border","3px solid "+f);var g=j.height();g=g+4;j.height(g);var h=j.children("img");h.attr("title","auswählen");setTooltip(h);var k=j.prev().prev().prev().prev();$(k).css("color","#534F48");}function registerClickLayer(e){if(typeof(e)=="string"){e=new Array(e);}for(i=0;i<e.length;i++){var f=$("input[name='"+e[i]+"'][checked]").next().next();if(f.length==0){continue;}f.each(function(){selectTestLayer($(this));});for(var d=0;d<f.length;d++){incrementCounter();}}}function initQuestionnaireHover(){var b=getBorderColor();if($(".ep_choosen_layer").size()>0){$(".ep_choosen_layer").each(function(){var d=$(this).parent().height();d=d-4;var a=d-10;$(this).css("height",d);$("#"+this.id+" img").css("height",a);});}if($(".ep_test_layer").size()>0){$(".ep_test_layer").each(function(){var d=$(this).parent().height();var a=d-6;$(this).css("height",d);$("#"+this.id+" img").css("height",a);});$(".ep_test_layer").hover(function(){if($(this).attr("class")=="ep_test_layer ep_active"){$(this).css("border","5px solid "+b);}else{$(this).css("border","3px solid "+b);}},function(){if($(this).attr("class")=="ep_test_layer ep_active"){}else{$(this).css("border","3px transparent");}});$(".ep_test_layer").click(function(){if($(this).attr("class")=="ep_test_layer"){if(canSelectMore()){selectTestLayer($(this));var a=$(this).prev().prev();if(($(a).attr("type")=="radio")||($(a).attr("type")=="checkbox")){$(a).attr("checked","checked");}else{$(a).attr("value",1);}incrementCounter();}}else{deselectTestLayer($(this));var a=$(this).prev().prev();if(($(a).attr("type")=="radio")||($(a).attr("type")=="checkbox")){$(a).removeAttr("checked");}else{$(a).attr("value",0);}decrementCounter();}});}}function addOrRemoveFavorite(d,e,f){$.post(EMN.WebappPrefix+"/members/contacting/favorite.do",{type:d,imageId:e,peerChiffreForFavorite:f},function(a){var b=$("#favorite"+e);replaceContentOrHandleTimeout(b,a);});}function replaceContentOrHandleTimeout(c,d){if(!isSessionTimeout(d)){c.html(d);}else{document.location.href=EMN.WebappPrefix+"/flogin.do";}}function isSessionTimeout(b){return b=="AJAX-SESSION-TIME-OUT";}function toggleProfileHead(){if($("#ep_profile_head").hasClass("ep_dn")){hideElement("ep_short_profile_head");displayElement("ep_profile_head");}else{hideElement("ep_profile_head");displayElement("ep_short_profile_head");}return false;}function displayElement(b){$("#"+b).removeClass("ep_dn");return false;}function hideElement(b){$("#"+b).addClass("ep_dn");return false;}function setFontsize(d,f,e){$.post(EMN.WebappPrefix+"/misc/setFontsize.do",{fontsize:d},function(a){$("#"+f).addClass("ep_active");for(var b=0;b<e.length;b++){$("#"+e[b]).removeClass("ep_active");}$("#ep_body").attr("style","font-size:"+d+"%;");});return false;}function bookmarkMe(e,f,d){window.open(e+(f!=null?"&"+f+"="+encodeURIComponent(location.href):"")+(d!=null?"&"+d+"="+encodeURIComponent(document.title):""));return false;}function magazinLayerHeight(){if($(".ep_magazin_layer").size()>0){$(".ep_magazin_layer").each(function(){var b=$(this).parent().height();$(this).css("height",b);$(this).children("a").children("img").css("height",b);});}}function hideImagesProfileCompare(){if($.browser.msie){$(".ep_compare_image_container_0").attr("style","visibility:hidden");}}function showImagesProfileCompare(){if($.browser.msie){$(".ep_compare_image_container_0").attr("style","visibility:visible");}}function toggleTeaser(f,g,e,h){if($("#"+f+"_arrow").attr("src").indexOf("arrow_close.gif")!=-1){$("#"+f+"_arrow").attr("title",g+" "+e);$("#"+f+"_arrow").attr("src",EMN.WebappPrefix+"/gfx/basic/icons/arrow_open.gif");if($.browser.msie&&$.browser.version<=6){$("#"+f+"_content").hide();}else{$("#"+f+"_content").animate({height:"toggle"});}}else{$("#"+f+"_arrow").attr("title",g+" "+h);$("#"+f+"_arrow").attr("src",EMN.WebappPrefix+"/gfx/basic/icons/arrow_close.gif");if($.browser.msie&&$.browser.version<=6){$("#"+f+"_content").show();}else{$("#"+f+"_content").animate({height:"toggle"});}}}function toggleAdditionalData(){if($("#additionalData").css("display")=="none"){$("#additionalData").show();$("#additionalDataLink").html("Zusatzdaten ausblenden");}else{$("#additionalData").hide();$("#additionalDataLink").html("Zusatzdaten einblenden");}}function toggle_send_welcome_questions_text(){var b=$("#ep_cb_send_questions_text").attr("checked");$("#ep_send_questions").attr("checked",b);$("#ep_dont_send_questions").attr("checked",!b);$("#ep_cb_send_questions_text").attr("checked",b);}function toggle_send_welcome_questions(){$("#ep_cb_send_questions_text").attr("checked",$("#ep_send_questions").attr("checked"));}function toggleTeaserContent(f){var e=rand(0,f.length-1);var d=new Array();for(i=0;i<f.length;i++){d.push($(f[i]).html());}for(i=0;i<f.length;i++){if(e>=f.length){e=0;}$(f[i]).html(d[e]);e++;}}function rand(c,d){return Math.floor(Math.random()*(d-c+1))+c;}function changeCountryAjax(f,e,d){$(e).html('<img src="'+EMN.WebappPrefix+'/gfx/basic/loading/ajax-loading.gif" alt="busy"/>');$.post(EMN.WebappPrefix+"/misc/changeCountry_a.do",{country:f},function(a){$(e).html(a);$(d).html($(".ep_province_country_label"));$(e+" .ep_province_country_label").html("");});}function getNewCaptchaOnClick(d,c){$(d).click(function(){$(c).attr("src",$(c).attr("src")+"#");});}function focusPurchaseTableOnError(){if($(".ep_error").length>0&&$("#ep_purchaseProductTable").length>0){if($('a[name="productSelection"]').length!=0){location.href="#productSelection";}else{scrollTo(0,800);}}}function clearElement(b){if($("#"+b).val().charCodeAt($("#"+b).val().length-1)==EXAMPLE_TEXT_MARKER){$("#"+b).val("");$("#"+b).removeClass("ep_special_hint");}}function openVipInfoPage(){var b=window.open(EMN.WebappPrefix+"/vip/info.do","","width=980, height=980, resizable=yes , scrollbars=yes");b.focus();}function hideShowAddtionalClaimPaymentData(f,j,g){for(i=0;i<j.payment_type.length;i++){var h="#"+g+j.payment_type[i].value;$(h).hide();}var k="#"+g+f.value;$(k).show();}function showPaymentDataForm(d,c){$.post(EMN.WebappPrefix+"/members/sales/paymentDataForm_a.do",{paymentTypeId:c},function(a){replaceContentOrHandleTimeout($("#"+d),a);});}
