if(!window.pfx){pfx={};}if(!pfx.net){pfx.net={};}var _browser;if(window.opera){_browser="opera";}else{if(typeof navigator.vendor=="string"&&navigator.vendor=="KDE"){_browser="khtml";}else{if(typeof navigator.product=="string"&&navigator.product=="Gecko"){_browser="gecko";}else{if(/msie/i.test(navigator.userAgent)){_browser="mshtml";
}}}}_isMshtml=_browser=="mshtml";_isGecko=_browser=="gecko";_isOpera=_browser=="opera";_isKhtml=_browser=="khtml";pfx.net.HTTPRequest=function(){this.method=arguments[0];this.url=arguments[1];this.callback=arguments[2];this.context=arguments[3];this.headers=[];this.errors=[];this.status=0;this.statusText="";
var self=this;this.customOnReadyStateChange=function(){self._customOnReadyStateChange();};this.cancelOnReadyStateChange=function(i,msg){self._cancelOnReadyStateChange(i,msg);};};pfx.net.HTTPRequest._xml=[];pfx.net.HTTPRequest._xmlThis=[];pfx.net.HTTPRequest._xmlTimer=[];pfx.net.HTTPRequest._xmlTimerCount=[];
pfx.net.HTTPRequest._xmlTimerCountMax=1000;pfx.net.HTTPRequest._xmlTimerInterval=5;pfx.net.HTTPRequest.builtin=window.XMLHttpRequest?true:false;pfx.net.HTTPRequest.IFRAMES_NEVER=-1;pfx.net.HTTPRequest.IFRAMES_FALLBACK=0;pfx.net.HTTPRequest.IFRAMES_ONLY=1;pfx.net.HTTPRequest.prototype.iframes=pfx.net.HTTPRequest.IFRAMES_FALLBACK;
pfx.net.HTTPRequest.msXmlHttp=null;if(!pfx.net.HTTPRequest.builtin&&!_isOpera&&window.ActiveXObject){var msXmlHttpList=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"];var obj;for(var j=0;j<msXmlHttpList.length;
j++){try{obj=new ActiveXObject(msXmlHttpList[j]);pfx.net.HTTPRequest.msXmlHttp=msXmlHttpList[j];break;}catch(e){}}}pfx.net.HTTPRequest.activeX=typeof pfx.net.HTTPRequest.msXmlHttp=="string";pfx.net.HTTPRequest.prototype.start=function(content,headers,reqId){var i=pfx.net.HTTPRequest._xml.length;if(this.iframes!=pfx.net.HTTPRequest.IFRAMES_ONLY){if(pfx.net.HTTPRequest.builtin){try{pfx.net.HTTPRequest._xml[i]=new XMLHttpRequest();
}catch(e){pfx.net.HTTPRequest._xml[i]=null;if(this.iframes==pfx.net.HTTPRequest.IFRAMES_NEVER){throw new Error("HTTP_Request: Could not create XMLHttpRequest");}}}else{if(pfx.net.HTTPRequest.activeX){try{pfx.net.HTTPRequest._xml[i]=new ActiveXObject(pfx.net.HTTPRequest.msXmlHttp);}catch(e){pfx.net.HTTPRequest._xml[i]=null;
if(this.iframes==pfx.net.HTTPRequest.IFRAMES_NEVER){throw new Error("HTTP_Request: Could not create ActiveXObject "+pfx.net.HTTPRequest.msXmlHttp);}}}}if(typeof pfx.net.HTTPRequest._xml[i]!="undefined"){if(this.callback){try{var self=this;if(pfx.net.HTTPRequest.activeX){pfx.net.HTTPRequest._xml[i].onreadystatechange=function(){if(pfx.net.HTTPRequest._xml[i].readyState==4){var reqId;
try{reqId=pfx.net.HTTPRequest._xml[i].getResponseHeader("Request-Id");}catch(e){}var content=self._getResponse(pfx.net.HTTPRequest._xml[i]);if(content!=null){self.callback.call(self.context,content,reqId);}else{if(!pfx.net.HTTPRequest._xml[i].aborted){throw new Error("Empty response");}}pfx.net.HTTPRequest._xml[i]=null;
}};}else{pfx.net.HTTPRequest._xml[i].onreadystatechange=function(){if(pfx.net.HTTPRequest._xml[i].readyState==4){try{self.status=pfx.net.HTTPRequest._xml[i].status;self.statusText=pfx.net.HTTPRequest._xml[i].statusText;}catch(e){}if(self.status&&self.status>=400){throw new Error("HTTP_Request: Asynchronous call failed"+" (status "+self.status+", "+self.statusText+")");
}var reqId;try{reqId=pfx.net.HTTPRequest._xml[i].getResponseHeader("Request-Id");}catch(e){}var content=self._getResponse(pfx.net.HTTPRequest._xml[i]);if(content!=null){self.callback.call(self.context,content,reqId);}else{if(!pfx.net.HTTPRequest._xml[i].aborted){throw new Error("Empty response");}}pfx.net.HTTPRequest._xml[i]=null;
}};}}catch(e){pfx.net.HTTPRequest._xml[i]=null;throw new Error("HTTP_Request: Onreadystatechange failed");}}try{pfx.net.HTTPRequest._xml[i].open(this.method,this.url,this.callback?true:false);for(var j=0;j<this.headers.length;j++){try{pfx.net.HTTPRequest._xml[i].setRequestHeader(this.headers[j][0],this.headers[j][1]);
}catch(e){}}if(this.callback&&typeof reqId!="undefined"){try{pfx.net.HTTPRequest._xml[i].setRequestHeader("Request-Id",reqId.toString());}catch(e){}}pfx.net.HTTPRequest._xml[i].send(content);if(!this.callback){this.status=pfx.net.HTTPRequest._xml[i].status;this.statusText=pfx.net.HTTPRequest._xml[i].statusText;
return this._getResponse(pfx.net.HTTPRequest._xml[i]);}else{return true;}}catch(e){pfx.net.HTTPRequest._xml[i]=null;throw new Error("HTTP_Request: Call failed [Cause: "+e+"]");}}}if(this.iframes!=pfx.net.HTTPRequest.IFRAMES_NEVER&&!pfx.net.HTTPRequest._xml[i]&&document.createElement){if(!this.callback){throw new Error("HTTP_Request: Synchronous call by iframe not supported");
}try{var el;if(!(_isMshtml||_isOpera)){el=document.createElement("iframe");el.style.display="none";el.name="pfxreqiframe"+i;el.id="pfxreqiframe"+i;document.body.appendChild(el);}else{el=document.createElement("div");el.style.display="none";el.id="pfxreqdiv"+i;document.body.appendChild(el);document.getElementById("pfxreqdiv"+i).innerHTML="<"+'iframe id="pfxreqiframe'+i+'" name="pfxreqiframe'+i+'" style="display:block"><'+"/iframe>";
}var url=this.url;if(reqId){url=this.setQueryParameter(url,"PFX_Request_ID",reqId);}if(this.method.toLowerCase()=="get"){el.src=url;document.body.appendChild(el);var self=this;pfx.net.HTTPRequest._xmlTimer[i]=window.setInterval(self.customOnReadyStateChange,pfx.net.HTTPRequest._xmlTimerInterval);}else{if(this.method.toLowerCase()=="post"){el=document.createElement("div");
el.style.display="none";el.id="pfxreqformdiv"+i;pfx.net.HTTPRequest._xml[i]=this.callback;pfx.net.HTTPRequest._xmlThis[i]=this;pfx.net.HTTPRequest._xmlTimer[i]=true;pfx.net.HTTPRequest._xmlTimerCount[i]=0;var self=this;window.setTimeout(function(){var elForm=document.createElement("form");elForm.action=url;
elForm.target="pfxreqiframe"+i;elForm.method=self.method;elForm.id="pfxreqform"+i;var elField=document.createElement("textarea");elField.name="message";elField.value=content;elForm.appendChild(elField);for(var h=0;h<self.headers.length;h++){elField=document.createElement("input");elField.type="hidden";
elField.name=self.headers[h][0];elField.value=self.headers[h][1];elForm.appendChild(elField);}if(_isMshtml){elField=document.createElement("input");elField.type="hidden";elField.name="insertpi";elField.value="1";elForm.appendChild(elField);}el.appendChild(elForm);document.body.appendChild(el);document.getElementById("pfxreqform"+i).target="pfxreqiframe"+i;
window.setTimeout(function(){var form=document.getElementById("pfxreqform"+i);form.submit();},1);},1);pfx.net.HTTPRequest._xmlTimer[i]=window.setInterval(self.customOnReadyStateChange,pfx.net.HTTPRequest._xmlTimerInterval);}else{throw new Error("HTTP_Request: Iframes do not support method "+this.method);
}}return"iframe";}catch(e){throw new Error("HTTP_Request: Iframes failed"+e);}}throw new Error("HTTP_Request: Failure");};pfx.net.HTTPRequest.prototype.setRequestHeader=function(field,value){this.headers.push([field,value]);};pfx.net.HTTPRequest.prototype.setQueryParameter=function(url,field,value){url+=((url.indexOf("?")+1)?"&":"?")+field+"="+encodeURI(value);
return url;};pfx.net.HTTPRequest.prototype.getQueryParameter=function(url,field){var pairs=url.substr(url.indexOf("?")+1).split("&");var param;for(var i=0;i<pairs.length;i++){param=pairs[i].split("=");if(param[0]==field){return param[1];}}return null;};pfx.net.HTTPRequest.prototype._getResponse=function(request){var ctype=request.getResponseHeader("Content-Type");
if(ctype==null){if(request.status==0){request.aborted=true;return null;}throw new Error("Missing response content type");}else{if(ctype.indexOf("text/plain")==0||ctype.indexOf("text/html")==0){return request.responseText;}else{if(ctype.indexOf("text/xml")==0){return request.responseXML;}else{throw new Error("Illegal response content type: "+ctype);
}}}};pfx.net.HTTPRequest.prototype._customOnReadyStateChange=function(){var win=null;for(var i=0;i<pfx.net.HTTPRequest._xml.length;i++){if(pfx.net.HTTPRequest._xmlTimer[i]&&pfx.net.HTTPRequest._xml[i]){try{if(pfx.net.HTTPRequest._xmlTimerCount[i]<pfx.net.HTTPRequest._xmlTimerCountMax){win=window.frames["pfxreqiframe"+i];
if(win&&win.document&&win.location.href!="about:blank"&&(_isMshtml?win.document.readyState=="complete":true)){var resdoc=_isMshtml?win.document.body:win.document;var text=resdoc.getElementsByTagName("pre")[0].firstChild.nodeValue;pfx.net.HTTPRequest._xml[i].call(pfx.net.HTTPRequest._xmlThis[i].context,text,pfx.net.HTTPRequest._xmlThis[i].getQueryParameter(win.location.href,"PFX_Request_ID"));
this.cancelOnReadyStateChange(i);}else{pfx.net.HTTPRequest._xmlTimerCount[i]++;}}else{this.cancelOnReadyStateChange(i,"too many intervals "+i+", "+pfx.net.HTTPRequest._xmlTimerCount[i]);}}catch(e){this.cancelOnReadyStateChange(i,"Exception:"+e);}}}};pfx.net.HTTPRequest.prototype._cancelOnReadyStateChange=function(i,msg){try{window.clearInterval(pfx.net.HTTPRequest._xmlTimer[i]);
pfx.net.HTTPRequest._xmlTimer[i]=null;pfx.net.HTTPRequest._xml[i]=null;pfx.net.HTTPRequest._xmlThis[i]=null;pfx.net.HTTPRequest._xmlTimerCount[i]=0;}catch(e){msg="Could not cancel";}var el;try{if(el=document.getElementById("pfxreqiframe"+i)){document.body.removeChild(el);}}catch(e){}try{if(el=document.getElementById("pfxreqdiv"+i)){document.body.removeChild(el);
}}catch(e){}try{if(el=document.getElementById("pfxreqform"+i)){document.body.removeChild(el);}}catch(e){}try{if(el=document.getElementById("pfxreqformdiv"+i)){document.body.removeChild(el);}}catch(e){}if(msg){throw new Error("HTTP_Request: "+msg);}};
if(!window.pfx){pfx={};}if(!pfx.ws){pfx.ws={};}if(!pfx.ws.json){pfx.ws.json={};}pfx.ws.json.deserialize=function(response){if(this._debug==true){alert("Response: "+response);}eval("res="+response);return res;};pfx.ws.json.serialize=function(obj){var json=null;if(obj!=null){if(obj.constructor==String){json=pfx.ws.json.escapeJSONString(obj);
}else{if(obj.constructor==Number){json=obj.toString();}else{if(obj.constructor==Boolean){json=obj.toString();}else{if(obj.constructor==Date){json="new Date("+obj.valueOf()+")";}else{if(obj.constructor==Array){var arr=[];for(var i=0;i<obj.length;i++){arr.push(pfx.ws.json.serialize(obj[i]));}json="["+arr.join(",")+"]";
}else{var arr=[];for(attr in obj){var attrObj=obj[attr];if(attrObj==null){arr.push('"'+attr+'": null');}else{if(typeof attrObj!="function"){arr.push(pfx.ws.json.escapeJSONString(attr)+":"+pfx.ws.json.serialize(attrObj));}}}json="{"+arr.join(",")+"}";}}}}}}else{json="null";}return json;};pfx.ws.json.escapeJSONChar=function(ch){if(ch=='"'||ch=="\\"){return"\\"+ch;
}else{if(ch=="\b"){return"\\b";}else{if(ch=="\f"){return"\\f";}else{if(ch=="\n"){return"\\n";}else{if(ch=="\r"){return"\\r";}else{if(ch=="\t"){return"\\t";}}}}}}var hex=ch.charCodeAt(0).toString(16);if(hex.length==1){return"\\u000"+hex;}else{if(hex.length==2){return"\\u00"+hex;}else{if(hex.length==3){return"\\u0"+hex;
}else{return"\\u"+hex;}}}};pfx.ws.json.replaceCallbackSupport=null;pfx.ws.json.escapeJSONString=function(str){if(pfx.ws.json.replaceCallbackSupport==null){if(navigator.userAgent.indexOf("Safari")!=-1){pfx.ws.json.replaceCallbackSupport=false;}else{pfx.ws.json.replaceCallbackSupport=true;}}if(pfx.ws.json.replaceCallbackSupport){return'"'+str.replace(/([^\u0020-\u007f]|[\\\"])/g,pfx.ws.json.escapeJSONChar)+'"';
}else{var escStr=[];for(var i=0;i<str.length;i++){if(str.charAt(i)=='"'||str.charAt(i)=="\\"||str.charCodeAt(i)<32||str.charCodeAt(i)>=128){escStr[i]=pfx.ws.json.escapeJSONChar(str.charAt(i));}else{escStr[i]=str.charAt(i);}}return'"'+escStr.join("")+'"';}};pfx.ws.json.BaseStub=function(service,context,scope,requestPath){this._service=service;
this._context=context;this._scope=scope;this._requestPath=requestPath;this._protocol="jsonws";this._uri=null;};pfx.ws.json.BaseStub.prototype.setService=function(service){this._service=service;this._uri=null;};pfx.ws.json.BaseStub.prototype.setContext=function(context){this._context=context;};pfx.ws.json.BaseStub.prototype.setRequestPath=function(requestPath){this._requestPath=requestPath;
this._uri=null;};pfx.ws.json.BaseStub.prototype.setDebug=function(debug){this._debug=debug;};pfx.ws.json.BaseStub.prototype.getURI=function(){if(this._uri==null){var session="";var matches=window.location.href.match(/;jsessionid=[A-Z0-9]+(\.[a-zA-Z0-9]+)?/);if(matches){session=matches[0];}var reqpath=this._requestPath+"/"+this._service;
this._uri=window.location.protocol+"//"+window.location.host+reqpath+session;}return this._uri;};pfx.ws.json.BaseStub.prototype.callMethod=function(method,args,expLen){var wsCall=new pfx.ws.json.Call(this.getURI(),this._context,this._scope,this._debug);return wsCall.invoke(method,args,expLen);};pfx.ws.json.DynamicProxy=function(service,context){pfx.ws.json.BaseStub.call(this,service,context);
this._proxySetup();};pfx.ws.json.DynamicProxy.prototype=new pfx.ws.json.BaseStub;pfx.ws.json.DynamicProxy.prototype._proxySetup=function(){var req=new pfx.net.HTTPRequest("POST",this.getURI()+"?json",this._proxySetupCB,this);req.setRequestHeader("wstype",this._protocol);req.start("",0);};pfx.ws.json.DynamicProxy.prototype._proxySetupCB=function(response){eval("response="+response);
var methods=response.result;for(var i=0;i<methods.length;i++){this._createMethod(methods[i]);}};pfx.ws.json.DynamicProxy.prototype._createMethod=function(name){var f=function(){return f.ownerObject._callMethod.call(f.ownerObject,f.methodName,arguments);};f.ownerObject=this;f.methodName=name;this[name]=f;
};pfx.ws.json.DynamicProxy.prototype._callMethod=function(method,args){var wsCall=new pfx.ws.json.Call(this.getURI(),this._context,this._debug);return wsCall.invoke(method,args);};pfx.ws.json.Call=function(uri,context,scope,debug){this._uri=uri;this._context=context;this._scope=scope;this._debug=debug;
this._opName=null;this._userCallback=null;};pfx.ws.json.Call.prototype.invoke=function(method,args,expLen){this._opName=method;var jsonReq={};jsonReq.method=method;var argLen=args.length;if(expLen){if(argLen==expLen+1){if(typeof args[argLen-1]=="function"||typeof args[argLen-1]=="object"){this._userCallback=args[argLen-1];
}else{this._requestId=args[argLen-1];}argLen=argLen-1;}else{if(argLen==expLen+2&&(typeof args[argLen-2]=="function"||typeof args[argLen-2]=="object")&&typeof args[argLen-1]=="string"){this._userCallback=args[argLen-2];this._requestId=args[argLen-1];argLen=argLen-2;}else{if(argLen!=expLen){throw new Error("Wrong number of arguments: "+argLen+" - "+expLen);
}}}}else{if(argLen>0&&typeof args[argLen-1]=="function"){this._userCallback=args[argLen-1];argLen=argLen-1;}else{if(argLen>1&&typeof args[argLen-2]=="function"){this._requestId=args[argLen-1];this._userCallback=args[argLen-2];argLen=argLen-2;}}}if(this._requestId){jsonReq.id=this._requestId;}var jsonParams=[];
for(var i=0;i<argLen;i++){jsonParams[i]=args[i];}jsonReq.params=jsonParams;var jsonStr=pfx.ws.json.serialize(jsonReq);if(this._debug==true){alert("Request: "+jsonStr);}if(this._userCallback||this._context){var httpReq=new pfx.net.HTTPRequest("POST",this._uri,this.callback,this);httpReq.setRequestHeader("Content-Type","text/plain");
httpReq.setRequestHeader("wstype","jsonws");httpReq.start(jsonStr,null,jsonReq.id);}else{var httpReq=new pfx.net.HTTPRequest("POST",this._uri);httpReq.setRequestHeader("Content-Type","text/plain");httpReq.setRequestHeader("wstype","jsonws");var response=httpReq.start(jsonStr,null,jsonReq.id);return this.callback(response);
}};pfx.ws.json.Call.prototype.callback=function(text){var res=pfx.ws.json.deserialize(text);if(res.error){var error=new Error();error.name=res.error.name;error.message=res.error.message;if(this._userCallback){this._userCallback(null,res.id,error);}else{if(this._context){this._context[this._opName].call(this._scope?this._scope:this._context,null,res.id,error);
}else{throw error;}}}else{if(this._userCallback){this._userCallback(res.result,res.id,null);}else{if(this._context){this._context[this._opName].call(this._scope?this._scope:this._context,res.result,res.id,null);}else{return res.result;}}}};
//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/keyevent-min.js
(function(){var a=window.qxWeb.$$qx;a.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});a.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){a.Bootstrap.define("baselib.KeyEvent",{defer:function(){if(qxWeb.env.get("qx.debug")&&window.console){var a;a="This 'key-event' module contains no longer any implementation code! It is only added for migration purpose. Please make sure to remove this module from your configuration!";window.console.warn(a)}}})})()})();

//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/dataset-min.js
(function(){var c=window.qxWeb.$$qx;c.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});c.$$packageData["0"]={locales:{},resources:{},translations:{C:{},en:{}}};(function(){c.Bootstrap.define("qx.module.Dataset",{statics:{setData:function(a,b){this._forEachElement(function(d){c.bom.element.Dataset.set(d,a,b)});return this},getData:function(a){if(this[0]&&1===this[0].nodeType)return c.bom.element.Dataset.get(this[0],a)},getAllData:function(){return this[0]&&1===this[0].nodeType?
c.bom.element.Dataset.getAll(this[0]):{}},removeData:function(a){this[0]&&1===this[0].nodeType&&c.bom.element.Dataset.remove(this[0],a);return this}},defer:function(a){qxWeb.$attach({getData:a.getData,setData:a.setData,removeData:a.removeData,getAllData:a.getAllData})}})})();(function(){c.Bootstrap.define("qx.bom.element.Dataset",{statics:{set:function(a,b,d){a.dataset?(b=c.lang.String.camelCase(b),null==d?delete a.dataset[b]:a.dataset[b]=d):(void 0===d&&(d=null),c.bom.element.Attribute.set(a,"data-"+
c.lang.String.hyphenate(b),d))},get:function(a,b){if(a.dataset)return b=c.lang.String.camelCase(b),a.dataset[b]?a.dataset[b]:void 0;var d="data-"+c.lang.String.hyphenate(b);return a.hasAttribute(d)?c.bom.element.Attribute.get(a,d):void 0},getAll:function(a){if(a.dataset)return a.dataset;for(var b={},d=a.attributes,e=0;e<d.length;e++)d[e].name.match(/^data-(.*)/)&&(b[c.lang.String.camelCase(RegExp.$1)]=a.getAttribute(d[e].name));return b},remove:function(a,b){this.set(a,b,void 0)}}})})()})();

//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/viewportevent-min.js
(function(){var b=window.qxWeb.$$qx;b.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});b.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){b.Bootstrap.define("baselib.event.Viewport",{statics:{__LQ:!1,__EO:[],isElementInViewport:function(a){a=a.getBoundingClientRect();return(0<=a.top&&a.top<=b.bom.Viewport.getHeight()||0<=a.bottom&&a.bottom<=b.bom.Viewport.getHeight())&&(0<=a.left&&a.left<=b.bom.Viewport.getWidth()||0<=a.right&&a.right<=b.bom.Viewport.getWidth())},
viewportVisibilityChange:function(a,b){var d=baselib.event.Viewport.isElementInViewport(this);if(a.__Rg!=baselib.event.Viewport.isElementInViewport(this)){a.__Rg=baselib.event.Viewport.isElementInViewport(this);var e=b||qxWeb(this),c=this.getBoundingClientRect();a.call(e,{visible:d,viewportOffset:{top:c.top,bottom:c.bottom,left:c.left,right:c.right}})}},registerViewPortEvent:function(a,b,d,e){var c=baselib.event.Viewport;d.__Rg=c.isElementInViewport(a);d.__Rh=c.__EO.length;c.__EO.push(c.viewportVisibilityChange.bind(a,
d,e));if(!c.__LQ)qxWeb(window).on("scroll",function(){for(var b=0;b<c.__EO.length;b++)c.__EO[b]&&c.__EO[b].call(a)});c.__LQ=!0},unregisterViewPortEvent:function(a,b,d){delete baselib.event.Viewport.__EO[d.__Rh];delete d.__Rh;delete d.__Rg}},defer:function(a){qxWeb.$registerEventHook("viewportVisibilityChange",a.registerViewPortEvent,a.unregisterViewPortEvent)}})})()})();

//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/widget-min.js
(function(){var e=window.qxWeb.$$qx;e.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});e.$$packageData["0"]={locales:{},resources:{},translations:{C:{},en:{}}};(function(){e.Bootstrap.define("qx.ui.website.Widget",{extend:qxWeb,statics:{widget:function(){var a=new e.ui.website.Widget(this);a.init();return a},create:function(a){return new e.ui.website.Widget(qxWeb.create(a))},$onFirstCollection:function(a,b,c,d){var f=this.classname.replace(/\./g,"-")+"-context";this.getProperty(f)||
this.setProperty(f,c);c=this.getProperty(f);if(!this.hasListener(a,b,c))this.on(a,b,c,d);return this},$offFirstCollection:function(a,b,c,d){var f=this.classname.replace(/\./g,"-")+"-context";this._forEachElementWrapped(function(c){var e=c.getProperty(f);c.off(a,b,e,d)});return this},initWidgets:function(a){var b=qxWeb("*[data-qx-class]");a&&(b=b.filter(a));b._forEachElementWrapped(function(a){a.init()})}},construct:function(a,b){var c=qxWeb.call(this,a,b);Array.prototype.push.apply(this,Array.prototype.slice.call(c,
0,c.length))},members:{__bY:null,init:function(){if(this.getProperty("$$qx-widget-initialized"))return!1;this.setAttribute("data-qx-class",this.classname);this.addClass("qx-widget");this.addClass(this.getCssPrefix());this.setProperty("$$qx-widget-initialized",!0);return!0},getCssPrefix:function(){if(!this.__bY){var a=this.classname.split(".");this.__bY="qx-"+a[a.length-1].toLowerCase()}return this.__bY},setEnabled:function(a){this.setAttribute("disabled",!a);this.find("*").setAttribute("disabled",
!a);return this},getEnabled:function(){return!this.getAttribute("disabled")},setTemplate:function(a,b){return this._setData("templates",a,b)},setConfig:function(a,b){return this._setData("config",a,b)},_setData:function(a,b,c){this.forEach(function(d){d[a]||(d[a]={});d[a][b]=c});return this},getTemplate:function(a){return this._getData("templates",a)},getConfig:function(a){return this._getData("config",a)},_getData:function(a,b){var c=this.getProperty(a),d;c&&(d=c[b]);if(void 0===d&&"config"==a){c=
"qx"+qxWeb.string.firstUp(a)+qxWeb.string.firstUp(b);d=this.getData(c);if(!this[0]||!this[0].dataset&&null===d)d=void 0;try{d=JSON.parse(d)}catch(e){}}return void 0===d&&this.constructor["_"+a]?this.constructor["_"+a][b]:d},render:function(){return this},dispose:function(){this.removeAttribute("data-qx-class");this.setProperty("config",void 0);this.setProperty("templates",void 0);var a=this.classname.replace(/\./g,"-")+"-context";this.setProperty(a,void 0);this.setProperty("$$qx-widget-initialized",
void 0);this.removeClass("qx-widget");this.removeClass(this.getCssPrefix());for(var b in this.constructor.$$events)this.allOff(b);return qxWeb.$init(this,qxWeb)}},defer:function(a){qxWeb.$attach({$onFirstCollection:a.$onFirstCollection,$offFirstCollection:a.$offFirstCollection,widget:a.widget});qxWeb.$attachStatic({initWidgets:a.initWidgets})}})})()})();

//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/autocompletion-min.js
(function(){var l=window.qxWeb.$$qx;l.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});l.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){l.Bootstrap.define("baselib.AutoCompletionBox",{extend:l.ui.website.Widget,construct:function(a,b){l.ui.website.Widget.call(this,a,b)},events:{search:"Object",searchStart:"Object",searchEnd:"Object",selected:"Object",render:"Object"},statics:{_config:{autoWidth:!0,useExternalCss:!1,beginAutoComplete:3,searchCaseSensitive:!1,
matchAtStart:!0,filterData:!0,noResultsContent:"",maxResults:15,ignorePattern:null,groupBy:null},__Nj:"qui-autocompletion-resultBox qx-autocompletionbox-resultbox",__Nk:"qui-autocompletion-resultList qx-autocompletionbox-resultlist",__Nl:"qui-autocompletion-resultListContainer qx-autocompletionbox-resultlistcontainer",__Nm:"qui-autocompletion-resultInfoBox qx-autocompletionbox-resultinfobox",__Nn:"qui-autocompletion-noResults qx-autocompletionbox-noresults",__No:"qui-autocompletion-maxResultsInfo qx-autocompletionbox-maxresultsinfo",
__Np:"qui-autocompletion-resultListEntry qx-autocompletionbox-resultlistentry",__Nq:"qui-autocompletion-resultListEntry-selected qx-autocompletionbox-resultlistentry-selected",__Nr:"qui-autocompletion-resultListEntry-firstPart qx-autocompletionbox-resultlistentry-firstpart",__Ns:"qui-autocompletion-resultListEntry-secondPart qx-autocompletionbox-resultlistentry-secondpart",__Nt:"qui-autocompletion-resultListEntry-highlight qx-autocompletionbox-resultlistentry-highlight",__Nu:"qx-autocompletionGroup-555",
_templates:{single:'<ul class="qui-autocompletion-resultList qx-autocompletionbox-resultlist">{{#items}}<li class="qui-autocompletion-resultListEntry qx-autocompletionbox-resultlistentry" id="{{id}}"><span class="qui-autocompletion-resultlistentry-secondPart qx-autocompletionbox-resultlistentry-secondpart">{{& secondpart}}</span></li>{{/items}}</ul>',multiple:'<ul class="qui-autocompletion-resultList qx-autocompletionbox-resultlist">{{#items}}<li class="qui-autocompletion-resultlistentry qx-autocompletionbox-resultlistentry" id="{{id}}"><span class="qui-autocompletion-resultListEntry-firstPart qx-autocompletionbox-resultlistentry-firstpart">{{& firstpart}}</span><span class="qui-autocompletion-resultListEntry-secondPart qx-autocompletionbox-resultlistentry-secondpart">{{& secondpart}}</span></li>{{/items}}</ul>',
itemContent:null,dataSource:{},group:{},maxResultsInfo:"<label>Show more results for '{{ input }}'</label>"},__Nv:{Up:!0,Down:!0,Enter:!0,Tab:!0,Escape:!0},autocompletionbox:function(a,b){var c=new baselib.AutoCompletionBox(this);c.__Nw(a);a&&(c.setProperty("__dataSource",a),c.setConfig("useExternalCss",b));c.init();return c}},members:{init:function(){if(!l.ui.website.Widget.prototype.init.call(this))return!1;this.__NV();var a=this.getConfig("useExternalCss");this.setUseExternalCss(void 0===a?!1:
a);this.__le();this.getProperty("__dataSource")&&this.setDataSource(this.getProperty("__dataSource"));return!0},render:function(){!this.__NW("useExternalCss")&&this.getConfig("useExternalCss")?qxWeb.includeStylesheet("qui/static/autoCompletionBox.css"):!this.getConfig("useExternalCss")&&this.__NW("useExternalCss");this.__NV();if(this.__NW("groupBy")){this.__Nz();var a=this.getProperty("__templateCache");if(a)for(var b in a)this.__NA(b)&&this.setTemplate(b,a[b])}this.getProperty("__resultBox")&&this.__Ob()&&
(this.isAutoWidth()&&this.getProperty("__resultBox").setStyle("width",this.getWidth()+"px"),this._forEachElementWrapped(function(a){a.__NH()}));return this},setTemplate:function(a,b){var c=this.getProperty("__templateCache")||{};1==arguments.length&&(b=a,a="itemContent");-1!=["single","multiple","itemContent"].indexOf(a)&&this.setProperty("__itemTemplate",null);"itemContent"==a&&(this.setProperty("__itemTemplate",b),b=this.getProperty("__itemTemplateOpen")+b+this.getProperty("__itemTemplateClose"));
c[a]=b;this.setProperty("__templateCache",c);l.ui.website.Widget.prototype.setTemplate.call(this,a,b);return this},selectItem:function(a){var b=this.__NI();this.__NL(b[a]);return this},setConfig:function(a,b){l.ui.website.Widget.prototype.setConfig.call(this,a,b);if("ignorePattern"===a){this.setProperty("__searchList",[]);this.setProperty("__searchLookup",{});var c=this.getProperty("dataSource");if(c)for(var e in c)this.__NC(e)}return this},getDataSource:function(a){a=a||this.getProperty("__identifier");
return this.getProperty("dataSource")[a]},setDataSource:function(a,b){if("Array"!=qxWeb.type.get(a))throw Error("Please provide an array as data source!");b="undefined"!==typeof b?b:{};a.$$__isCustom=b.identifier?!0:!1;b.identifier=b.identifier||this.getProperty("__identifier");var c=this.getProperty("__searchList")||{},e=this.getProperty("__searchLookup")||{},d=this.getProperty("dataSource")||{},f=this.getProperty("__dataSourceIdentifiers"),s=this.getProperty("__dataSourceKeys")||{};c[b.identifier]=
[];e[b.identifier]={};d[b.identifier]=a;f.push(b.identifier);s[b.identifier]="undefined"!==typeof b.key?b.key:null;this.setProperty("__dataSourceKeys",s);this.setProperty("__dataSourceIdentifiers",f);this.setProperty("dataSource",d);this.setProperty("__searchList",c);this.setProperty("__searchLookup",e);this.__NW("groupBy")&&this.__Nz();this.__NC(b.identifier);return this},resetDataSource:function(a){a=a||this.getProperty("__identifier");this.setDataSource([],a);return this},setResultContainer:function(a,
b){a=qxWeb(a);0===a.length&&qxWeb.error('Given "container" parameter does not contain any DOM element!');"undefined"===typeof b&&qxWeb.error('Please provide a value for the "dataSource" parameter.');var c=!0;this.getProperty("__dataSourceIdentifiers").every(function(a){return c=a!=b});!0===c&&qxWeb.error('Please provide a valid ID for "dataSource" parameter. You have to define it first with the "setDataSource" method!');this._forEachElementWrapped(function(c){var d=c.getProperty("__resultListContainer");
d&&0<d.length&&(c.__Ny(d),d.getParents(":first").remove());c.setProperty("__resultListContainer",null);c.setProperty("__hasCustomResultBox",!0);c.setProperty("__customResultListContainer"+b,a);c.__Nx(a);c.__NR(a,baselib.AutoCompletionBox.__Nl)})},getUseExternalCss:function(){return this.getConfig("useExternalCss")},setUseExternalCss:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'useExternalCss'!");this.setConfig("useExternalCss",a);this.render();return this},
getAutoWidth:function(){return this.getConfig("autoWidth")},setAutoWidth:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'autoWidth'!");this.setConfig("autoWidth",a);this.render();return this},isAutoWidth:function(){return this.getConfig("autoWidth")},getInfoBoxContent:function(){return this.getProperty("__infoBoxContent")},setInfoBoxContent:function(a){if("String"!=qxWeb.type.get(a))throw Error("Please provide a string value for 'infoBoxContent'!");this.setProperty("__infoBoxContent",
a);this.getProperty("__resultInfoBox").setHtml(a);return this},getBeginAutoComplete:function(){return this.getConfig("beginAutoComplete")},setBeginAutoComplete:function(a){if("Number"!=qxWeb.type.get(a))throw Error("Please provide a number value for 'beginAutoComplete'!");this.setConfig("beginAutoComplete",a);this.render();return this},getSearchCaseSensitive:function(){return this.getConfig("searchCaseSensitive")},setSearchCaseSensitve:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'searchCaseSensitive'!");
this.setConfig("searchCaseSensitive",a);this.render();return this},isSearchCaseSensitive:function(){return this.getConfig("searchCaseSensitive")},getMatchAtStart:function(){return this.getConfig("matchAtStart")},setMatchAtStart:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'searchCaseSensitive'!");this.setConfig("matchAtStart",a);this.render();return this},isMatchAtStart:function(){return this.getConfig("matchAtStart")},getFilterData:function(){return this.getConfig("filterData")},
setFilterData:function(a){if("Boolean"!=qxWeb.type.get(a))throw Error("Please provide a boolean value for 'filterData'!");this.setConfig("filterData",a);this.render();return this},isFilterData:function(){return this.getConfig("filterData")},getNoResultsContent:function(){return this.getConfig("noResultsContent")},setNoResultsContent:function(a){if("String"!=qxWeb.type.get(a))throw Error("Please provide a string value for 'noResultsContent'!");this.setConfig("noResultsContent",a);this.render();return this},
getMaxResults:function(){return this.getConfig("maxResults")},setMaxResults:function(a){if("Number"!=qxWeb.type.get(a))throw Error("Please provide a number value for 'maxResults'!");this.setConfig("maxResults",a);this.render();return this},getMaxResultsInfo:function(){return this.getTemplate("maxResultsInfo")},setMaxResultsInfo:function(a){if("String"!=qxWeb.type.get(a))throw Error("Please provide a string value for 'maxResultsInfo'!");this.setTemplate("maxResultsInfo",a);this.render();return this},
setResultBoxWidth:function(a){this.setProperty("__resultBoxWidth",a);null!==this.getProperty("__resultBox")&&this.getProperty("__resultBox").setStyle("width",a);return this},setResultBoxHeight:function(a){this.setProperty("__resultBoxHeight",a);null!==this.getProperty("__resultBox")&&this.getProperty("__resultBox").setStyle("height",a+"px");return this},__Nw:function(a){this[0]?(this._forEachElementWrapped(function(a){qxWeb.isElement(this[0])||this.error("Elements of type "+a[0].nodeName+" not allowed !")},
this),void 0!==a&&(a instanceof Array||this.error("The data source has to be an Array!"))):this.error("No connected input element given!")},__le:function(){this.setProperty("__document",qxWeb.getDocument(this));var a=qxWeb(this.getProperty("__document").body);this._forEachElementWrapped(function(b){b.setProperty("__identifier","qx-autocompletionbox-"+parseInt(1E4*Math.random(),10));b.setProperty("__dataSourceIdentifiers",[]);b.setProperty("__itemTemplateOpen",'<ul>{{#items}}<li id="{{id}}" class="'+
baselib.AutoCompletionBox.__Np+'">');b.setProperty("__itemTemplateClose","</li>{{/items}}</ul>");b.setProperty("__infoBoxContent","");b.on("focus",b.__NE,b);b.__NF();b.on("keyup",b._handleKeyUpInput,b);b.on("paste",b._handlePaste,b);b.setAttribute("autocomplete","off");b.__Nx(this.getProperty("__resultListContainer"));if("desktop"===qxWeb.env.get("device.type"))qxWeb(document.documentElement).on("pointerup",b.__Oe,b);a.on("keydown",b._handleKeyDownInput,b)});a.focus();qxWeb(window).on("blur",this.__Od,
this);this.getConfig("useExternalCss")&&qxWeb.includeStylesheet("qui/static/autoCompletionBox.css")},__Nx:function(a){var b=this._handleTapOnResultEntry.bind(this);a.on("tap",b,!0);this.setProperty("__tapCallback",b);"desktop"===qxWeb.env.get("device.type")&&!1===this.getProperty("__hasCustomResultBox")&&(b=this._handleHoverResultList.bind(this),a.on("pointerover",b,!0),this.setProperty("__hoverCallback",b))},__Ny:function(a){var b=this.getProperty("__tapCallback");a.off("tap",b,!0);"desktop"===qxWeb.env.get("device.type")&&
!1===this.getProperty("__hasCustomResultBox")&&a.off("pointerover",this.getProperty("__hoverCallback"),!0)},__Nz:function(){var a=this.getDataSource(),b=this.__NW("groupBy"),c=[];a.forEach(function(a){b&&a[b]&&c.push(a[a[b]])});c=qxWeb.array.unique(c);this.setProperty("__groups",c)},__NA:function(a){return-1!=(this.getProperty("__groups")||[]).indexOf(a)},__NB:function(a){a=this.getProperty("dataSource");for(var b in a)if(a[b].$$__isCustom)return!0;return!1},__NC:function(a){a=a||this.getProperty("__identifier");
var b=this.getProperty("__dataSourceKeys")[a];null===b&&(b="id");var c=this.getDataSource(a),e="Array"===qxWeb.type.get(c[0]),d=this.getProperty("__searchList")[a],f=this.getProperty("__searchLookup")[a];c.forEach(function(a,c,l){if(e)null!==this.getConfig("ignorePattern")&&(a[1]=this.__ND(a[1])),d.push(a[1]),f[a[1]]=a[0];else if("object"==typeof a){var n=this.getConfig("ignorePattern");null!==n&&(a[b]=this.__ND(a[b]));d.push(a[b]);a.keywords&&"Array"===qxWeb.type.get(a.keywords)&&a.keywords.forEach(function(b){null!==
n&&(b=this.__ND(b));-1==d.indexOf(b)&&(d.push(b),f[b]=[]);f[b].push(a)}.bind(this));f[a[b]]=a}else null!==this.getConfig("ignorePattern")&&(a=this.__ND(a)),d.push(a)}.bind(this));this.getProperty("__resultBox")&&(c=qxWeb(this.getProperty("__currentTarget")).getValue())&&0<c.length&&this.__NY(c,a)},__ND:function(a){var b=RegExp(this.getConfig("ignorePattern"),"gi");b.test(a)&&(a=a.substring(b.lastIndex));return a},__NE:function(a){this.setProperty("__currentTarget",a.getTarget());this.isAutoWidth()&&
this.getProperty("__resultBox").setStyle("width",qxWeb(a.getTarget()).getWidth()+"px")},__NF:function(){var a=baselib.AutoCompletionBox;this.setProperty("__hasCustomResultBox",!1);this.setProperty("__resultBox",qxWeb.create("<div class='"+a.__Nj+"'>"));var b=this.getProperty("__currentTarget")?qxWeb(this.getProperty("__currentTarget")).getWidth():this.eq(0).getWidth();this.isAutoWidth()&&(this.setProperty("__resultBoxWidth",b),this.setProperty("__resultBoxHeight",0));b={display:"none",position:"absolute",
width:this.getProperty("__resultBoxWidth")+"px",zIndex:1001};this.getProperty("__resultBox").setStyles(b);this.setProperty("__resultListContainer",qxWeb.create("<div class='"+a.__Nl+"'>"));this.setProperty("__resultInfoBox",qxWeb.create("<div class='"+a.__Nm+"'>"));this.getProperty("__resultInfoBox").setHtml(this.getInfoBoxContent());this.getProperty("__resultBox").append(this.getProperty("__resultListContainer"));this.getProperty("__resultBox").append(this.getProperty("__resultInfoBox"));this.getProperty("__document").body.appendChild(this.getProperty("__resultBox")[0])},
__NG:function(){this.getProperty("__resultBox").placeTo(qxWeb(this.getProperty("__currentTarget")),"bottom-left",{left:0,right:0,top:0,bottom:0},"direct","direct")},_handlePaste:function(a){window.setTimeout(this.__NH.bind(this),0)},_handleKeyUpInput:function(a){a=a.getKeyIdentifier();baselib.AutoCompletionBox.__Nv[a]||this.__NH()},__NH:function(){var a=this.getValue(),b=this.getConfig("beginAutoComplete");if(a){var c=this.getConfig("ignorePattern");null!==c&&(c=RegExp(c,"gi"),c.test(a)&&(a=a.substring(c.lastIndex)));
if(a.length>=b)this.emit("search",{search:a,getData:function(){return a}}),this.emit("searchStart",{search:a,getData:function(){return a}}),window.setTimeout(function(){var b=this.getProperty("dataSource");if(b)for(var c in b)this.__NY(a,c)}.bind(this),0);else if(a.length<b)if(this.getProperty("__hasCustomResultBox")){var b=this.getProperty("__dataSourceKeys"),e;for(e in b)this.getProperty("__customResultListContainer"+e).empty()}else this.__Od()}},_handleKeyDownInput:function(a){if(!this.getProperty("__hasCustomResultBox")){this.setProperty("__keyEvent",
!0);var b=a.getTarget(),c=this.getProperty("__currentTarget");if(b==c)switch(b=a.getKeyIdentifier(),c=this.__NM(),c=0<c.length?c:null,b){case "Up":case "Down":this.__Ob()&&this.__NJ("Down"==a.getKeyIdentifier()?!0:!1);break;case "Enter":null!==c&&(this.__NQ(this.__NP(c)),this.__Od(),this.focus(),a.stopPropagation(),a.preventDefault());break;case "Tab":null!==c&&this.__NQ(this.__NP(c));this.__Od();break;case "Escape":this.__Od(),this.focus()}}},__NI:function(){var a=this.getProperty("__resultListContainer");
return null!==a?a.find(".qui-autocompletion-resultListEntry-selected, .qui-autocompletion-resultListEntry, .qx-autocompletionbox-resultlistentry, .qx-autocompletionbox-resultlistentry-selected"):qxWeb()},__NJ:function(a){if(0<this.getProperty("__currentResults")){var b=null,c=this.getProperty("__resultListContainer"),e=this.__NI(),d=c.find(".qui-autocompletion-resultListEntry-selected, .qx-autocompletionbox-resultlistentry-selected"),f=e.length;0===d.length?b=a?0:f-1:(b=e.indexOf(d[0]),this.__NN(d),
a?b=(b+1)%f:this.getProperty("__lastSelectedEntry")==c[0]?(b=null,this.focus()):b=(b-1+f)%f);null!==b&&(b=qxWeb(e[b]),this.__NL(b),this.setProperty("__lastSelectedEntry",b))}},__NK:function(a,b){if(b.getRelatedTarget()&&this.getProperty("__hovered")){var c=b.getRelatedTarget(),e=qxWeb(c);if(c==a[0]||e.isChildOf(a))return}a.off("pointerout",this.getProperty("__pointerOutCallback"));this.setProperty("__hovered",!1);this.setProperty("__currentTarget",null)},_handleHoverResultList:function(a){a.stopPropagation();
if(this.getProperty("__keyEvent")&&this.getProperty("__hovered"))this.setProperty("__keyEvent",!1);else{0===this.__NM().length&&this.setProperty("__lastSelectedEntry",null);if(!0===this.getProperty("__hasCustomResultBox")&&!this.getProperty("__hovered")){this.setProperty("__currentTarget",this.getProperty("__resultListContainer")[0]);this.setProperty("__hovered",!0);var b=this.getProperty("__resultListContainer"),c=this.__NK.bind(this,b);this.setProperty("__pointerOutCallback",c);b.on("pointerout",
c)}a=this.__NO(a.getTarget());null!==a&&this.__NU(a)&&(null!==this.getProperty("__lastSelectedEntry")&&this.__NN(this.getProperty("__lastSelectedEntry")),this.__NL(a),this.setProperty("__lastSelectedEntry",qxWeb(a)))}},__NL:function(a){var b=this.__NM();0<b.length&&this.__NN(b);this.__NS(qxWeb(a),baselib.AutoCompletionBox.__Np,baselib.AutoCompletionBox.__Nq);this.setProperty("__lastSelectedEntry",qxWeb(a))},__NM:function(){var a=baselib.AutoCompletionBox.__Nq.split(" "),b=[];this.getProperty("__hasCustomResultBox")?
this.getProperty("__dataSourceIdentifiers").forEach(function(a){b.push(this.getProperty("__customResultListContainer"+a))}.bind(this)):b.push(this.getProperty("__resultListContainer"));var c=[];b.some(function(b){return!0===a.some(function(a){c=b.find("."+a);return 0<c.length})});return c},__NN:function(a){this.__NS(qxWeb(a),baselib.AutoCompletionBox.__Nq,baselib.AutoCompletionBox.__Np)},_handleTapOnResultEntry:function(a){a=this.__NO(a.getTarget());null!==a&&this.__NU(a)&&(this.__NQ(this.__NP(a)),
this.getProperty("__hasCustomResultBox")?this.__NL(a):this.__Od())},__NO:function(a){for(var b=a.nodeName.toLowerCase();!this.__NU(a)&&(a=a.parentNode,b=a.nodeName.toLowerCase(),"body"!=b););return this.__NU(a)?a:null},__NP:function(a){return qxWeb(a).getAttribute("id")},__NQ:function(a){this.setValue(a);this.emit("selected",{target:this,selected:a,getData:function(){return a}})},__NR:function(a,b){b.split(" ").forEach(function(b){a.addClass(b)})},__NS:function(a,b,c){b=b.split(" ");c=c.split(" ");
b.forEach(function(b,d){a.replaceClass(b,c[d])})},__NT:function(a,b){var c=!1;a=qxWeb(a);b=b.split(" ");b.forEach(function(b){a.hasClass(b)&&(c=!0)});return c},__NU:function(a){a=qxWeb(a);return this.__NT(a,baselib.AutoCompletionBox.__Np)||this.__NT(a,baselib.AutoCompletionBox.__Nq)},__NV:function(){for(var a in baselib.AutoCompletionBox._config)this.setProperty("__$$autocompletion_"+a,this.getConfig(a))},__NW:function(a){return this.getProperty("__$$autocompletion_"+a)},__NX:function(a){var b={},
c=this.__NW("groupBy");b[baselib.AutoCompletionBox.__Nu]=a;c&&(b={},a.items.forEach(function(a){a[c]&&!b[a[c]]&&(b[a[c]]={items:[]});b[a[c]].items.push(a)}));return b},__NY:function(a,b){if(!(a.length<this.getConfig("beginAutoComplete"))){b=b||this.getProperty("__identifier");var c=this.__NW("groupBy"),e=this.getTemplate("dataSource")?this.getTemplate("dataSource")[b]:void 0,d=this.getTemplate("group"),f=this.__NB(b)?b:null,s=b.split(" ").join("-"),h=null;!1===this.getProperty("__hasCustomResultBox")?
(h=this.getProperty("__resultListContainer"),h.find("."+s).remove()):h=this.getProperty("__customResultListContainer"+s).find("."+s).remove();qxWeb(".qui-autocompletion-maxResultsInfo, .qx-autocompletionbox-maxresultsinfo").remove();var l=qxWeb.create("<span></span>"),n=this.getProperty("__searchLookup");n&&(n=n[b]);var t=this.getProperty("__groups"),g=Object.keys(d).length,m=!1;t&&(0<g&&g==g)&&(m=!0);var t=baselib.AutoCompletionBox,k=this.__Oa(a,b);this.emit("searchEnd",{dataSource:f,search:a,getData:function(){return k}});
if(0<k.length){g=qxWeb.create("<ul>");this.__NR(g,t.__Nk);var g=!1===this.getSearchCaseSensitive()?"i":"",p=qxWeb.string.escapeRegexpChars(a),p=RegExp("("+p+")",g),g={items:[]},r=null,q=null,v=this.getTemplate("single"),w=this.getTemplate("multiple");if(this.getProperty("__itemTemplate")||e||m){p=0;for(r=k.length;p<r;p++)if(n[k[p]]instanceof Array)for(q=0,v=n[k[p]].length;q<v;q++)g.items.push(n[k[p]][q]);else g.items.push(n[k[p]]);e=e||(m?d:this.getTemplate("itemContent"))}else{for(var m=0,x=k.length;m<
x;m++)q=k[m].replace(p,"<span class='"+t.__Nt+"'>$1</span>"),n[k[m]]?(r=n[k[m]]+" > ",g.items.push({id:k[m],firstpart:r,secondpart:q})):g.items.push({id:k[m],secondpart:q});e=e||(g.items[0].firstpart?w:v)}g.items=qxWeb.array.unique(g.items);g.resultGroupId=b;m=!1;g.items.length>this.getMaxResults()&&(g.items=g.items.slice(0,this.getMaxResults()),m=!0);var p=this.__NX(g),q=r=null,u;for(u in p)r=null,q=d[u]||e,!0===this.getProperty("__hasCustomResultBox")&&(h=this.getProperty("__customResultListContainer"+
f)),c&&(r=qxWeb.create("<ul class='qx-autocompletionbox-group-title "+s+"'><li>"+u+"</li></ul>"),h.append(r)),b=c?u:b,b=b.split(" ").join("-"),h.append(qxWeb.template.render(q,p[u])),q=h.getChildren().getLast(),q.addClass(s),q.setAttribute("id",b),r&&r.setAttribute("id",b+"-title");m&&(c=l.clone(),this.__NR(c,t.__No),c.setHtml(qxWeb.template.render(this.getMaxResultsInfo(),{input:a})),h.append(c));this.setProperty("__currentResults",g.items.length)}else{if(""===this.getNoResultsContent()){this.__Od();
return}c=l.clone();this.__NR(c,t.__Nn);c.setAttribute("html",this.getNoResultsContent());h.append(c);this.setProperty("__currentResults",0)}0<k.length&&!1===this.getProperty("__hasCustomResultBox")&&(this.getProperty("__itemTemplate")?(h=n[k[0]],h=document.getElementById(h instanceof Array?h[0].id:h.id)):h=document.getElementById(k[0]),this.__NL(h));this.__Oc();this.emit("render",{datasource:f})}},__Oa:function(a,b){b=b||this.getProperty("__identifier");var c=[],e=!1===this.getSearchCaseSensitive()?
"i":"",d=!0===this.getMatchAtStart()?"^":"",f=this.getProperty("__searchList"),f=f?f[b]:[];a=qxWeb.string.escapeRegexpChars(a);for(var e=RegExp(d+a,e),d=0,l=f.length;d<l;d++)this.getFilterData()?e.test(f[d])&&c.push(f[d]):c.push(f[d]);return c},__Ob:function(){if(!1===this.getProperty("__hasCustomResultBox"))return"block"==this.getProperty("__resultBox").getStyle("display")},__Oc:function(){if(!1===this.getProperty("__hasCustomResultBox")){var a=this.getProperty("__document").documentElement.clientWidth,
b=this.getProperty("__resultBox");this.__NG();this.getProperty("__resultBox").setStyle("display","block");var c=this.getProperty("__document").documentElement.clientWidth;a!=c&&(a=Math.ceil((a-c)/2),b.setStyle("left",b.getPosition().left-a+"px"));this.getProperty("__blocked")||(b.block("transparent",0,1E3),this.setProperty("__blocked",!0))}},__Od:function(){if(!1===this.getProperty("__hasCustomResultBox")){var a=this.getProperty("__resultBox");a.setStyle("display","none");this.getProperty("__blocked")&&
(a.unblock(),this.setProperty("__blocked",!1));this.setProperty("__lastSelectedEntry",null)}},__Oe:function(a){a=qxWeb(a.getTarget());if(!1===this.getProperty("__hasCustomResultBox")&&this.__Ob()){var b=this.getProperty("__resultBox"),c=b[0]==a[0],b=a.isChildOf(b);a[0]!=this[0]&&!1===c&&!1===b&&this.__Od()}}},defer:function(a){qxWeb.$attach({autocompletionbox:a.autocompletionbox});a=function(a,c,e){"string"==typeof a&&"#"!=a.charAt(0)&&"."!=a.charAt(0)&&(a="#"+a);return qxWeb(a).autocompletionbox(c,
e)};qxWeb.$attachStatic({autocompletionbox:a});if(null===window.qui||"object"!=typeof window.qui)window.qui={};if(null===window.qui.bom||"object"!=typeof window.qui.bom)window.qui.bom={};window.qui.bom.AutoCompletionBox=a}})})()})();

function WS_TradeSuggestionsService(context,scope){pfx.ws.json.BaseStub.call(this,"TradeSuggestionsService",context,scope,"/webservice");}WS_TradeSuggestionsService.prototype=new pfx.ws.json.BaseStub;WS_TradeSuggestionsService.prototype.setTradeFactory=function(){return this.callMethod("setTradeFactory",arguments,1);
};WS_TradeSuggestionsService.prototype.getTradeSuggestions=function(){return this.callMethod("getTradeSuggestions",arguments,1);};WS_TradeSuggestionsService.prototype.setTradeSuggestionsFactory=function(){return this.callMethod("setTradeSuggestionsFactory",arguments,1);};


//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/accordion-min.js
(function(){var g=window.qxWeb.$$qx;g.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});g.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){g.Bootstrap.define("baselib.Accordion",{extend:g.ui.website.Widget,construct:function(a,b){g.ui.website.Widget.call(this,a,b)},events:{"switch":"qx.event.Emitter",beforehide:"qx.event.Emitter",beforeshow:"qx.event.Emitter",afterhide:"qx.event.Emitter",aftershow:"qx.event.Emitter"},statics:{_config:{labelClass:"qx-accordion-label",
contentClass:"qx-accordion-content",animationDuration:300},accordion:function(a){var b=new baselib.Accordion(this);a&&(a.label&&b.setConfig("labelClass",a.label),a.content&&b.setConfig("contentClass",a.content));b.init();return b}},members:{init:function(){if(!g.ui.website.Widget.prototype.init.call(this))return!1;this._forEachElementWrapped(function(a){0<a.find("."+this.getConfig("contentClass")).length&&(a.render(),a.collapse(!1))});return!0},render:function(){this._forEachElementWrapped(function(a){a._initItems();
a.__QY()});return this},collapse:function(a){this._forEachElementWrapped(function(b){var c=this.getProperty("__tabs"),d=b.getProperty("__canTransition");c._forEachElementWrapped(function(c){c.setProperty("__op","hide");b.setProperty("__currentIndex",null);b.__Rc(c);var f=c.getHeight();0!==f&&(a?(b.__QT(),b.__Rb(c),d?c.setStyle("height","0px"):b.__dr(c,f,0)):(c.setStyle("display","none"),c.setStyle("height","0px")))})});return this},setAnimationDuration:function(a){this.setProperty("__animationDuration",
a);this.setConfig("animationDuration",a);return this},getAnimationDuration:function(){return this.getProperty("__animationDuration")},enableAnimation:function(){this.setProperty("__animationDuration",this.getConfig("animationDuration"));return this},disableAnimation:function(){this.setProperty("__animationDuration",0);return this},isAnimated:function(){return 0<this.getProperty("__animationDuration")},getCurrentIndex:function(){return this.eq(0).getProperty("__currentIndex")},showItem:function(a,
b){this._forEachElementWrapped(function(c){if(!c.animating()){var d=c.getProperty("__tabs"),e=(b="undefined"!==typeof b?b:!0)?10:0,f=qxWeb(d[a]),g=qxWeb(d[c.getProperty("__currentIndex")]),h=0;f[0]&&(h=c.__QX(f,b));g[0]&&c.__QW(g,b);window.setTimeout(function(){b||c.setProperty("__currentIndex",a);c.__QV(f,g,0,h,b)},e)}});return this},showNext:function(){this._forEachElementWrapped(function(a){var b=a.getProperty("__currentIndex")+1;b<a.getProperty("__tabs").length&&a.showItem(b,a.isAnimated())});
return this},showPrev:function(){this._forEachElementWrapped(function(a){var b=a.getProperty("__currentIndex")-1;0<=b&&a.showItem(b,a.isAnimated())});return this},animating:function(){return 0<this.eq(0).getProperty("__running")},dispose:function(){var a=this.getProperty("__canTransition");this._forEachElementWrapped(function(b){a&&b.getProperty("__tabs").forEach(function(a,b){var e=qxWeb(a),f=e.getProperty("__transitionHandler");f&&(a.removeEventListener(qxWeb.EVENT.transitionEnd,f),e.setProperty("__transitionHandler",
null))});b.off("tap",b.__Ra,b)});return this},__QT:function(){var a=this.getProperty("__running")+1;this.setProperty("__running",a);return a},__QU:function(){var a=this.getProperty("__running")-1;this.setProperty("__running",a);return a},__dr:function(a,b,c){var d=this.getProperty("__animationDuration"),e=null,f=this.getProperty("__tabs"),g=this,h=function(m){m=(new Date).getTime();var k=b,l=0;null===e&&(e=m);l=m-e;k=b+(c-b)*(l/d);b<c&&k>c&&(k=c);a.setStyle("height",k+"px");l<d&&l<d?qxWeb.EVENT.animation.requestFrame(h):
(a.setStyle("height",c+"px"),g.__cY(a,f.indexOf(a[0])))};qxWeb.EVENT.animation.requestFrame(h)},__QV:function(a,b,c,d,e){var f=this.getProperty("__canTransition");e&&(this.__Rb(a),b[0]&&this.__Rb(b));e&&this.__QT();this.__Rd("beforeshow",a);f||!e?(a.setStyle("height",d+"px"),e||this.__Rd("aftershow",a)):this.__dr(a,a.getHeight(),d);b[0]&&(e&&this.__QT(),this.__Rd("beforehide",b),f||!e?(b.setStyle("height",c+"px"),e||this.__Rd("afterhide",b)):this.__dr(b,b.getHeight(),c))},__QW:function(a,b){this.getProperty("__canTransition")&&
this.__Rc(a);a.setProperty("__op","hide");return 0},__QX:function(a,b){this.getProperty("__canTransition")&&this.__Rc(a);a.setProperty("__op","show");a.setStyle("height","");var c=a.getProperty("__scrollerTabHeight");a.setStyle("height","0px");a.setStyle("display","block");return c},_initItems:function(){this.setProperty("__labelClass",this.getConfig("labelClass"));this.setProperty("__contentClass",this.getConfig("contentClass"));this.setProperty("__animationDuration",this.getConfig("animationDuration"));
this.setProperty("__labels",this.find("."+this.getConfig("labelClass")));var a=this.find("."+this.getConfig("contentClass")),b="block";a._forEachElementWrapped(function(a){b=a.getStyle("display");a.setStyle("height","");a.setStyle("display","block");a.setProperty("__scrollerTabHeight",a[0].offsetHeight);a.setStyle("display",b)});this.setProperty("__tabs",a)},__QY:function(){var a=this.getProperty("__tabs"),b=qxWeb.env.canTransition(),c=this.getProperty("__currentIndex");"undefined"==typeof c?this.setProperty("__currentIndex",
null):c>=a.length&&this.setProperty("__currentIndex",a.length-1);this.setProperty("__running",0);b&&(this.setProperty("__canTransition",qxWeb.env.canTransition()),a.forEach(function(a,b){if(!qxWeb(a).getProperty("__transitionHandler")){var c=this.__cY.bind(this,a,b);qxWeb(a).setProperty("__transitionHandler",c);a.addEventListener(qxWeb.EVENT.transitionEnd,c,!1)}}.bind(this)));this.$onFirstCollection("tap",this.__Ra)},__Ra:function(a){var b=this.getProperty("__labels");a=qxWeb(a.getTarget()).getClosest("."+
this.getProperty("__labelClass"));0<a.length&&(b=b.indexOf(a[0]),b==this.getCurrentIndex()?this.collapse(!0):this.showItem(b,!0))},__Rb:function(a){this.getProperty("__canTransition")&&(a.setStyle("transition-property","height"),a.setStyle("transition-duration",this.getProperty("__animationDuration")+"ms"),a.setStyle("transition-timing-function","linear"),a.setStyle("transition-delay","0ms"))},__Rc:function(a){this.getProperty("__canTransition")&&(a.setStyle("transition-property","none"),a.setStyle("transition-duration",
"0ms"),a.setStyle("transition-timing-function","none"),a.setStyle("transition-delay","0ms"),a[0].style.removeProperty(qxWeb.EVENT.transitionEnd.transitionStyleName),a[0].style.removeProperty("transition"))},__Rd:function(a,b){var c={type:a,reverse:!1};if(b){var d=this.getProperty("__tabs");c.target=b;c.index=d.indexOf(b[0])}else c.current=this.getCurrentIndex();this.emit(a,c)},__cY:function(a,b,c){c=this.__QU();a=qxWeb(a);this.__Rc(a);var d=a.getProperty("__op");"show"==d&&this.setProperty("__currentIndex",
b);this.__Rd("after"+d,a);0===c&&this.__Rd("switch")}},defer:function(a){qxWeb.$attach({accordion:a.accordion})}})})()})();

$q.define("UNOUNO.components.renderinclude",{construct:function(properties,callbacks,options){this.properties=properties;this.success=callbacks.success;this.error=callbacks.error;this.options=options;this.init();},statics:{cache:{},getCachedResponse:function(url){return this.cache[url];},setCachedResponse:function(url,response){this.cache[url]=response;
}},members:{properties:null,callback:null,callback:function(fnc,response){typeof (fnc)=="function"&&fnc.call(null,response);},createRenderIncludeURL:function(){var querystring={reuse:UNOUNO.params.reuseDOM};["part","href","module","search"].forEach(function(key){if(this.properties.hasOwnProperty(key)&&this.properties[key]){querystring["__render_"+key]=this.properties[key];
}},this);if(querystring.__render_href){while(!!querystring.__render_href.length&&querystring.__render_href.charAt(0)=="/"){querystring.__render_href=querystring.__render_href.substring(1);}}var url=window.location.href;["#","?"].forEach(function(token){var indexOfToken=url.indexOf(token);if(indexOfToken>-1){url=url.substring(0,indexOfToken);
}});url=$q.uri.appendParams(url,querystring);return url;},handleResponse:function(response){if(response.readyState==4){if(response.status===200&&response.responseText){this.callback(this.success,response);}else{this.callback(this.error,response);}}},init:function(){var url=this.createRenderIncludeURL();
var cachedResponse=UNOUNO.components.renderinclude.getCachedResponse(url);if(!cachedResponse){var xhr=$q.xhr(url,this.options);xhr.on("loadend",function(response){UNOUNO.components.renderinclude.setCachedResponse(url,response);this.handleResponse(response);},this);xhr.send(null);return ;}this.handleResponse(cachedResponse);
}}});$q.$attachStatic({"renderinclude":function(configuration,callbacks,options){return new UNOUNO.components.renderinclude(configuration,callbacks,options);}});
$q.define("UNOUNO.components.lazyLightbox",{construct:function(element){this.element=$q(element);if(this.element&&this.element.hasClass("lazy-lightbox")){this.properties=this.element.getAllData();this.lightboxName=$q.string.camelCase(this.properties.part);this.initializeClickEvents();if(this.properties.trigger&&this.properties.trigger==="onload"){this.openLightbox();
}return this;}return undefined;},members:{element:null,content:null,properties:{},lightboxName:null,instance:null,inspectTimer:null,firstCompleteCallback:true,getLightboxOpener:function(){return this.element;},openLightbox:function(){this.getLightboxContent();},callback:function(event){var ctx=(UNOUNO.lightbox||{})[this.lightboxName];
if(ctx&&this.lightboxName&&!!this.lightboxName.length&&typeof (ctx[event])==="function"){return ctx[event].apply(ctx,[].concat.call([].slice.call(arguments,1),this));}return undefined;},lightboxDimensions:function(){this.instance.show();var content=this.instance.getContent();var contentHeight=content.getHeight(true);
var contentWidth=content.getWidth(true);var contentMaxWidth=content.getWidthMax(true);if(contentMaxWidth>1030){contentWidth=860;}var minWidth=this.properties.minwidth;var minHeight=this.properties.minheight;if(!isNaN(minWidth)&&contentWidth<minWidth){contentWidth=minWidth;}if(!isNaN(minHeight)&&contentHeight<minHeight){contentHeight=minHeight;
}this.instance.setWidth(Number(contentWidth));this.instance.setHeight(Number(contentHeight));if(this.instance.getHeight()>$q(window).getHeight()){this.instance.setTop($q(window).getScrollTop()+40);}this.instance.close();this.instance.show();},determineContentDimensions:function(){var content=this.instance.getContent();
var currentContentHeight=content.getHeight();var minHeight=this.properties.minheight;if(!isNaN(minHeight)&&currentContentHeight<minHeight){currentContentHeight=minHeight;}if(currentContentHeight!=Number(this.instance.getHeight())){this.instance.setHeight(Number(currentContentHeight));}},initializeLightbox:function(){if(!this.instance){this.instance=$q.lightbox(this.content);
this.instance.setDefaultStyle(true);var instanceBlocker=this.instance.getBlocker();instanceBlocker.setBackgroundColor("#4d84bb");instanceBlocker.setOpacity(0.75);this.lightboxDimensions();this.instance.close();instanceBlocker.on("unblock",function(){$q(document).offMatchTarget("click",".lightbox-close",this.closeLightbox,this);
$q(document).offMatchTarget("click",".qx-blocker",this.closeLightbox,this);window.clearInterval(this.inspectInterval);window.setTimeout(function(){this.callback("onClosed",this.instance);}.bind(this),0);},this);instanceBlocker.on("block",function(){$q(document).onMatchTarget("click",".lightbox-close",this.closeLightbox,this);
$q(document).onMatchTarget("click",".qx-blocker",this.closeLightbox,this);this.inspectInterval=window.setInterval(function(){this.determineContentDimensions();}.bind(this),150);window.setTimeout(function(){this.callback("onComplete",this.instance,this.firstCompleteCallback);if(this.firstCompleteCallback){this.firstCompleteCallback=false;
}if(typeof (UNOUNO.tracking.lightboxTracking)==="function"){UNOUNO.tracking.lightboxTracking(this.lightboxName);}}.bind(this),0);},this);this.callback("onCreate",this.instance);}this.instance.show();},closeLightbox:function(target,e){e.preventDefault();this.callback("onCleanUp",this.instance);this.instance.close();
},getLightboxContent:function(){if(!this.instance){if(!this.properties.reference||!!!this.properties.reference.length){this.getContentViaXHR({success:function(response){this.prepareLightbox(response.responseText);}});return ;}var renderIncludeReference=$q(".lazy-lightbox-reference[data-renderinclude = '"+this.properties.reference+"']");
if(!!renderIncludeReference.length&&!!(renderIncludeReference.getHtml()||"").length){this.prepareLightbox(renderIncludeReference.getHtml());}return ;}this.initializeLightbox();},initializeClickEvents:function(){this.element.on("click",function(e){e.preventDefault();this.getLightboxContent();},this);},prepareLightbox:function(content){var qxHtml=$q.create(content);
if(!qxHtml.getChildren().length&&!!content.length){qxHtml=$q.create("<div />").setHtml(content);}this.content=qxHtml;this.content=this.callback("onContentLoaded",this.content)||this.content;this.content.find("img").forEach(function(image){new Image().src=$q(image).getAttribute("src");});this.content.hasClass("hidden")&&this.content.removeClass("hidden");
this.initializeLightbox();},getContentViaXHR:function(callbacks,options){$q.renderinclude({part:this.properties.part,href:this.properties.href,module:this.properties.module,search:this.properties.search},{success:(callbacks.success||new Function()).bind(this),error:(callbacks.error||new Function()).bind(this)},options);
}}});$q.$attachStatic({"lazyLightbox":function(element){return new UNOUNO.components.lazyLightbox($q(element));}});$q.ready(function(){$q(".lazy-lightbox").forEach(function(element){return $q.lazyLightbox(element);});});
$q.define("UNOUNO.lightbox.lightboxContentSitelock",{statics:{onComplete:function(lightbox,firstCall,instance){if(firstCall){var ctx=$q(lightbox.getContent());var tabs=ctx.find("ul.tabs > li");var tabContents=ctx.find(".tab-content");tabs.on("click",function(e){var target=$q(e.getTarget());var tabId=target.getData("tab");
tabs.removeClass("current");tabContents.removeClass("current");target.addClass("current");tabContents.filter("[id = "+tabId+"]").addClass("current");},this);}}}});$q.define("UNOUNO.lightbox.lightboxContentWebsiteBuilder",{statics:{onComplete:function(lightbox,firstCall,instance){if(firstCall){lightbox.getContent().find(".responsive-layout").forEach(function(container){new UNOUNO.animation.responsiveLayout($q(container),{"classes":["tablet","smartphone","desktop"],"cycletime":3500}).start();
});}}}});$q.define("UNOUNO.lightbox.lightboxFormSubscribe",{statics:{onComplete:function(lightbox,firstCall,instance){$q.placeholder.update();}}});$q.define("UNOUNO.lightbox.lightboxContentContentDeliveryNetwork",{statics:{onComplete:function(lightbox,firstCall,instance){if(firstCall){var ctx=$q(lightbox.getContent());
var tabs=ctx.find("ul.tabs > li");var tabContents=ctx.find(".tab-content");tabs.on("click",function(e){var target=$q(e.getTarget());var tabId=target.getData("tab");tabs.removeClass("current");tabContents.removeClass("current");target.addClass("current");tabContents.filter("[id = "+tabId+"]").addClass("current");
},this);}}}});$q.define("UNOUNO.components.vh215Lightbox",{construct:function(startHours,endHours,showContent,showAfter,excludeDays){this.startHours=startHours;this.endHours=endHours;this.showAfter=showAfter||3000;this.showContent=showContent;this.excludeDays=excludeDays||[0];if(!!$q(showContent).length){this.showLightbox();
}},members:{showAfter:0,startHours:0,endHours:0,showContent:null,excludeDays:null,showLightbox:function(){var now=new Date();var currentHour=now.getHours();var currentDay=now.getDay();if(currentHour>=this.startHours&&currentHour<this.endHours&&this.excludeDays.indexOf(currentDay)==-1){window.setTimeout(function(){var lightBox=new qui.bom.lightbox.LightBox();
lightBox.setWidth(940);lightBox.setHeight(325);lightBox.getBlocker().setBackgroundColor("#4d84bb");lightBox.getBlocker().setOpacity(0.75);lightBox.setContent($q(this.showContent).getHtml());lightBox.show();UNOUNO.tracking.lightboxTracking("tsInbound-layer");$q(".lightbox-close",$q(".lightbox_container")).on("click",function(lightBox){lightBox.close();
}.bind(this,lightBox),this);}.bind(this),this.showAfter);}}}});$q.define("UNOUNO.components.lightboxes",{statics:{init:function(){if(document.getElementById("tvspot-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("tvspot","tvspot-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);
}if(document.getElementById("webappVideo-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("webappVideo","webappVideo-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("custom-layout-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("custom-layout","custom-layout-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("custom-style-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("custom-style","custom-style-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("insert-elements-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("insert-elements","insert-elements-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("image-gallery-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("image-gallery","image-gallery-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("image-edit-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("image-edit","image-edit-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("contact-maps-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("contact-maps","contact-maps-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("diyfilmSEO-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("diyfilmSEO","diyfilmSEO-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("diyfilmSMC-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("diyfilmSMC","diyfilmSMC-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("branches-container")){UNOUNO.inline.branchesBrowser=new UNOUNO.global.LightBox("lightbox-branches","branches-container",true);
UNOUNO.inline.branchesBrowser.lightBox.setWidth(940);}}}});UNOUNO.components.lightboxes.init();
$q.define("UNOUNO.components.webfontPrice",{construct:function(price,configuration){configuration=configuration||{};this._priceConfiguration=$q.object.merge({},this._defaultConfiguration,this._configuration,configuration);this.setPrice(price);},members:{_defaultConfiguration:{currency:true,replace00With:"",thousandsSeparator:"",decimalSeparator:".",decimalLength:2},_object:undefined,_priceConfiguration:undefined,_price:undefined,setDecimalSeparator:function(decimalSeparator){this._priceConfiguration.decimalSeparator=!!decimalSeparator;
this._parse();return this;},setDecimalLength:function(decimalLength){this._priceConfiguration.decimalLength=decimalLength;this._parse();return this;},setCurrency:function(currency){this._priceConfiguration.currency=currency;this._parse();return this;},setThousandsSeparator:function(thousandsSeparator){this._priceConfiguration.thousandsSeparator=thousandsSeparator;
this._parse();return this;},setReplace00With:function(replace00With){this._priceConfiguration.replace00With=replace00With;this._parse();return this;},setCurrencyBefore:function(currencyBefore){this._priceConfiguration.currencyBefore=currencyBefore;this._parse();return this;},setCurrencyBehind:function(currencyBehind){this._priceConfiguration.currencyBehind=currencyBehind;
this._parse();return this;},setPrice:function(price){this._price=price;this._parse();return this;},getCurrency:function(){return !!this._priceConfiguration.currency;},getConfiguration:function(){return this._priceConfiguration;},getDecimalSeparator:function(){return this._priceConfiguration.decimalSeparator;
},getThousandsSeparator:function(){return this._priceConfiguration.thousandsSeparator;},getDecimalLength:function(){return this._priceConfiguration.decimalLength;},getRawPrice:function(){return Number(this._price).toFixed(Math.max(0,~~this._priceConfiguration.decimalLength));},getReplace00With:function(){return this._priceConfiguration.replace00With||undefined;
},getFormattedPrice:function(){var result=this.getRawPrice();var currencySign=this.getCurrencySign();var decimalSeparator=this.getDecimalSeparator();var thousandsSeparator=this.getThousandsSeparator();var decimalLength=this.getDecimalLength();if(decimalSeparator){result=result.replace(".",decimalSeparator);
}if(thousandsSeparator){result=result.replace(new RegExp("\\d(?=(\\d{3})+"+(decimalLength>0?"\\D":"$")+")","g"),"$&"+thousandsSeparator);}var resultSplitted=result.split(decimalSeparator);if(resultSplitted[1]==="00"){result=resultSplitted[0];if("replace00With" in this._priceConfiguration&&!!this._priceConfiguration.replace00With.length){result+=decimalSeparator+this._priceConfiguration.replace00With;
}}if(this.getCurrency()){if(this.isCurrencyBefore()){result=this.getCurrencySign()+""+result;}else{if(this.isCurrencyBehind()){result=result+" "+this.getCurrencySign();}}}return result;},isCurrencyBefore:function(){return !!this._priceConfiguration.currencyBefore;},isCurrencyBehind:function(){return !!this._priceConfiguration.currencyBehind;
},getCurrencySign:function(){return this._priceConfiguration.currencyBefore||this._priceConfiguration.currencyBehind||undefined;},parse:function(){return this._object;},format:function(){return this.getFormattedPrice();},draw:function(container){container=$q(container);if(container&&!!container.getAncestors(".webfont-price-container").length){if(container.hasClass("price-container")){return this._drawPriceContainer(container);
}else{if(container.hasClass("price-container-inline")){return this._drawInlinePriceContainer(container);}}return false;}return false;},_drawPriceContainer:function(container){var parsedObject=this._object;var priceBeforeSeparatorElement=container.getChildren(".price-before-separator");var priceSeparatorElement=container.getChildren(".price-separator");
var priceBehindSeparatorElement=container.getChildren(".price-behind-separator");var priceBehindTextElement=container.getChildren(".price-text-behind-inline");if(!!priceBeforeSeparatorElement.length){priceBeforeSeparatorElement.setTextContent(parsedObject.beforeDecimalSeparator);if(parsedObject.decimalSeparator&&parsedObject.behindDecimalSeparator){if(!!!priceSeparatorElement.length){priceSeparatorElement=$q.create("<span />").addClass("price-separator").setTextContent(parsedObject.decimalSeparator).insertAfter(priceBeforeSeparatorElement);
}if(!!!priceBehindSeparatorElement.length){priceBehindSeparatorElement=$q.create("<span />").addClass("price-behind-separator").insertAfter(priceSeparatorElement);}if(container.hasClass("price-should-be-supped")&&!priceBehindSeparatorElement.hasClass("price-sup")){priceBehindSeparatorElement.addClass("price-sup");
}if(parsedObject.behindDecimalSeparator==0||isNaN(parsedObject.behindDecimalSeparator)){priceBehindSeparatorElement.addClass("price-zero");}else{if(priceBehindSeparatorElement.hasClass("price-zero")){priceBehindSeparatorElement.removeClass("price-zero");}}var previousBehindSeparatorHtml=$q.create("<span />").append(priceBehindSeparatorElement.getChildren()).getHtml();
if(previousBehindSeparatorHtml){priceBehindSeparatorElement.setHtml(previousBehindSeparatorHtml+parsedObject.behindDecimalSeparator);}else{priceBehindSeparatorElement.setHtml(parsedObject.behindDecimalSeparator);}if(!!priceBehindTextElement.length&&container.hasClass("price-should-be-supped")&&!priceBehindTextElement.hasClass("price-behind-separator-supped")){priceBehindTextElement.addClass("price-behind-separator-supped");
}}else{priceSeparatorElement.remove();priceBehindSeparatorElement.remove();if(!!priceBehindTextElement.length&&priceBehindTextElement.hasClass("price-behind-separator-supped")){priceBehindTextElement.removeClass("price-behind-separator-supped");}}return true;}return false;},_drawInlinePriceContainer:function(container){var parsedObject=this._object;
var priceElement=container.getChildren(".price-text-inline").getChildren(".price-text");if(!!priceElement.length){priceElement.setTextContent(parsedObject.formattedPrice);return true;}return false;},_parse:function(){this._object=new Object();this._object.rawPrice=this.getRawPrice();this._object.formattedPrice=this.getFormattedPrice();
this._object.currencySign=this.getCurrencySign();this._object.decimalSeparator=this.getDecimalSeparator();this._object.thousandsSeparator=this.getThousandsSeparator();var splittedFormattedPrice=this._object.formattedPrice.split(this.getDecimalSeparator());this._object.beforeDecimalSeparator=splittedFormattedPrice[0];
this._object.behindDecimalSeparator=splittedFormattedPrice[1];}}});$q.$attachStatic({"webfontPrice":function(price,configuration){return new UNOUNO.components.webfontPrice(price,configuration);}});

UNOUNO.util.infoFootnote=function(footnoteId,linkIDs,alignment,vertical){this.init(footnoteId,linkIDs,alignment,vertical);};UNOUNO.util.infoFootnote.prototype={parent:null,modifyedFootnote:false,initInfoFootnote:function(){if(document.getElementById("container")!==null){this.parent=document.getElementById("container");
}else{this.parent=document.getElementById("container-plain");}if(this.footnote){var i=0,openerLink;if(this.isArray(this.linkIDs)){for(i;i<this.linkIDs.length;i+=1){openerLink=document.getElementById(this.linkIDs[i]);if(openerLink){qx.bom.Element.addListener(openerLink,"click",this.openFootnote,this);
qx.bom.Element.addListener(openerLink,"mouseover",this.setHover,this);qx.bom.Element.addListener(openerLink,"mouseout",this.removeHover,this);}}}else{openerLink=document.getElementById(this.linkIDs);if(openerLink){qx.bom.Element.addListener(openerLink,"click",this.openFootnote,this);qx.bom.Element.addListener(openerLink,"mouseover",this.setHover,this);
qx.bom.Element.addListener(openerLink,"mouseout",this.removeHover,this);}}qx.bom.Element.addListener(this.footnote,"click",this.closeFootnote,this);}},setHover:function(e){qx.bom.element.Class.add(e._currentTarget,"asterisk-hover");},removeHover:function(e){qx.bom.element.Class.remove(e._currentTarget,"asterisk-hover");
},openFootnote:function(e){if(this.footnote){e.preventDefault();this.closeFootnote();if(UNOUNO.global.openFootnote){UNOUNO.global.openFootnote.style.display="none";}UNOUNO.global.openFootnote=this.footnote;this.footnote.style.display="block";this.modifyFootnote(e._currentTarget.id);}},closeFootnote:function(){var i,iframeFixIE6;
this.footnote.style.display="none";if(qx.core.Environment){if(qx.core.Environment.get("engine.version")==="mshtml"&&qx.core.Environment.get("engine.version")==="6.0"){iframeFixIE6=qx.bom.Collection.query(".footnoteInfoIframe")[0];if(iframeFixIE6){qx.dom.Element.remove(iframeFixIE6);}}}},modifyFootnote:function(openerLinkId){if(this.modifyedFootnote===false){if(this.footnote.parentNode!==this.parent){qx.dom.Element.insertBegin(this.footnote,this.parent);
}this.modifyedFootnote=true;}this.footnote.style.position="absolute";var openerLink=document.getElementById(openerLinkId),leftPos=typeof (q)==="object"?$q.create(openerLink).getOffset().left:qx.bom.element.Location.getLeft(openerLink),topPos=typeof (q)==="object"?$q.create(openerLink).getOffset().top:qx.bom.element.Location.getTop(openerLink)-10,width=this.footnote.offsetWidth,height=this.footnote.offsetHeight,idIE6,zIndexIE6,footnoteBoxIFrameIE6,footnoteBoxIFrameIE6Elem;
if(this.alignment==="left"||typeof this.alignment==="undefined"){leftPos=leftPos-width+25;qx.bom.element.Style.set(this.footnote,"left",leftPos+"px");}else{if(this.alignment==="right"){leftPos=leftPos-10;qx.bom.element.Style.set(this.footnote,"left",leftPos+"px");}}if(this.vertical==="down"||typeof this.vertical==="undefined"){qx.bom.element.Style.set(this.footnote,"top",topPos+"px");
}else{if(this.vertical==="up"){topPos=topPos-height+35;qx.bom.element.Style.set(this.footnote,"top",topPos+"px");}}if(qx.core.Environment){if(qx.core.Environment.get("engine.version")==="mshtml"&&qx.core.Environment.get("engine.version")==="6.0"){idIE6=this.footnote.id;zIndexIE6=qx.bom.element.Style.get(this.footnote,"zIndex","COMPUTED_MODE",true)-1;
if(!document.getElementById("iframe."+idIE6)){footnoteBoxIFrameIE6=document.createElement("iframe");footnoteBoxIFrameIE6.setAttribute("id","iframe."+idIE6);footnoteBoxIFrameIE6.setAttribute("src","/modules/frontend-ingrid/img/blank.gif");footnoteBoxIFrameIE6.className="footnoteInfoIframe";qx.dom.Element.insertBefore(footnoteBoxIFrameIE6,this.footnote);
footnoteBoxIFrameIE6Elem=document.getElementById("iframe."+idIE6);qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"opacity",0);qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"position","absolute");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"zIndex",zIndexIE6);qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"left",leftPos+"px");
qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"top",topPos+"px");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"width",width+"px");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"height",height+"px");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"display","block");}}}},isArray:function(linkIDs){return linkIDs&&typeof linkIDs==="object"&&typeof linkIDs.length==="number"&&typeof linkIDs.splice==="function"&&!(linkIDs.propertyIsEnumerable("length"));
},noTabIndex:function(){if(qx.bom.Collection.id(this.linkIDs).hasClass("no-tabindex")===true){qx.bom.Collection.id(this.linkIDs).setAttribute("tabindex","-1");}},init:function(footnoteId,linkIDs,alignment,vertical){this.footnote=document.getElementById(footnoteId);this.linkIDs=linkIDs;this.alignment=alignment;
this.vertical=vertical;this.noTabIndex();this.initInfoFootnote();}};
try{$q.define("UNOUNO.components.contentnav",{statics:{__mainnav:$q("#content-nav"),__mainnavTopPos:$q("#content-nav").getOffset().top,__logoContainer:$q(".logo-container"),stickyNavigation:function(){if(($q(window).getScrollTop())>=(this.__mainnavTopPos+39)){this.__mainnav.addClass("sticky");this.__logoContainer.addClass("show");
}else{this.__mainnav.removeClass("sticky");this.__logoContainer.removeClass("show");this.__mainnav.hide().show();}},init:function(){var environment=window.qx&&qx.core&&qx.core.Environment&&qx.core.Environment.get("device.type");var isMobile=(environment&&(environment==="tablet"||environment==="mobile"));
var isMobileorderOrDSL=(window.UNOUNO&&UNOUNO.params&&(UNOUNO.params.project==="pweborder-de"||UNOUNO.params.project==="dslorder-de"));if(!(isMobile&&isMobileorderOrDSL)){$q(window).on("scroll",function(){this.stickyNavigation();},this);this.stickyNavigation();}}}});$q.ready(function(){UNOUNO.components.contentnav.init();
});}catch(e){}

$q.define("UNOUNO.animation.stageSlider",{construct:function(container){this.container=container;this.container.find("img.stage-tablet-visual").forEach(function(image){this.images.push(image);},this);this.initializeEasterEgg();this.initializeImageInspector();this.initializeAutoStartEvent();},members:{container:null,images:[],current:0,retries:0,maxRetries:30,animationTimer:null,easterEggAvailable:false,easterEggSequence:["Up","Up","Down","Left","Right","Down"],easterEggSequenceIndex:0,easterEggImagePath:"/modules/hosting-common/img/components/stage/vi-easteregg.png",initializeImageInspector:function(){var loaded=true;
this.container.find("img").forEach(function(image){var state=image.complete||false;var height=image.naturalHeight||0;var width=image.naturalWidth||0;if(!state||height==0||width==0){loaded=false;}});if(!loaded&&this.retries<this.maxRetries){window.setTimeout(function(){this.initializeImageInspector();
}.bind(this),100);this.retries++;return ;}this.container.addClass("ready");this.showNextItem();this.start();},initializeEasterEgg:function(){if(this.easterEggAvailable){$q(document).on("keydown",function(e){var key=e.getKeyIdentifier();if(key===this.easterEggSequence[this.easterEggSequenceIndex]){this.easterEggSequenceIndex++;
if(this.easterEggSequenceIndex==this.easterEggSequence.length){this.container.removeClass("ready");window.setTimeout(function(){var easterEggImagePreload=new Image();easterEggImagePreload.src=this.easterEggImagePath;var easerEggImage=$q.create("<img />").setAttribute("src",easterEggImagePreload.src);
this.container.empty();this.container.append(easerEggImage);this.container.addClass("ready");}.bind(this),2500);this.easterEggSequenceIndex=0;}}else{this.easterEggSequenceIndex=0;}},this);}},initializeAutoStartEvent:function(){this.container.on("viewportVisibilityChange",function(e){if(e.visible){this.start();
}else{this.stop();}},this);},start:function(){if(this.animationTimer==null){this.animationTimer=window.setInterval(function(){this.showNextItem();}.bind(this),2500);}},stop:function(){window.clearInterval(this.animationTimer);this.animationTimer=null;},showNextItem:function(){this.images.forEach(function(image){$q(image).removeClass("active");
});$q(this.images[this.current]).addClass("active");this.current=++this.current%this.images.length;}}});$q.ready(function(){new UNOUNO.animation.stageSlider($q(".stage-tablet-animation"));$q(".asterisk[id][data-source]").forEach(function(asterisk){asterisk=$q(asterisk);new UNOUNO.util.infoFootnote(asterisk.getData("source"),asterisk.getAttribute("id"),"left");
});});

$q.define("UNOUNO.components.faqaccordion",{statics:{init:function(){if(!!$q(".accordion").length){var accordion=$q(".accordion").accordion({label:"question",content:"answer"});accordion.on("afterhide",function(e){e.getTarget().getAncestors("li").removeClass("current");e.getTarget().hide();});accordion.on("aftershow",function(e){e.getTarget().getAncestors("li").addClass("current");
});if($q(".accordion").length===1){accordion.showItem(0);}}}}});$q.ready(function(){UNOUNO.components.faqaccordion.init();});
$q.define("UNOUNO.components.sectionNavigation",{construct:function(configuration){configuration=configuration||{};if(configuration.hasOwnProperty("trackingEnabled")){this.trackingEnabled=configuration.trackingEnabled;}this.initializeSectionNavigation();this.initializePageLeaveEvent();this.initializeWindowInspection();
this.initializeTracking();window.setTimeout(function(){this.determineCurrentSection();}.bind(this),100);},members:{firePageSectionEventDelay:0.5,pageSectionChangeEvent:null,pageSectionAnchors:$q("a.section-anchor[name]"),previousPageSection:null,pageSectionNavigation:{wrapper:$q.create("<div />").addClass("sectionnav-container"),container:$q.create("<ul />").addClass("sectionnav"),children:[]},trackingEnabled:true,initializeSectionNavigation:function(){this.pageSectionNavigation.wrapper.append(this.pageSectionNavigation.container);
$q("body").append(this.pageSectionNavigation.wrapper);this.pageSectionAnchors.forEach(function(anchor,index){anchor=$q(anchor);var sectionNavChild=$q.create("<li />");var sectionNavChildLink=$q.create("<a />").setAttribute("href","#"+anchor.getAttribute("name"));var sectionNavChildBulletOutter=$q.create("<span />").addClasses(["bullet","smallbullet"]);
var sectionNavChildBulletInner=$q.create("<span />").addClasses(["bullet","bigbullet"]);var sectionNavChildBulletLabel=$q.create("<span />").addClass("label");if(this.trackingEnabled&&typeof (UNOUNO.tracking.genericTracking)=="function"){sectionNavChild.on("click",function(e){UNOUNO.tracking.genericTracking({eVar65:"section-nav:"+anchor.getAttribute("name")});
});}if(anchor.getAttribute("title")!=null&&!!anchor.getAttribute("title").length){sectionNavChildBulletLabel.setHtml(anchor.getAttribute("title"));}sectionNavChildBulletOutter.append(sectionNavChildBulletLabel);sectionNavChildBulletOutter.append(sectionNavChildBulletInner);sectionNavChildLink.append(sectionNavChildBulletOutter);
sectionNavChild.append(sectionNavChildLink);this.pageSectionNavigation.container.append(sectionNavChild);this.pageSectionNavigation.children.push({element:sectionNavChild,name:anchor.getAttribute("name"),position:anchor.getOffset().top});},this);},initializePageLeaveEvent:function(){window.onbeforeunload=function(e){$q(window).off("scroll",this.windowOnScroll,this);
}.bind(this);},initializeWindowInspection:function(){$q(window).on("scroll",this.windowOnScroll,this);},windowOnScroll:function(){this.determineCurrentSection();},getCurrentPageSection:function(){for(var c=0;c<this.pageSectionNavigation.children.length;c++){var currentPageSection=this.pageSectionNavigation.children[c];
if(currentPageSection.element.hasClass("activated-sectionitem")){return currentPageSection.name;}}return null;},determineCurrentSection:function(){var windowScrollTop=$q(window).getScrollTop();var windowHeight=$q(window).getHeight();var currentViewPort=windowScrollTop+windowHeight/2;this.pageSectionNavigation.children.forEach(function(sectionAnchor,index){var anchorStartPosition=sectionAnchor.position;
var anchorEndPosition=$q(document).getHeight();if((index+1) in this.pageSectionNavigation.children){anchorEndPosition=this.pageSectionNavigation.children[index+1].position;}if(sectionAnchor.element.hasClass("activated-sectionitem")){sectionAnchor.element.removeClass("activated-sectionitem");}if(currentViewPort>anchorStartPosition&&currentViewPort<anchorEndPosition){if(!sectionAnchor.element.hasClass("activated-sectionitem")){sectionAnchor.element.addClass("activated-sectionitem");
}}},this);this.announceCurrentSection(this.getCurrentPageSection());},setCurrentLocationHash:function(currentPageSection){if("replaceState" in window.history){if(currentPageSection==null){if(window.location.hash!=""){window.history.replaceState(null,null,window.location.pathname);}return ;}if(window.location.hash!=="#"+currentPageSection){window.history.replaceState(null,null,"#"+currentPageSection);
}}},announceCurrentSection:function(currentPageSection){if(this.pageSectionChangeEvent!=null){window.clearTimeout(this.pageSectionChangeEvent);}this.setCurrentLocationHash(currentPageSection);this.pageSectionChangeEvent=window.setTimeout(function(){if(this.previousPageSection!=currentPageSection){$q(document).emit("pageSectionChanged",{leave:(this.previousPageSection||"none"),enter:(currentPageSection||"none")});
this.previousPageSection=currentPageSection;}}.bind(this),this.firePageSectionEventDelay*1000);},initializeTracking:function(){if(this.trackingEnabled&&typeof (UNOUNO.tracking.sectionTracking)=="function"){$q(document).on("pageSectionChanged",function(data){UNOUNO.tracking.pageSection=data.enter;UNOUNO.tracking.sectionTracking(data.enter);
},this);}}}});
$q.ready(function(){new UNOUNO.components.sectionNavigation({"trackingEnabled":false});});

$q.define("UNOUNO.components.vh215Lightbox",{construct:function(startHours,endHours,showContent,showAfter,excludeDays){this.startHours=startHours;this.endHours=endHours;this.showAfter=showAfter||3000;this.showContent=showContent;this.excludeDays=excludeDays||[0];if(!!$q(showContent).length){this.startTimeout();
}},members:{showAfter:0,startHours:0,endHours:0,showContent:null,excludeDays:null,userLastActive:new Date(),documentEvents:[],windowEvents:[],startTimeout:function(){var now=new Date();var currentHour=now.getHours();var currentDay=now.getDay();if(currentHour>=this.startHours&&currentHour<this.endHours&&this.excludeDays.indexOf(currentDay)===-1){["mousemove","click","mousedown","mouseup","keyup"].forEach(function(eventName){this.documentEvents.push($q(document.body).on(eventName,this.userActive,this));
},this);["resize","scroll"].forEach(function(eventName){this.windowEvents.push($q(window).on(eventName,this.userActive,this));},this);window.setTimeout(this.tick.bind(this),this.showAfter);}},userActive:function(){this.userLastActive=new Date();},tick:function(){var inactivePeriod=new Date()-this.userLastActive;
if(inactivePeriod>=this.showAfter){this.documentEvents.forEach(function(event){$q(document.body).off(event);});this.windowEvents.forEach(function(event){$q(window).off(event);});this.documentEvents=[];this.windowEvents=[];this.showLightbox();}else{window.setTimeout(this.tick.bind(this),this.showAfter-inactivePeriod);
}},showLightbox:function(){var lightBox=new qui.bom.lightbox.LightBox();lightBox.setWidth(940);lightBox.setHeight(325);lightBox.getBlocker().setBackgroundColor("#4d84bb");lightBox.getBlocker().setOpacity(0.75);lightBox.setContent($q.create($q(this.showContent).getHtml()));lightBox.show();UNOUNO.tracking.lightboxTracking("tsInbound-layer");
lightBox.getContent().find(".lightbox-close").on("click",function(){lightBox.close();});}}});$q.define("UNOUNO.components.lightboxes",{statics:{init:function(){if(document.getElementById("tvspot-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("tvspot","tvspot-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);
}if(document.getElementById("firststeps-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("firststeps","firststeps-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("webappVideo-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("webappVideo","webappVideo-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("custom-layout-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("custom-layout","custom-layout-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("custom-style-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("custom-style","custom-style-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("insert-elements-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("insert-elements","insert-elements-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("image-gallery-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("image-gallery","image-gallery-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("image-edit-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("image-edit","image-edit-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("contact-maps-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("contact-maps","contact-maps-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("diyfilmSEO-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("diyfilmSEO","diyfilmSEO-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("diyfilmSMC-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("diyfilmSMC","diyfilmSMC-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("branches-container")){UNOUNO.inline.branchesBrowser=new UNOUNO.global.LightBox("lightbox-branches","branches-container",true);UNOUNO.inline.branchesBrowser.lightBox.setWidth(940);$q("#button-branchesLightbox-close").on("click",function(e){e.preventDefault();
UNOUNO.inline.branchesBrowser.lightBox.close();});}}}});UNOUNO.components.lightboxes.init();
$q.define("UNOUNO.components.lightboxes",{statics:{lightboxPages:{tariff:120000,address:60000,costs:60000},init:function(){if(this.lightboxPages[UNOUNO.params.page]){var showAfter=this.lightboxPages[UNOUNO.params.page];new UNOUNO.components.vh215Lightbox(8,18,"#tsInbound-container",showAfter);}if(document.getElementById("seo-container")){UNOUNO.inline.seoLightBox=new UNOUNO.global.LightBox("seo","seo-container",true);
UNOUNO.inline.seoLightBox.lightBox.setWidth(940);}if(document.getElementById("webapps-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("webapps","webapps-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("smc-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("smc","smc-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("webapps2-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("webapps2","webapps2-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("newsletter-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("newsletter","newsletter-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("shop-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("shop","shop-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("switch-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("switch","switch-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("documents-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("documents","documents-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("events-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("events","events-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("smartphones-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("smartphones","smartphones-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("seoservice-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("seoservice","seoservice-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}}}});UNOUNO.init.registerForJSLoad(function(){UNOUNO.components.lightboxes.init();});


$q.define("UNOUNO.components.webfontPrice",{extend:UNOUNO.components.webfontPrice,construct:function(price,configuration){this.base(arguments,price,configuration);},members:{_configuration:{currencyBefore:"£",decimalSeparator:".",decimalLength:2}}});
//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/coverflow-min.js
(function(){var h=window.qxWeb.$$qx;h.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});h.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){qxWeb.define("baselib.CssUtil",{statics:{canTransform:!1,canTransform3d:!1,methods:{javaScript:"javaScript",transform:"transform",transform3d:"transform3d"},transformPropertyName:null,transitionEndEvent:null,__ce:function(){return this.canTransform3d?"transform3d":this.canTransform?"transform":"javaScript"},
getScaleStyle:function(a,b,c){if("string"!=typeof c||"auto"==c)c=this.__ce();return c==this.methods.transform3d&&this.canTransform3d?{style:"transform",value:"scale3d("+a+","+b+",1)"}:c==this.methods.transform&&this.canTransform?{style:"transform",value:"scale("+a+","+b+")"}:c==this.methods.javaScript&&this.canFilter?{style:"filter",value:"progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12=0, M21=0, M22="+b+", SizingMethod='auto expand')"}:{}},getTranslateStyle:function(a,b,c,d){c=c||"0px";if("string"!=
typeof d||"auto"==d)d=this.__ce();if(d==this.methods.transform3d&&this.canTransform3d)return{left:"transform",value:"translate3d("+a+", "+b+", "+c+")",animationValue:[a,b,"0px"]};if(d==this.methods.transform&&this.canTransform)return{left:"transform",value:"translate("+a+", "+b+")",animationValue:[a,b]};if(d==this.methods.javaScript)return{left:"left",value:a}},translate:function(a,b,c,d,e){var f=arguments,g=null;if("string"!=typeof e||"auto"==e)e=this.__ce();b="number"==typeof b?b+"px":b;c="number"==
typeof c?c+"px":c;d="number"==typeof d?d+"px":d;if(2>f.length)throw Error("Too few arguments : baselib.CssUtil.translate requires at least 2 arguments");this.canTransform&&-1!=e.indexOf("transform")?(g=this.getTranslate(a),c=c||g[1],d=d||g[2],g=f=null,g=e==this.methods.transform3d&&this.canTransform3d?"translate3d":"translate",f=e==this.methods.transform3d&&this.canTransform3d?"translate3d("+b+", "+c+", "+d+")":"translate("+b+", "+c+")",this.transform(a,g,f)):a.setStyles({left:b,top:c})},scale:function(a,
b,c,d){var e=arguments,f=null;if("string"!=typeof d||"auto"==d)d=this.__ce();if(2>e.length)throw Error("Too few arguments : baselib.CssUtil.scale requires at least 2 arguments");this.canTransform&&-1!=d.indexOf("transform")?(f=this.getTranslate(a),c=c||f[1],f=e=null,f=d==this.methods.transform3d&&this.canTransform3d?"scale3d":"scale",e=d==this.methods.transform3d&&this.canTransform3d?"scale3d("+b+", "+c+", 1)":"scale("+b+", "+c+")",this.transform(a,f,e)):d==this.methods.javaScript&&this.canFilter&&
(a[0].style.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+b+", M12=0, M21=0, M22="+c+", SizingMethod='auto expand')",e=(a[0].offsetHeight/a[0].filters[0].M22-a[0].offsetHeight)/2,a[0].style.marginLeft=(a[0].offsetWidth/a[0].filters[0].M11-a[0].offsetWidth)/2+"px",a[0].style.marginTop=e+"px")},enableTransition:function(a,b,c,d,e){this.canTransition&&(e=e||"0ms",a.setStyle("transition-property",b),a.setStyle("transition-duration",c+"ms"),a.setStyle("transition-timing-function",d),a.setStyle("transition-delay",
e))},disableTransition:function(a){this.canTransition&&(a.setStyle("transition-property","none"),a.setStyle("transition-duration","0ms"),a.setStyle("transition-timing-function","none"),a.setStyle("transition-delay","0ms"),a[0].style.removeProperty(this.transitionObj.name),a[0].style.removeProperty("transition"))},getTranslate:function(a,b){if("string"!=typeof b||"auto"==b)b=this.__ce();if(-1!=b.indexOf("transform")&&(this.canTransform3d||this.canTransform)){var c=this.getTransform(a),d=c.length,e=
"0%",f="0%",g="0%";1<d&&(12<=d?(e=c[12],f=c[13],g=c[14]):(e=c[4],f=c[5]));return[e,f,g]}return null},getPosition:function(a,b){if("string"!=typeof b||"auto"==b)b=this.__ce();return-1!=b.indexOf("transform")&&(this.canTransform3d||this.canTransform)?this.getTranslate(a,b):[a.getStyle("left"),a.getStyle("top")]},getScale:function(a,b){if("string"!=typeof b||"auto"==b)b=this.__ce();if(-1!=b.indexOf("transform")&&(this.canTransform3d||this.canTransform)){var c=this.getTransform(a),d=1,e=1,f=c.length;
1<f&&(12<=f?(d=c[0],e=c[5]):(d=c[0],e=c[3]));return[parseFloat(Number(d),10),parseFloat(Number(e),10)]}return a[0].filters&&a[0].filters.length?(c=a[0].filters.item(0),[c.M11,c.M22]):[1,1,1]},getTransform:function(a){a=a.getStyle("transform");a.match(/matrix(3d)?\((.*?)\)/);return a=RegExp.$2.split(",")},transform:function(a,b,c){qxWeb(a).forEach(function(a){this._transform(qxWeb(a),b,c)}.bind(this))},_transform:function(a,b,c){b=b.split(",");var d=a[0].style[this.transFormJSName],e=null,f="",g=null;
if(d&&0<d.length)for(var f=d,k=0;k<b.length;k++)g=RegExp(b[k]+"\\(.*?\\)"),e=c.match(g),-1!==d.indexOf(b[k])?e&&(e=e[0],f=f.replace(g,e)):e&&(e=e[0],f=-1!=b[k].indexOf("translate")?e+" "+f:f+" "+e);else f=c;a[0].style[this.transFormJSName]=f}},defer:function(a){a.canFilter="undefined"!=typeof document.createElement("div").filters;a.canTransform=qxWeb.env.canTransform();a.canTransform3d=qxWeb.env.canTransform3d();a.transformObject=qxWeb.env.get("css.transform");if(a.canTransform||a.canTransform3d)a.transFormJSName=
a.transformObject.name,a.transFormCssName=h.bom.Style.getCssName(a.transformObject.name);a.transitionObj=qxWeb.env.get("css.transition");qxWeb.env.canTransition()&&(a.canTransition=!0,a.transitionEndEvent=a.transitionObj["end-event"],"firefox"==qxWeb.env.get("browser.name")&&(a.transitionEndEvent="transitionend"));a.canAnimation=qxWeb.env.canAnimation()}})})();(function(){h.Bootstrap.define("baselib.CoverflowBase",{extend:h.event.Emitter,construct:function(a,b,c){this.__cf=qxWeb(a);this.__cg=this.getFlowContainer();
this.__bW=null;this.__ch={};"undefined"!=typeof c&&(this.__bW=c,this.__dm(b));this.__dp(b);this._render();this.__ci=[]},statics:{FLOW_CONT_SCALE_FACTOR:2,LAYOUT:{"3d":"3d","default":"default",carousel:"carousel"},coverflow:function(a,b,c){return new baselib.CoverflowBase(a,b,c)}},events:{centeredItemChanged:"qx.event.Emitter",centeredItemChanging:"qx.event.Emitter",scaledown:"qx.event.Emitter",scaleup:"qx.event.Emitter",transform:"qx.event.Emitter"},members:{__cf:null,__cg:null,__cj:baselib.CssUtil.canTransform3d&&
"mshtml"!=qxWeb.env.get("engine.name"),__ck:null,__cl:null,__cm:null,__cn:null,__co:null,__cp:!1,__cq:!1,__cr:!0,__cs:0,__ct:!1,__cu:!1,__cv:null,__cw:null,__cx:0,__cy:0,__cz:10,__ci:null,__cA:null,__cB:!1,__cC:10,__cD:null,__cE:null,__cF:null,__bW:null,__cG:0,__cH:0,__cI:0,__cJ:null,__ch:null,__cK:null,__cL:0,__cM:!1,__cN:!1,__cO:null,__cP:!1,__cQ:null,__cR:!1,__cS:!0,__cT:!1,__cU:null,__cV:!1,__cW:null,__cX:function(a){var b={},c=typeof a;if("object"!=c||"function"==c)return a;if("Array"==h.Bootstrap.getClass(a))return a.slice();
for(var d in a)b[d]=this.__cX(a[d]);return b},_render:function(){!this.__cB&&this.__cP&&(this.__cI=this.__cg.getChildren().length);if(this.__cP){this._removeClickEvent();if(this.__cQ){this.__cQ.useTransform!=this.__cl.useTransform&&(this._resetFlowContainerStyles(),this._resetContentElementsStyles(),this._resetClipperStyles(),this.__cR=!0);if(this.__cQ.virtual&&JSON.stringify(this.__cQ.virtual)!=JSON.stringify(this.__cl.virtual)||this.__cV)this.__bW&&(this.dispose(),this.__dm(this.__cQ),this.__cg[0].innerHTML=
"",this.__cg[0].appendChild(this.__di()),this._initFlowEvents(),this._addTransitionEndEvent(),this._addDragEvent(),this.__ck=Math.ceil(this.getContentStack().length/2)*this.__cl["3d"].zOffset(),this._setStylesForClipper(),this._setStylesForFlowContainer(),this.__df(),this.__cm=null),this.__cV=!1;this.__cS&&delete this.__cQ["3d"]}this.__dp(this.__cX(this.__cQ));this._initItems();this.refresh()}else{this.__cU={centeredItemChanged:null,centeredItemChanging:null,scaledown:null,scaleup:null,transform:null};
var a=this.__cg.getChildren();0<a.length&&(a.forEach(function(a,c){qxWeb(a).setProperty("__modelIndex",c)}),this.__cI=a.length);this.__bW&&0<this.__bW.length&&(this.__cg[0].innerHTML="",this.__cg[0].appendChild(this.__di()));this._addTransitionEndEvent();0<this.__cg.getChildren().length&&(this.__ck=Math.ceil(this.getContentStack().length/2)*this.__cl["3d"].zOffset(),this._setStylesForClipper(),this._setStylesForFlowContainer(),this._initFlowEvents(),this._addDragEvent(),this._initItems());this.__cQ=
this.__cX(this.__cl);this.__cP=!0}},_setOption:function(a,b){if("object"==typeof b){"3d"==a&&(this.__cS=!1);for(var c in b)this.__cQ[a][c]=b[c]}else this.__cQ[a]=b},_setOptions:function(a){for(var b in a)this._setOption(b,a[b])},getOptions:function(){return this.__cX(this.__cQ)},getCenteredItemIndex:function(){return this.__cH},getCurrentBuffer:function(){return this.__ch},reset:function(){this.__cm=null;this.setCenteredItem(null);this._initItems()},setModel:function(a){this.__bW=a;this.__cV=!0},
centerFlowContainer:function(){var a=this._getFlowContainerCenter(),b=parseInt(this.getClipper().getWidth()/2,10);this._moveFlowTo(-(a-b),0,-this.__ck)},refresh:function(){this._setFlowContainerWidth();this.centerFlowContainer();if(this.__cR){var a=this.getContentStack().toArray().concat(),b=a.splice(0,Math.floor(a.length/2)).reverse();a.splice(0,1);this.__dk("transform",{item:this.getCenteredItem(),stack:a,left:b,right:a});this.__cR=!1}this.__dt(this.getCenteredItem(),!0);this.__df()},placeContentElementsOnCenter:function(a){if(this.__cr){var b=
this.getContentStack().toArray().concat(),c=0;this.getCenteredItem()&&(c=Math.floor(b.indexOf(this.getCenteredItem()[0])));a=a?qxWeb(a):qxWeb(b[c]);for(var d=[],e=[],f=b.length,g=Math.floor((f-1)/2),k=f-g-1,l=c+1,c=c-1,m=0;m<g;)l%=f,e[e.length]=b[l],m++,l++;for(m=0;m<k;)c=(c+f)%f,d[d.length]=b[c],m++,c--;d.reverse();b=d.concat(a).concat(e);this.__dz(a,d,e);this.__dk("transform",{item:a,stack:b,left:d,right:e});this.__dt(a,!0)}},replaceContentElements:function(){if(this.__cr){var a=this.getCenteredItem();
if(a){var b=this.getContentStack(),c=b.indexOf(a[0]);if(-1==c)throw Error("Item not found in content element stack!");for(var d=0;d<c;d++)this._moveArrayItem(b,0,b.length-1);this.centerFlowContainer();this.__cr&&(this.__dt(a,!0),this.__cB&&this.__dl(a),this.__dk("centeredItemChanged",{modelIndex:this.getCenteredModelIndex(),item:b[0],oldcentered:this.__cO?this.__cO[0]:null,stack:b.toArray().concat()}))}}},getClipper:function(){if(!this.__cf)throw Error("There must be a clipper element defined!");
return this.__cf},getFlowContainer:function(){if(!this.__cg&&(this.__cg=this.__cf.getChildren(),1!=this.__cg.length))throw Error("There must be just one element inside the clipper!");return this.__cg},getCenteredItem:function(){return this.__co},setCenteredItem:function(a){this.__co=a},getContentStack:function(){this.__cm||(this.__cm=this._getFlowContainerContent().concat());return this.__cm},showNext:function(){var a=this.getCenteredItem().getProperty("__modelIndex");this.showItem((a+1)%this.__cI)},
showPrev:function(){var a=this.getCenteredItem().getProperty("__modelIndex");this.showItem((a-1+this.__cI)%this.__cI)},showItem:function(a){if(!this.__cu){this.__cu=!0;if("number"==typeof a)if(this.__cB)if(this.__ch[a.toString()])a=qxWeb(this.__ch[a.toString()]);else{this.__cR=!0;this.__dl(a);return}else a=qxWeb(this._getFlowContainerContent()[a]);if((this.__cr=this.getCenteredItem()[0]!=a[0])||this.__cN){var b=parseInt(baselib.CssUtil.getPosition(a,this.__cA)[0],10),c=this.getContentStack().toArray().concat(),
d=this.__dA(a),e=this.__dA(this.getClipper());this.__cO=this.getCenteredItem();this.__dc(this.getCenteredItem(),this.__cl.duration);this.__dc(a,this.__cl.duration);this.__cv=0<c.indexOf(this.getCenteredItem()[0])-c.indexOf(a[0])?"right":"left";var f=c.indexOf(this.getCenteredItem()[0]),g=c.indexOf(a[0]),f=this.__ds(c,g,f);h.module.util.Array.exclude(c,f);c="left"==this.__cv?c.concat(f):f.concat(c);f=c.splice(0,Math.floor(c.length/2)).reverse();g=f.concat(c);this.__dz(a,f.reverse(),c);c.splice(0,1);
this.__dk("transform",{item:a,stack:g,left:f,right:c});c=this.getContentStack().toArray().concat();this.__dk("scaleup",{item:a,stack:c});this.__dk("scaledown",{item:this.getCenteredItem(),stack:c});f=(f=this.getCenteredItem())?f[0]:null;c={item:a[0],stack:c,modelIndex:a.getProperty("__modelIndex"),oldcentered:f};this.__dk("centeredItemChanging",c);this.__dt(a,!1);this._animateFlowTo(-b+(e-d)/2)}else this.__df()}},isInFlow:function(){return this.__cp},_getFlowContainerCenter:function(){return parseInt(this.__dA(this.getFlowContainer())/
2,10)},_getFlowContainerLeftOffset:function(){return this.__cn},_getFlowContainerContent:function(){var a=this.__cg.getChildren();if(0===a.length)throw Error("There must be at least one element inside the flow container!");return a},__cY:function(a){a.target&&a.target!=this.getFlowContainer()[0]||(this.__ct=!1,this.getFlowContainer()[0].removeEventListener&&this.getFlowContainer()[0].removeEventListener(baselib.CssUtil.transitionEndEvent,this.__cY,!1),baselib.CssUtil.disableTransition(this.getFlowContainer()),
this.__db(),this.replaceContentElements(),this.__df())},_animateFlowTo:function(a){var b=baselib.CssUtil;this.__cp=!0;var c="javaScript"==this.__cA?"left":b.transFormCssName;0<this.__cl.duration?baselib.CssUtil.canTransition?(b.enableTransition(this.getFlowContainer(),c,this.__cl.duration,"linear"),this._setPosition(this.getFlowContainer(),a,0,-this.__ck)):(b=function(a){this._setPosition(this.getFlowContainer(),a.value,0,-this.__ck)}.bind(this),c=function(a){this.__ct=!1;0===this.__cs&&this.__cY(a)}.bind(this),
this.__dr(this.__cn,a,this.__cl.duration,b,c)):(this._setPosition(this.getFlowContainer(),a,0,-this.__ck),this.__cY({}));this.__ct=!0;this.__cn=a},_moveFlowTo:function(a,b,c){b=baselib.CssUtil.getTranslateStyle(a+"px",(void 0!==b?b:0)+"px",(void 0!==c?c:0)+"px",this.__cA);this.getFlowContainer().setStyle(b.left,b.value);this.__cn=a},__da:function(a){a=void 0!==a?a:this.__cl.duration;this.getContentStack().forEach(function(b){this.__dc(qxWeb(b),a)}.bind(this))},__db:function(){this.getContentStack().forEach(function(a){this.__dd(qxWeb(a))}.bind(this))},
__dc:function(a,b){-1!=this.__cA.indexOf("transform")&&baselib.CssUtil.enableTransition(a,baselib.CssUtil.transFormCssName,b,"linear")},__dd:function(a){-1!=this.__cA.indexOf("transform")&&baselib.CssUtil.disableTransition(a)},__de:function(a){a=this.__dg(a);this.__cp&&(this.__cp=!1,this.__cN=!0);this.showItem(a)},__df:function(){this.__cq=this.__cu=this.__cp=!1;this.__cr=!0;this.__cN=this.__ct=!1},__dg:function(a){var b=this.getContentStack(),c=parseInt(this.__dA(this.getClipper())/2,10),d=null;
this.__cN=!1;for(var e=0;e<b.length;e++){var f=qxWeb(b[e]),g=this.__dA(f),f=this._getFlowContainerLeftOffset()+parseInt(baselib.CssUtil.getPosition(f,this.__cA)[0],10),k=f+g;if(f<=c&&k>=c){d="right"===a?Math.abs(f-c)<=0.9*(g/2)?b[e-1]:b[e]:Math.abs(f-c)>=0.9*(g/2)?b[e+1]:b[e];break}}d||(this.__cN=!0,d="right"==a?b[0]:b[b.length-1]);return qxWeb(d)},_setPosition:function(a,b,c,d){if(baselib.CssUtil.canTransform&&"javaScript"!=this.__cA){var e="transform3d"==this.__cA?"translate3d":"translate";b=baselib.CssUtil.getTranslateStyle(b+
"px",c+"px",d+"px",this.__cA);baselib.CssUtil.transform(a,e,b.value)}else a.setStyle("left",b+"px")},_createItem:function(a){return"function"===typeof this.__cF?this.__cF(a):qxWeb.create(qxWeb.template.render(this.__cE,a))},_moveArrayItem:function(a,b,c){a.splice(c,0,a.splice(b,1)[0])},__dh:function(a,b,c){c=c?c:this.__ch;qxWeb(b).setProperty("__modelIndex",a);c[a.toString()]=b},getCenteredModelIndex:function(){return this.getCenteredItem().getProperty("__modelIndex")},__di:function(){this.__cm=null;
var a=document.createDocumentFragment();this.__cI=this.__bW.length;this.__cD=this.__cI<this.__cC?this.__cI:this.__cC;var b=null,c=Math.ceil((this.__cD-1)/2),d=0,d=0,b=this._createItem(this.__bW[0]);this.setCenteredItem(b);this.__dh(0,b[0]);var e=b;a.appendChild(b[0]);for(var f=1,g=1;g<=c;g++)d=(0+g)%this.__cI,b=this._createItem(this.__bW[d]),this.__dh(d,b[0]),a.appendChild(b[0]),f++;e=e[0];for(g=1;g<=c&&f<this.__cD;g++)d=(0-g)%this.__cI,d=0>d?d+this.__cI:d,b=this._createItem(this.__bW[d]),this.__dh(d,
b[0]),a.insertBefore(b[0],e),e=b[0],f++;return a},__dj:function(a,b){b.eventType=a;this.emit(a,b)},__dk:function(a,b){this.__cP?(this.__cU[a]&&(window.clearTimeout(this.__cU[a]),this.__cU[a]=null),this.__dj(a,b)):this.__cU[a]=window.setTimeout(function(){this.__dj(a,b)}.bind(this),0)},__dl:function(a){var b=this.getContentStack().toArray().concat(),c={},d=null,e=this.getCenteredItem(),e=e?e[0]:null;"number"==typeof a?(d=a,a=this.getCenteredItem(),this.__cH=d,this.__cJ(a,this.__bW[d])):d=this.__cH=
a.getProperty("__modelIndex");this.__ch[d.toString()]||(this.__ch=[]);this.__cr=this.getCenteredModelIndex()!=d;var f=this.getContentStack().toArray().concat(),g=f.splice(0,Math.floor(f.length/2)).reverse(),k=g.concat(f);this.__dz(a,g.reverse(),f);f.splice(0,1);this.__cR&&(this.__dk("transform",{item:a,stack:k,left:g,right:f}),this.__cR=!1);this.__cr&&this.__dk("centeredItemChanging",{item:a[0],stack:b,modelIndex:d,oldcentered:e});this.__dh(d,a[0],c);for(var f=Math.floor(b.length/2),k=g=0,l=1,m=Math.ceil((this.__cD-
1)/2);l<=m;l++)g=(d-l)%this.__cI,g=0>g?g+this.__cI:g,k=(d+l)%this.__cI,this.__dh(g,b[f-l],c),this.__dh(k,b[f+l],c),b[f+l]&&(this.__ch[k.toString()]||this.__cJ(qxWeb(b[f+l]),this.__bW[k])),b[f-l]&&(this.__ch[g.toString()]||this.__cJ(qxWeb(b[f-l]),this.__bW[g]));this.__ch=c;this.__cr&&(this.setCenteredItem(a),this.__dk("centeredItemChanged",{modelIndex:this.__cH,item:a[0],oldcentered:e,stack:b}),this.__df())},__dm:function(a){this.__cB=!0;a.virtual||(a.virtual={});qxWeb.env.get("qx.debug")&&qxWeb.log&&
"function"===typeof a.virtual.itemCreator&&a.virtual.itemTemplate&&qxWeb.debug("Virtual options itemCreator and itemTemplate can't be used together!");this.__cC=a.virtual.maxItems||10;this.__cE=a.virtual.itemTemplate||'<li class="qx-coverflow-item coverflow-item"><img class="qx-coverflow-image coverflow-image" src="{{src}}" alt="" /></li>';this.__cF=a.virtual.itemCreator;this.__cJ=a.virtual.itemUpdater||function(a,c){a.find("img").setAttribute("src",c.src)}},__dn:function(){this.__cA="javaScript";
this.__cl.useTransform&&qxWeb.env.canTransform()&&(this.__cA=qxWeb.env.canTransform3d()?"transform3d":"transform")},__do:function(a,b){var c=a.layout==baselib.CoverflowBase.LAYOUT["3d"],d=c?100:0,e=c?-20:0,f=c?10:0;b["3d"]={leftOffset:function(){return d},topOffset:function(){return e},zOffset:function(){return f}};["leftOffset","topOffset","zOffset"].forEach(function(c){if(a.layout==baselib.CoverflowBase.LAYOUT["3d"]){a["3d"]=a["3d"]||{};var d=a["3d"][c];a["3d"][c]="undefined"!=typeof d?d:b["3d"][c];
(function(){"number"==typeof d?b["3d"][c]=function(){return d}:"function"==typeof d&&(b["3d"][c]=d)})()}});return b},__dp:function(a){a["3d"]&&(this.__cS=!1);var b={useTransform:!0,duration:200,scaleDownFactor:0.75,scaleUpFactor:1,autoResizeFlowContainer:!0,swipe:!1,layout:baselib.CoverflowBase.LAYOUT["default"],virtual:{},onClick:this.__dq.bind(this)};if(a)for(var c in a)b[c]=a[c];this.__cl=this.__do(a,this.__cX(b));if("number"==typeof this.__cl.scaleDownFactor){var d=this.__cl.scaleDownFactor;this.__cl.scaleDownFactor=
function(){return d}}this.__cT=!1;"carousel"==this.__cl.layout&&(this.__cl.scaleDownFactor=function(){return 1},this.__cl.layout="default",this.__cT=!0);this.__dn()},_setFlowContainerWidth:function(){if(!1!==this.__cl.autoResizeFlowContainer){var a=0,b=0;this._getFlowContainerContent().forEach(function(c){c=qxWeb(c);c.getProperty("__width")||c.setProperty("__width",Math.max(parseInt(c.getWidth(),10),c[0].offsetWidth));b=c.getProperty("__width");a+=b});var c=Math.max(a*baselib.CoverflowBase.FLOW_CONT_SCALE_FACTOR,
2*h.bom.Viewport.getWidth());this.getFlowContainer().setStyle("width",c+"px")}},_resetFlowContainerWidth:function(){!1!==this.__cl.autoResizeFlowContainer&&this.getFlowContainer().setStyle("width","auto")},_setStylesForClipper:function(){"transform3d"==this.__cA&&this.getClipper().setStyle("transform","translate3d(0px, 0px, 0px)");"transform3d"==this.__cA&&this.__cj?this.getClipper().setStyle(baselib.CssUtil.transformObject.perspective,"1000px"):"javaScript"==this.__cA&&this.getFlowContainer().setStyle("zIndex",
"0")},_resetClipperStyles:function(){"transform3d"==this.__cA&&this.getClipper().setStyle("transform","");"transform3d"==this.__cA&&this.__cj?(this.getClipper().setStyle(baselib.CssUtil.transformObject.perspective,"none"),this.getClipper()[0].style.removeProperty(h.bom.Style.getCssName(baselib.CssUtil.transformObject.perspective))):"javaScript"==this.__cA&&(this.getFlowContainer().setStyle("zIndex","auto"),this.getFlowContainer()[0].removeProperty("z-index"))},_addTransitionEndEvent:function(){if(this.getFlowContainer()[0].addEventListener){var a=
this.__cY.bind(this);this.getFlowContainer().setProperty("__transitionCallback",a);this.getFlowContainer()[0].addEventListener(baselib.CssUtil.transitionEndEvent,a,!1)}},_removeTransitionEndEvent:function(){if(this.getFlowContainer()[0].addEventListener){var a=this.getFlowContainer().getProperty("__transitionCallback");this.getFlowContainer()[0].removeEventListener(baselib.CssUtil.transitionEndEvent,a,!1)}},_setStylesForFlowContainer:function(){this.__cj?"transform3d"==this.__cA&&(this.getFlowContainer().setStyle(baselib.CssUtil.transformObject["backface-visibility"],
"hidden"),this.getFlowContainer().setStyle(baselib.CssUtil.transformObject.style,"preserve-3d")):baselib.CssUtil.canTransform3d&&"mshtml"==qxWeb.env.get("engine.name")&&"transform3d"==this.__cA&&this.getContentStack().forEach(function(a){baselib.CssUtil.transform(qxWeb(a),"perspective","perspective(1000px)")})},_resetFlowContainerStyles:function(){this.__cj&&(this.getFlowContainer()[0].style.removeProperty(h.bom.Style.getCssName(baselib.CssUtil.transformObject["backface-visibility"])),"transform3d"==
this.__cA&&(this.getFlowContainer().setStyle(baselib.CssUtil.transformObject.style,"flat"),this.getFlowContainer()[0].style.removeProperty(h.bom.Style.getCssName(baselib.CssUtil.transformObject.style))),this.getFlowContainer()[0].style.removeProperty(baselib.CssUtil.transFormCssName))},_initClickEvents:function(){this.__cW=this.__cl.onClick.bind(this);this.getClipper().on(qxWeb.EVENT.click,this.__cW,this)},_removeClickEvent:function(){this.getClipper().off(qxWeb.EVENT.click,this.__cW,this)},__dq:function(a){var b=
null,c=a.getTarget();this.getFlowContainer().getChildren().forEach(function(a){if(c==a||qxWeb(c).isChildOf(qxWeb(a)))b=qxWeb(a)});b&&(this.getCenteredItem()[0]!=b[0]&&!this.__cp)&&this.showItem(b)},dispose:function(){this._removeClickEvent();this._removeFlowEvents();this._removeDragEvent();this._removeTransitionEndEvent()},_initItems:function(){this.__cw=[];this._setFlowContainerWidth();this._setStylesForContentElements();this.centerFlowContainer();this.placeContentElementsOnCenter(this.getCenteredItem());
this._initClickEvents()},_setStylesForContentElements:function(){this.__cj&&this.getContentStack().setStyle(baselib.CssUtil.transformObject["backface-visibility"],"hidden")},_resetContentElementsStyles:function(){this.__cj&&(this.getContentStack().setStyle(baselib.CssUtil.transformObject["backface-visibility"],"visible"),this.getContentStack().forEach(function(a){a.style.removeProperty(h.bom.Style.getCssName(baselib.CssUtil.transformObject["backface-visibility"]))}));this.getContentStack().forEach(function(a){-1!=
this.__cA.indexOf("transform")?(a.style.removeProperty(h.bom.Style.getCssName("transform")),a.style.removeProperty(h.bom.Style.getCssName("transition"))):(a.style.removeProperty("left"),a.style.removeProperty("top"));a.style.removeProperty("z-index")}.bind(this))},__dr:function(a,b,c,d,e){var f=null,g=this,k=function(l){var m;m=(new Date).getTime();l=a;var h=0;null===f&&(f=m);h=m-f;m=h/c;l=a+(b-a)*m;a<b&&l>b&&(l=b);d.call(g,{progress:1<m?1:m,value:l});h<c&&h<c?qxWeb.EVENT.animation.requestFrame(k):
e.call(g,{progress:1,value:b})};qxWeb.EVENT.animation.requestFrame(k)},_applyTransition:function(a,b,c,d,e,f){var g=baselib.CssUtil,k=g.getPosition(a,this.__cA),l,m;k.forEach(function(a,b){k[b]=parseInt(a,10)});var h=g.getScale(a,this.__cA)[0],q=null;this.__dr(k[1],c,f,function(c){l=k[2]+(d-k[2])*c.progress;m=h+(e-h)*c.progress;g.canTransform?(q=g.getTranslateStyle(b+"px",c.value+"px",l+"px",this.__cA).value,q+=" "+g.getScaleStyle(m,m,this.__cA).value,a.setStyle("transform",q)):(g.translate(a,b,c.value+
"px",null,this.__cA),g.scale(a,m,m,this.__cA))},function(a){this.__cs--;0!==this.__cs||this.__ct||this.__cY({})});this.__cs++},_positionAndScale:function(a,b,c,d,e,f){var g=d;d=this.__cj?d:0;var k=baselib.CssUtil,l=k.getTranslateStyle(b+"px",c+"px",d+"px",this.__cA).value,l=l+(" "+k.getScaleStyle(e,e,this.__cA).value),m="transform3d"==this.__cA?"translate3d, scale3d":"translate, scale";a.setProperty("__scaleFactor",e);-1!=this.__cA.indexOf("transform")?k.canTransform&&k.canTransition||k.canTransform&&
!f?baselib.CssUtil.transform(a,m,l):k.canTransform&&f&&this._applyTransition(a,b,c,d,e,f):f?this._applyTransition(a,b,c,d,e,f):(k.translate(a,b,c,null,this.__cA),k.scale(a,e,e,this.__cA));a.setStyle("zIndex",g)},__ds:function(a,b,c){var d=Math.abs(b-c);this.__cG=d;var e=[];if(b>c)for(b=0;b<d;b++)e[e.length]=a[b];else for(b=0,c=a.length-1;b<d;b++)e[e.length]=a[c-b];return e},__dt:function(a,b){this.__cM=!0;var c=this.getContentStack().toArray().concat(),d=null,e=null,f=this.getCenteredItem(),f=f?f[0]:
null,f={item:a[0],stack:c,modelIndex:a.getProperty("__modelIndex"),oldcentered:f};b&&!this.__cP&&(f.oldcentered=null,this.__dk("centeredItemChanging",f));this.setCenteredItem(a);var g=this.getContentStack().length,k=c.indexOf(a[0]),l=Math.floor(g/2),e=this._getFlowContainerCenter()-this.__dA(a)/2,m=[],h,d=0,q=e,t=e,n,r=this.__ck,s=0,u=this.__dA(this.getClipper());m[l]=a[0];if(b){for(h=0;h<this.__cw.length;h++)qxWeb(this.__cw[h]).setStyle("opacity",0);this._positionAndScale(a,e,0,this.__ck,this.__cl.scaleUpFactor,
0)}else this.__cw=[],d=parseInt(baselib.CssUtil.getPosition(a,this.__cA)[0],10),this.__dc(a,this.__cl.duration),this._positionAndScale(a,d,0,this.__ck,this.__cl.scaleUpFactor,this.__cl.duration),this.__cw=this.__ds(c,k,l);e=this.__dA(a);if(b||!this.__cT){n=0;for(var p=1,v=Math.ceil((g-1)/2);p<=v;p++)r-=this.__cl["3d"].zOffset(p),s+=this.__cl["3d"].topOffset(p),h=(k-p)%g,h=0>h?h+g:h,d=(k+p)%g,n=l+p,n<g&&!m[n]&&(m[n]=c[d],n=qxWeb(m[n]),d=parseInt(baselib.CssUtil.getPosition(n,this.__cA)[0],10),t=b?
t+e-this.__cl["3d"].leftOffset.call(this,p):d,e=this.__dA(n),d=this.__dv(d,e,u,b)?this.__cl.duration:0,this.__dc(n,d),this._positionAndScale(n,t,s,r,this.__cl.scaleDownFactor.call(this,p),d)),n=l-p,0<=n&&!m[n]&&(m[n]=c[h],n=qxWeb(m[n]),d=parseInt(baselib.CssUtil.getPosition(n,this.__cA)[0],10),e=this.__dA(n),q=b?q-this.__dA(n)+this.__cl["3d"].leftOffset.call(this,p):d,d=this.__dv(d,e,u,b)?this.__cl.duration:0,this.__dc(n,d),this._positionAndScale(n,q,s,r,this.__cl.scaleDownFactor.call(this,p),d));
if(b)for(this.__cm=qxWeb(m),c=0;c<this.__cw.length;c++)g=qxWeb(this.__cw[c]),-1!=this.__cA.indexOf("transform")&&baselib.CssUtil.enableTransition(g,"opacity",400,"linear"),g.setStyle("opacity",1);b&&!this.__cP&&(this.__df(),this.__dk("centeredItemChanged",f))}},__du:function(a,b,c){b=a+b;var d=Math.abs(this.__cn);c=d+c;return a>=d&&a<=c||b>=d&&b<=c},__dv:function(a,b,c,d){return d?!1:this.__du(a,b,c)},_addDragEvent:function(){this.__cf.on("dragstart",this.__dw)},_removeDragEvent:function(){this.__cf.off("dragstart",
this.__dw)},__dw:function(a){a.preventDefault()},_initFlowEvents:function(){this.getClipper()[0].ontouchstart=function(){};this.getClipper()[0].ontouchmove=function(){};this.getClipper()[0].ontouchend=function(){};this.getClipper().on(qxWeb.EVENT.down,this._onTouchStart,this);if(qxWeb.env.get("event.touch")&&"desktop"!=qxWeb.env.get("device.type"))qxWeb(document).on("pointermove",this.__dx,this)},_removeFlowEvents:function(){this.getClipper().off(qxWeb.EVENT.down,this._onTouchStart,this);qxWeb.env.get("event.touch")&&
"desktop"!=qxWeb.env.get("device.type")&&qxWeb(document).off("pointermove",this.__dx,this)},__dx:function(a){this.__cq&&(qxWeb(a.getTarget()).isChildOf(this.getClipper())||this._onTouchEnd(this.__cK,this.__cL,a))},__dy:function(a){if(this.__cq){var b=this.getClipper();if(a.getRelatedTarget()){a=a.getRelatedTarget();var c=qxWeb(a);if(a==b[0]||c.isChildOf(b))return}this.__cq=!1;this.__de(this.__cv?this.__cv:"left")}},_onTouchStart:function(a){if(!this.__ct&&(this.__cy=this.__cx=0,this.__cq=!0,this.__ci[0]=
a.clientX,this.__ci[1]=a.clientY,this.__cp=!1,this.__cl.swipe)){var b=this._getFlowContainerLeftOffset(),c=this.getClipper();this.__cK=this._onTouchMove.bind(this,a.clientX,b);this.__cL=a.clientX;c.on(qxWeb.EVENT.move,this.__cK,this);c.on("mouseout",this.__dy,this);this.upEventHandler=a=this._onTouchEnd.bind(this,this.__cK,a.clientX);c.once(qxWeb.EVENT.up,a,this)}},_onTouchMove:function(a,b,c){if(this.__cq){var d=Math.abs(this.__cx)-Math.abs(this.__cy);Math.abs(this.__cx)>=this.__cz||Math.abs(this.__cy)>=
this.__cz?0<d&&(this.__cp=!0,c.preventDefault(),a=c.clientX-a,this.__cv=0>a?"left":"right",this._moveFlowTo(b+a,0,-this.__ck)):Math.abs(this.__cx)<this.__cz&&Math.abs(this.__cy)<this.__cz&&(this.__cx=c.clientX-this.__ci[0],this.__cy=c.clientY-this.__ci[1])}},_onTouchEnd:function(a,b,c){this.__cq&&(this.__cq=!1,b=this.getClipper(),b.off(qxWeb.EVENT.move,a,this),b.off("mouseout",this.__dy,this),this.__cp&&this.__de(this.__cv))},__dz:function(a,b,c){this.getContentStack().removeClasses(["qx-coverflow-left",
"qx-coverflow-right","qx-coverflow-center","qx-coverflow-last"]);qxWeb(c).addClass("qx-coverflow-right");qxWeb(b).addClass("qx-coverflow-left");qxWeb(b).getFirst().addClass("qx-coverflow-last");qxWeb(c).getLast().addClass("qx-coverflow-last");a.removeClasses(["qx-coverflow-left","qx-coverflow-right","qx-coverflow-center","qx-coverflow-last"]);a.addClass("qx-coverflow-center")},__dA:function(a){var b=parseInt(a.getStyle("width"),10);0===b&&(b=a.getWidth(!0),a[0].filters&&(a[0].filters.length&&"number"==
typeof a[0].filters[0].M11)&&(b*=2-a[0].filters[0].M11));return b}}})})();(function(){h.Bootstrap.define("baselib.Coverflow",{extend:h.ui.website.Widget,construct:function(a,b){h.ui.website.Widget.call(this,a,b)},statics:{_templates:{item:'<li class="qx-coverflow-item"><img class="qx-coverflow-image" src="{{src}}" alt="" /></li>'},_config:{useTransform:!0,duration:200,scaleDownFactor:0.75,scaleUpFactor:1,autoResizeFlowContainer:!0,swipe:!1,layout:"default","3d":{leftOffset:100,topOffset:-20,zOffset:10},
virtual:{},onClick:null},coverflow:function(a,b){var c=new baselib.Coverflow(this);c.setProperty("__configs",a);b&&c.setProperty("__model",b);c.init();return c}},events:{centeredItemChanged:"qx.event.Emitter",centeredItemChanging:"qx.event.Emitter",scaledown:"qx.event.Emitter",scaleup:"qx.event.Emitter",transform:"qx.event.Emitter"},members:{init:function(){if(!h.ui.website.Widget.prototype.init.call(this))return!1;var a=this.getProperty("__configs")||{},b=this.getProperty("__model");this._forEachElementWrapped(function(c){var d=
new baselib.CoverflowBase(c,a,b);["centeredItemChanged","centeredItemChanging","scaledown","scaleup","transform"].forEach(function(a){d.on(a,function(b){c.emit(a,b)})});c.setProperty("__coverflowInstance",d);var e=d.getOptions(),f;for(f in e)c.setConfig(f,e[f])});return!0},render:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance")._render()});return this},setConfig:function(a,b){this._forEachElementWrapped(function(c){c.getProperty("__coverflowInstance")._setOption(a,
b)});h.ui.website.Widget.prototype.setConfig.call(this,a,b);return this},setTemplate:function(a,b){"item"==a&&this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance")._setOption("virtual",{itemTemplate:b})});h.ui.website.Widget.prototype.setTemplate.call(this,a,b);return this},setModel:function(a){this._forEachElementWrapped(function(b){b.getProperty("__coverflowInstance").setModel(a)});return this},getCenteredModelIndex:function(){return this.eq(0).getProperty("__coverflowInstance").getCenteredModelIndex()},
getCenteredItemIndex:function(){return this.eq(0).getProperty("__coverflowInstance").getCenteredItemIndex()},getCurrentBuffer:function(){return this.eq(0).getProperty("__coverflowInstance").getCurrentBuffer()},reset:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance").reset()});return this},centerFlowContainer:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance").centerFlowContainer()});return this},refresh:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance").refresh()});
return this},placeContentElementsOnCenter:function(a){this.eq(0).getProperty("__coverflowInstance").placeContentElementsOnCenter(a);return this},replaceContentElements:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance").replaceContentElements()});return this},getClipper:function(){return this.eq(0).getProperty("__coverflowInstance").getClipper()},getFlowContainer:function(){return this.eq(0).getProperty("__coverflowInstance").getFlowContainer()},getCenteredItem:function(){return this.eq(0).getProperty("__coverflowInstance").getCenteredItem()},
setCenteredItem:function(a){this.eq(0).getProperty("__coverflowInstance").setCenteredItem(a);return this},getContentStack:function(){return this.eq(0).getProperty("__coverflowInstance").getContentStack()},showNext:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance").showNext()});return this},showPrev:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance").showPrev()});return this},showItem:function(a){this.eq(0).getProperty("__coverflowInstance").showItem(a);
return this},isInFlow:function(){return this.eq(0).getProperty("__coverflowInstance").isInFlow()},dispose:function(){this._forEachElementWrapped(function(a){a.getProperty("__coverflowInstance").dispose()});return this}},defer:function(a){qxWeb.$attach({coverflow:a.coverflow});qxWeb.$attachStatic({coverflow:function(a,c,d){return qxWeb(a).coverflow(c,d)}})}})})()})();

UNOUNO.util.TradeSuggestions=function(){this.init();};UNOUNO.util.TradeSuggestions.prototype={suggestionsBox:null,renderFunction:null,resultStack:[],setRenderFunction:function(renderFunction){this.renderFunction=renderFunction;},getTradeSuggestions:function(result,reqID,exception){var i,datasource;if(result){this.resultStack=result;
datasource=[];for(i=0;i<this.resultStack.length;i+=1){datasource.push(this.resultStack[i].name.replace(/\'/g,"'"));}this.suggestionsBox.setDataSource(datasource);}},initInputField:function(id){document.getElementById(id).setAttribute("autocomplete","off");this.suggestionsBox=$q("#"+id.replace(".","\\.")).autocompletionbox([],true);
this.suggestionsBox.setFilterData(false);this.suggestionsBox.on("search",function(e){var search=e.getData();this.suggestionsService.getTradeSuggestions(search);},this);this.suggestionsBox.on("selected",function(e){var selectedEntry,i,resultMatch,jsessionid;selectedEntry=e.getData().replace(/’/g,"'");
for(i=0;i<this.resultStack.length;i+=1){if(selectedEntry===this.resultStack[i].name){resultMatch=this.resultStack[i];if(document.location.href.indexOf(";jsessionid=")>-1){jsessionid=document.location.href.substring(document.location.href.indexOf(";jsessionid="),document.location.href.indexOf("?"));var destination="/"+resultMatch.page+jsessionid+"?tradeGroup.name="+resultMatch.page+"&tradeGroup.officeHours="+resultMatch.officeHours+"&trade.id="+resultMatch.id+"&startClub=false";
if(typeof (this.renderFunction)=="function"){var request=$q.xhr($q.uri.appendParams(destination,"__render_href=txt/pages/tradelist.xml&__render_part=testimonialsAndApps&__render_module=hosting-common&__reuse="+UNOUNO.params.reuseDOM));request.onload=function(){this.renderFunction(request.responseText);
}.bind(this);request.send();}else{document.location.href=destination;}}else{var destination="/"+resultMatch.page+"?tradeGroup.name="+resultMatch.page+"&tradeGroup.officeHours="+resultMatch.officeHours+"&trade.id="+resultMatch.id+"&startClub=false";if(typeof (this.renderFunction)=="function"){var request=$q.xhr($q.uri.appendParams(destination,"__render_href=txt/pages/tradelist.xml&__render_part=testimonialsAndApps&__render_module=hosting-common&__reuse="+UNOUNO.params.reuseDOM));
request.onload=function(){this.renderFunction(request.responseText);}.bind(this);request.send();}else{document.location.href=destination;}if(typeof (this.renderFunction)=="function"){this.renderFunction();}else{document.location.href=destination;}}}}},this);if(this.placeholder){document.getElementById(id).value=this.placeholder;
$q(document.getElementById(id)).on("focus",this.removePlaceholder,this);$q(document.getElementById(id)).on("blur",this.checkPlaceholder,this);var tradeSubmitButton=document.getElementById(id+".submit");if(tradeSubmitButton){$q(tradeSubmitButton).on("click",function(scope,id){return function(ev){qx.event.Registration.fireEvent(document.getElementById(id),"focus");
};}(this,id),this);}}},removePlaceholder:function(ev){var autoCompletionBox=ev.getTarget();if(autoCompletionBox.value===this.placeholder){autoCompletionBox.value="";}},checkPlaceholder:function(ev){var autoCompletionBox=ev.getTarget();if(autoCompletionBox.value===""){autoCompletionBox.value=this.placeholder;
}},setPlaceholder:function(placeholder){this.placeholder=placeholder;},setNoResultsContent:function(html){if(this.suggestionsBox){this.suggestionsBox.setNoResultsContent(html);}},setInfoBoxContent:function(html){if(this.suggestionsBox){this.suggestionsBox.setInfoBoxContent(html);}},init:function(){this.suggestionsService=new WS_TradeSuggestionsService(this);
$q(document.body).focus();}};
qx.Bootstrap.define("qui.bom.Coverflow",{extend:qx.event.Emitter,events:{},properties:{value:{check:"Integer",apply:"_applyValue",nullable:false}},members:{__coverflowElements:[],__coverflowItemQuery:null,__containerElementId:null,__containerElement:null,__viewerElement:null,__coverflowItemWidth:null,__numberOfVisibleElements:5,__totalNumberOfElements:null,__coverflowElementDimensions:{},__coverflowType:"lightbox",__coverflowContainer:"testimonials",__coverflowDimensionSmall:[165,130],__coverflowDimensionBig:[279,220],__hoverText:"",__lightboxClose:null,__hoverTextMarginLeft:20,__hoverTextMarginBottom:20,__containerWidth:null,__containerHeight:null,__elementSpaceX:null,__elementSpaceY:null,__elementSpaceActiveY:null,__activeElem:null,__activeElemPos:null,__oldActiveElemPos:null,__tempOldActiveElemPos:null,__absActiveImg:null,__scaleDirection:null,__clickEventsDeactivated:null,__scrollSteps:null,__scrollEffect:null,__scaleItem:null,__reflectionHeight:null,__sliderStepNext:null,__sliderStepPrev:null,addCoverflowElement:function(elementPath,elementCaption,elementLink){if(this.__coverflowType==="lightbox"){var lightboxImgName=elementPath.match(/([^/]*)$/g),elementLargePath="/img/frontend-ngh/testimonials/references/"+lightboxImgName[0];
this.__coverflowElements.push({path:elementPath,pathLarge:elementLargePath,caption:elementCaption,link:elementLink});}else{this.__coverflowElements.push({path:elementPath,caption:elementCaption,link:elementLink});}},setContainerElement:function(containerElementId){this.__containerElementId=containerElementId;
this.__containerElement=$q("#"+this.__containerElementId);this.__viewerElement=$q(this.__containerElement[0]).getParents()[0];},setNumberOfVisibleElements:function(numberOfVisibleElements){this.__numberOfVisibleElements=numberOfVisibleElements;},setCoverflowElementDimensions:function(small,big){this.__coverflowElementDimensions={small:small,big:big};
},setType:function(coverflowType){this.__coverflowType=coverflowType;},setHoverText:function(hoverText){this.__hoverText=hoverText;},setHoverTextMargins:function(margins){this.__hoverTextMarginLeft=margins[0];this.__hoverTextMarginBottom=margins[1];},addHtmlElemDimensions:function(){$q("#"+this.__containerElementId+" .item img").setStyles({"height":this.__coverflowElementDimensions.small[1]+"px","width":this.__coverflowElementDimensions.small[0]+"px"});
$q("#"+this.__containerElementId+" .item img").removeClass("hidden");},__calculateElementSpace:function(){this.__containerWidth=$q(this.__viewerElement).getWidth();this.__containerHeight=$q(this.__viewerElement).getHeight();this.__elementSpaceX=Math.floor((this.__containerWidth-(this.__numberOfVisibleElements*this.__coverflowElementDimensions.small[0]))/(this.__numberOfVisibleElements-1));
this.__elementSpaceY=Math.floor((this.__containerHeight-this.__coverflowElementDimensions.small[1])/2);this.__elementSpaceActiveY=Math.floor((this.__containerHeight-this.__coverflowElementDimensions.big[1])/2);this.__coverflowItemWidth=this.__coverflowElementDimensions.small[0]+this.__elementSpaceX;},__getAbsPosActiveElem:function(){var leftPos,topPos;
leftPos=Math.floor((this.__containerWidth/2)-(this.__coverflowElementDimensions.small[0]/2));topPos=Math.floor((this.__containerHeight/2)-(this.__coverflowElementDimensions.small[1]/2));this.__absActiveImg.setStyles({"height":this.__coverflowElementDimensions.small[1]+"px","left":leftPos+"px","top":topPos+"px","width":this.__coverflowElementDimensions.small[0]+"px"});
},__setInitialParameters:function(){this.__coverflowItemQuery="#"+this.__containerElementId+" .item";this.__totalNumberOfElements=$q(this.__coverflowItemQuery).length;if((this.__totalNumberOfElements%2)===0){this.__activeElemPos=Math.floor((this.__totalNumberOfElements)/2)-1;}else{this.__activeElemPos=Math.floor((this.__totalNumberOfElements)/2);
}this.__activeElem=$q("#"+this.__containerElementId+" .item:eq("+this.__activeElemPos+")");this.__activeElem.addClass("item-active");},__positionElements:function(){var i,containerWidth;for(i=0;i<this.__totalNumberOfElements;i+=1){this.__containerElement.setStyle("marginTop",this.__elementSpaceY+"px");
$q(this.__coverflowItemQuery+":eq("+i+")").setStyles({"marginRight":this.__elementSpaceX+"px","width":this.__coverflowElementDimensions.small[0]+"px"});}containerWidth=this.__getContainerWidth();this.__containerElement.setStyle("width",containerWidth+"px");if((this.__totalNumberOfElements%2)===0){this.__activeElemPos=Math.floor((this.__totalNumberOfElements)/2)-1;
}else{this.__activeElemPos=Math.floor((this.__totalNumberOfElements)/2);}this.__setActiveElem($q("#"+this.__containerElementId+" .item:eq("+this.__activeElemPos+")"));if(this.__totalNumberOfElements>1){this.__positionCoverflowContainer();}else{this.__scaleUpActiveItem();}},__getContainerWidth:function(){var containerWidth=(this.__totalNumberOfElements*this.__coverflowItemWidth)+(Math.floor(this.__numberOfVisibleElements/2)*this.__coverflowElementDimensions.small[0])+((Math.floor(this.__numberOfVisibleElements/2)-1)*this.__elementSpaceX);
return containerWidth;},__positionCoverflowContainer:function(){var relScrollXPosition,absScrollXPosition,scrollXPosition,duration;if(!this.__scrollEffect){this.__scrollEffect=this.__containerElement;}relScrollXPosition=this.__getScrollXPosition();duration=this.__scrollSteps*100;scrollXPosition=this.__scrollEffect.getPosition().left;
absScrollXPosition=scrollXPosition+relScrollXPosition;this._scrollEffectDesc={duration:duration,timing:"linear",keep:100,keyFrames:{0:{left:this.__scrollEffect.getStyle("left")},100:{left:absScrollXPosition+"px"}}};this.__scrollEffect.animate(this._scrollEffectDesc);this.__scrollEffect.on("animationEnd",this.__onScrollFinished,this);
},__onScrollFinished:function(e){this.__scrollEffect.off("animationEnd",this.__onScrollFinished,this);this.__scaleUpActiveItem();this.toggleArrowState();},__deactivateAllClickEvents:function(e){if(!this.__clickEventsDeactivated){this.__clickEventsDeactivated=true;this.__sliderStepPrev.off("click",this.__moveSliderPrev,this);
this.__sliderStepNext.off("click",this.__moveSliderNext,this);this.__sliderStepPrev=null;this.__sliderStepNext=null;}},__activateAllClickEvents:function(){if(this.__clickEventsDeactivated){this.__clickEventsDeactivated=false;this.initSliderButtons();this.__sliderStepPrev.on("click",this.__moveSliderPrev,this);
this.__sliderStepNext.on("click",this.__moveSliderNext,this);}},__scaleActiveItem:function(direction,percentage){var scaleFromWidth,scaleFromHeight,scaleToWidth,scaleToHeight,scaleTop,scaleLeft,dimensionPx;this.__scaleItem=$q(this.__absActiveImg[0]);if(direction==="up"){scaleFromWidth=this.__coverflowElementDimensions.small[0];
scaleFromHeight=this.__coverflowElementDimensions.small[1];scaleToWidth=this.__coverflowElementDimensions.big[0];scaleToHeight=this.__coverflowElementDimensions.big[1];scaleTop=this.__containerElement.getPosition().top-Math.abs((this.__coverflowElementDimensions.big[1]-this.__coverflowElementDimensions.small[1])/2);
scaleLeft=Math.floor((this.__containerWidth/2)-(this.__coverflowElementDimensions.big[0]/2));}else{if(direction==="down"){scaleFromWidth=this.__coverflowElementDimensions.big[0];scaleFromHeight=this.__coverflowElementDimensions.big[1];scaleToWidth=this.__coverflowElementDimensions.small[0];scaleToHeight=this.__coverflowElementDimensions.small[1];
scaleTop=this.__containerElement.getPosition().top+Math.abs((this.__coverflowElementDimensions.small[1]-this.__coverflowElementDimensions.small[1])/2);scaleLeft=Math.floor((this.__containerWidth/2)-(this.__coverflowElementDimensions.small[0]/2));}}this._scaleEffectDesc={duration:100,timing:"linear",keep:100,keyFrames:{0:{width:scaleFromWidth+"px",height:scaleFromHeight+"px",top:this.__scaleItem.getStyle("top"),left:this.__scaleItem.getStyle("left")},100:{width:scaleToWidth+"px",height:scaleToHeight+"px",top:scaleTop+"px",left:scaleLeft+"px"}}};
this.__scaleDirection=direction;this.__scaleItem.animate(this._scaleEffectDesc);if(this.__scaleDirection==="down"){this.__tempOldActiveElemPos=this.__oldActiveElemPos;}this.__scaleItem.on("animationEnd",this.__onScaleFinished,this);},__onScaleFinished:function(){var absImgWidth,absImgHeight,absImgLeft,absImgTop,absCaptionTop,captionElement,absCaptionWidth,absCaptionLeft;
if(this.__scaleDirection==="down"){if(this.__absActiveImg.length>0){this.__absActiveImg.remove();}if($q("#absActiveCaption").length>0){$q("#absActiveCaption").remove();}if($q("#activeLink").length>0){$q("#activeLink").remove();}if($q("#activeHoverText").length>0){$q("#activeHoverText").remove();}$q("#item"+this.__oldActiveElemPos).resetStyle("visibility");
this.__oldActiveElemPos=this.__tempOldActiveElemPos;this.__positionCoverflowContainer();this.__scaleItem.off("animationEnd",this.__onScaleFinished,this);}else{if(this.__scaleDirection==="up"){$q("#absActiveCaption").remove();absImgWidth=this.__absActiveImg.getWidth();absImgHeight=this.__absActiveImg.getHeight();
absImgLeft=this.__absActiveImg.getPosition().left;absImgTop=this.__absActiveImg.getPosition().top;absCaptionTop=absImgTop+absImgHeight+5;absCaptionLeft=Math.abs(($q(this.__viewerElement).getWidth()/2)-175);captionElement='<span id="absActiveCaption" style="left:'+absCaptionLeft+"px; top:"+absCaptionTop+'px; width: 350px;">'+this.__coverflowElements[this.__activeElemPos].caption+"</span>";
this.__absActiveImg.after(captionElement);absCaptionWidth=$q("#absActiveCaption").getWidth();$q("#activeHoverText").setStyles({"left":(absImgLeft+2+this.__hoverTextMarginLeft)+"px","top":(absImgTop+absImgHeight-30-this.__hoverTextMarginBottom)+"px","width":(absImgWidth-30-this.__hoverTextMarginLeft)+"px"});
if(this.__coverflowType==="lightbox"){$q("#activeHoverText").setStyle("display","none");}$q("#absActiveCaption").on("click",this._onCoverflowActiveItemClick,this);this.__activateAllClickEvents();}}},__getScalePercentage:function(direction){var percentage;if(direction==="up"){percentage=parseInt((this.__coverflowElementDimensions.big[0]/this.__coverflowElementDimensions.small[0])*100,10);
}else{if(direction==="down"){percentage=parseInt((this.__coverflowElementDimensions.small[0]/this.__coverflowElementDimensions.big[0])*100,10);}}return percentage;},__scaleUpActiveItem:function(){var scalePercentage;this.__updateActiveItemContainer();$q("#absActiveImg").on("click",this._onCoverflowActiveItemClick,this);
$q("#activeHoverText").on("click",this._onCoverflowActiveItemClick,this);$q("#item"+this.__activeElemPos).setStyle("visibility","hidden");scalePercentage=this.__getScalePercentage("up");this.__scaleActiveItem("up",scalePercentage);},__scaleDownActiveItem:function(){var scalePercentage=this.__getScalePercentage("down");
this.__scaleActiveItem("down",scalePercentage);},__updateActiveItemContainer:function(){var imgElement,linkElement,hoverText;$q("#absActiveImg").remove();imgElement=$q.create('<img alt="'+this.__coverflowElements[this.__activeElemPos].caption+'" id="absActiveImg"'+'src="'+this.__coverflowElements[this.__activeElemPos].path+'" title="'+this.__coverflowElements[this.__activeElemPos].caption+'" />');
if($q("#activeLink").length>0){$q("#activeLink").remove();}linkElement=$q.create('<a id="activeLink" />');hoverText=$q.create('<span id="activeHoverText">'+this.__hoverText+"</span>");$q(linkElement).insertBefore(this.__containerElement);$q("#activeLink").append(imgElement);$q("#absActiveImg").after(hoverText);
this.__absActiveImg=$q("#absActiveImg");this.__getAbsPosActiveElem();},__addPaddingLeft:function(){var paddingLeft=Math.floor(this.__numberOfVisibleElements/2)*this.__coverflowItemWidth;this.__containerElement.setStyle("paddingLeft",paddingLeft+"px");},__getScrollXPosition:function(){var scrollXPosition;
this.__scrollSteps=Math.abs((this.__activeElemPos)-this.__oldActiveElemPos);if(this.__oldActiveElemPos<=this.__activeElemPos){scrollXPosition=-(this.__scrollSteps*this.__coverflowItemWidth);}else{if(this.__oldActiveElemPos>this.__activeElemPos){scrollXPosition=(this.__scrollSteps*this.__coverflowItemWidth);
}}return scrollXPosition;},__setActiveElem:function(elem){this.__activeElem=elem;this.__activeElem.addClass("item-active");},__resetActiveElem:function(qxElem){qxElem.removeClass("item-active");},__addReflection:function(img,opts){var rHeight,rWidth,reflection,canvas,context,gradient;rHeight=Math.floor(this.__coverflowElementDimensions.small[1]*opts.height);
rWidth=this.__coverflowElementDimensions.small[0];if($q.env.get("browser.name")==="ie"&&parseInt($q.env.get("browser.version"),10)<9){reflection=$q(img).clone();$q(reflection).setAttribute("class","reflected");$q(reflection).setStyles({"marginTop":"1px","marginBottom":"-"+(this.__coverflowElementDimensions.small[1]-rHeight)+"px","filter":"flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(opts.opacity*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(opts.height*100)+")"});
$q(img).after(reflection);}else{canvas=document.createElement("canvas");context=canvas.getContext("2d");$q(canvas).setStyles({"height":rHeight+"px","width":rWidth+"px"});$q(canvas).setAttribute("height",rHeight);$q(canvas).setAttribute("width",rWidth);$q(canvas).setAttribute("class","reflected");$q(img).after(canvas);
context.save();context.translate(0,(this.__coverflowElementDimensions.small[1]-1));context.scale(1,-1);context.drawImage(img,0,0,rWidth,this.__coverflowElementDimensions.small[1]);context.restore();context.globalCompositeOperation="destination-out";gradient=context.createLinearGradient(0,0,0,rHeight);
gradient.addColorStop(1,"rgba(255, 255, 255, 1.0)");gradient.addColorStop(0,"rgba(255, 255, 255, "+(1-opts.opacity)+")");context.fillStyle=gradient;context.fillRect(0,0,rWidth,rHeight*2);}},__addReflections:function(){var reflectionImages,i;reflectionImages=$q(this.__coverflowItemQuery+" img.reflect");
if($q(this.__coverflowItemQuery+" .reflected").length===0){for(i=0;i<reflectionImages.length;i+=1){this.__addReflection(reflectionImages[i],{height:0.3,opacity:0.2});}}},__renderCoverflow:function(){this.__addPaddingLeft();this.__positionElements();},initCoverflow:function(coverflowElements,cfDimensions,coverflowContainer,coverflowType,hoverText,hoverTextMargins,lightboxClose){var i;
if(coverflowContainer){if($q("#"+coverflowContainer).length>0){this.setContainerElement(coverflowContainer);}else{console.error('"'+coverflowContainer+'" element ID not available! Please define a correct container ID name');}}else{this.setContainerElement(this.__coverflowContainer);}for(i=0;i<coverflowElements.length;
i+=1){this.addCoverflowElement(coverflowElements[i][0],coverflowElements[i][1],coverflowElements[i][2]);}if(cfDimensions){this.setCoverflowElementDimensions(cfDimensions[0],cfDimensions[1]);}else{this.setCoverflowElementDimensions(this.__coverflowDimensionSmall,this.__coverflowDimensionBig);}if(coverflowType){if(coverflowType==="lightbox"||coverflowType==="_blank"){this.setType(coverflowType);
}else{console.error('coverflowType value needs to be "lightbox" or "_blank". set back to "lightbox" by default.');}}if(hoverText&&hoverText!==""){this.setHoverText(hoverText);}if(hoverTextMargins&&(typeof (hoverTextMargins[0])==="number"&&typeof (hoverTextMargins[1])==="number")){this.setHoverTextMargins(hoverTextMargins);
}this.__lightboxClose=lightboxClose;this.addHtmlElemDimensions();this.renderCoverflow();if(this.__totalNumberOfElements>1){this.initSliderButtons();this.__sliderStepPrev.on("click",this.__moveSliderPrev,this);this.__sliderStepNext.on("click",this.__moveSliderNext,this);$q(this.__coverflowItemQuery).on("click",this._onCoverflowItemClick,this);
}this.initEvents();},renderCoverflow:function(){this.__oldActiveElemPos=0;this.__calculateElementSpace();this.__setInitialParameters();this.__renderCoverflow();},toggleArrowState:function(){if(this.__activeElemPos===0){$q("#prevbutton").addClass("hidden");}else{if(this.__activeElemPos===(this.__totalNumberOfElements-1)){$q("#nextbutton").addClass("hidden");
}else{$q("#prevbutton").removeClass("hidden");$q("#nextbutton").removeClass("hidden");}}},__moveSlider:function(evt,sliderPos){evt.stopPropagation();evt.preventDefault();this.__deactivateAllClickEvents(evt);this.__oldActiveElemPos=this.__activeElemPos;this.__activeElemPos=sliderPos;this.__resetActiveElem($q(this.__coverflowItemQuery+":eq("+this.__oldActiveElemPos+")"));
this.__setActiveElem($q(this.__coverflowItemQuery+":eq("+this.__activeElemPos+")"));this.__deactivateAllClickEvents(evt);this.__scaleDownActiveItem();},__moveSliderPrev:function(e){var sliderPos,newSliderPos;if(!this.__clickEventsDeactivated){this.__activateAllClickEvents();newSliderPos=this.__activeElemPos-1;
if(newSliderPos<0){return false;}else{sliderPos=this.__activeElemPos-1;this.__moveSlider(e,sliderPos);}}},__moveSliderNext:function(e){var newSliderPos,sliderPos;if(!this.__clickEventsDeactivated){this.__activateAllClickEvents();newSliderPos=this.__activeElemPos+1;if(newSliderPos>=this.__totalNumberOfElements){return false;
}else{sliderPos=this.__activeElemPos+1;this.__moveSlider(e,sliderPos);}}},initSliderButtons:function(){this.__sliderStepPrev=$q("#prevbutton");this.__sliderStepNext=$q("#nextbutton");},initEvents:function(){this.__clickEventsDeactivated=true;this.__addReflections();},_onCoverflowItemClick:function(e){if(!this.__clickEventsDeactivated){this.__oldActiveElemPos=this.__activeElemPos;
if(e.getTarget().nodeName.toLowerCase()==="img"||e.getTarget().nodeName.toLowerCase()==="canvas"||e.getTarget().nodeName.toLowerCase()==="h3"){this.__activeElemPos=parseInt(e.getTarget().parentNode.id.substring(4,e.getTarget().parentNode.id.length),10);}else{this.__activeElemPos=parseInt(e.getTarget().id.substring(4,e.getTarget().parentNode.id.length),10);
}this.__resetActiveElem($q(this.__coverflowItemQuery+":eq("+this.__oldActiveElemPos+")"));this.__setActiveElem($q(this.__coverflowItemQuery+":eq("+this.__activeElemPos+")"));this.__deactivateAllClickEvents(e);if(this.__totalNumberOfElements>1){this.__scaleDownActiveItem();}}},_onCoverflowActiveItemClick:function(e){e.preventDefault();
if(this.__coverflowType==="blank"){var url=this.__coverflowElements[this.__activeElemPos].link;window.open(url,"_blank");}else{if(this.__coverflowType==="lightbox"){this.selectedCover(this.__coverflowElements[this.__activeElemPos].caption,this.__coverflowElements[this.__activeElemPos].pathLarge);}}},selectedCover:function(exampleName,imgLocation){$q("body").append('<div id="diycoverflow_container"></div>');
$q("#diycoverflow_container").append('<div class="headline"></div><div id="diy-coverflow-lightbox"></div>');$q("#diycoverflow_container div.headline").append("<h3>"+exampleName+'</h3><img id="diy-coverflow.close" class="lightbox-close alphapng hidden" src="/modules/frontend-skin-odin/img/frontend-skin-odin/productpages/icon_close.png" alt="'+this.__lightboxClose+'" title="'+this.__lightboxClose+'"></img>');
$q("#diy-coverflow-lightbox").append('<img title="'+exampleName+'" alt="'+exampleName+'" src="'+imgLocation+'"></img>');var diyfilmLightBox=$q.lightbox($q("#diycoverflow_container").getHtml());diyfilmLightBox.getBlocker().setBackgroundColor("#4d84bb");diyfilmLightBox.getBlocker().setOpacity(0.75);diyfilmLightBox.setShowSpeed(0);
diyfilmLightBox.setWidth(710);diyfilmLightBox.setHeight(602);diyfilmLightBox.show();$q("#diy-coverflow\\.close").removeClass("hidden");$q("#diycoverflow_container").remove();$q("#diy-coverflow\\.close, body div:last").on("click",function(){diyfilmLightBox.close();},true);}},destruct:function(){this.__scrollEffect.off("animationEnd",this.__onScrollFinished,this);
this.__scaleItem.off("animationEnd",this.__onScaleFinished,this);$q("#prevbutton").off("click",this.__moveSliderPrev,this);$q("#nextbutton").off("click",this.__moveSliderNext,this);$q(this.__coverflowItemQuery).off("click",this._onCoverflowItemClick,this);$q("#absActiveCaption").off("click",this._onCoverflowActiveItemClick,this);
$q("#absActiveImg").off("click",this._onCoverflowActiveItemClick,this);$q("#activeHoverText").off("click",this._onCoverflowActiveItemClick,this);$q(this.__coverflowItemQuery+":eq("+(this.__totalNumberOfElements-1)+") img").off("load",this.__addReflections,this);this.__scrollEffect=null;this.__scaleItem=null;
this.__coverflowElements=null;this.__coverflowItemQuery=null;this.__containerElementId=null;this.__containerElement=null;this.__viewerElement=null;this.__coverflowItemWidth=null;this.__numberOfVisibleElements=null;this.__totalNumberOfElements=null;this.__coverflowElementDimensions=null;this.__coverflowType=null;
this.__containerWidth=null;this.__containerHeight=null;this.__elementSpaceX=null;this.__elementSpaceY=null;this.__elementSpaceActiveY=null;this.__activeElem=null;this.__activeElemPos=null;this.__oldActiveElemPos=null;this.__absActiveImg=null;this.__scaleDirection=null;this.__clickEventsDeactivated=null;
this.__scrollSteps=null;this.__reflectionHeight=null;this.__sliderStepNext=null;this.__sliderStepPrev=null;}});
$q.define("UNOUNO.pages.tradelist",{statics:{suggestionsService:null,autoCompletionBox:null,autoCompletionBoxId:"tradeSuggestion.suggestions",initializeTradeSuggestionsService:function(){this.suggestionsService=new WS_TradeSuggestionsService(this);},sendTrackingDetails:function(tradeName){if(typeof (UNOUNO.tracking.genericTracking)!="undefined"){UNOUNO.tracking.genericTracking({eVar59:"_diy-sector_"+tradeName});
}},initializeAutocomplete:function(){$q("#"+this.escapeId(this.autoCompletionBoxId)).setAttribute("placeholder",UNOUNO.inline.tradeSuggestionsPlaceholder);this.autoCompletionBox=$q.autocompletionbox(this.escapeId(this.autoCompletionBoxId),[],true);this.autoCompletionBox.setFilterData(false);this.autoCompletionBox.setTemplate('<span class="itemtitle">{{& name}}<br></span>');
this.autoCompletionBox.on("search",function(e){this.suggestionsService.getTradeSuggestions(e.getData(),"autocomplete");},this);this.autoCompletionBox.on("selected",function(e){var tradeId=e.getData();this.autoCompletionBox.getDataSource().forEach(function(tradeItem){if(tradeItem.id==tradeId){$q("#"+this.escapeId(this.autoCompletionBoxId)).setValue(tradeItem.name);
this.sendTrackingDetails(tradeItem.name);this.grepLandingpage(tradeItem);}},this);},this);},initializeModuleToggle:function(){var appModules=$q(".app-modules");var appModulesHeightNormal=appModules.getContentHeight(true)+10;appModules.find(".hidden").removeClass("hidden");var appModulesHeightExpanded=appModules.getContentHeight(true)+10;
appModules.setStyles({height:appModulesHeightNormal+"px",overflow:"hidden"});var appModulesAnimation={"duration":500,"timing":"ease-out","keep":100,"keyFrames":{0:{"height":appModulesHeightNormal+"px"},100:{"height":appModulesHeightExpanded+"px"}},"repeat":1,"alternate":false,"delay":0};$q(".module-toggle .showall").on("click",function(e){appModules.animate(appModulesAnimation);
$q(".module-toggle .showall").hide();$q(".module-toggle .hideall").show();});$q(".module-toggle .hideall").on("click",function(e){appModules.animateReverse(appModulesAnimation);$q(".module-toggle .showall").show();$q(".module-toggle .hideall").hide();});},getTradeSuggestions:function(resultSet,requestId,exception){if(!!!resultSet.length){return ;
}if(requestId=="autocomplete"){this.autoCompletionBox.setDataSource(resultSet);return ;}resultSet.forEach(function(entry){if(entry.id==requestId){this.grepLandingpage(entry);}},this);},escapeId:function(id){return id.replace(/\./gi,"\\.");},grepLandingpage:function(tradeItem){var destination="/"+tradeItem.page+"?tradeGroup.name="+tradeItem.page+"&tradeGroup.officeHours="+tradeItem.officeHours+"&trade.id="+tradeItem.id+"&startClub=false";
var request=$q.xhr($q.uri.appendParams(destination,"__render_href=txt/pages/tradelist.xml&__render_part=testimonialsAndApps&__render_module=hosting-common&__reuse="+UNOUNO.params.reuseDOM));request.on("load",function(response){$q("#testimonials-and-apps").setHtml(response.responseText);this.initializeModuleToggle();
this.initializeCoverflow();},this);request.send();},init:function(){this.initializeTradeSuggestionsService();this.initializeTradeSuggestionsLinks();this.initializeAutocomplete();this.initializeModuleToggle();this.initializeFeaturelistToggle();this.initializeCoverflow();this.initFootnote();},initializeCoverflowMargins:function(data){data.left.reverse().forEach(function(item,index){var previousPosition=$q(item).getData("prev-pos");
if(!isNaN(previousPosition)){$q(item).removeClass("qx-coverflow-margin-"+previousPosition);}$q(item).setData("prev-pos",index);$q(item).addClass("qx-coverflow-margin-"+index);});data.right.forEach(function(item,index){var previousPosition=$q(item).getData("prev-pos");if(!isNaN(previousPosition)){$q(item).removeClass("qx-coverflow-margin-"+previousPosition);
}$q(item).setData("prev-pos",index);$q(item).addClass("qx-coverflow-margin-"+index);});},initializeCoverflowTransforms:function(){baselib.CssUtil.transform($q(".qx-coverflow-left"),"rotateY","rotateY(60deg)");baselib.CssUtil.transform($q(".qx-coverflow-right"),"rotateY","rotateY(-60deg)");baselib.CssUtil.transform($q(".qx-coverflow-center"),"rotateY","rotateY(0deg)");
},initializeTradeSuggestionsLinks:function(){$q(".tradeLink[data-trade]").forEach(function(trade){$q(trade).on("click",function(e){var tradeId=$q(trade).getData("tradeid");var tradeName=$q(trade).getData("trade");$q("#"+this.escapeId(this.autoCompletionBoxId)).setValue(tradeName);this.suggestionsService.getTradeSuggestions(tradeName,tradeId);
this.sendTrackingDetails(tradeName);},this);},this);},initializeFeaturelistToggle:function(){var showElement=$q("#featurelist\\.link\\.show"),hideElement=$q("#featurelist\\.link\\.hide"),tariffListElement=$q("#tradelist-featurelist");tariffListElementHeight=tariffListElement.getHeight(true);tariffListElementAnimation={"duration":500,"timing":"ease-out","keep":100,"keyFrames":{0:{"height":"0px"},100:{"height":tariffListElementHeight+"px"}},"repeat":1,"alternate":false,"delay":0};
hideElement.hide();showElement.show();showElement.addListener("click",function(e){showElement.hide();hideElement.show();tariffListElement.animate(tariffListElementAnimation);if(tariffListElement.hasClass("hidden")){tariffListElement.removeClass("hidden");}});hideElement.addListener("click",function(e){hideElement.hide();
showElement.show();tariffListElement.animateReverse(tariffListElementAnimation);});},initializeCoverflow:function(){if($q("#coverflow").length>0){var browserName=$q.env.get("browser.name").replace(/\s+/gi,"-");$q("#coverflow").addClass(browserName);UNOUNO.inline.coverflow=$q.coverflow("#coverflow",{scaleDownFactor:0.75,layout:"3d","3d":{leftOffset:100,topOffset:-1,zOffset:10}});
var itemsLeft=[],itemsRight=[];var coverFlowItems=$q(".coverflow-item");itemsLeft=coverFlowItems.filter(".qx-coverflow-left");itemsRight=coverFlowItems.filter(".qx-coverflow-right");this.initializeCoverflowMargins({left:itemsLeft,right:itemsRight});this.initializeCoverflowTransforms();UNOUNO.inline.coverflow.on("transform",function(data){this.initializeCoverflowMargins(data);
this.initializeCoverflowTransforms();},this);$q("#coverflow-scene .arrow.forward").on("click",function(e){this.showNext();},UNOUNO.inline.coverflow);$q("#coverflow-scene .arrow.backward").on("click",function(e){this.showPrev();},UNOUNO.inline.coverflow);$q(window).on("resize",function(e){this.refresh();
},UNOUNO.inline.coverflow);}},initFootnote:function(){if($q("#asterisk-DIY-BASIC").length>0){UNOUNO.inline.footnoteDIYBASIC=new UNOUNO.util.infoFootnote("fn_DIY-BASIC","asterisk-DIY-BASIC","left");}if($q("#asterisk-DIY-BASIC-startup").length>0){UNOUNO.inline.footnoteDIYBASIC=new UNOUNO.util.infoFootnote("fn_DIY-BASIC","asterisk-DIY-BASIC-startup","left");
}if($q("#asterisk-DIY-PLUS").length>0){UNOUNO.inline.footnoteDIYPLUS=new UNOUNO.util.infoFootnote("fn_DIY-PLUS","asterisk-DIY-PLUS","left");}if($q("#asterisk-DIY-PLUS-startup").length>0){UNOUNO.inline.footnoteDIYPLUS=new UNOUNO.util.infoFootnote("fn_DIY-PLUS","asterisk-DIY-PLUS-startup","left");}if($q("#asterisk-DIY-PRO").length>0){UNOUNO.inline.footnoteDIYPRO=new UNOUNO.util.infoFootnote("fn_DIY-PRO","asterisk-DIY-PRO","left");
}if($q("#asterisk-DIY-PRO-startup").length>0){UNOUNO.inline.footnoteDIYPRO=new UNOUNO.util.infoFootnote("fn_DIY-PRO","asterisk-DIY-PRO-startup","left");}if($q("#asterisk-DIY-BASIC-STOERER").length>0){UNOUNO.inline.footnoteDIYBASICSTOERER=new UNOUNO.util.infoFootnote("fn_DIY-BASIC","asterisk-DIY-BASIC-STOERER","left");
}if($q("#asterisk-DIY-BASIC-STOERER-startup").length>0){UNOUNO.inline.footnoteDIYBASICSTOERER=new UNOUNO.util.infoFootnote("fn_DIY-BASIC","asterisk-DIY-BASIC-STOERER-startup","left");}if($q("#asterisk-DIY-PRIVATE").length>0){UNOUNO.inline.footnoteDIYLITE=new UNOUNO.util.infoFootnote("fn_DIY-LITE","asterisk-DIY-PRIVATE","left");
}}}});UNOUNO.pages.tradelist.init();

UNOUNO.params.loadStatus="complete";if(UNOUNO.init.JSLoadStack&&UNOUNO.init.JSLoadStack.length>0){for(UNOUNO.init.processStack=0;UNOUNO.init.processStack<UNOUNO.init.JSLoadStack.length;UNOUNO.init.processStack+=1){UNOUNO.init.JSLoadStack[UNOUNO.init.processStack].call();}}