var EXAMPLE_TEXT_MARKER=183;function init_inputOnFocusColorValues(){$("input:text").focus(function(){tmp=this.value;if(tmp.charCodeAt(tmp.length-1)==EXAMPLE_TEXT_MARKER){this.value=""}if(this.className.indexOf("ep_input_color")==-1){this.className=this.className+" ep_input_color"}});$("input:password").focus(function(){this.value="";if(this.className.indexOf("ep_input_password_color")==-1){this.className=this.className+" ep_input_password_color"}});$("textarea").focus(function(){tmp=this.value;if(tmp.charCodeAt(tmp.length-1)==EXAMPLE_TEXT_MARKER){this.value=""}if(this.className.indexOf("ep_textarea_color")==-1){this.className=this.className+" ep_textarea_color"}});$(document).ready(function(){$(".ep_custom_tooltip").tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:10,extraClass:"ep_sp_tooltip ep_text_left"})})}function changeInputTextColor(){var b=$("input:text");for(i=0;i<b.length;i++){if(b[i].value.charCodeAt(b[i].value.length-1)!=EXAMPLE_TEXT_MARKER){if(b[i].className.indexOf("ep_input_color")==-1){b[i].className=b[i].className+" ep_input_color"}}}var a=$("textarea");for(i=0;i<a.length;i++){if(a[i].value.charCodeAt(a[i].value.length-1)!=EXAMPLE_TEXT_MARKER){if(a[i].className.indexOf("ep_textarea_color")==-1){a[i].className=a[i].className+" ep_textarea_color"}}}}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(b){b.dimensions={version:"1.2"};b.each(["Height","Width"],function(d,c){b.fn["inner"+c]=function(){if(!this[0]){return}var f=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+c]:a(this,c.toLowerCase())+a(this,"padding"+f)+a(this,"padding"+e)};b.fn["outer"+c]=function(f){if(!this[0]){return}var h=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";f=b.extend({margin:false},f||{});var g=this.is(":visible")?this[0]["offset"+c]:a(this,c.toLowerCase())+a(this,"border"+h+"Width")+a(this,"border"+e+"Width")+a(this,"padding"+h)+a(this,"padding"+e);return g+(f.margin?(a(this,"margin"+h)+a(this,"margin"+e)):0)}});b.each(["Left","Top"],function(d,c){b.fn["scroll"+c]=function(e){if(!this[0]){return}return e!=undefined?this.each(function(){this==window||this==document?window.scrollTo(c=="Left"?e:b(window)["scrollLeft"](),c=="Top"?e:b(window)["scrollTop"]()):this["scroll"+c]=e}):this[0]==window||this[0]==document?self[(c=="Left"?"pageXOffset":"pageYOffset")]||b.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]}});b.fn.extend({position:function(){var h=0,g=0,f=this[0],j,c,e,d;if(f){e=this.offsetParent();j=this.offset();c=e.offset();j.top-=a(f,"marginTop");j.left-=a(f,"marginLeft");c.top+=a(e,"borderTopWidth");c.left+=a(e,"borderLeftWidth");d={top:j.top-c.top,left:j.left-c.left}}return d},offsetParent:function(){var c=this[0].offsetParent;while(c&&(!/^body|html$/i.test(c.tagName)&&b.css(c,"position")=="static")){c=c.offsetParent}return b(c)}});function a(c,d){return parseInt(b.curCSS(c.jquery?c[0]:c,d,true))||0}})(jQuery);(function(e){var b={},l,n,p,k=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(q){q=e.extend({},e.tooltip.defaults,q);h(q);return this.each(function(){e.data(this,"tooltip",q);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(m).mouseout(f).click(f)},fixPNG:k?function(){return this.each(function(){var q=e(this).css("backgroundImage");if(q.match(/^url\(["']?(.*\.png)["']?\)$/i)){q=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+q+"')"}).each(function(){var r=e(this).css("position");if(r!="absolute"&&r!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:k?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(q){if(b.parent){return}b.parent=e('<div id="'+q.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h3",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(q){return e.data(q,"tooltip")}function g(q){if(c(this).delay){p=setTimeout(o,c(this).delay)}else{o()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(q)}function m(){if(e.tooltip.blocked||this==l||(!this.tooltipText&&!c(this).bodyHandler)){return}l=this;n=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var t=c(this).bodyHandler.call(this);if(t.nodeType||t.jquery){b.body.empty().append(t)}else{b.body.html(t)}b.body.show()}else{if(c(this).showBody){var s=n.split(c(this).showBody);b.title.html(s.shift()).show();b.body.empty();for(var r=0,q;(q=s[r]);r++){if(r>0){b.body.append("<br/>")}b.body.append(q)}b.body.hideWhenEmpty()}else{b.title.html(n).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function o(){p=null;if((!k||!e.fn.bgiframe)&&c(l).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(l).fade,l.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(l).fade,l.tOpacity):b.parent.fadeIn(c(l).fade)}}else{b.parent.show()}d()}function d(t){if(e.tooltip.blocked){return}if(t&&t.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(l==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var w=b.parent[0].offsetLeft;var u=b.parent[0].offsetTop;if(t){w=t.pageX+c(l).left;u=t.pageY+c(l).top;var r="auto";if(c(l).positionLeft){r=e(window).width()-w;w="auto"}b.parent.css({left:w,right:r,top:u})}var q=j(),s=b.parent[0];if(q.x+q.cx<s.offsetLeft+s.offsetWidth){w-=s.offsetWidth+20+c(l).left;b.parent.css({left:w+"px"}).addClass("viewport-right")}if(q.y+q.cy<s.offsetTop+s.offsetHeight){u-=s.offsetHeight+20+c(l).top;b.parent.css({top:u+"px"}).addClass("viewport-bottom")}}function j(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(s){if(e.tooltip.blocked){return}if(p){clearTimeout(p)}l=null;var r=c(this);function q(){b.parent.removeClass(r.extraClass).hide().css("opacity","")}if((!k||!e.fn.bgiframe)&&r.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(r.fade,0,q)}else{b.parent.stop().fadeOut(r.fade,q)}}else{q()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this}})(jQuery);jQuery.timer=function(a,b){var a=a||100;if(!b){return false}_timer=function(d,e){this.stop=function(){clearInterval(c.id)};this.internalCallback=function(){e(c)};this.reset=function(f){if(c.id){clearInterval(c.id)}var f=f||100;this.id=setInterval(this.internalCallback,f)};this.interval=d;this.id=setInterval(this.internalCallback,this.interval);var c=this};return new _timer(a,b)};jQuery.ui||(function(c){var j=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(l,m,o){var n=c.ui[l].prototype;for(var k in o){n.plugins[k]=n.plugins[k]||[];n.plugins[k].push([m,o[k]])}},call:function(k,m,l){var o=k.plugins[m];if(!o||!k.element[0].parentNode){return}for(var n=0;n<o.length;n++){if(k.options[o[n][0]]){o[n][1].apply(k.element,l)}}}},contains:function(l,k){return document.compareDocumentPosition?l.compareDocumentPosition(k)&16:l!==k&&l.contains(k)},hasScroll:function(n,l){if(c(n).css("overflow")=="hidden"){return false}var k=(l&&l=="left")?"scrollLeft":"scrollTop",m=false;if(n[k]>0){return true}n[k]=1;m=(n[k]>0);n[k]=0;return m},isOverAxis:function(l,k,m){return(l>k)&&(l<(k+m))},isOver:function(p,l,o,n,k,m){return c.ui.isOverAxis(p,o,k)&&c.ui.isOverAxis(l,n,m)},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(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(l,k,m){var n=m!==undefined;return(k=="role"?(n?f.call(this,l,k,"wairole:"+m):(f.apply(this,arguments)||"").replace(b,"")):(a.test(k)?(n?l.setAttributeNS(h,k.replace(a,"aaa:"),m):f.call(this,l,k.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(k){return(a.test(k)?this.each(function(){this.removeAttributeNS(h,k.replace(a,""))}):e.call(this,k))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return j.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 k;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){k=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{k=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!k.length?c(document):k}});c.extend(c.expr[":"],{data:function(m,l,k){return !!c.data(m,k[3])},focusable:function(l){var m=l.nodeName.toLowerCase(),k=c.attr(l,"tabindex");return(/input|select|textarea|button|object/.test(m)?!l.disabled:"a"==m||"area"==m?l.href||!isNaN(k):!isNaN(k))&&!c(l)["area"==m?"parents":"closest"](":hidden").length},tabbable:function(l){var k=c.attr(l,"tabindex");return(isNaN(k)||k>=0)&&c(l).is(":focusable")}});function g(n,o,p,m){function l(r){var q=c[n][o][r]||[];return(typeof q=="string"?q.split(/,?\s+/):q)}var k=l("getter");if(m.length==1&&typeof m[0]=="string"){k=k.concat(l("getterSetter"))}return(c.inArray(p,k)!=-1)}c.widget=function(l,k){var m=l.split(".")[0];l=l.split(".")[1];c.fn[l]=function(q){var o=(typeof q=="string"),p=Array.prototype.slice.call(arguments,1);if(o&&q.substring(0,1)=="_"){return this}if(o&&g(m,l,q,p)){var n=c.data(this[0],l);return(n?n[q].apply(n,p):undefined)}return this.each(function(){var r=c.data(this,l);(!r&&!o&&c.data(this,l,new c[m][l](this,q))._init());(r&&o&&c.isFunction(r[q])&&r[q].apply(r,p))})};c[m]=c[m]||{};c[m][l]=function(p,o){var n=this;this.namespace=m;this.widgetName=l;this.widgetEventPrefix=c[m][l].eventPrefix||l;this.widgetBaseClass=m+"-"+l;this.options=c.extend({},c.widget.defaults,c[m][l].defaults,c.metadata&&c.metadata.get(p)[l],o);this.element=c(p).bind("setData."+l,function(r,q,s){if(r.target==p){return n._setData(q,s)}}).bind("getData."+l,function(r,q){if(r.target==p){return n._getData(q)}}).bind("remove",function(){return n.destroy()})};c[m][l].prototype=c.extend({},c.widget.prototype,k);c[m][l].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(m,n){var l=m,k=this;if(typeof m=="string"){if(n===undefined){return this._getData(m)}l={};l[m]=n}c.each(l,function(o,p){k._setData(o,p)})},_getData:function(k){return this.options[k]},_setData:function(k,l){this.options[k]=l;if(k=="disabled"){this.element[l?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",l)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(m,n,o){var q=this.options[m],k=(m==this.widgetEventPrefix?m:this.widgetEventPrefix+m);n=c.Event(n);n.type=k;if(n.originalEvent){for(var l=c.event.props.length,p;l;){p=c.event.props[--l];n[p]=n.originalEvent[p]}}this.element.trigger(n,o);return !(c.isFunction(q)&&q.call(this.element[0],n,o)===false||n.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var k=this;this.element.bind("mousedown."+this.widgetName,function(l){return k._mouseDown(l)}).bind("click."+this.widgetName,function(l){if(k._preventClickEvent){k._preventClickEvent=false;l.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(m){m.originalEvent=m.originalEvent||{};if(m.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(m));this._mouseDownEvent=m;var l=this,n=(m.which==1),k=(typeof this.options.cancel=="string"?c(m.target).parents().add(m.target).filter(this.options.cancel).length:false);if(!n||k||!this._mouseCapture(m)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){l.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m)){this._mouseStarted=(this._mouseStart(m)!==false);if(!this._mouseStarted){m.preventDefault();return true}}this._mouseMoveDelegate=function(o){return l._mouseMove(o)};this._mouseUpDelegate=function(o){return l._mouseUp(o)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||m.preventDefault());m.originalEvent.mouseHandled=true;return true},_mouseMove:function(k){if(c.browser.msie&&!k.button){return this._mouseUp(k)}if(this._mouseStarted){this._mouseDrag(k);return k.preventDefault()}if(this._mouseDistanceMet(k)&&this._mouseDelayMet(k)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,k)!==false);(this._mouseStarted?this._mouseDrag(k):this._mouseUp(k))}return !this._mouseStarted},_mouseUp:function(k){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(k.target==this._mouseDownEvent.target);this._mouseStop(k)}return false},_mouseDistanceMet:function(k){return(Math.max(Math.abs(this._mouseDownEvent.pageX-k.pageX),Math.abs(this._mouseDownEvent.pageY-k.pageY))>=this.options.distance)},_mouseDelayMet:function(k){return this.mouseDelayMet},_mouseStart:function(k){},_mouseDrag:function(k){},_mouseStop:function(k){},_mouseCapture:function(k){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.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(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(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||d.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");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).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(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=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 b=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(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var j=g[0]==this.active[0];if(this.running||(!d.collapsible&&j)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!j){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:j&&d.collapsible?a([]):g,oldHeader:this.active,newContent:j&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},k=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=j?a([]):g;this._toggle(c,h,e,j,k);return false},_toggle:function(b,j,g,k,l){var d=this.options,n=this;this.toShow=b;this.toHide=j;this.data=g;var c=function(){if(!n){return}return n._completed.apply(n,arguments)};this._trigger("changestart",null,this.data);this.running=j.size()===0?b.size():j.size();if(d.animated){var f={};if(d.collapsible&&k){f={toShow:a([]),toHide:j,complete:c,down:l,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:j,complete:c,down:l,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var m=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!m[h]){m[h]=function(o){this.slide(o,{easing:h,duration:e||700})}}m[h](f)}else{if(d.collapsible&&k){b.toggle()}else{j.hide();b.show()}c(true)}j.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.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(k,h){k=a.extend({easing:"swing",duration:300},k,h);if(!k.toHide.size()){k.toShow.animate({height:"show"},k);return}if(!k.toShow.size()){k.toHide.animate({height:"hide"},k);return}var c=k.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var j=k.toShow;b=j[0].style.width;j.width(parseInt(j.parent().width(),10)-parseInt(j.css("paddingLeft"),10)-parseInt(j.css("paddingRight"),10)-(parseInt(j.css("borderLeftWidth"),10)||0)-(parseInt(j.css("borderRightWidth"),10)||0));a.each(e,function(l,n){f[n]="hide";var m=(""+a.css(k.toShow[0],n)).match(/^([\d+-.]+)(.*)$/);d[n]={value:m[1],unit:m[2]||"px"}});k.toShow.css({height:0,overflow:"hidden"}).show();k.toHide.filter(":hidden").each(k.complete).end().filter(":visible").animate(f,{step:function(l,m){if(m.prop=="height"){g=(m.now-m.start)/(m.end-m.start)}k.toShow[0].style[m.prop]=(g*d[m.prop].value)+d[m.prop].unit},duration:k.duration,easing:k.easing,complete:function(){if(!k.autoHeight){k.toShow.css("height","")}k.toShow.css("width",b);k.toShow.css({overflow:c});k.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{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(a){return document.getElementById(a)}$(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(a,b){a.type=b}function magazinLayerHeight(){if($(".ep_magazin_layer").size()>0){$(".ep_magazin_layer").each(function(){var a=$(this).parent().height();$(this).css("height",a);$("#"+this.id+" a img").css("height",a)})}}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 c=$(this).parent().height();var b=c-6;$(this).css("height",c);$("#"+this.id+" img").css("height",b)});if($(".ep_negative_choose").size()>0){$(".ep_choosen_layer").each(function(){var c=$(this).parent().height();c=c-4;var b=c-10;$(this).css("height",c);$("#"+this.id+" img").css("height",b)});var a="#C60000"}else{var a="#269100"}$(".ep_test_layer").hover(function(){var b=$(this).parent().width();if($(this).attr("class")=="ep_test_layer ep_active"){b=b-10;$(this).css("border","5px solid "+a);$(this).css("width",b+"px")}else{$(this).css("border","3px solid "+a)}},function(){if($(this).attr("class")=="ep_test_layer ep_active"){}else{$(this).css("border","3px transparent")}});$(".ep_test_layer").click(function(){var c=count_selected("0");var f=$(this).parent().width();if($(this).attr("class")=="ep_test_layer"){if(c==true){f=f-10;$(this).attr("class","ep_test_layer ep_active");$(this).css("border","5px solid "+a);$(this).css("width",f+"px");var b=$(this).height();b=b-4;$(this).height(b);var d=$(this).prev().prev();$("#"+this.id+" img").attr("title","abw&auml;hlen");$(d).attr("value",1);var e=$(this).prev().prev().prev().prev();$(e).css("color","#269100 !important")}}else{f=f-6;$(this).attr("class","ep_test_layer");$(this).css("border","3px solid "+a);$(this).css("width",f+"px");var b=$(this).height();b=b+4;$(this).height(b);var d=$(this).prev().prev();$("#"+this.id+" img").attr("title","ausw&auml;hlen");$(d).attr("value",0);var e=$(this).prev().prev().prev().prev();$(e).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(b){if(b==0){var c=$(".ep_testcontainer .ep_active").size()+1}else{var c=2}var a=$("#ep_max_number").html();if(c<=a){return true}else{return false}}function toggleNav(b,a){if(b==1){$(a).addClass("ep_hover")}else{if(b==0){$(a).removeClass("ep_hover")}}}function ep_activeNav(a){$("#ep_mainnav li").removeClass("ep_active ep_hover");$("#ep_mainnav li").mouseover(function(){toggleNav(1,this)});$(a).addClass("ep_active");a.onmouseover=""}function highlightButton(b,a,c){$("#"+b+" .ep_outerspan").css("background-image","url("+a+")");$("#"+b+" .ep_innerspan").css("background-image","url("+c+")");$("#"+b).removeClass("ep_btn_dehighlight");$("#"+b).addClass("ep_btn_highlight")}function DehighlightButton(b,a,c){highlightButton(b,a,c);$("#"+b).removeClass("ep_btn_highlight");$("#"+b).addClass("ep_btn_dehighlight")}function highlightRedButton(a){highlightButton(a,redButton[2],redButton[3])}function DehighlightRedButton(a){DehighlightButton(a,redButton[0],redButton[1])}function highlightGreenButton(a){highlightButton(a,greenButton[2],greenButton[3])}function DehighlightGreenButton(a){DehighlightButton(a,greenButton[0],greenButton[1])}function highlightBlueButton(b,a){if(a!=null){$("#"+b).css("background-image","url("+blueButton_login[1]+")")}else{$("#"+b).css("background-image","url("+blueButton[1]+")")}}function DehighlightBlueButton(b,a){if(a!=null){$("#"+b).css("background-image","url("+blueButton_login[0]+")")}else{$("#"+b).css("background-image","url("+blueButton[0]+")")}}function highlightGreyButton(a){highlightButton(a,greyButton[2],greyButton[3])}function DehighlightGreyButton(a){DehighlightButton(a,greyButton[0],greyButton[1])}function highlightRedButtonS(a){highlightButton(a,redButtonS[2],redButtonS[3])}function DehighlightRedButtonS(a){DehighlightButton(a,redButtonS[0],redButtonS[1])}function highlightGreyButtonS(a){highlightButton(a,greyButtonS[2],greyButtonS[3])}function DehighlightGreyButtonS(a){DehighlightButton(a,greyButtonS[0],greyButtonS[1])}function highlightGreenButtonS(a){highlightButton(a,greenButtonS[2],greenButtonS[3])}function DehighlightGreenButtonS(a){DehighlightButton(a,greenButtonS[0],greenButtonS[1])}function highlightBlueButtonL(a){highlightButton(a,blueButton[2],blueButton[3])}function DehighlightBlueButtonL(a){DehighlightButton(a,blueButton[0],blueButton[1])}function highlightRedGreyButtonS(a){$("#"+a+" .ep_outerspan").css("background-image","url("+redGreyButtonS[2]+")");$("#"+a+" .ep_innerspan").css("background-image","url("+redGreyButtonS[3]+")")}function DehighlightRedGreyButtonS(a){$("#"+a+" .ep_outerspan").css("background-image","url("+redGreyButtonS[0]+")");$("#"+a+" .ep_innerspan").css("background-image","url("+redGreyButtonS[1]+")")}function highlightRedGoldButtonS(a){$("#"+a+" .ep_outerspan").css("background-image","url("+redGoldButtonS[2]+")");$("#"+a+" .ep_innerspan").css("background-image","url("+redGoldButtonS[3]+")")}function DehighlightRedGoldButtonS(a){$("#"+a+" .ep_outerspan").css("background-image","url("+redGoldButtonS[0]+")");$("#"+a+" .ep_innerspan").css("background-image","url("+redGoldButtonS[1]+")")}function changeMultiTab(b,a){$("#"+b+" .ep_tab_container").css("display","none");$("#"+b+"_"+a+"").css("display","block");$("#"+b+"_list li").removeClass("ep_active");$("#"+b+"_"+a+"_link").addClass("ep_active")}function changeImg(b,a){$(b).attr("src",a)}function toggleTeaserContent(a){if($("#"+a+"_arrow").attr("src").indexOf("arrow_close.gif")!=-1){document.getElementById(a+"_arrow").src=EMN.WebappPrefix+"/gfx/basic/icons/arrow_open.gif";if($.browser.msie&&$.browser.version<=6){$("#"+a+"_content").hide()}else{$("#"+a+"_content").animate({height:"toggle"})}}else{$("#"+a+"_arrow").attr("src",+EMN.WebappPrefix+"/gfx/basic/icons/arrow_close.gif");if($.browser.msie&&$.browser.version<=6){$("#"+a+"_content").show()}else{$("#"+a+"_content").animate({height:"toggle"})}}}function toogleFavorit(b){var c=b.src;if(b.src.indexOf("yes")!=-1){var a=c.replace(/yes/,"no");b.title="zu den Favoriten hinzuf&uuml;gen"}else{$;var a=c.replace(/no/,"yes");b.title="aus Favoriten entfernen"}b.src=a;$(b).tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip_blue"})}function changeMatchCheckBox(a){row=a.id.substring(6,a.id.indexOf("_"));if(null!=checkboxesPerRow[row]){checkboxesPerRow[row].src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif"}checkboxesPerRow[row]=a;if(a.src.indexOf("off.gif")!=-1){a.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_on.gif"}else{a.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif"}document.getElementById("ep_row"+row).value=a.id.substring(a.id.indexOf("_")+1,a.id.length)}function refresh_suggest(a){$("#ep_partner_suggest p").removeClass("highlight");$("#ep_partner_suggest p").removeClass("bold");if(a.indexOf("fav")==-1){$("#ep_partner_suggest .fav p img").each(function(b){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(a.indexOf("mp")!=-1){$("#ep_partner_suggest #mp p").addClass("highlight bold");$("#ep_partner_suggest .mp p").addClass("highlight")}else{if(a.indexOf("date")!=-1){$("#ep_partner_suggest #date p").addClass("highlight bold");$("#ep_partner_suggest .date p").addClass("highlight")}else{if(a.indexOf("age")!=-1){$("#ep_partner_suggest #age p").addClass("highlight bold");$("#ep_partner_suggest .age p").addClass("highlight")}else{if(a.indexOf("rate")!=-1){$("#ep_partner_suggest #rate p").addClass("highlight bold");$("#ep_partner_suggest .rate p").addClass("highlight")}else{if(a.indexOf("region")!=-1){$("#ep_partner_suggest #region p").addClass("highlight bold");$("#ep_partner_suggest .region p").addClass("highlight")}else{if(a.indexOf("mess")!=-1){$("#ep_partner_suggest #messages p").addClass("highlight bold");$("#ep_partner_suggest .messages p").addClass("highlight")}else{if(a.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(b){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(a,b){if(document.getElementById(b).style.display=="none"){document.getElementById(b).style.display="block"}else{document.getElementById(b).style.display="none"}}function flash_cockpit(a,b){objectToFade=a;timeoutToFade=b;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(e){var a=$("#"+e+"_TBinner").width();var f=$("#"+e+"_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){$("#ep_TB_overlay_messageLayer").click(closeThickbox(e))}}else{if(document.getElementById("TB_overlay")===null){$("#ep_TB_overlay_messageLayer").click(closeThickbox(e))}}var d=tb_getPageSize();var c=d[0]-150;var b=d[1]-150;$("#ep_TB_overlay_messageLayer").bgiframe();$("#ep_TB_overlay_messageLayer").show();$("#"+e+"_TBinner").css({marginLeft:"-"+parseInt((a/2),10)+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#"+e+"_TBinner").css({marginTop:"-"+parseInt((f/2+40),10)+"px"})}$("#"+e+"_TBinner").show()}function closeThickbox(a){$("#ep_TB_overlay_messageLayer").hide();$("#"+a+"_TBinner").hide();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}}function tb_getPageSize(){var c=document.documentElement;var a=window.innerWidth||self.innerWidth||(c&&c.clientWidth)||document.body.clientWidth;var b=window.innerHeight||self.innerHeight||(c&&c.clientHeight)||document.body.clientHeight;arrayPageSize=[a,b];return arrayPageSize}function initialFlashText(a){if(a==0){$("#ep_video_teaser_desc").hide()}else{$("#ep_video_teaser_desc").show()}}function showFlashText(a){$("#ep_magazin_box_start").hide();$(".ep_flashtext").hide();$("#ep_flash_text_"+a).show()}function openPhotoTool(){var a=window.open("phototool.php","Phototool","width=705,height=616, resizable=yes , scrollbars=yes");a.focus()}function openDesc(){var a=window.open("popup_desc.php","Erklaerung","width=455, height= 420, resizable=yes , scrollbars=yes");a.focus()}function showThumbnailAsMain(a){bigThumbSrc=a.src.replace(/small/,"big");$("#ep_profile_mainpic img:first").attr("src",bigThumbSrc);$("#ep_profile_pics .ep_small_pic img").css("border","2px solid #fff");$(a).css("border","2px solid #DEDEDE")}function change_phototool_rotate(a){if(a==2||a==3){if(a==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(a==1){ge("ep_rotate_icon").src=EMN.WebappPrefix+"/gfx/basic/icons/btn_drehen_red.gif";ge("ep_rotate_link").style.color="#c60000;"}else{if(a==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(a){if(typeof(a)=="string"){a=new Array(a)}for(i=0;i<a.length;i++){$("#"+a[i]).hide();$("#"+a[i]+"_hidden").show();$("#"+a[i]+"_hidden *").show();if($.browser.safari){$("#"+a[i]+"_hidden .inputs").css("width","310px")}}}function close_in_place(a){if(typeof(a)=="string"){a=new Array(a)}for(i=0;i<a.length;i++){$("#"+a[i]+"_hidden").hide();$("#"+a[i]+"_hidden *").hide();$("#"+a[i]).show()}}function checkSelects(a){close_in_place(a)}function checkTextBox(b,a){if($("#"+b+"_hidden #"+a).val()!=""){$("#"+b+"_form .error").css("visibility","hidden");$("#"+b+"_hidden h3").removeClass("red");$("#"+b+"_hidden #"+a).removeClass("input_border_error_red");close_in_place(b);return true}else{$("#"+b+"_form .error").text("Bitte füllen Sie das Feld aus.");$("#"+b+"_form .error").css("visibility","visible");$("#"+b+"_hidden h3").addClass("red");$("#"+b+"_hidden #"+a).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(a){if($("#regions_"+a).css("display")=="none"){$("#regions_"+a).show()}else{$("#regions_"+a).hide()}}function toogleMessageText(a){if($("#message_"+a+"_sender").css("display")=="none"){$("#message_"+a+"_sender").show();$("#message_"+a+"_time").show();if($.browser.msie&&$.browser.version<=6){$("#message_"+a+"_longtext button").show()}$("#message_"+a+"_shorttext").animate({height:"toggle"});$("#message_"+a+"_longtext").animate({height:"toggle"});$("#message_"+a).attr("class","");$("#message_"+a+" ").children().removeClass("border_l_5_blue");$("#message_"+a+" ").children().removeClass("bold");$("#message_"+a+" .pv_userdesc a").css("font-weight","normal")}else{$("#message_"+a+"_sender").hide();$("#message_"+a+"_time").hide();if($.browser.msie&&$.browser.version<=6){$("#message_"+a+"_longtext button").hide()}$("#message_"+a+"_longtext").animate({height:"toggle"});$("#message_"+a+"_shorttext").animate({height:"toggle"})}}function togglePicsforFree(a){if(a==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(a){if($("#"+a).css("display")=="none"){$("#"+a).show()}else{$("#"+a).hide()}}function toggleVideoTeaser(c,d,a,e){$(".ep_video_container").hide();$("#ep_video_container_"+c).show();ClickTourNum=0;$(".ep_flashtext").hide();var b=c.length<2?"":c.substr(1);if($("#clicktour_img_w"+b).size()>0){$("#clicktour_img_w"+b).attr("src",$("#clicktour_img_w"+b).attr("src").replace(/[0-9]+/,0))}if($("#clicktour_img_e"+b).size()>0){$("#clicktour_img_e"+b).attr("src",$("#clicktour_img_e"+b).attr("src").replace(/[0-9]+/,0))}if($("#clicktour_img_r"+b).size()>0){$("#clicktour_img_r"+b).attr("src",$("#clicktour_img_r"+b).attr("src").replace(/[0-9]+/,0))}if($("#clicktour_img_w"+b).size()>0||$("#clicktour_img_r"+b).size()>0||$("#clicktour_img_e"+b).size()>0){$("#clicktour_left_"+c).hide();$("#clicktour_left_back_"+c).hide();$("#clicktour_right_"+c).hide();$("#clicktour_right_back_"+c).hide();$("#clicktour_link_"+c).show()}if(c=="r"){initFlashPlayer("/static/flash/player/player.swf","flashplayerMain_rundgang","445","376","debug=false&controlbar=none&skin=/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=/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(c=="e"){initFlashPlayer("/static/flash/player/player.swf","flashplayerMain_erfolgsgeschichten","445","376","debug=false&controlbar=none&skin=/static/flash/skins/playerSkin_startseite.swf&autostart=true&screencolor=#ffffff&file=/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(b,c,d){var e=ClickTourNum;if(b=="left"){if(ClickTourNum>0){ClickTourNum--;$("#clicktour_link_"+c).attr("href","#");$("#clicktour_link_"+c).each(function(){this.onclick=function(){moveClickTour("right",c,d);return false}});$("#clicktour_right_back_"+c).show();$("#clicktour_right_"+c).show()}if(ClickTourNum<=0){$("#clicktour_left_"+c).hide();$("#clicktour_left_back_"+c).hide();$("#clicktour_right_"+c).hide();$("#clicktour_right_back_"+c).hide();$("#clicktour_link_"+c).show()}}else{if(ClickTourNum<d){ClickTourNum++;$("#clicktour_left_"+c).show();$("#clicktour_left_back_"+c).show();$("#clicktour_right_back_"+c).show();$("#clicktour_right_"+c).show()}if(ClickTourNum==d){$("#clicktour_link_"+c).attr("href",ClicktourLinks[c]);$("#clicktour_link_"+c).removeAttr("onclick");$("#clicktour_right_"+c).hide();$("#clicktour_right_back_"+c).hide()}}$(".ep_flashtext").hide();$("#ep_flash_text_"+c+ClickTourNum).show();var f=$("#clicktour_img_"+c).attr("src");var a=f.replace(/[0-9]+/,ClickTourNum);$("#clicktour_img_"+c).attr("src",a)}function getRandomizedInterval(b,a){return Math.round(b+((a-b)*Math.random()))}var player;var currentPlayerName;var trackedFlashVideos=new Array("willkommen-main","rundgang-main","erfolgsgeschichten-main","landing1-main","landing2-main");function initFlashPlayer(g,c,d,f,b,a){var e=new SWFObject(g,c,d,f,"9","#FFFFFF");e.addParam("allowfullscreen","true");e.addParam("allowscriptaccess","always");e.addParam("wmode","transparent");e.addParam("flashvars",b);e.setAttribute("name",c);e.setAttribute("id",c);e.write(a);currentPlayerName=c}function playerReady(a){if(a.id==undefined){player=document.getElementsByName(currentPlayerName)[0]}else{player=document.getElementsByName(a.id)[0]}player.addControllerListener("ITEM","trackVideo");player.addModelListener("STATE","stateMonitor")}function trackVideo(){var a=player.getPlaylist()[player.getConfig().item].title;if(a!=null){if(trackedFlashVideos.toString().indexOf(a)!=-1){linkCode(player,a+"_video","shortHomepageRegistration")}}else{a=player.getPlaylist()[player.getConfig().item].file;if(a!=null){if(a.lastIndexOf("_")!=-1){a=a.substring(0,a.lastIndexOf("_"))}linkCode(player,a+"_video","magazin")}}if(a.indexOf("-end")!=-1){$(".ep_home_captions").css("visibility","hidden")}else{$(".ep_home_captions").css("visibility","visible")}}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(n,b,o,e,k,l,g,f,d,m){if(!document.getElementById){return}this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(b){this.setAttribute("id",b)}if(o){this.setAttribute("width",o)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!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 c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.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 b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=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(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function uncheckCheckBox(a){a.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif"}function toggleCheckBoxImage(a){if(a.src.indexOf("off.gif")!=-1){if(canSelectMore(a.id)){a.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_on.gif";incrementCounter(a.id);return true}else{return false}}else{a.src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif";decrementCounter(a.id);return false}}function getBorderColor(){if(isNegativeContainer()){return"#C60000"}return"#269100"}function handleGroupCheckBoxClick(c){var b=c.target;var a=b.id.substring(0,b.id.lastIndexOf("_"));var d=b.id.substring(b.id.lastIndexOf("_")+1,b.id.length);toggleQuestionnaireCheckBox(a,b);$("#"+a).attr("value",d)}function handleSimpleCheckBoxClick(d){var c=d.target;var b=toggleCheckBoxImage(c);var a=$("#"+c.id).prev();if(b){if((a.attr("type")=="radio")||(a.attr("type")=="checkbox")){a.attr("checked","checked")}else{a.attr("value",1)}}else{if((a.attr("type")=="radio")||(a.attr("type")=="checkbox")){a.removeAttr("checked")}else{a.attr("value",0)}}}var toggleQuestionnaireCheckBoxList=new Object();function toggleQuestionnaireCheckBox(a,b){if(toggleQuestionnaireCheckBoxList[a]!=null){uncheckCheckBox(toggleQuestionnaireCheckBoxList[a])}toggleQuestionnaireCheckBoxList[a]=b;toggleCheckBoxImage(b)}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 a=0;a<list.length;a++){var c=$("#"+list[a]);if(c.length==0){continue}$("img[id^='"+list[a]+"_']").bind("click",handleGroupCheckBoxClick);if(typeof(c.attr("value"))=="undefined"||c.attr("value")==""){c.attr("value",-1)}if(c.attr("value")!=-1){var d=c.attr("value");var b=$("#"+list[a]+"_"+d).get(0);toggleQuestionnaireCheckBox(list[a],b)}}}function setSimpleCheckBoxes(){list=new Array("qmagazines","q0140","q0240","q0250","q0260","q0270","qsavedata");for(var b=0;b<list.length;b++){var d=$("input[name='"+list[b]+"']");if(d.length==0){continue}var c=d.next();c.bind("click",handleSimpleCheckBoxClick);var d=$("input[name='"+list[b]+"'][checked]");if(d.length){for(var a=0;a<d.length;a++){var c=d.next().get(a);toggleCheckBoxImage(c)}}}}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(a,b){b.disabled=true;form=document.getElementById(a);form.submit()}function submitTwoButtonForm(a,b){form=document.getElementById(a);form.button_value.value=b;form.submit()}function submitManyButtonForm(a,c){form=document.getElementById(a);for(var b=0;b<form.product_id.length;b++){if(form.product_id[b].value==c){form.product_id[b].checked=true}}form.submit()}function submitClickForm(b,a){if(b.keyCode==13){form=document.getElementById(a);form.submit()}else{return true}}function submitPhoto(a,b){form=document.getElementById(a);if(b=="save0"){form.save0.value="true"}else{if(b=="save1"){form.save1.value="true"}else{if(b=="save2"){form.save2.value="true"}}}form.submit()}function submitUpdatePData(a,b){form=document.getElementById(a);if(b=="alias"){form.actalias.value="true"}else{if(b=="rating"){form.actrating.value="true"}}form.submit()}function saveRating(a,f,e){var d=document.getElementById(f);var c=null;for(var b=0;b<d.length;++b){if(d.options[b].selected==true){c=d.options[b].value}}if(a!=null&&c!=null){new Ajax.Request(EMN.WebappPrefix+"/members/profiles/updateProfileRating.do",{method:"post",parameters:{chiffre:a,rating:c}})}}function disableButton(a){a.disabled=true;a.form.submit()}function switchMainWin(a){win=open(a,"mainwin");win.focus()}function openPopup(a){popwin=window.open(EMN.WebappPrefix+a+"","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(c,d,b){var a=screen.width/2-b/2;var e=screen.height/2-d/2;popwin=window.open(EMN.WebappPrefix+c+"","Popup","width="+b+",height="+d+",top="+e+",left="+a+",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 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 openAGBVerhaltensverpflichtungen(){agbwin=window.open(EMN.WebappPrefix+"/agb.do#verhaltensverpflichtungen","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 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(b,d){var c=EMN.WebappPrefix+"/aktionen/lotteryConditions.do";var a=c+"?ad_id="+b+"&pg="+d;win=window.open(a,"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 a=EMN.WebappPrefix+"/friendship/friendshipPortraitConditions.do";win=window.open(a,"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 a=EMN.WebappPrefix+"/friendship/friendshipPortraitPhotoConditions.do";win=window.open(a,"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 a=EMN.WebappPrefix+"/members/settings/othersAboutMeExample.do";win=window.open(a,"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(e,d,a,b){var c=b&&b!=""?"&effective_voucher_id="+b:"";productinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/info.do?product="+d+"&index="+a+c+"&productInfoType="+e,"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(f,e,a,d,b){var c=b?"&effective_voucher_id="+b:"";productinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/info.do?product="+e+"&check=false&date="+a+"&domain="+d+c+"&productInfoType="+f,"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(e,a){var c=EMN.WebappPrefix+"/members/profiles/profileHeadPopup.do";var b=c+"?chiffre="+e+"&location="+a;var d=window.open(b,"Popup","width=460,height=350,top=70,left=200,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(d.mainwin==null){d.mainwin=self}d.focus()}function openEliteBlog(){var a="http://www.EliteBlog.de";var b=window.open(a,"EliteBlog","width=700,height=500,top=50,left=50,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");if(b.mainwin==null){helpwin.mainwin=self}b.focus()}function openSuccessIndexHelp(){var a=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(a.mainwin==null){a.mainwin=self}a.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(a){ppswin=window.open(EMN.WebappPrefix+"/misc/ppscales.do#"+a,"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(a){popup=window.open(a,"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(a){a.act.value="reload";a.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(a){ppswin=window.open(EMN.WebappPrefix+"/misc/ppscales.do#"+a,"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(a){popup=window.open(a,"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(a){a.act.value="reload";a.submit()}function onClickSelectDefault(b,a){if(b.value==a){b.select()}}function readProductInfo(d,b){var a=opener.getFormProperty("pForm","info_check");if(a.length>1){for(var c=0;c<a.length;c++){if(a[c].value==d){opener.setFormPropertyChecked("pForm","info_check",c,true)}}}else{opener.setFormPropertyVIP("pForm","info_check",true)}var e=opener.getFormProperty("pForm","product_id");for(c=0;c<e.length;c++){if(e[c].value==d){opener.setFormPropertyChecked("pForm","product_id",c,true)}}window.close();opener.focus();opener.submitFormByName("pForm")}function setFormPropertyVIP(c,b,a){document.forms[c].elements[b].checked=a}function setFormProperty(c,b,a){document.forms[c].elements[b].value=a}function setFormPropertyChecked(c,a,b,d){document.forms[c].elements[a][b].checked=d}function getFormProperty(b,a){return document.forms[b].elements[a]}function submitFormByName(a){document.forms[a].submit()}function readVoucherProductInfo(b,a){window.close();opener.focus();url=EMN.WebappPrefix+"/ppreise_und_leistungen.do";url=url+"?effective_voucher_id="+b+"&campaignName="+a+"&info_check="+b;opener.location.href=url}function changedProduct(c,a,b){if(a!=lastSelectedProduct){lastSelectedProduct=a;form=document.getElementById(c);form.action=b;form.submit()}}function submitTiedToVoucherProduct(b,a){form=document.getElementById(b);form.elements.effective_voucher_id.value=a;form.elements.info_check.value=a;form.submit()}function openVoucherInfoPopup(b,a){if(!a){voucherinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/voucherInfoWithoutProduct.do?evc="+b+"","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(b,a){voucherinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/voucherInfoWithProduct.do?effective_voucher_id="+a+"&productInfoType="+b,"Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");voucherinfowin.focus()}function openProductVoucherInfoPopupWithoutCheck(c,b,a){voucherinfowin=window.open(EMN.WebappPrefix+"/preise_und_leistungen/voucherInfoWithProduct.do?check=false&effective_voucher_id="+b+"&date="+a+"&productInfoType="+c,"Popup","width=500,height=550,top=50,left=150,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");voucherinfowin.focus()}function openCMSLink(a){cmsLinkwin=window.open(a,"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(e,d,b,a,c){if(!d){d=""}if(!b){b=""}if(!a){a=""}if(!c){c=""}new Ajax.Request(EMN.WebappPrefix+"/members/profiles/profileHeadPopupUpdateContact.do",{method:"post",parameters:{chiffre:e,aliasOrChiffre:d,memo:b,oldAliasOrChiffre:a,oldMemo:c},onSuccess:function(f){location.reload()}})}function saveRating(a,f,e){var d=document.getElementById(f);var c=null;for(var b=0;b<d.length;++b){if(d.options[b].selected==true){c=d.options[b].value}}if(a!=null&&c!=null){new Ajax.Request(EMN.WebappPrefix+"/members/profiles/updateProfileRating.do",{method:"post",parameters:{chiffre:a,rating:c}})}}function SocialBookmarkSetDisplay(a){SocialBookmarkElement=document.getElementById("SocialBookmark").style;SocialBookmarkElement.visibility=(a?"visible":"hidden");SocialBookmarkState=a}function SocialBookmarkToggle(){if(!SocialBookmarkState){SocialBookmarkSetDisplay(true);spStartMouseEvent()}else{SocialBookmarkSetDisplay(false)}}function SocialBookmarkToggleDisplay(b){if(!b){var b=window.event}if(b.target){targ=b.target}else{if(b.srcElement){targ=b.srcElement}}if(targ.nodeType==3){targ=targ.parentNode}if(targ.id=="SocialBookmarkLink"){spStopMouseEvent();return false}var a=false;while(targ!=null){if(targ.id=="SocialBookmark"){a=true;break}if(targ.id=="SocialBookmarkClose"){break}targ=targ.parentNode}if(!a){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(b,c){for(var a in b){if(b[a]==c){return true}}return false}function toggleById(b){var a=document.getElementById(b);if(a.style.display!="block"){a.style.display="block"}else{a.style.display="none"}}function getURLParam(e){var d="";var c=window.location.href;if(c.indexOf("?")>-1){var b=c.substr(c.indexOf("?")).toLowerCase();var f=b.split("&");for(var a=0;a<f.length;a++){if(f[a].indexOf(e+"=")>-1){var g=f[a].split("=");d=g[1];break}}}return d}function registerCheckBox(a){var b=$("#"+a);$("[id^='"+a+"_']").bind("click",handleCheckBoxClick);if(typeof(b.attr("value"))=="undefined"||b.attr("value")==""){b.attr("value",-1)}}function handleCheckBoxClick(c){var b=c.target;var a=b.id.substring(0,b.id.lastIndexOf("_"));var d=b.id.substring(b.id.lastIndexOf("_")+1,b.id.length);toggleCheckBox(a,b);$("#"+a).attr("value",d)}var _toggleCheckBoxList=new Object();function toggleCheckBox(a,b){if(_toggleCheckBoxList[a]!=null){_toggleCheckBoxList[a].src=EMN.WebappPrefix+"/gfx/basic/icons/checkbox_off.gif"}_toggleCheckBoxList[a]=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"}}function maxRadios(a,c,d){var b="."+d+" input:checked";if($(b).length>a){c.checked=false}}function openPhotoPage(){var a=window.open(EMN.WebappPrefix+"/members/settings/fphotos.do","Phototool","width=870, height=940, resizable=yes , scrollbars=yes");a.focus()}function openOriginalPhoto(a,c){var b=window.open(EMN.WebappPrefix+"/members/profiles/photo.do?chiffre="+a+"&slot="+c,"","width=820, height=1020, resizable=yes , scrollbars=no");b.focus()}function openGalleryPage(a,c){var b=window.open(EMN.WebappPrefix+"/members/profiles/gallery.do?chiffre="+a+"&slot="+c,"gallery","width=750,height=900,top=50,left=20,scrollbars=yes,status=no,toolbar=no,resizable=yes,location=no");b.focus()}function openPhotoPageInfo(){var a=window.open(EMN.WebappPrefix+"/misc/photosInfo.do","Photoinfo","width=705, height=750, resizable=yes , scrollbars=yes");a.focus()}function showMainPhotoOfSlot(c,b){for(var a=0;a<b;a++){if(a==c){$("#ep_slot"+a).css("display","block");$("#ep_small_pic"+a).addClass("ep_photo_selected")}else{$("#ep_slot"+a).hide();$("#ep_small_pic"+a).removeClass("ep_photo_selected")}}}var Picview=0;function tooglePicview(){if(Picview==0){$("#ep_profile_mainpic img").each(function(b){var c=$(this).attr("src");var a=c.replace("tid=2","tid=3");$(this).attr("src",a)});$(".jcarousel-item img").each(function(b){var c=$(this).attr("src");var a=c.replace("tid=4","tid=3");$(this).attr("src",a)});$(".ep_profile_pics img").each(function(b){var c=$(this).attr("src");var a=c.replace("tid=4","tid=3");$(this).attr("src",a)});$("#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(b){var c=$(this).attr("src");var a=c.replace("tid=3","tid=2");$(this).attr("src",a)});$(".jcarousel-item img").each(function(b){var c=$(this).attr("src");var a=c.replace("tid=3","tid=4");$(this).attr("src",a)});$(".ep_profile_pics img").each(function(b){var c=$(this).attr("src");var a=c.replace("tid=3","tid=4");$(this).attr("src",a)});$("#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(b){var a=$("#ep_choose_count");var c=$("#ep_max_number");if((a.length!=0)&&(c.length!=0)){return(a.html()<c.html())}var d=b.substring(0,b.lastIndexOf("_"));chosenName="#"+d+"_choose_count";maxName="#"+d+"_max_number";a=$(chosenName);c=$(maxName);if((a.length==0)&&(c.length==0)){return true}return(a.html()<c.html())}function incrementCounter(a){var c=$("#ep_choose_count");if(c.length){var b=c.html();b++;c.html(b);return}var e=a.substring(0,a.lastIndexOf("_"));var d="#"+e+"_choose_count";c=$(d);if(c.length){var b=c.html();b++;c.html(b)}}function decrementCounter(a){var c=$("#ep_choose_count");if(c.length){var b=c.html();if(b>0){if(b==1){b="0"}else{b--}}c.html(b);return}var e=a.substring(0,a.lastIndexOf("_"));var d="#"+e+"_choose_count";c=$(d);if(c.length){var b=c.html();if(b>0){if(b==1){b="0"}else{b--}}c.html(b)}}function isNegativeContainer(){return($(".ep_negative_choose").size()>0)}function setTooltip(a){if(isNegativeContainer()){a.tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip_neg"})}else{a.tooltip({track:true,delay:0,showURL:false,opacity:1,fixPNG:true,top:10,left:5,extraClass:"ep_tooltip"})}}function selectTestLayer(c){var a=getBorderColor();c.attr("class","ep_test_layer ep_active");c.css("border","5px solid "+a);c.css("height",c.height()-4);var d=c.children("img");d.attr("title","abwählen");setTooltip(d);var b=c.prev().prev().prev().prev();b.css("color","#269100")}function deselectTestLayer(d){var b=getBorderColor();d.attr("class","ep_test_layer");d.css("border","3px solid "+b);var a=d.height();a=a+4;d.height(a);var e=d.children("img");e.attr("title","auswählen");setTooltip(e);var c=d.prev().prev().prev().prev();$(c).css("color","#534F48")}function registerClickLayer(a){if(typeof(a)=="string"){a=new Array(a)}for(i=0;i<a.length;i++){var c=$("input[name='"+a[i]+"'][checked]").next().next();if(c.length==0){continue}c.each(function(){selectTestLayer($(this))});for(var b=0;b<c.length;b++){incrementCounter()}}}function initQuestionnaireHover(){var a=getBorderColor();if($(".ep_choosen_layer").size()>0){$(".ep_choosen_layer").each(function(){var c=$(this).parent().height();c=c-4;var b=c-10;$(this).css("height",c);$("#"+this.id+" img").css("height",b)})}if($(".ep_test_layer").size()>0){$(".ep_test_layer").each(function(){var c=$(this).parent().height();var b=c-6;$(this).css("height",c);$("#"+this.id+" img").css("height",b)});$(".ep_test_layer").hover(function(){if($(this).attr("class")=="ep_test_layer ep_active"){$(this).css("border","5px solid "+a)}else{$(this).css("border","3px solid "+a)}},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 b=$(this).prev().prev();if(($(b).attr("type")=="radio")||($(b).attr("type")=="checkbox")){$(b).attr("checked","checked")}else{$(b).attr("value",1)}incrementCounter()}}else{deselectTestLayer($(this));var b=$(this).prev().prev();if(($(b).attr("type")=="radio")||($(b).attr("type")=="checkbox")){$(b).removeAttr("checked")}else{$(b).attr("value",0)}decrementCounter()}})}}function addOrRemoveFavorite(b,a,c){$.post(EMN.WebappPrefix+"/members/contacting/favorite.do",{type:b,imageId:a,peerChiffreForFavorite:c},function(e){var d=$("#favorite"+a);replaceContentOrHandleTimeout(d,e)})}function replaceContentOrHandleTimeout(b,a){if(!isSessionTimeout(a)){b.html(a)}else{document.location.href=EMN.WebappPrefix+"/flogin.do"}}function isSessionTimeout(a){return a=="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(a){$("#"+a).removeClass("ep_dn");return false}function hideElement(a){$("#"+a).addClass("ep_dn");return false}function setFontsize(b,c,a){$.post(EMN.WebappPrefix+"/misc/setFontsize.do",{fontsize:b},function(e){$("#"+c).addClass("ep_active");for(var d=0;d<a.length;d++){$("#"+a[d]).removeClass("ep_active")}$("#ep_body").attr("style","font-size:"+b+"%;")});return false}function bookmarkMe(a,c,b){window.open(a+(c!=null?"&"+c+"="+encodeURIComponent(location.href):"")+(b!=null?"&"+b+"="+encodeURIComponent(document.title):""));return false}function magazinLayerHeight(){if($(".ep_magazin_layer").size()>0){$(".ep_magazin_layer").each(function(){var a=$(this).parent().height();$(this).css("height",a);$(this).children("a").children("img").css("height",a)})}}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(a,d,b,c){if($("#"+a+"_arrow").attr("src").indexOf("arrow_close.gif")!=-1){$("#"+a+"_arrow").attr("title",d+" "+b);$("#"+a+"_arrow").attr("src",EMN.WebappPrefix+"/gfx/basic/icons/arrow_open.gif");if($.browser.msie&&$.browser.version<=6){$("#"+a+"_content").hide()}else{$("#"+a+"_content").animate({height:"toggle"})}}else{$("#"+a+"_arrow").attr("title",d+" "+c);$("#"+a+"_arrow").attr("src",EMN.WebappPrefix+"/gfx/basic/icons/arrow_close.gif");if($.browser.msie&&$.browser.version<=6){$("#"+a+"_content").show()}else{$("#"+a+"_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 a=$("#ep_cb_send_questions_text").attr("checked");$("#ep_send_questions").attr("checked",a);$("#ep_dont_send_questions").attr("checked",!a);$("#ep_cb_send_questions_text").attr("checked",a)}function toggle_send_welcome_questions(){$("#ep_cb_send_questions_text").attr("checked",$("#ep_send_questions").attr("checked"))}function toggleTeaserContent(c){var a=rand(0,c.length-1);var b=new Array();for(i=0;i<c.length;i++){b.push($(c[i]).html())}for(i=0;i<c.length;i++){if(a>=c.length){a=0}$(c[i]).html(b[a]);a++}}function rand(b,a){return Math.floor(Math.random()*(a-b+1))+b}function getSearchEngineKeyword(j,a){var b=document.referrer;if(b.indexOf("?")>-1){var k=b.split("?")[0];var g=b.split("?")[1];var c="q";var l=null;var h=k;if((k.indexOf("google.de")>-1||k.indexOf("google.com")>-1)&&g.indexOf("q=")>-1){l="small_google_logo.gif";h="Google"}else{if(k.indexOf("yahoo.com")>-1&&g.indexOf("p=")>-1){c="p";l="small_yahoo_logo.gif";h="Yahoo"}else{if((k.indexOf("live.com")>-1||k.indexOf("msn.com")>-1)&&g.indexOf("q=")>-1){l="small_msn_logo.gif";h="MSN"}else{if((k.indexOf("aol.de")>-1||k.indexOf("aol.com")>-1)&&g.indexOf("query=")>-1){c="query";l="small_aol_logo.gif";h="AOL"}}}}if(l!=null){var e=new RegExp(c+"=([^ &]*)");if(e.exec(g)){var f=e.exec(g);var d=unescape(f[1].replace(/\+/g," "));if(j){$(a).html('Sie suchten nach <span class="ep_bold">"'+d+'"</span> auf <img align="absmiddle" border="0" src="'+EMN.WebappPrefix+"/gfx/searchengines/"+l+'" />')}else{$(a).html('Sie suchten nach <span class="ep_bold">"'+d+'"</span> auf '+h)}}}}}function changeCountryAjax(c,a,b){$(a).html('<img src="'+EMN.WebappPrefix+'/gfx/basic/loading/ajax-loading.gif" alt="busy"/>');$.post(EMN.WebappPrefix+"/misc/changeCountry_a.do",{country:c},function(d){$(a).html(d);$(b).html($(".ep_province_country_label"));$(a+" .ep_province_country_label").html("")})}function getNewCaptchaOnClick(a,b){$(a).click(function(){$(b).attr("src",$(b).attr("src")+"#")})}function focusPurchaseTableOnError(){if($(".ep_error").length>0&&$("#ep_purchaseProductTable").length>0){scrollTo(0,800)}}function clearElement(a){if($("#"+a).val().charCodeAt($("#"+a).val().length-1)==EXAMPLE_TEXT_MARKER){$("#"+a).val("");$("#"+a).removeClass("ep_special_hint")}}function openVipInfoPage(){var a=window.open(EMN.WebappPrefix+"/vip/info.do","","width=980, height=980, resizable=yes , scrollbars=yes");a.focus()}function hideShowAddtionalClaimPaymentData(b,d,a){for(i=0;i<d.payment_type.length;i++){var e="#"+a+d.payment_type[i].value;$(e).hide()}var c="#"+a+b.value;$(c).show()};