Sie sind auf Seite 1von 9

function staticButton(objName,divID,buttonName,buttonId,config,state,butHtmlTemp late,server,site,protocol,servlet,windowWidth,windowHeight,windowPrefix,LEAppID, embedded,showPopOutOption){this.CHAT=1;this.VOICE=2;this.BUTTON=1;this.CHATBOX=2 ;this.TEXTLINK=3;this.OFFLINE=1;this.ONLINE=2;this.OCCUPIED=3;this.AWAY=4;this.T OP_LEFT=2;this.TOP_RIGHT=3;this.BOTTOM_LEFT=4;this.BOTTOM_RIGHT=5;this.stateImag e=[];this.stateImage[this.OFFLINE]='repoffline.gif';this.stateImage[this.ONLINE] ='reponline.gif';this.stateImage[this.OCCUPIED]='repoccupied.gif';this.stateImag e[this.AWAY]='repoffline.gif';this.config=config;if(this.config.buttonType==this .CHATBOX&&this.config.buttonContent==1){this.config.cb_height=100;this.config.cb _width=150;this.config.cb_borderWidth=0;this.config.cb_borderColor=''}this.objNa me=objName;this.divID=divID;this.buttonName=buttonName;this.buttonId=buttonId;th is.state=state;this.butHtmlTemplate=butHtmlTemplate;this.server=server;this.site =site;this.protocol=protocol;this.servlet=servlet;this.windowWidth=windowWidth;t his.windowHeight=windowHeight;this.LEAppID=LEAppID;this.

LEAppPrefix='staticB:';t his.embedded=embedded;this.showPopOut=showPopOutOption;this.targetPrefix=this.co nfig.chanel==this.CHAT?'chat':'call';this.randomNum=Math.round(Math.random()*999 9999999);this.connErrorCnt=0;this.maxErrorRequests=3;this.ErrorRequestDelay=5;th is.imgID='lpChatBtnImgID'+this.randomNum;this.chatBoxSubmitImgID='LPsubmit'+this .randomNum;this.chatBoxTextAreaID='lp_msgfield'+this.randomNum;this.hrefID='lpCh atBtnHref'+this.randomNum;this.tableID='lpChatBtnTbl'+this.randomNum;this.powere dbyDivID='lpPoweredByID'+this.randomNum;this.txtLinkSpan='lpTextLinkSpan'+this.r andomNum;if(this.config.chanel==this.VOICE){for(var name in this.stateImage){thi s.stateImage[name]='voice_'+this.stateImage[name]}}if(!this.EventHandler('init') ){return true}if(this.embedded){if(typeof(window.lpMTagStatic.frameAPI)!='undefi ned'&&typeof(window.lpMTagStatic.frameAPI.openFrame)=='function'){var options={s erver:this.server,protocol:this.protocol,showPopOut:this.showPopOut};window.lpMT agStatic.frameAPI.init(options)}else{this.log("frameAPI is undefined - unable to init iFrame","ERROR")}}this.Start()}staticButton.prototype.Start=function(){if( !this.EventHandler('start')){return true}var that=this,div=this.GetObj(this.divI D);if(div!=null){var content=this.GetHTML(),htmlContainerElement=this.config.but tonType==this.TEXTLINK?'span':'div',tmpDiv=document.createElement(htmlContainerE lement);tmpDiv.innerHTML=content.html;div.appendChild(tmpDiv);this.addStyleSheet (content.css);var href=this.GetObj(this.hrefID);if(href!=null){href.onclick=func tion(){that.Clicked();return false}}if(this.config.buttonType==this.CHATBOX){thi s.attachEventsToChatBox()}this.addToolTip()}if(typeof(lpMTagStatic.stateChangeCa llbacks)=='undefined'){lpMTagStatic.stateChangeCallbacks=[]}lpMTagStatic.stateCh angeCallbacks[lpMTagStatic.stateChangeCallbacks.length]=function(){that.StateCha ngeCallback()};this.Display()};staticButton.prototype.attachEventsToChatBox=func tion(){var that=this,txtArea=this.GetObj(this.chatBoxTextAreaID);if(txtArea!=nul l){txtArea.onblur=function(){if(txtArea.value==''){txtArea.value=that.config.cha tBoxText}};txtArea.onfocus=function(){if(txtArea.value==that.config.chatBoxText) {txtArea.value=''}};txtArea.value=this.config.chatBoxText}};staticButton.prototy pe.StateChangeCallback=function(){this.makeCall()};staticButton.prototype.makeCa ll=function(){var that=this;if(!this.EventHandler('makeCall')){return true}if(ty peof(lpConnLib)!='undefined'){var url=this.protocol+'://'+this.server+'/'+this.s ervlet+this.site+'/',params=new hcArrayStorage();params.add('site',this.site);pa rams.add('cmd','mTagRepstate');params.add('c',this.config.chanel);params.add('bt ',this.config.buttonType);params.add('buttonID',this.config.id);params.add('subC md','getState');params.add('monitor',1);if(lpMTag.mtagAddToQueue){lpMTag.mtagAdd ToQueue(url,params,function(dataObj,request){that.callResponseHandler(dataObj,re quest)},false)}else{lpConnLib.addToQueue(url,params,function(dataObj,request){th at.callResponseHandler(dataObj,request)},false)}}};staticButton.prototype.callRe sponseHandler=function(dataObj){var that=this;if(typeof(dataObj.ResultSet.lpCall Error)!='undefined'){this.connErrorCnt++;if(this.connErrorCnt<this.maxErrorReque sts){this.loopTimer=setTimeout(function(){that.makeCall()},this.connErrorCnt*thi s.ErrorRequestDelay*1000)}return}var result=dataObj.ResultSet.lpData[0].result;t his.processResult(result)};staticButton.prototype.processResult=function(result) {if(this.state==result){return}this.state=result;if(!this.EventHandler('state')) {return true}var img=this.GetObj(this.imgID);if(img!=null){var imgSrc=img.src;im gSrc=imgSrc.substr(0,imgSrc.lastIndexOf('/')+1);imgSrc=imgSrc+this.stateImage[re

sult];img.src=imgSrc}if(this.config.buttonType==this.CHATBOX){var sbmtImg=this.G etObj(this.chatBoxSubmitImgID);if(sbmtImg!=null){var imgSrc=sbmtImg.src;imgSrc=i mgSrc.substr(0,imgSrc.lastIndexOf('/')+1);imgSrc=imgSrc+this.stateImage[result]; sbmtImg.src=imgSrc}}if(this.config.buttonType==this.TEXTLINK){var span=this.GetO bj(this.txtLinkSpan);if(span!=null){span.innerHTML=this.getTextLinkText(this.sta te)}}this.addToolTip()};staticButton.prototype.getTextLinkText=function(state){i f(state==this.ONLINE){return this.config.displayTextOnline}else if(state==this.O CCUPIED){return this.config.displayTextOccupied}else{return this.config.displayT extOffline}};staticButton.prototype.addToolTip=function(){var tooltip='';if(this .state==this.ONLINE){tooltip=this.config.mouseoverOnline}else if(this.state==thi s.OFFLINE||this.state==this.AWAY){tooltip=this.config.mouseoverOffline}else if(t his.state==this.OCCUPIED){tooltip=this.config.mouseoverOccupied}var href=this.Ge tObj(this.hrefID);if(href!=null){href.alt=tooltip;href.title=tooltip}var img=thi s.GetObj(this.imgID);if(img!=null){img.alt=tooltip;img.title=tooltip}};staticBut ton.prototype.GetClickString=function(){var clickStr='';for(var i=0;i<this.confi g.ude.length;i++){var u=this.config.ude[i];if(u.scope=='CLICK'){if(this.isDynami cUDE(this.config.ude[i])){var r=this.expandDynamicUDE(this.config.ude[i]);if(r!= null){clickStr+='&'+escape(r.name)+'='+escape(r.value)}}else{clickStr+='&'+escap e(this.config.ude[i].name)+'='+escape(this.config.ude[i].value)}}}return clickSt r};staticButton.prototype.GetClickhtmlString=function(){var clickStr='';for(var i=0;i<this.config.ude.length;i++){var u=this.config.ude[i];if(u.scope=='CLICK'){ if(this.isDynamicUDE(this.config.ude[i])){var r=this.expandDynamicUDE(this.confi g.ude[i]);if(r!=null){clickStr+='<input type="hidden" value="'+escape(r.value)+' " name="'+escape(r.name)+'"/>'}}else{clickStr+='<input type="hidden" value="'+es cape(this.config.ude[i].value)+'" name="'+escape(this.config.ude[i].name)+'"/>'} }}return clickStr};staticButton.prototype.GetUDEString=function(){var udeStr=''; for(var i=0;i<this.config.ude.length;i++){var u=this.config.ude[i];if(u.scope!=' CLICK'){if(this.isDynamicUDE(this.config.ude[i])){var r=this.expandDynamicUDE(th is.config.ude[i]);if(r!=null){udeStr+='&'+r.scope+'!'+escape(r.name)+'='+escape( r.value)}}else{udeStr+='&'+this.config.ude[i].scope+'!'+escape(this.config.ude[i ].name)+'='+escape(this.config.ude[i].value)}}}return udeStr};staticButton.proto type.GetUDEhtmlString=function(){var udeStr='';for(var i=0;i<this.config.ude.len gth;i++){var u=this.config.ude[i];if(u.scope!='CLICK'){if(this.isDynamicUDE(this .config.ude[i])){var r=this.expandDynamicUDE(this.config.ude[i]);if(r!=null){ude Str+='<input type="hidden" value="'+escape(r.value)+'" name="'+r.scope+'!'+escap e(r.name)+'"/>'}}else{udeStr+='<input type="hidden" value="'+escape(this.config. ude[i].value)+'" name="'+this.config.ude[i].scope+'!'+escape(this.config.ude[i]. name)+'"/>'}}}return udeStr};staticButton.prototype.isDynamicUDE=function(u){ret urn(u.name.indexOf('{')==0||u.value.indexOf('{')==0)};staticButton.prototype.exp andDynamicUDE=function(u){var name='',value='';try{if(u.name.indexOf('{')==0){th is.log('Found dynamic ude name: '+u.name);name=this.getDynamicProp(u.name);this. log('Expanded dynamic ude name: '+name)}else{name=u.name}if(u.value.indexOf('{') ==0){this.log('Found dynamic ude value: '+u.value);value=this.getDynamicProp(u.v alue);this.log('Expanded dynamic ude value: '+value)}else{value=u.value}}catch(e ){this.log('exception in expandDynamicUDE: '+e,'WARN');return null}return{'name' :name,'value':value,'scope':u.scope}};staticButton.prototype.getDynamicProp=func tion(prop){prop=prop.substr(1);prop=prop.substr(0,prop.length-1);return eval(pro p)};staticButton.prototype.GetHTML=function(){var css=[],html=this.butHtmlTempla te;html=html.replace(/\{IMAGENAME\}/g,this.stateImage[this.state]);html=html.rep lace(/\{ON_CLICK_HANDLER\}/g,'');html=html.replace(/\{RANDOMNUM\}/g,this.randomN um);html=html.replace(/\{EXTRACSSFORAA\}/g,'');if(this.config.buttonType==this.C HATBOX){html=html.replace(/\{customWantToChatNONJSParams\}/g,this.GetClickhtmlSt ring()+this.GetUDEhtmlString());css=this.getChatBoxCss()}else{html=html.replace( /\{customWantToChatNONJSParams\}/g,this.GetClickString()+this.GetUDEString())}ht ml=html.replace(/\{targetPrefix\}/g,this.targetPrefix);html=html.replace(/\{text LinkValue\}/g,this.getTextLinkText(this.state));html=html.replace(/\{chatBoxText \}/g,'');return{'html':html,'css':css};};staticButton.prototype.getChatBoxCss=fu nction(){var css=[];css[css.length]={'name':'#lp_msgfield'+this.randomNum,'css': 'padding-left: 3px;font-family:Arial, Helvetica, sans-serif;font-size: 11px;back ground-color:#ffffff;width:'+this.config.cb_width+'px;height:'+this.config.cb_he

ight+'px;border:'+this.config.cb_borderWidth+'px solid '+this.config.cb_borderCo lor+';'};css[css.length]={'name':'#LPChatBoxSubmitTDid'+this.randomNum,'css':'ba ckground-repeat:no-repeat;padding-left: 3px;padding-right: 0px;padding-top: 0px; padding-bottom: 0px;vertical-align: top;height: 29px;'};css[css.length]={'name': '#LPChatBoxTxtTDid'+this.randomNum,'css':'padding-left:5px;padding-right: 0px;pa dding-top: 0px;padding-bottom: 0px;'};css[css.length]={'name':'#lpChatBtnHref'+t his.randomNum,'css':'margin-top: 2px;'};css[css.length]={'name':'#lpChatBtnImgID '+this.randomNum,'css':'display: block;'};return css};staticButton.prototype.Dis play=function(){if(!this.EventHandler('beforeDisplay')){return true}if(this.conf ig.buttonType!=this.TEXTLINK){var tbl=this.GetObj(this.tableID);if(tbl!=null){tb l.style.display=''}else{this.log('staticButton '+this.buttonName+' objName='+th is.objName+' Can not find tableID:'+this.tableID,'ERROR')}}if(!this.voice){this. reportImpression()}this.makeItSticky();if(!this.EventHandler('afterDisplay')){re turn true}};staticButton.prototype.reportImpression=function(msg,level){var that =this;if(typeof(lpMTagStatic.onInitMonitor)=='undefined'){lpMTagStatic.onInitMon itor=[]}lpMTagStatic.onInitMonitor.push(function(){that.log('Delaying impression sending','DEBUG');if(typeof(lpMTagConfig.ifVisitorCode)=='undefined'){lpMTagCon fig.ifVisitorCode=[]}lpMTagConfig.ifVisitorCode.push(function(){that.sendImpress ion()})})};staticButton.prototype.sendImpression=function(){if(typeof(lpMTagConf ig.LEeventsAPI)!='undefined'&&lpMTagConfig.LEeventsAPI){this.initLEeventsAPI();i f(typeof(lpMTagConfig.liveEngage)!='undefined'){lpMTagConfig.liveEngage.sendImpr ession(this.LEAppID,this.LEAppPrefix+this.buttonId)}}else{this.log('lpMTagConfig .LEeventsAPI is false','DEBUG')}};staticButton.prototype.initLEeventsAPI=functio n(){if(typeof(lpMTagConfig)!='undefined'&&typeof(lpMTagConfig.liveEngage)=='unde fined'){lpMTagConfig.liveEngage={type:{impression:"impression",engage:"engage"}, rdrDefault:{url:"",name:"_self",specs:""},_sendEvent:function(appId,type,strData ,redirectData){if(typeof(appId)=='undefined'){this._log("appId was not defined", "ERROR");return false}if(typeof(lpMTagConfig.LEeventsAPI)=='undefined'||!lpMTagC onfig.LEeventsAPI){this._log("Older app server version unified reports not suppo rted (lpMTagConfig.LEeventsAPI != true)","ERROR");return false}this._log("Sendin g"+type+" event for application: "+appId);var params=new hcArrayStorage();params .add('site',lpMTagConfig.lpNumber);params.add('cmd','leVisitorEvent');params.add ('type',type);params.add('appKey',appId);params.add('data',strData);var url=lpMT agConfig.lpProtocol+'://'+lpMTagConfig.lpServer+'/hc/'+lpMTagConfig.lpNumber+'/' ;if(typeof(redirectData)=='undefined'||redirectData==null){if(typeof(lpConnLib)! ='undefined'&&typeof(lpConnLib.addToQueue)!='undefined'){lpConnLib.addToQueue(ur l,params,null,true,3,true,true,5);return true}else{this._log("lpConnLib or lpCon nLib.addToQueue are not defined","ERROR");return false}}else{var rdrObj={};this. _objectClone(this.rdrDefault,rdrObj);if(typeof(redirectData)=='string'){rdrObj.u rl=redirectData}else{this._objectClone(redirectData,rdrObj)}return this._sendEve ntRedirect(url,params,rdrObj)}},_sendEventRedirect:function(url,params,rdrObj){i f(typeof(rdrObj.url)=='undefined'||rdrObj.url==null||rdrObj.url==""){this._log(" redirect url was not defined or empty");return false}params.add('redirect',rdrOb j.url);return window.open(this._getRedirectUrl(url,params),rdrObj.name,rdrObj.sp ecs)},_getRedirectUrl:function(url,params){var request=new lpRequest(lpConnLib.p rotocolVer,url,params,null,false,null,lpConnLib.prunIdentify,5,"UTF-8",lpConnLib .browser,false,null,undefined,0,0,true,false,undefined,undefined,undefined,undef ined);request.BuildCallUrl('get',lpConnLib.maxurlgetlength,true);return request. fullUrl},_objectClone:function(source,target){var key;for(key in source){target[ key]=source[key]}},_log:function(msg,type){type=(type?type:'DEBUG');if(typeof(lp MTagDebug)!='undefined'&&typeof(lpMTagDebug.Display)=='function'){lpMTagDebug.Di splay(msg,type,'LiveEngage.Report')}},sendImpression:function(appId,strData){ret urn this._sendEvent(appId,this.type.impression,strData)},sendEngagement:function (appId,strData,redirectData){return this._sendEvent(appId,this.type.engage,strDa ta,redirectData)}}}};staticButton.prototype.log=function(msg,level){if(typeof(lp MTagDebug)!='undefined'&&lpMTagDebug.Display){lpMTagDebug.Display(msg,level,'STA TIC_BUTTON')}};staticButton.prototype.Clicked=function(){if(!this.EventHandler(' click')){return true}var fileCmd=(this.config.chanel==this.CHAT)?'visitorWantsTo Chat':'visitorWantsToTalk';this.winURL=this.protocol+'://'+this.server+'/'+this. servlet+this.site+'/?cmd=file&file='+fileCmd+'&site='+this.site;if(this.config.r

outingSkill>0){this.winURL+='&SV!skill='+encodeURIComponent(this.config.routingS killName)}if(this.config.routingAgent>0){this.winURL+='&SV!opid='+this.config.ro utingAgent}this.winURL=(typeof(lpAppendVisitorCookies)!='undefined'?lpAppendVisi torCookies(this.winURL):this.winURL);this.winURL=((typeof(lpMTag)!='undefined'&& typeof(lpMTag.addFirstPartyCookies)!='undefined')?lpMTag.addFirstPartyCookies(th is.winURL):this.winURL);this.winURL+=this.GetClickString();this.winURL+=this.Get UDEString();if(this.config.chanel==this.CHAT){this.winURL+="&LEAppKey="+this.LEA ppID}if(this.config.buttonType==this.CHATBOX){var el=document.getElementById('lp _msgfield'+this.randomNum);if(el!=null){if(typeof(this.config.blockCCPattern)!=' undefined'){el.value=el.value.replace(this.config.blockCCPattern,"************** **")}this.winURL+='&SV!message='+el.value}this.winURL+='&SV!survey_pre-chat_enab le=Off';this.winURL+='&SV!source=chatbox'}this.winURL+='&referrer='+escape(docum ent.location);this.winURL+='&bId='+this.buttonId;if(this.winURL.length>2000){thi s.winURL=this.winURL.substr(0,2000)}if(!this.EventHandler('windowOpen')){return true}if(this.embedded&&window.addEventListener&&this.config.chanel==this.CHAT){i f(typeof(window.lpMTagStatic.frameAPI)!='undefined'&&typeof(window.lpMTagStatic. frameAPI.openFrame)=='function'){var options={src:this.winURL,width:this.windowW idth,height:this.windowHeight,title:"Chat"};window.lpMTagStatic.frameAPI.openFra me(options);return false}else{this.log("frameAPI is undefined - unable to embed chat","ERROR")}}window.open(this.winURL,this.targetPrefix+this.site,'width='+thi s.windowWidth+',height='+this.windowHeight+',resizable=yes');return false};stati cButton.prototype.EventHandler=function(ev){this.log('staticButton '+this.button Name+' objName='+this.objName+' EVENT: '+ev+' STATE:'+this.state,'DEBUG');var t hat=this;if(ev=='start'){this.mTagEvent('LP_STATBUTTON_START')}else if(ev=='befo reDisplay'){this.mTagEvent('LP_STATBUTTON_SHOWN')}else if(ev=='click'){this.mTag Event('LP_STATBUTTON_CLICKED')}else if(ev=='state'){this.mTagEvent('LP_STATBUTTO N_STATE')}if(typeof(lpMTagStatic.chatButtonEventHandler)=='function'){return lpM TagStatic.chatButtonEventHandler(ev,that,this.buttonName,this.buttonId)}return t rue};staticButton.prototype.GetObj=function(id){if(document.getElementById){retu rn document.getElementById(id)}else{if(document.all){return document.all(id)}}}; staticButton.prototype.makeItSticky=function(){if(this.config.stickyType!=this.T OP_LEFT&&this.config.stickyType!=this.TOP_RIGHT&&this.config.stickyType!=this.BO TTOM_LEFT&&this.config.stickyType!=this.BOTTOM_RIGHT){return}var div=this.GetObj (this.divID);if(div!=null){div.style.position='fixed';if(this.config.stickyType= =this.TOP_LEFT){div.style.top=0;div.style.left=0}else if(this.config.stickyType= =this.TOP_RIGHT){div.style.top=0;div.style.right=0}else if(this.config.stickyTyp e==this.BOTTOM_LEFT){div.style.bottom=0;div.style.left=0}else if(this.config.sti ckyType==this.BOTTOM_RIGHT){div.style.bottom=0;div.style.right=0}}};staticButton .prototype.getStateStr=function(state){if(state==this.ONLINE){return 'online'}el se if(state==this.OFFLINE){return 'offline'}else if(state==this.OCCUPIED){return 'busy'}else if(state==this.AWAY){return 'away'}};staticButton.prototype.mTagEve nt=function(evName){if(typeof(lpMTag)!='undefined'&&typeof(lpMTag.events)!='unde fined'&&typeof(lpMTag.events.publish)=='function'){var stateStr=this.getStateStr (this.state),evData={id:this.buttonId,name:this.buttonName,channel:(this.config. chanel==this.VOICE?'voice':'chat'),buttonState:stateStr};lpMTag.events.publish(e vName,evData)}};staticButton.prototype.addStyleSheet=function(css){for(var i=0;i <css.length;i++){var selector=css[i].name,els=[];if(selector.indexOf('#')==0){el s[0]=this.GetObj(selector.substr(1));if(els[0]==null){els=[]}}else{els=document. getElementsByClassName(selector.substr(1))}if(els==null){this.log('NO ELEMENTS F OUND FOR SELECTOR:'+selector,'DEBUG');return}this.log('SELECTOR:'+selector+' fou nd:'+els.length+' css='+css[i].css,'DEBUG');for(var cnt=0;cnt<els.length;cnt++){ var cssRules=this.getCss(css[i].css);this.applyCssToEl(els[cnt],cssRules)}}};sta ticButton.prototype.applyCssToEl=function(el,cssRules){var st=el.style;if(st){fo r(var i=0;i<cssRules.length;i++){st[cssRules[i].name]=cssRules[i].value}}};stati cButton.prototype.getCss=function(rules){var r=rules.split(';'),css=[];for(var i =0;i<r.length;i++){if(r[i]!=''){var pos=r[i].indexOf(':'),cName=r[i].substr(0,po s),cValue=r[i].substr(pos+1);cName=this.trim(cName);cName=this.fixCssNames(cName );css[i]={"name":cName,"value":this.trim(cValue)};}}return css};staticButton.pro totype.fixCssNames=function(cssName){cssName=cssName.replace(/z-index/g,'zIndex' );cssName=cssName.replace(/margin-bottom/g,'marginBottom');cssName=cssName.repla

ce(/margin-left/g,'marginLeft');cssName=cssName.replace(/margin-right/g,'marginR ight');cssName=cssName.replace(/margin-top/g,'marginTop');cssName=cssName.replac e(/margin-bottom/g,'marginBottom');cssName=cssName.replace(/background-color/g,' backgroundColor');cssName=cssName.replace(/list-style/g,'listStyle');cssName=css Name.replace(/font-family/g,'fontFamily');cssName=cssName.replace(/font-style/g, 'fontStyle');cssName=cssName.replace(/font-variant/g,'fontVariant');cssName=cssN ame.replace(/font-weight/g,'fontWeight');cssName=cssName.replace(/font-size/g,'f ontSize');cssName=cssName.replace(/line-height/g,'lineHeight');cssName=cssName.r eplace(/text-align/g,'textAlign');cssName=cssName.replace(/text-decoration/g,'te xtDecoration');cssName=cssName.replace(/text-indent/g,'textIndent');cssName=cssN ame.replace(/text-transform/g,'textTransform');cssName=cssName.replace(/vertical -align/g,'verticalAlign');cssName=cssName.replace(/padding-left/g,'paddingLeft') ;cssName=cssName.replace(/padding-right/g,'paddingRight');cssName=cssName.replac e(/padding-top/g,'paddingTop');cssName=cssName.replace(/padding-bottom/g,'paddin gBottom');cssName=cssName.replace(/background-repeat/g,'backgroundRepeat');retur n cssName};staticButton.prototype.trim=function(str){return str.replace(/^\s\s*/ ,'').replace(/\s\s*$/,'')};if(!window.lpMTagConfig){window.lpMTagConfig={}}if(!w indow.lpMTagStatic){window.lpMTagStatic={}}if(typeof(window.lpMTagConfig.frameAP I)=='undefined'){window.lpMTagConfig.frameAPI=window.lpMTagStatic.frameAPI=(func tion(){var overlayWrapper,imgPath,standByWrapper,template,timer,frame=null,frame Title,resizeBtn,closeBtn,minMaxBtn,popBtn,closeImg,minImg,popImg,isDragging=fals e,isResizing=false,callbacks,overlayAttr={pending:false,styleLoaded:false,isMini mize:false,top:10,left:10,offsetX:0,offsetY:0,src:null,title:"LP Chat",barLocati on:"BR",dimensions:{width:400,minWidth:200,minHeight:200,height:300,titleHeight: 30}};function init(options){loadStyle(options.skin);imgPath=options.imagesPath;v ar display='display: none;';if(options.showPopOut){display=''}template="<div cla ss='LP_UNSELECTABLE_TXT' style='' id='LP_FRAME_TITLE'><span class='titleText'></ span><button id='lp_closeChatButton' title='close' tabIndex=\"999\" ><img alt='c lose' class='closeBtn' src=\""+imgPath+"/close-normal.png\" ></button><button id ='lp_minChatButton' tabIndex=\"998\" title='minimize-maximize' ><img alt='minimi ze-maximize' src=\""+imgPath+"/minimize-normal.png\" class='minBtn' ></button><b utton id='lp_popChatButton' title='pop out' style='"+display+"' tabIndex=\"997\" ><img alt='pop out' src=\""+imgPath+"/popout-normal.png\" class='popBtn' style= '"+display+"'></button></div><div><div class='resizeMsk' title='resize'></div><i mg src=\""+imgPath+"/resize.png\" class='resizeBtn' alt='resize'><iframe scrolli ng='auto'></iframe></div>";callbacks={"closeFrame":closeFrame};}function renderO verlay(){overlayAttr.pending=false;overlayWrapper=document.createElement("DIV"); overlayWrapper.id="LP_CHAT_DIALOG";overlayWrapper.innerHTML=template;overlayWrap per.style.top=overlayAttr.top+"px";overlayWrapper.style.left=overlayAttr.left+"p x";overlayWrapper.style.zIndex=getMaxZIndex();overlayWrapper.className="LP_CHAT_ DIALOG LP_UNSELECTABLE_TXT";frame=overlayWrapper.getElementsByTagName("IFRAME")[ 0];frame.src=overlayAttr.src;frame.name=overlayAttr.hostOrigin;setDimensions();s etDialogUI();addUIListeners();if(standByWrapper!=null){standByWrapper.parentNode .removeChild(standByWrapper);standByWrapper=null}document.body.appendChild(overl ayWrapper)}function renderStandBy(){var vp=getViewPortSize();standByWrapper=docu ment.createElement("DIV");standByWrapper.innerHTML="Loading ...";standByWrapper. style.borderRadius="5px";standByWrapper.style.display="block";standByWrapper.sty le.border="1px solid #CCC";standByWrapper.style.position="fixed";standByWrapper. style.width=overlayAttr.dimensions.width+"px";standByWrapper.style.height=overla yAttr.dimensions.height+"px";standByWrapper.style.top=overlayAttr.top+"px";stand ByWrapper.style.left=overlayAttr.left+"px";standByWrapper.style.boxShadow="0 1px 5px 0 rgba(0, 0, 0, 0.3)";standByWrapper.style.fontFamily="arial";standByWrappe r.style.textAlign="center";standByWrapper.style.paddingTop="30px";standByWrapper .style.backgroundColor="white";document.body.appendChild(standByWrapper)}functio n setDimensions(){if(!overlayAttr.isMinimize){var dimensions=overlayAttr.dimensi ons;overlayWrapper.style.width=dimensions.width+"px";overlayWrapper.style.height =dimensions.height+"px";frame.style.width=(dimensions.width)+"px";frame.style.he ight=(dimensions.height-dimensions.titleHeight-1)+"px"}}function setDialogUI(){f rameTitle=overlayWrapper.querySelector("#LP_FRAME_TITLE");closeImg=frameTitle.qu erySelector(".closeBtn");closeBtn=frameTitle.querySelector("#lp_closeChatButton"

);minImg=frameTitle.querySelector(".minBtn");minMaxBtn=frameTitle.querySelector( "#lp_minChatButton");popImg=frameTitle.querySelector(".popBtn");popBtn=frameTitl e.querySelector("#lp_popChatButton");resizeBtn=overlayWrapper.querySelector(".re sizeBtn");frameTitle.style.height=overlayAttr.dimensions.titleHeight+"px";overla yWrapper.querySelector("#LP_FRAME_TITLE .titleText").innerHTML=overlayAttr.title ;bindSpriteImges([{btn:closeBtn,img:closeImg,hover:"close-hover.png",normal:"clo se-normal.png"},{btn:minMaxBtn,img:minImg,hover:"minimize-hover.png",normal:"min imize-normal.png"},{btn:popBtn,img:popImg,hover:"popout-hover.png",normal:"popou t-normal.png"}])}function bindSpriteImges(arrayOfImgElements){if(arrayOfImgEleme nts&&arrayOfImgElements.length>0){for(var i=0;i<arrayOfImgElements.length;i++){a rrayOfImgElements[i].btn.addEventListener("mouseover",changeImageSrc(arrayOfImgE lements[i].img,imgPath+"/"+arrayOfImgElements[i].hover));arrayOfImgElements[i].b tn.addEventListener("mouseout",changeImageSrc(arrayOfImgElements[i].img,imgPath+ "/"+arrayOfImgElements[i].normal))}}}function changeImageSrc(element,path){retur n function(){element.src=path}}function initOrigin(){sendMsg(getMsgJSON("setOrig in"))}function receiveMsg(e){try{if(e.origin==overlayAttr.origin){var msg=JSON.p arse(e.data);switch(msg.action){case "resizeTo":resize(msg.data.width,parseInt(m sg.data.height,10)+overlayAttr.dimensions.titleHeight);break;case "resizeBy":res ize(overlayAttr.dimensions.width+msg.data.width,overlayAttr.dimensions.height+ms g.data.height+overlayAttr.dimensions.titleHeight);break;case "endChat":callbacks [msg.callback]();break;case "setFrameLocation":overlayAttr.src=msg.data.location ;break;case "getFrameProperty":callbacks[msg.callback](msg.data.propValue);break }}}catch(e){console.log(e)}}function sendMsg(msgStr){try{if(overlayAttr.src){fra me.contentWindow.postMessage(msgStr,overlayAttr.src)}}catch(e){console.log(e)}}f unction getMsgJSON(action,data,callback){try{return JSON.stringify({action:actio n,data:data||null,callback:callback||null})}catch(e){console.log(e);return null} }function addUIListeners(){try{closeBtn.addEventListener("click",requestChatEnd) ;minMaxBtn.addEventListener("click",minimize);popBtn.addEventListener("click",po pOut);window.addEventListener("scroll",onScroll,false);window.addEventListener(" resize",onWinResize,false);addDragListeners();resizeBtn.addEventListener("moused own",startResize);window.addEventListener("mouseup",stopResize,false);window.add EventListener("mousemove",onResize,true);window.addEventListener("message",recei veMsg,false);frame.addEventListener("load",initOrigin);overlayWrapper.addEventLi stener("selectstart",preventSelection)}catch(e){console.log(e)}}function removeU IListeners(){try{closeBtn.removeEventListener("click",requestChatEnd);minMaxBtn. removeEventListener("click",minimize);popBtn.removeEventListener("click",popOut) ;window.removeEventListener("scroll",onScroll,false);window.removeEventListener( "resize",onWinResize,false);removeDragListeners();resizeBtn.removeEventListener( "mousedown",startResize);window.removeEventListener("mouseup",stopResize,false); window.removeEventListener("mousemove",onResize,true);window.removeEventListener ("message",receiveMsg,false);frame.removeEventListener("load",initOrigin);overla yWrapper.removeEventListener("selectstart",preventSelection)}catch(e){console.lo g(e)}}function addDragListeners(){try{frameTitle.addEventListener("mousedown",st artDrag,false);window.addEventListener("mouseup",stopDrag,false);window.addEvent Listener("mousemove",drag,true)}catch(e){console.log(e)}}function removeDragList eners(){try{frameTitle.removeEventListener("mousedown",startDrag,false);window.r emoveEventListener("mouseup",stopDrag,false);window.removeEventListener("mousemo ve",drag,true)}catch(e){console.log(e)}}function onWinResize(e){setMaxDimensions ();var vp=getViewPortSize();if(overlayAttr.isMinimize){overlayWrapper.style.top= (vp.height-45)+"px";overlayWrapper.style.left=(vp.width-220)+"px"}else{if(vp.hei ght<overlayAttr.dimensions.height){var screenHeight=vp.height-20;overlayAttr.dim ensions.height=parseFloat(screenHeight);setDimensions()}else{var screenHeight=vp .height-20;if(vp.height<790){overlayAttr.dimensions.height=parseFloat(screenHeig ht);setDimensions()}}overlayWrapper.style.top="10px";overlayWrapper.style.left=" 10px"}}function preventSelection(e){e.preventDefault();return false}function onS croll(e){if(timer){clearInterval(timer);timer=null}timer=setTimeout(makeFrameOpa que,200);overlayWrapper.style.opacity=0.7}function makeFrameOpaque(){var prop={d uration:500,element:overlayWrapper,prop:{opacity:1}};animateTo(prop)}function an imateTo(opt,callback){try{var from={};for(var i in opt.prop){if(opt.prop.hasOwnP roperty(i)){var suffix=opt.element.style[i].match(/\D{2}/);suffix=(suffix)?suffi

x[0]:0;from[i]={val:parseFloat(opt.element.style[i]),suffix:suffix}}}animate({ca llback:callback,duration:opt.duration||1000,delta:makeEaseOut(circ),step:functio n(delta){for(var i in opt.prop){if(opt.prop.hasOwnProperty(i)){var dir=(from[i]. val>opt.prop[i])?-1:1;opt.element.style[i]=parseFloat(from[i].val+(dir*Math.abs( (from[i].val-opt.prop[i])*delta)))+from[i].suffix}}}})}catch(e){console.log(e)}} function makeEaseOut(delta){return function(progress){return 1-delta(1-progress) };}function circ(progress){return 1-Math.sin(Math.acos(progress))}function anima te(opts){var start=new Date(),id=setInterval(function(){var timePassed=new Date( )-start,progress=timePassed/opts.duration;if(progress>1)progress=1;var delta=opt s.delta(progress);opts.step(delta);if(progress==1){clearInterval(id);if(opts.cal lback){opts.callback()}}},10)}function resize(width,height){width=(width>overlay Attr.dimensions.minWidth)?width:overlayAttr.dimensions.minWidth;height=(height>o verlayAttr.dimensions.minHeight)?height:overlayAttr.dimensions.minHeight;width=( width<overlayAttr.dimensions.maxWidth)?width:overlayAttr.dimensions.maxWidth;hei ght=(height<overlayAttr.dimensions.maxHeight)?height:overlayAttr.dimensions.maxH eight;overlayAttr.dimensions.width=parseFloat(width);overlayAttr.dimensions.heig ht=parseFloat(height);setDimensions()}function requestChatEnd(){sendMsg(getMsgJS ON("endChat",null,"closeFrame"));overlayWrapper.style.display="none";setTimeout( function(){if(frame){closeFrame(true)}},500)}function closeFrame(closeSession){v ar shouldCloseSession=closeSession,img=new Image(),src=overlayAttr.src,command=" cmd=windowUnloaded";if(shouldCloseSession){command=command+"&closeButtonClicked= true"}src=src.replace("cmd=file",command);img.src=src;removeUIListeners();overla yWrapper.parentNode.removeChild(overlayWrapper);frame=null}function minimize(){v ar vp=getViewPortSize();setDialogMode("min");switch(overlayAttr.barLocation){cas e "BR":var prop={duration:300,element:overlayWrapper,prop:{top:vp.height-45,left :vp.width-220,height:30,width:200}};animateTo(prop,hideFrame);break}}function hi deFrame(){frame.style.display="none"}function maximize(){frame.style.display="bl ock";setDialogMode("max");var prop={duration:300,element:overlayWrapper,prop:{to p:parseFloat(overlayAttr.top),left:parseFloat(overlayAttr.left),height:overlayAt tr.dimensions.height,width:overlayAttr.dimensions.width}};animateTo(prop,setDime nsions)}function setDialogMode(mod){switch(mod){case "min":overlayAttr.isMinimiz e=true;resizeBtn.style.display="none";minMaxBtn.className="maxBtn";minMaxBtn.rem oveEventListener("click",minimize);minMaxBtn.addEventListener("click",maximize); minMaxBtn.removeEventListener("mouseover",changeImageSrc(minImg,imgPath+"/minimi ze-hover.png"));minMaxBtn.removeEventListener("mouseout",changeImageSrc(minImg,i mgPath+"/minimize-normal.png"));minMaxBtn.addEventListener("mouseover",changeIma geSrc(minImg,imgPath+"/maximize-hover.png"));minMaxBtn.addEventListener("mouseou t",changeImageSrc(minImg,imgPath+"/maximize-normal.png"));window.removeEventList ener("scroll",onScroll,false);removeDragListeners();break;case "max":overlayAttr .isMinimize=false;resizeBtn.style.display="block";minMaxBtn.className="minBtn";m inMaxBtn.addEventListener("click",minimize);minMaxBtn.removeEventListener("click ",maximize);minMaxBtn.removeEventListener("mouseover",changeImageSrc(minImg,imgP ath+"/maximize-hover.png"));minMaxBtn.removeEventListener("mouseout",changeImage Src(minImg,imgPath+"/maximize-normal.png"));minMaxBtn.addEventListener("mouseove r",changeImageSrc(minImg,imgPath+"/minimize-hover.png"));minMaxBtn.addEventListe ner("mouseout",changeImageSrc(minImg,imgPath+"/minimize-normal.png"));window.add EventListener("scroll",onScroll,false);addDragListeners();break}}function getVie wPortSize(){var e=window,a='inner';if(!('innerWidth' in window)){a='client';e=do cument.documentElement||document.body}return{width:e[a+'Width'],height:e[a+'Heig ht']};}function popOut(){try{var suffix=(overlayAttr.src.indexOf("?")==-1)?"?pop _out=true":"&pop_out=true";closeFrame(false);overlayAttr.win=window.open(overlay Attr.src+suffix,"chatWin","height="+overlayAttr.dimensions.height+",width="+over layAttr.dimensions.width+",modal=yes,alwaysRaised=yes")}catch(e){console.log(e)} }function getMaxZIndex(){try{return 2147483647}catch(e){console.log(e);return 10 00}}function startResize(e){if(!isResizing){document._saveOndragstartFunction=do cument.ondragstart;document.ondragstart=function(){return false};isResizing=true ;overlayWrapper.querySelector(".resizeMsk").style.display="block";document.addEv entListener("selectstart",preventSelection)}}function stopResize(e){if(isResizin g){document.ondragstart=document._saveOndragstartFunction;delete document._saveO ndragstartFunction;isResizing=false;overlayWrapper.querySelector(".resizeMsk").s

tyle.display="none";document.removeEventListener("selectstart",preventSelection) }}function onResize(e){if(isResizing){var top=parseInt(overlayWrapper.style.top, 10),left=parseInt(overlayWrapper.style.left,10);resize(e.clientX-left+5,e.client Y-top+5)}}function startDrag(e){if(e.srcElement.parentNode.id!="LP_FRAME_TITLE") {overlayWrapper.querySelector(".resizeMsk").style.display="block";overlayAttr.vi ewPort=getViewPortSize();overlayAttr.offsetX=e.offsetX;overlayAttr.offsetY=e.off setY;isDragging=true;overlayWrapper.className="LP_DRAGGED_BOX_SHADOW";document.a ddEventListener("selectstart",preventSelection);overlayWrapper.style.top=(e.clie ntY-overlayAttr.offsetY-1)+"px";overlayWrapper.style.left=(e.clientX-overlayAttr .offsetX-1)+"px"}}function stopDrag(e){if(isDragging){var top=(e.clientY-overlay Attr.offsetY-1),left=(e.clientX-overlayAttr.offsetX-1);overlayWrapper.querySelec tor(".resizeMsk").style.display="none";isDragging=false;overlayWrapper.className ="LP_UNSELECTABLE_TXT";document.removeEventListener("selectstart",preventSelecti on);if(overlayAttr.viewPort.height>top+overlayAttr.dimensions.height&&top>0){ove rlayWrapper.style.top=top+"px"}if(overlayAttr.viewPort.width>left+overlayAttr.di mensions.width&&left>0){overlayWrapper.style.left=left+"px"}overlayAttr.top=pars eFloat(overlayWrapper.style.top);overlayAttr.left=parseFloat(overlayWrapper.styl e.left)}}function drag(e){if(isDragging){var top=(e.clientY-overlayAttr.offsetY) ,left=(e.clientX-overlayAttr.offsetX);if((overlayAttr.viewPort.height>top+overla yAttr.dimensions.height&&top>0)||(top<overlayAttr.top&&top>0)){overlayWrapper.st yle.top=top+"px"}else if(top>0){var maxTop=overlayAttr.viewPort.height-overlayAt tr.dimensions.height;overlayWrapper.style.top=maxTop+"px"}else{overlayWrapper.st yle.top=0+"px"}if((overlayAttr.viewPort.width>left+overlayAttr.dimensions.width& &left>0)||(left<overlayAttr.left&&left>0)){overlayWrapper.style.left=left+"px"}e lse if(left>0){var maxLeft=overlayAttr.viewPort.width-overlayAttr.dimensions.wid th;overlayWrapper.style.left=maxLeft+"px"}else{overlayWrapper.style.left=0+"px"} }}function loadStyle(path){try{var link=document.createElement("LINK");link.href =path;link.type="text/css";link.rel="stylesheet";link.addEventListener("load",fu nction(){overlayAttr.styleLoaded=true;if(overlayAttr.pending){renderOverlay()}}) ;document.getElementsByTagName("head")[0].appendChild(link)}catch(e){console.log (e)}}function setMaxDimensions(){var v=getViewPortSize(),padding=(overlayAttr.di mensions.titleHeight*2);overlayAttr.dimensions.maxHeight=v.height-padding-overla yAttr.top;overlayAttr.dimensions.maxWidth=v.width-overlayAttr.left-padding}funct ion isFrameOpen(){try{if(window.top!=window.self&&parent.document.getElementById ("LP_CHAT_DIALOG")){return true}else{return false}}catch(e){}return false}return {init:function(options){if(!isFrameOpen()){var finalOptions={};finalOptions.serv er=options.server;finalOptions.protocol=options.protocol||'https';finalOptions.c ssLocation=options.cssLocation||'/hcp/chatWindowSkins/frameChat/css/style.css';f inalOptions.skin=options.cssFullLink||finalOptions.protocol+"://"+finalOptions.s erver+finalOptions.cssLocation;finalOptions.imageLocation=options.imageLocation| |'/hcp/chatWindowSkins/frameChat/images';finalOptions.imagesPath=options.imagesP ath||finalOptions.protocol+'://'+finalOptions.server+finalOptions.imageLocation; finalOptions.showPopOut=options.showPopOut;init(finalOptions)}},openFrame:functi on(options){if(!isFrameOpen()){if(!frame){var hostDomain=document.location.toStr ing().match(/^https?:\/\/[^/]{1,}/);if(!hostDomain){console.log("Host origin not found for "+document.location.toString());return}overlayAttr.top=parseFloat(opt ions.top||overlayAttr.top);overlayAttr.left=parseFloat(options.left||overlayAttr .left);options.height=parseFloat(options.height);options.width=parseFloat(option s.width);setMaxDimensions();options.height=(options.height<overlayAttr.dimension s.maxHeight)?options.height:overlayAttr.dimensions.maxHeight;options.width=(opti ons.width<overlayAttr.dimensions.maxWidth)?options.width:overlayAttr.dimensions. maxWidth;overlayAttr.src=options.src;overlayAttr.dimensions.width=parseFloat(opt ions.width);overlayAttr.dimensions.height=parseFloat(options.height)+overlayAttr .dimensions.titleHeight;overlayAttr.title=options.title||overlayAttr.title;overl ayAttr.origin=overlayAttr.src.match(/^https?:\/\/[^/]{1,}/)[0];overlayAttr.hostO rigin=hostDomain[0];if(overlayAttr.styleLoaded){renderOverlay()}else{overlayAttr .pending=true;renderStandBy()}}}},closeFrame:function(){closeFrame(true)},resize Frame:function(width,height){resize(width,height)},setTitle:function(title){over layAttr.title=title;setDialogUI()},setStyle:function(cssObj){}}})()}if (typeof(l pMTagStatic)=='undefined') {var lpMTagStatic={};} lpMTagStatic.lpStaticBut139460

3644715835754863123830829 = new staticButton('lpMTagStatic.lpStaticBut1394603644 715835754863123830829','lpButDivID-1348467363042','My Perfect Resume',55,{'id':5 5,'name':"My Perfect Resume",chanel:1,enabled:true,buttonType:1,voiceType:-1,sti ckyType:1,description:"My Perfect Resume - Static Button",buttonContent:2,addTex tToButton:false,addTextToButtonText:"Our <strong>live chat</strong> representati ves are<br />available to assist you<br /><strong>Mon-Fri 9am-5pm EST.</strong>< br /><br /><em>Click to chat wherever<br />you see this chat button!</em>",addTe xtToButtonPosition:1,routingSkill:69,routingSkillName:"MPR General",routingAgent :-1,mouseoverOnline:"Click here to chat live with an online representative",mous eoverOccupied:"All our live chat representatives are currently occupied. Please try again later or click here to leave us a message.",mouseoverOffline:"Our live chat service is currently offline. Please try again during business hours or c lick here to leave us a message.",defaultButton:false,imageFolder:"https://www.l ivecareer.com/liveperson/images/chat/mpr",chatBoxTemplate:"",chatBoxText:"",disp layTextOnline:"",displayTextOccupied:"",displayTextOffline:"",ude: [],cb_width:0 ,cb_height:0,cb_borderWidth:0,cb_borderColor:"",smartType:2,time_in_queue:10},4, "<table border='0' cellspacing='0' cellpadding='0' class='lpStaticButton' id='l pChatBtnTbl{RANDOMNUM}' style='display: none;'>\n \n <tr class='lpStaticBu ttonTR' id='lpStaticButtonTR{RANDOMNUM}'>\n \n <td align='center'> \n <a id='lpChatBtnHref{RANDOMNUM}'\n href='#'\n target='{targetPrefix}69789679'>\n <img id='lpChatBtnImgID {RANDOMNUM}' src='https://www.livecareer.com/liveperson/images/chat/mpr/{IMAGENA ME}'\n name='hcIconEMT' border=0 />\n </a>\n </td>\n \n </tr>\n <tr id='lpPoweredByTR{RANDOMNUM}' class='lpPow eredBy'>\n \n <td align='center'>\n <div class='lpPower edByDiv' id='lpPoweredByID{RANDOMNUM}'><span style='font-size:10px; font-family: Arial, Helvetica, sans-serif;'>\n <a href='http://solutions.liveperson.com/li ve-chat?cameFrom=chatByLink' style='text-decoration:none; color:#000' target='_b lank'>\n <b>Live Chat</b>\n </a>\n <span style=\"color:#000\"> by < /span>\n <a href='http://www.liveperson.com?cameFrom=chatByLink' style='textdecoration:none; color:#FF9900' target='_blank'>\n LivePerson\n </a>\n </span></div>\n </td>\n \n </tr>\n <tr id='emtStarRatingTR{R ANDOMNUM}' class='lpEmtStarRating'>\n\n <td align='center'>\n <a href= 'http://solutions.liveperson.com/customer-service/?site=69789679&domain=server.i ad.liveperson.net&origin=chatbutton' target='_blank'\n onClick=\"javas cript:window.open('http://solutions.liveperson.com/customer-service/?site=697896 79&domain=server.iad.liveperson.net&origin=chatbutton&referrer='+escape(document .location));return false;\">\n <img src='https://server.iad.liveperso n.net/hc/69789679/?cmd=rating&site=69789679&type=indicator' name='hcRating' alt= 'Customer Service Rating by LivePerson' border=0 />\n </a>\n </td>\n\n </tr>\n \n</table>\n",'server.iad.liveperson.net','69789679','https','hc/','4 75','400','chat','f907f2d9acd64b7f8c00b83bed3c2822',false,false)

Das könnte Ihnen auch gefallen