//### zip:/home/stage74/pfix/pfixorder/projects/servletconf/tomcat/shared/lib/de.schlund.pfixschlund.order-modules+unouno+1.1.14.jar!/script/main.js /** * The UNOUNO Object should be used by all 1&1 Website-Management JavaScript libraries. */ if (typeof UNOUNO == "undefined") { var UNOUNO = {}; } if (typeof UNOUNO.namespace == "undefined") { UNOUNO.namespace = function() { var a=arguments, o=null, i, j, d; for (i=0; i=1.9&&e.type=="mousedown"&&e.button==2){return; }e.preventDefault(); if(qx.bom.client.Engine.VERSION<1.9){try{e.keyCode=0; }catch(ex){}}},"mshtml":function(e){try{e.keyCode=0; }catch(ex){}e.returnValue=false; },"default":function(e){e.preventDefault(); }}),stopPropagation:function(e){if(e.stopPropagation){e.stopPropagation(); }e.cancelBubble=true; },fire:function(target,type){if(document.createEventObject){var evt=document.createEventObject(); return target.fireEvent("on"+type,evt); }else{var evt=document.createEvent("HTMLEvents"); evt.initEvent(type,true,true); return !target.dispatchEvent(evt); }}}}); qx.Bootstrap.define("qx.event.Manager",{construct:function(win,registration){this.__window=win; this.__registration=registration; if(win.qx!==qx){var self=this; qx.bom.Event.addNativeListener(win,"unload",qx.event.GlobalError.observeMethod(function(){qx.bom.Event.removeNativeListener(win,"unload",arguments.callee); self.dispose(); })); }this.__listeners={}; this.__handlers={}; this.__dispatchers={}; this.__handlerCache={}; },statics:{__lastUnique:0,getNextUniqueId:function(){return (this.__lastUnique++).toString(36); }},members:{__registration:null,__listeners:null,__dispatchers:null,__disposeWrapper:null,__handlers:null,__handlerCache:null,__window:null,getWindow:function(){return this.__window; },getHandler:function(clazz){var handler=this.__handlers[clazz.classname]; if(handler){return handler; }return this.__handlers[clazz.classname]=new clazz(this); },getDispatcher:function(clazz){var dispatcher=this.__dispatchers[clazz.classname]; if(dispatcher){return dispatcher; }return this.__dispatchers[clazz.classname]=new clazz(this,this.__registration); },getListeners:function(target,type,capture){var targetKey=target.$$hash||qx.core.ObjectRegistry.toHashCode(target); var targetMap=this.__listeners[targetKey]; if(!targetMap){return null; }var entryKey=type+(capture?"|capture":"|bubble"); var entryList=targetMap[entryKey]; return entryList?entryList.concat():null; },serializeListeners:function(target){var targetKey=target.$$hash||qx.core.ObjectRegistry.toHashCode(target); var targetMap=this.__listeners[targetKey]; var result=[]; if(targetMap){var indexOf,type,capture,entryList,entry; for(var entryKey in targetMap){indexOf=entryKey.indexOf("|"); type=entryKey.substring(0,indexOf); capture=entryKey.charAt(indexOf+1)=="c"; entryList=targetMap[entryKey]; for(var i=0,l=entryList.length;i0; },importListeners:function(target,list){{}; var targetKey=target.$$hash||qx.core.ObjectRegistry.toHashCode(target); var targetMap=this.__listeners[targetKey]={}; var clazz=qx.event.Manager; for(var listKey in list){var item=list[listKey]; var entryKey=item.type+(item.capture?"|capture":"|bubble"); var entryList=targetMap[entryKey]; if(!entryList){entryList=targetMap[entryKey]=[]; this.__registerAtHandler(target,item.type,item.capture); }entryList.push({handler:item.listener,context:item.self,unique:item.unique||(clazz.__lastUnique++).toString(36)}); }},addListener:function(target,type,listener,self,capture){var msg; {}; var targetKey=target.$$hash||qx.core.ObjectRegistry.toHashCode(target); var targetMap=this.__listeners[targetKey]; if(!targetMap){targetMap=this.__listeners[targetKey]={}; }var entryKey=type+(capture?"|capture":"|bubble"); var entryList=targetMap[entryKey]; if(!entryList){entryList=targetMap[entryKey]=[]; }if(entryList.length===0){this.__registerAtHandler(target,type,capture); }var unique=(qx.event.Manager.__lastUnique++).toString(36); var entry={handler:listener,context:self,unique:unique}; entryList.push(entry); return entryKey+"|"+unique; },findHandler:function(target,type){var isDomNode=false,isWindow=false,isObject=false; var key; if(target.nodeType===1){isDomNode=true; key="DOM_"+target.tagName.toLowerCase()+"_"+type; }else if(target==this.__window){isWindow=true; key="WIN_"+type; }else if(target.classname){isObject=true; key="QX_"+target.classname+"_"+type; }else{key="UNKNOWN_"+target+"_"+type; }var cache=this.__handlerCache; if(cache[key]){return cache[key]; }var classes=this.__registration.getHandlers(); var IEventHandler=qx.event.IEventHandler; var clazz,instance,supportedTypes,targetCheck; for(var i=0,l=classes.length;i0){split=entryKey.split("|"); type=split[0]; capture=split[1]==="capture"; this.__unregisterAtHandler(target,type,capture); }}delete this.__listeners[targetKey]; return true; },__unregisterAtHandler:function(target,type,capture){var handler=this.findHandler(target,type); if(handler){handler.unregisterEvent(target,type,capture); return; }{}; },dispatchEvent:function(target,event){var msg; {}; var type=event.getType(); if(!event.getBubbles()&&!this.hasListener(target,type)){qx.event.Pool.getInstance().poolObject(event); return true; } if(!event.getTarget()){event.setTarget(target); }var classes=this.__registration.getDispatchers(); var instance; var dispatched=false; for(var i=0,l=classes.length;iresult){result=arr[i]; }}return result===undefined?null:result; },min:function(arr){{}; var i,len=arr.length,result=arr[0]; for(i=1;i=1&&fcnReResult[1]){return fcnReResult[1]+"()"; }return 'anonymous()'; },globalEval:function(data){if(window.execScript){return window.execScript(data); }else{return eval.call(window,data); }},empty:function(){},returnTrue:function(){return true; },returnFalse:function(){return false; },returnNull:function(){return null; },returnThis:function(){return this; },returnZero:function(){return 0; },create:function(func,options){{}; if(!options){return func; }if(!(options.self||options.args||options.delay!=null||options.periodical!=null||options.attempt)){return func; }return function(event){{}; var args=qx.lang.Array.fromArguments(arguments); if(options.args){args=options.args.concat(args); } if(options.delay||options.periodical){var returns=qx.event.GlobalError.observeMethod(function(){return func.apply(options.self||this,args); }); if(options.delay){return window.setTimeout(returns,options.delay); } if(options.periodical){return window.setInterval(returns,options.periodical); }}else if(options.attempt){var ret=false; try{ret=func.apply(options.self||this,args); }catch(ex){}return ret; }else{return func.apply(options.self||this,args); }}; },bind:function(func,self,varargs){return this.create(func,{self:self,args:arguments.length>2?qx.lang.Array.fromArguments(arguments,2):null}); },curry:function(func,varargs){return this.create(func,{args:arguments.length>1?qx.lang.Array.fromArguments(arguments,1):null}); },listener:function(func,self,varargs){if(arguments.length<3){return function(event){return func.call(self||this,event||window.event); }; }else{var optargs=qx.lang.Array.fromArguments(arguments,2); return function(event){var args=[event||window.event]; args.push.apply(args,optargs); func.apply(self||this,args); }; }},attempt:function(func,self,varargs){return this.create(func,{self:self,attempt:true,args:arguments.length>2?qx.lang.Array.fromArguments(arguments,2):null})(); },delay:function(func,delay,self,varargs){return this.create(func,{delay:delay,self:self,args:arguments.length>3?qx.lang.Array.fromArguments(arguments,3):null})(); },periodical:function(func,interval,self,varargs){return this.create(func,{periodical:interval,self:self,args:arguments.length>3?qx.lang.Array.fromArguments(arguments,3):null})(); }}}); qx.Bootstrap.define("qx.event.Registration",{statics:{__managers:{},getManager:function(target){if(target==null){{}; target=window; }else if(target.nodeType){target=qx.dom.Node.getWindow(target); }else if(!qx.dom.Node.isWindow(target)){target=window; }var hash=target.$$hash||qx.core.ObjectRegistry.toHashCode(target); var manager=this.__managers[hash]; if(!manager){manager=new qx.event.Manager(target,this); this.__managers[hash]=manager; }return manager; },removeManager:function(mgr){var id=qx.core.ObjectRegistry.toHashCode(mgr.getWindow()); delete this.__managers[id]; },addListener:function(target,type,listener,self,capture){return this.getManager(target).addListener(target,type,listener,self,capture); },removeListener:function(target,type,listener,self,capture){return this.getManager(target).removeListener(target,type,listener,self,capture); },removeListenerById:function(target,id){return this.getManager(target).removeListenerById(target,id); },removeAllListeners:function(target){return this.getManager(target).removeAllListeners(target); },hasListener:function(target,type,capture){return this.getManager(target).hasListener(target,type,capture); },serializeListeners:function(target){return this.getManager(target).serializeListeners(target); },createEvent:function(type,clazz,args){{}; if(clazz==null){clazz=qx.event.type.Event; }var obj=qx.event.Pool.getInstance().getObject(clazz); if(!obj){return; }args?obj.init.apply(obj,args):obj.init(); if(type){obj.setType(type); }return obj; },dispatchEvent:function(target,event){return this.getManager(target).dispatchEvent(target,event); },fireEvent:function(target,type,clazz,args){var msg; {}; var evt=this.createEvent(type,clazz||null,args); return this.getManager(target).dispatchEvent(target,evt); },fireNonBubblingEvent:function(target,type,clazz,args){{}; var mgr=this.getManager(target); if(!mgr.hasListener(target,type,false)){return true; }var evt=this.createEvent(type,clazz||null,args); return mgr.dispatchEvent(target,evt); },PRIORITY_FIRST:-32000,PRIORITY_NORMAL:0,PRIORITY_LAST:32000,__handlers:[],addHandler:function(handler){{}; this.__handlers.push(handler); this.__handlers.sort(function(a,b){return a.PRIORITY-b.PRIORITY; }); },getHandlers:function(){return this.__handlers; },__dispatchers:[],addDispatcher:function(dispatcher,priority){{}; this.__dispatchers.push(dispatcher); this.__dispatchers.sort(function(a,b){return a.PRIORITY-b.PRIORITY; }); },getDispatchers:function(){return this.__dispatchers; }}}); qx.Bootstrap.define("qx.lang.Object",{statics:{empty:function(map){{}; for(var key in map){if(map.hasOwnProperty(key)){delete map[key]; }}},isEmpty:qx.core.Variant.select("qx.client",{"gecko":function(map){{}; return map.__count__===0; },"default":function(map){{}; for(var key in map){return false; }return true; }}),hasMinLength:qx.core.Variant.select("qx.client",{"gecko":function(map,minLength){{}; return map.__count__>=minLength; },"default":function(map,minLength){{}; if(minLength<=0){return true; }var length=0; for(var key in map){if((++length)>=minLength){return true; }}return false; }}),getLength:qx.core.Variant.select("qx.client",{"gecko":function(map){{}; return map.__count__; },"default":function(map){{}; var length=0; for(var key in map){length++; }return length; }}),_shadowedKeys:["isPrototypeOf","hasOwnProperty","toLocaleString","toString","valueOf"],getKeys:qx.core.Variant.select("qx.client",{"mshtml":function(map){var arr=[]; for(var key in map){arr.push(key); }var hasOwnProperty=Object.prototype.hasOwnProperty; for(var i=0,a=this._shadowedKeys,l=a.length;i0){hash=cache.pop(); }else{hash=(this.__nextHash++).toString(36); }obj.$$hash=hash; }{}; registry[hash]=obj; },unregister:function(obj){var hash=obj.$$hash; if(hash==null){return; }var registry=this.__registry; if(registry&®istry[hash]){delete registry[hash]; this.__freeHashes.push(hash); }try{delete obj.$$hash; }catch(ex){if(obj.removeAttribute){obj.removeAttribute("$$hash"); }}},toHashCode:function(obj){{}; var hash=obj.$$hash; if(hash!=null){return hash; }var cache=this.__freeHashes; if(cache.length>0){hash=cache.pop(); }else{hash=(this.__nextHash++).toString(36); }return obj.$$hash=hash; },clearHashCode:function(obj){{}; var hash=obj.$$hash; if(hash!=null){this.__freeHashes.push(hash); try{delete obj.$$hash; }catch(ex){if(obj.removeAttribute){obj.removeAttribute("$$hash"); }}}},fromHashCode:function(hash){return this.__registry[hash]||null; },shutdown:function(){this.inShutDown=true; var registry=this.__registry; var hashes=[]; for(var hash in registry){hashes.push(hash); }hashes.sort(function(a,b){return parseInt(b,36)-parseInt(a,36); }); var obj,i=0,l=hashes.length; while(true){try{for(;i=maxMessages){this.__nextIndexToStoreTo=0; }}},getAllLogEvents:function(){return this.retrieveLogEvents(this.getMaxMessages()); },retrieveLogEvents:function(count){if(count>this.__history.length){count=this.__history.length; } if(this.__history.length==this.getMaxMessages()){var indexOfYoungestElementInHistory=this.__nextIndexToStoreTo-1; }else{indexOfYoungestElementInHistory=this.__history.length-1; }var startIndex=indexOfYoungestElementInHistory-count+1; if(startIndex<0){startIndex+=this.__history.length; }var result; if(startIndex<=indexOfYoungestElementInHistory){result=this.__history.slice(startIndex,indexOfYoungestElementInHistory+1); }else{result=this.__history.slice(startIndex,this.__history.length).concat(this.__history.slice(0,indexOfYoungestElementInHistory+1)); }return result; },clearHistory:function(){this.__history=[]; this.__nextIndexToStoreTo=0; }}}); qx.Bootstrap.define("qx.log.Logger",{statics:{__level:"debug",setLevel:function(value){this.__level=value; },getLevel:function(){return this.__level; },setTreshold:function(value){this.__buffer.setMaxMessages(value); },getTreshold:function(){return this.__buffer.getMaxMessages(); },__appender:{},__id:0,register:function(appender){if(appender.$$id){return; }var id=this.__id++; this.__appender[id]=appender; appender.$$id=id; var entries=this.__buffer.getAllLogEvents(); for(var i=0,l=entries.length;i20){text.push("...(+"+(l-i)+")"); break; }text.push(this.__serialize(value[i],false)); }}else{text="[...("+value.length+")]"; }break; case "map":if(deep){var temp; var sorted=[]; for(var key in value){sorted.push(key); }sorted.sort(); text=[]; for(var i=0,l=sorted.length;i20){text.push("...(+"+(l-i)+")"); break; }key=sorted[i]; temp=this.__serialize(value[key],false); temp.key=key; text.push(temp); }}else{var number=0; for(var key in value){number++; }text="{...("+number+")}"; }break; }return {type:type,text:text,trace:trace}; }}}); qx.Class.define("qx.core.Object",{extend:Object,include:[qx.data.MBinding],construct:function(){qx.core.ObjectRegistry.register(this); },statics:{$$type:"Object"},members:{toHashCode:function(){return this.$$hash; },toString:function(){return this.classname+"["+this.$$hash+"]"; },base:function(args,varags){{}; if(arguments.length===1){return args.callee.base.call(this); }else{return args.callee.base.apply(this,Array.prototype.slice.call(arguments,1)); }},self:function(args){return args.callee.self; },clone:function(){var clazz=this.constructor; var clone=new clazz; var props=qx.Class.getProperties(clazz); var user=qx.core.Property.$$store.user; var setter=qx.core.Property.$$method.set; var name; for(var i=0,l=props.length;i]+>/gi,""); },stripScripts:function(str,exec){var scripts=""; var text=str.replace(/]*>([\s\S]*?)<\/script>/gi,function(){scripts+=arguments[1]+'\n'; return ""; }); if(exec===true){qx.lang.Function.globalEval(scripts); }return text; }}}); qx.Bootstrap.define("qx.Interface",{statics:{define:function(name,config){if(config){if(config.extend&&!(config.extend instanceof Array)){config.extend=[config.extend]; }{}; var iface=config.statics?config.statics:{}; if(config.extend){iface.$$extends=config.extend; } if(config.properties){iface.$$properties=config.properties; } if(config.members){iface.$$members=config.members; } if(config.events){iface.$$events=config.events; }}else{var iface={}; }iface.$$type="Interface"; iface.name=name; iface.toString=this.genericToString; iface.basename=qx.Bootstrap.createNamespace(name,iface); qx.Interface.$$registry[name]=iface; return iface; },getByName:function(name){return this.$$registry[name]; },isDefined:function(name){return this.getByName(name)!==undefined; },getTotalNumber:function(){return qx.lang.Object.getLength(this.$$registry); },flatten:function(ifaces){if(!ifaces){return []; }var list=ifaces.concat(); for(var i=0,l=ifaces.length;i=8){return qx.bom.client.Engine.DOCUMENT_MODE===5; }else{return (win||window).document.compatMode!=="CSS1Compat"; }},"webkit":function(win){if(document.compatMode===undefined){var el=(win||window).document.createElement("div"); el.style.cssText="position:absolute;width:0;height:0;width:1"; return el.style.width==="1px"?true:false; }else{return (win||window).document.compatMode!=="CSS1Compat"; }},"default":function(win){return (win||window).document.compatMode!=="CSS1Compat"; }}),isStandardMode:function(win){return !this.isQuirksMode(win); },getWidth:function(win){var doc=(win||window).document; var view=qx.bom.Viewport.getWidth(win); var scroll=this.isStandardMode(win)?doc.documentElement.scrollWidth:doc.body.scrollWidth; return Math.max(scroll,view); },getHeight:function(win){var doc=(win||window).document; var view=qx.bom.Viewport.getHeight(win); var scroll=this.isStandardMode(win)?doc.documentElement.scrollHeight:doc.body.scrollHeight; return Math.max(scroll,view); }}}); qx.Class.define("qx.bom.element.BoxSizing",{statics:{__styleProperties:qx.core.Variant.select("qx.client",{"mshtml":null,"webkit":["boxSizing","KhtmlBoxSizing","WebkitBoxSizing"],"gecko":["MozBoxSizing"],"opera":["boxSizing"]}),__cssProperties:qx.core.Variant.select("qx.client",{"mshtml":null,"webkit":["box-sizing","-khtml-box-sizing","-webkit-box-sizing"],"gecko":["-moz-box-sizing"],"opera":["box-sizing"]}),__nativeBorderBox:{tags:{button:true,select:true},types:{search:true,button:true,submit:true,reset:true,checkbox:true,radio:true}},__usesNativeBorderBox:function(element){var map=this.__nativeBorderBox; return map.tags[element.tagName.toLowerCase()]||map.types[element.type]; },compile:qx.core.Variant.select("qx.client",{"mshtml":function(value){{}; },"default":function(value){var props=this.__cssProperties; var css=""; if(props){for(var i=0,l=props.length;iparent.clientWidth&&(parent===body||qx.bom.element.Overflow.getY(parent)!="visible")){if(parent===body){parentLeft=parent.scrollLeft; parentRight=parentLeft+qx.bom.Viewport.getWidth(); parentOuterWidth=qx.bom.Viewport.getWidth(); parentClientWidth=parent.clientWidth; parentScrollWidth=parent.scrollWidth; parentLeftBorder=0; parentRightBorder=0; parentScrollBarWidth=0; }else{parentLocation=qx.bom.element.Location.get(parent); parentLeft=parentLocation.left; parentRight=parentLocation.right; parentOuterWidth=parent.offsetWidth; parentClientWidth=parent.clientWidth; parentScrollWidth=parent.scrollWidth; parentLeftBorder=parseInt(qx.bom.element.Style.get(parent,"borderLeftWidth"),10)||0; parentRightBorder=parseInt(qx.bom.element.Style.get(parent,"borderRightWidth"),10)||0; parentScrollBarWidth=parentOuterWidth-parentClientWidth-parentLeftBorder-parentRightBorder; }elementLocation=qx.bom.element.Location.get(element); elementLeft=elementLocation.left; elementRight=elementLocation.right; elementWidth=element.offsetWidth; leftOffset=elementLeft-parentLeft-parentLeftBorder; rightOffset=elementRight-parentRight+parentRightBorder; scrollDiff=0; if(alignLeft){scrollDiff=leftOffset; }else if(alignRight){scrollDiff=rightOffset+parentScrollBarWidth; }else if(leftOffset<0||elementWidth>parentClientWidth){scrollDiff=leftOffset; }else if(rightOffset>0){scrollDiff=rightOffset+parentScrollBarWidth; }parent.scrollLeft+=scrollDiff; if(qx.bom.client.Engine.GECKO){qx.event.Registration.fireNonBubblingEvent(parent,"scroll"); }} if(parent===body){break; }parent=parent.parentNode; }},intoViewY:function(element,stop,align){var parent=element.parentNode; var doc=qx.dom.Node.getDocument(element); var body=doc.body; var parentLocation,parentTop,parentBottom; var parentOuterHeight,parentClientHeight,parentScrollHeight; var parentTopBorder,parentBottomBorder,parentScrollBarHeight; var elementLocation,elementTop,elementBottom,elementHeight; var topOffset,bottomOffset,scrollDiff; var alignTop=align==="top"; var alignBottom=align==="bottom"; stop=stop?stop.parentNode:doc; while(parent&&parent!=stop){if(parent.scrollHeight>parent.clientHeight&&(parent===body||qx.bom.element.Overflow.getY(parent)!="visible")){if(parent===body){parentTop=parent.scrollTop; parentBottom=parentTop+qx.bom.Viewport.getHeight(); parentOuterHeight=qx.bom.Viewport.getHeight(); parentClientHeight=parent.clientHeight; parentScrollHeight=parent.scrollHeight; parentTopBorder=0; parentBottomBorder=0; parentScrollBarHeight=0; }else{parentLocation=qx.bom.element.Location.get(parent); parentTop=parentLocation.top; parentBottom=parentLocation.bottom; parentOuterHeight=parent.offsetHeight; parentClientHeight=parent.clientHeight; parentScrollHeight=parent.scrollHeight; parentTopBorder=parseInt(qx.bom.element.Style.get(parent,"borderTopWidth"),10)||0; parentBottomBorder=parseInt(qx.bom.element.Style.get(parent,"borderBottomWidth"),10)||0; parentScrollBarHeight=parentOuterHeight-parentClientHeight-parentTopBorder-parentBottomBorder; }elementLocation=qx.bom.element.Location.get(element); elementTop=elementLocation.top; elementBottom=elementLocation.bottom; elementHeight=element.offsetHeight; topOffset=elementTop-parentTop-parentTopBorder; bottomOffset=elementBottom-parentBottom+parentBottomBorder; scrollDiff=0; if(alignTop){scrollDiff=topOffset; }else if(alignBottom){scrollDiff=bottomOffset+parentScrollBarHeight; }else if(topOffset<0||elementHeight>parentClientHeight){scrollDiff=topOffset; }else if(bottomOffset>0){scrollDiff=bottomOffset+parentScrollBarHeight; }parent.scrollTop+=scrollDiff; if(qx.bom.client.Engine.GECKO){qx.event.Registration.fireNonBubblingEvent(parent,"scroll"); }} if(parent===body){break; }parent=parent.parentNode; }},intoView:function(element,stop,alignX,alignY){this.intoViewX(element,stop,alignX); this.intoViewY(element,stop,alignY); }}}); qx.Class.define("qx.event.type.Native",{extend:qx.event.type.Event,members:{init:function(nativeEvent,target,relatedTarget,canBubble,cancelable){this.base(arguments,canBubble,cancelable); this._target=target||qx.bom.Event.getTarget(nativeEvent); this._relatedTarget=relatedTarget||qx.bom.Event.getRelatedTarget(nativeEvent); if(nativeEvent.timeStamp){this._timeStamp=nativeEvent.timeStamp; }this._native=nativeEvent; this._returnValue=null; return this; },clone:function(embryo){var clone=this.base(arguments,embryo); var nativeClone={}; clone._native=this._cloneNativeEvent(this._native,nativeClone); clone._returnValue=this._returnValue; return clone; },_cloneNativeEvent:function(nativeEvent,clone){clone.preventDefault=qx.lang.Function.empty; return clone; },preventDefault:function(){this.base(arguments); qx.bom.Event.preventDefault(this._native); },getNativeEvent:function(){return this._native; },setReturnValue:function(returnValue){this._returnValue=returnValue; },getReturnValue:function(){return this._returnValue; }},destruct:function(){this._native=this._returnValue=null; }}); qx.Class.define("qx.event.type.Dom",{extend:qx.event.type.Native,statics:{SHIFT_MASK:1,CTRL_MASK:2,ALT_MASK:4,META_MASK:8},members:{_cloneNativeEvent:function(nativeEvent,clone){var clone=this.base(arguments,nativeEvent,clone); clone.shiftKey=nativeEvent.shiftKey; clone.ctrlKey=nativeEvent.ctrlKey; clone.altKey=nativeEvent.altKey; clone.metaKey=nativeEvent.metaKey; return clone; },getModifiers:function(){var mask=0; var evt=this._native; if(evt.shiftKey){mask|=qx.event.type.Dom.SHIFT_MASK; } if(evt.ctrlKey){mask|=qx.event.type.Dom.CTRL_MASK; } if(evt.altKey){mask|=qx.event.type.Dom.ALT_MASK; } if(evt.metaKey){mask|=qx.event.type.Dom.META_MASK; }return mask; },isCtrlPressed:function(){return this._native.ctrlKey; },isShiftPressed:function(){return this._native.shiftKey; },isAltPressed:function(){return this._native.altKey; },isMetaPressed:function(){return this._native.metaKey; },isCtrlOrCommandPressed:function(){if(qx.bom.client.Platform.MAC){return this._native.metaKey; }else{return this._native.ctrlKey; }}}}); qx.Class.define("qx.event.type.Mouse",{extend:qx.event.type.Dom,members:{init:function(nativeEvent,target,relatedTarget,canBubble,cancelable){this.base(arguments,nativeEvent,target,relatedTarget,canBubble,cancelable); if(!relatedTarget){this._relatedTarget=qx.bom.Event.getRelatedTarget(nativeEvent); }return this; },_cloneNativeEvent:function(nativeEvent,clone){var clone=this.base(arguments,nativeEvent,clone); clone.button=nativeEvent.button; clone.clientX=nativeEvent.clientX; clone.clientY=nativeEvent.clientY; clone.pageX=nativeEvent.pageX; clone.pageY=nativeEvent.pageY; clone.screenX=nativeEvent.screenX; clone.screenY=nativeEvent.screenY; clone.wheelDelta=nativeEvent.wheelDelta; clone.detail=nativeEvent.detail; clone.srcElement=nativeEvent.srcElement; return clone; },__buttons:qx.core.Variant.select("qx.client",{"mshtml":{1:"left",2:"right",4:"middle"},"default":{0:"left",2:"right",1:"middle"}}),stop:function(){this.stopPropagation(); },getButton:function(){switch(this._type){case "click":case "dblclick":return "left"; case "contextmenu":return "right"; default:return this.__buttons[this._native.button]||"none"; }},isLeftPressed:function(){return this.getButton()==="left"; },isMiddlePressed:function(){return this.getButton()==="middle"; },isRightPressed:function(){return this.getButton()==="right"; },getRelatedTarget:function(){return this._relatedTarget; },getViewportLeft:function(){return this._native.clientX; },getViewportTop:function(){return this._native.clientY; },getDocumentLeft:qx.core.Variant.select("qx.client",{"mshtml":function(){var win=qx.dom.Node.getWindow(this._native.srcElement); return this._native.clientX+qx.bom.Viewport.getScrollLeft(win); },"default":function(){return this._native.pageX; }}),getDocumentTop:qx.core.Variant.select("qx.client",{"mshtml":function(){var win=qx.dom.Node.getWindow(this._native.srcElement); return this._native.clientY+qx.bom.Viewport.getScrollTop(win); },"default":function(){return this._native.pageY; }}),getScreenLeft:function(){return this._native.screenX; },getScreenTop:function(){return this._native.screenY; },getWheelDelta:qx.core.Variant.select("qx.client",{"default":function(){return -(this._native.wheelDelta/40); },"gecko":function(){return this._native.detail; },"webkit":function(){if(window.navigator.userAgent.indexOf("Chrome")!==-1){return -(this._native.wheelDelta/120); }else{return -(this._native.wheelDelta/40); }}})}}); qx.Class.define("qx.event.handler.UserAction",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(manager){this.base(arguments); this.__manager=manager; this.__window=manager.getWindow(); },statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{useraction:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true},members:{__manager:null,__window:null,canHandleEvent:function(target,type){},registerEvent:function(target,type,capture){},unregisterEvent:function(target,type,capture){}},destruct:function(){this.__manager=this.__window=null; },defer:function(statics){qx.event.Registration.addHandler(statics); }}); qx.Bootstrap.define("qx.bom.client.Platform",{statics:{NAME:"",WIN:false,MAC:false,UNIX:false,UNKNOWN_PLATFORM:false,__init:function(){var input=navigator.platform; if(input==null||input===""){input=navigator.userAgent; } if(input.indexOf("Windows")!=-1||input.indexOf("Win32")!=-1||input.indexOf("Win64")!=-1){this.WIN=true; this.NAME="win"; }else if(input.indexOf("Macintosh")!=-1||input.indexOf("MacPPC")!=-1||input.indexOf("MacIntel")!=-1||input.indexOf("iPod")!=-1||input.indexOf("iPhone")!=-1){this.MAC=true; this.NAME="mac"; }else if(input.indexOf("X11")!=-1||input.indexOf("Linux")!=-1||input.indexOf("BSD")!=-1){this.UNIX=true; this.NAME="unix"; }else{this.UNKNOWN_PLATFORM=true; this.WIN=true; this.NAME="win"; }}},defer:function(statics){statics.__init(); }}); qx.Bootstrap.define("qx.bom.client.System",{statics:{NAME:"",SP1:false,SP2:false,WIN95:false,WIN98:false,WINME:false,WINNT4:false,WIN2000:false,WINXP:false,WIN2003:false,WINVISTA:false,WINCE:false,LINUX:false,SUNOS:false,FREEBSD:false,NETBSD:false,OPENBSD:false,OSX:false,OS9:false,SYMBIAN:false,NINTENDODS:false,PSP:false,IPHONE:false,UNKNOWN_SYSTEM:false,__ids:{"Windows NT 6.0":"winvista","Windows NT 5.2":"win2003","Windows NT 5.1":"winxp","Windows NT 5.0":"win2000","Windows 2000":"win2000","Windows NT 4.0":"winnt4","Win 9x 4.90":"winme","Windows CE":"wince","Windows 98":"win98","Win98":"win98","Windows 95":"win95","Win95":"win95","Linux":"linux","FreeBSD":"freebsd","NetBSD":"netbsd","OpenBSD":"openbsd","SunOS":"sunos","Symbian System":"symbian","Nitro":"nintendods","PSP":"sonypsp","Mac OS X 10_5":"osx5","Mac OS X 10.5":"osx5","Mac OS X 10_4":"osx4","Mac OS X 10.4":"osx4","Mac OS X 10_3":"osx3","Mac OS X 10.3":"osx3","Mac OS X 10_2":"osx2","Mac OS X 10.2":"osx2","Mac OS X 10_1":"osx1","Mac OS X 10.1":"osx1","Mac OS X 10_0":"osx0","Mac OS X 10.0":"osx0","Mac OS X":"osx","Mac OS 9":"os9"},__init:function(){var agent=navigator.userAgent; var str=[]; for(var key in this.__ids){str.push(key); }var reg=new RegExp("("+str.join("|").replace(/\./g,"\.")+")","g"); if(!reg.test(agent)){this.UNKNOWN_SYSTEM=true; if(!qx.bom.client.Platform.UNKNOWN_PLATFORM){if(qx.bom.client.Platform.UNIX){this.NAME="linux"; this.LINUX=true; }else if(qx.bom.client.Platform.MAC){this.NAME="osx5"; this.OSX=true; }else{this.NAME="winxp"; this.WINXP=true; }}else{this.NAME="winxp"; this.WINXP=true; }return; } if(qx.bom.client.Engine.WEBKIT&&RegExp(" Mobile/").test(navigator.userAgent)){this.IPHONE=true; this.NAME="iphone"; }else{this.NAME=this.__ids[RegExp.$1]; this[this.NAME.toUpperCase()]=true; if(qx.bom.client.Platform.WIN){if(agent.indexOf("Windows NT 5.01")!==-1){this.SP1=true; }else if(qx.bom.client.Engine.MSHTML&&agent.indexOf("SV1")!==-1){this.SP2=true; }}}}},defer:function(statics){statics.__init(); }}); qx.Class.define("qx.event.handler.Mouse",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(manager){this.base(arguments); this.__manager=manager; this.__window=manager.getWindow(); this.__root=this.__window.document; this._initButtonObserver(); this._initMoveObserver(); this._initWheelObserver(); },statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{mousemove:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,click:1,dblclick:1,contextmenu:1,mousewheel:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,IGNORE_CAN_HANDLE:true},members:{__onButtonEventWrapper:null,__onMoveEventWrapper:null,__onWheelEventWrapper:null,__lastEventType:null,__lastMouseDownTarget:null,__manager:null,__window:null,__root:null,canHandleEvent:function(target,type){},registerEvent:qx.bom.client.System.IPHONE? function(target,type,capture){target["on"+type]=qx.lang.Function.returnNull; }:qx.lang.Function.returnNull,unregisterEvent:qx.bom.client.System.IPHONE? function(target,type,capture){target["on"+type]=undefined; }:qx.lang.Function.returnNull,__fireEvent:function(domEvent,type,target){if(!target){target=domEvent.target||domEvent.srcElement; }if(target&&target.nodeType){qx.event.Registration.fireEvent(target,type||domEvent.type,qx.event.type.Mouse,[domEvent,target,null,true,true]); }qx.event.Registration.fireEvent(this.__window,"useraction",qx.event.type.Data,[type||domEvent.type]); },_initButtonObserver:function(){this.__onButtonEventWrapper=qx.lang.Function.listener(this._onButtonEvent,this); var Event=qx.bom.Event; Event.addNativeListener(this.__root,"mousedown",this.__onButtonEventWrapper); Event.addNativeListener(this.__root,"mouseup",this.__onButtonEventWrapper); Event.addNativeListener(this.__root,"click",this.__onButtonEventWrapper); Event.addNativeListener(this.__root,"dblclick",this.__onButtonEventWrapper); Event.addNativeListener(this.__root,"contextmenu",this.__onButtonEventWrapper); },_initMoveObserver:function(){this.__onMoveEventWrapper=qx.lang.Function.listener(this._onMoveEvent,this); var Event=qx.bom.Event; Event.addNativeListener(this.__root,"mousemove",this.__onMoveEventWrapper); Event.addNativeListener(this.__root,"mouseover",this.__onMoveEventWrapper); Event.addNativeListener(this.__root,"mouseout",this.__onMoveEventWrapper); },_initWheelObserver:function(){this.__onWheelEventWrapper=qx.lang.Function.listener(this._onWheelEvent,this); var Event=qx.bom.Event; var type=qx.core.Variant.isSet("qx.client","mshtml|webkit|opera")?"mousewheel":"DOMMouseScroll"; Event.addNativeListener(this.__root,type,this.__onWheelEventWrapper); },_stopButtonObserver:function(){var Event=qx.bom.Event; Event.removeNativeListener(this.__root,"mousedown",this.__onButtonEventWrapper); Event.removeNativeListener(this.__root,"mouseup",this.__onButtonEventWrapper); Event.removeNativeListener(this.__root,"click",this.__onButtonEventWrapper); Event.removeNativeListener(this.__root,"dblclick",this.__onButtonEventWrapper); Event.removeNativeListener(this.__root,"contextmenu",this.__onButtonEventWrapper); },_stopMoveObserver:function(){var Event=qx.bom.Event; Event.removeNativeListener(this.__root,"mousemove",this.__onMoveEventWrapper); Event.removeNativeListener(this.__root,"mouseover",this.__onMoveEventWrapper); Event.removeNativeListener(this.__root,"mouseout",this.__onMoveEventWrapper); },_stopWheelObserver:function(){var Event=qx.bom.Event; var type=qx.core.Variant.isSet("qx.client","mshtml|webkit|opera")?"mousewheel":"DOMMouseScroll"; Event.removeNativeListener(this.__root,type,this.__onWheelEventWrapper); },_onMoveEvent:qx.event.GlobalError.observeMethod(function(domEvent){this.__fireEvent(domEvent); }),_onButtonEvent:qx.event.GlobalError.observeMethod(function(domEvent){var type=domEvent.type; var target=domEvent.target||domEvent.srcElement; if(qx.core.Variant.isSet("qx.client","gecko|webkit")){if(target&&target.nodeType==3){target=target.parentNode; }} if(this.__rightClickFixPre){this.__rightClickFixPre(domEvent,type,target); } if(this.__doubleClickFixPre){this.__doubleClickFixPre(domEvent,type,target); }this.__fireEvent(domEvent,type,target); if(this.__rightClickFixPost){this.__rightClickFixPost(domEvent,type,target); } if(this.__differentTargetClickFixPost){this.__differentTargetClickFixPost(domEvent,type,target); }this.__lastEventType=type; }),_onWheelEvent:qx.event.GlobalError.observeMethod(function(domEvent){this.__fireEvent(domEvent,"mousewheel"); }),__rightClickFixPre:qx.core.Variant.select("qx.client",{"webkit":function(domEvent,type,target){if(qx.bom.client.Engine.VERSION<530){if(type=="contextmenu"){this.__fireEvent(domEvent,"mouseup",target); }}},"default":null}),__rightClickFixPost:qx.core.Variant.select("qx.client",{"opera":function(domEvent,type,target){if(type=="mouseup"&&domEvent.button==2){this.__fireEvent(domEvent,"contextmenu",target); }},"default":null}),__doubleClickFixPre:qx.core.Variant.select("qx.client",{"mshtml":function(domEvent,type,target){if(type=="mouseup"&&this.__lastEventType=="click"){this.__fireEvent(domEvent,"mousedown",target); }else if(type=="dblclick"){this.__fireEvent(domEvent,"click",target); }},"default":null}),__differentTargetClickFixPost:qx.core.Variant.select("qx.client",{"mshtml":null,"default":function(domEvent,type,target){switch(type){case "mousedown":this.__lastMouseDownTarget=target; break; case "mouseup":if(target!==this.__lastMouseDownTarget){var commonParent=qx.dom.Hierarchy.getCommonParent(target,this.__lastMouseDownTarget); this.__fireEvent(domEvent,"click",commonParent); }}}})},destruct:function(){this._stopButtonObserver(); this._stopMoveObserver(); this._stopWheelObserver(); this.__manager=this.__window=this.__root=this.__lastMouseDownTarget=null; },defer:function(statics){qx.event.Registration.addHandler(statics); }}); qx.Bootstrap.define("qx.xml.Document",{statics:{DOMDOC:null,XMLHTTP:null,isXmlDocument:function(elem){if(elem.nodeType===9){return elem.documentElement.nodeName!=="HTML"; }else if(elem.ownerDocument){return this.isXmlDocument(elem.ownerDocument); }else{return false; }},create:qx.core.Variant.select("qx.client",{"mshtml":function(namespaceUri,qualifiedName){var obj=new ActiveXObject(this.DOMDOC); obj.setProperty("SelectionLanguage","XPath"); if(qualifiedName){var str='<\?xml version="1.0" encoding="utf-8"?>\n<'; str+=qualifiedName; if(namespaceUri){str+=" xmlns='"+namespaceUri+"'"; }str+=" />"; obj.loadXML(str); }return obj; },"default":function(namespaceUri,qualifiedName){return document.implementation.createDocument(namespaceUri||"",qualifiedName||"",null); }}),fromString:qx.core.Variant.select("qx.client",{"mshtml":function(str){var dom=qx.xml.Document.create(); dom.loadXML(str); return dom; },"default":function(str){var parser=new DOMParser(); return parser.parseFromString(str,"text/xml"); }})},defer:function(statics){if(qx.core.Variant.isSet("qx.client","mshtml")){var domDoc=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.3.0"]; var httpReq=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0"]; for(var i=0,l=domDoc.length;i=0;i--){currentTarget=captureTargets[i]; event.setCurrentTarget(currentTarget); localList=captureList[i]; for(var j=0,jl=localList.length;j0; }},unregisterEvent:function(target,type,capture){var hash=qx.core.ObjectRegistry.toHashCode(target)+type; var targets=this.__targets; if(!targets){return; } if(targets[hash]){delete targets[hash]; }},refresh:function(){var targets=this.__targets; var elem; for(var hash in targets){elem=targets[hash]; var displayed=elem.offsetWidth>0; if((!!elem.$$displayed)!==displayed){elem.$$displayed=displayed; var evt=qx.event.Registration.createEvent(displayed?"appear":"disappear"); this.__manager.dispatchEvent(elem,evt); }}}},destruct:function(){this.__manager=this.__targets=null; delete qx.event.handler.Appear.__instances[this.$$hash]; },defer:function(statics){qx.event.Registration.addHandler(statics); }}); qx.Class.define("qx.bom.Element",{statics:{__initialAttributes:{"onload":true,"onpropertychange":true,"oninput":true,"onchange":true,"name":true,"type":true,"checked":true,"disabled":true},create:function(name,attributes,win){if(!win){win=window; } if(!name){throw new Error("The tag name is missing!"); }var initial=this.__initialAttributes; var attributesHtml=""; for(var key in attributes){if(initial[key]){attributesHtml+=key+"='"+attributes[key]+"' "; }}var element; if(attributesHtml!=""){if(qx.bom.client.Engine.MSHTML){element=win.document.createElement("<"+name+" "+attributesHtml+">"); }else{var helper=win.document.createElement("div"); helper.innerHTML="<"+name+" "+attributesHtml+">"; element=helper.firstChild; }}else{element=win.document.createElement(name); } for(var key in attributes){if(!initial[key]){qx.bom.element.Attribute.set(element,key,attributes[key]); }}return element; },empty:function(element){return element.innerHTML=""; },addListener:function(element,type,listener,self,capture){return qx.event.Registration.addListener(element,type,listener,self,capture); },removeListener:function(element,type,listener,self,capture){return qx.event.Registration.removeListener(element,type,listener,self,capture); },removeListenerById:function(target,id){return qx.event.Registration.removeListenerById(target,id); },hasListener:function(element,type,capture){return qx.event.Registration.hasListener(element,type,capture); },focus:function(element){qx.event.Registration.getManager(element).getHandler(qx.event.handler.Focus).focus(element); },blur:function(element){qx.event.Registration.getManager(element).getHandler(qx.event.handler.Focus).blur(element); },activate:function(element){qx.event.Registration.getManager(element).getHandler(qx.event.handler.Focus).activate(element); },deactivate:function(element){qx.event.Registration.getManager(element).getHandler(qx.event.handler.Focus).deactivate(element); },capture:function(element,containerCapture){qx.event.Registration.getManager(element).getDispatcher(qx.event.dispatch.MouseCapture).activateCapture(element,containerCapture); },releaseCapture:function(element){qx.event.Registration.getManager(element).getDispatcher(qx.event.dispatch.MouseCapture).releaseCapture(element); },clone:function(element,events){var clone; if(events||(qx.core.Variant.isSet("qx.client","mshtml")&&!qx.xml.Document.isXmlDocument(element))){var mgr=qx.event.Registration.getManager(element); var all=qx.dom.Hierarchy.getDescendants(element); all.push(element); }if(qx.core.Variant.isSet("qx.client","mshtml")){for(var i=0,l=all.length;i0){cloneElem=cloneAll[i]; for(var j=0,jl=eventList.length;j=0;i--){if(this[i]===searchElement){return i; }}return -1; }}),arrayForEach:qx.lang.Object.select(Array.prototype.forEach?"native":"emulated",{"native":Array.prototype.forEach,"emulated":function(callback,obj){var l=this.length; for(var i=0;i=8){return qx.bom.client.Engine.DOCUMENT_MODE===5; }else{return document.compatMode!=="CSS1Compat"; }}},defer:function(statics){statics.__init(); }}); qx.Class.define("qx.util.ResourceManager",{extend:qx.core.Object,type:"singleton",statics:{__registry:qx.$$resources||{},__urlPrefix:{}},members:{has:function(id){return !!this.self(arguments).__registry[id]; },getData:function(id){return this.self(arguments).__registry[id]||null; },getImageWidth:function(id){var entry=this.self(arguments).__registry[id]; return entry?entry[0]:null; },getImageHeight:function(id){var entry=this.self(arguments).__registry[id]; return entry?entry[1]:null; },getImageFormat:function(id){var entry=this.self(arguments).__registry[id]; return entry?entry[2]:null; },isClippedImage:function(id){var entry=this.self(arguments).__registry[id]; return entry&&entry.length>4; },toUri:function(id){if(id==null){return id; }var entry=this.self(arguments).__registry[id]; if(!entry){return id; } if(typeof entry==="string"){var lib=entry; }else{var lib=entry[3]; if(!lib){return id; }}var urlPrefix=""; if(qx.core.Variant.isSet("qx.client","mshtml")&&qx.bom.client.Feature.SSL){urlPrefix=this.self(arguments).__urlPrefix[lib]; }return urlPrefix+qx.$$libraries[lib].resourceUri+"/"+id; }},defer:function(statics){if(qx.core.Variant.isSet("qx.client","mshtml")){if(qx.bom.client.Feature.SSL){for(var lib in qx.$$libraries){var resourceUri=qx.$$libraries[lib].resourceUri; if(resourceUri.match(/^\/\//)!=null){statics.__urlPrefix[lib]=window.location.protocol; }else if(resourceUri.match(/^\.\//)!=null&&qx.core.Setting.get("qx.isSource")){var url=document.URL; statics.__urlPrefix[lib]=url.substring(0,url.lastIndexOf("/")); }else if(resourceUri.match(/^http/)!=null){}else{var index=window.location.href.indexOf("?"); var href; if(index==-1){href=window.location.href; }else{href=window.location.href.substring(0,index); }statics.__urlPrefix[lib]=href.substring(0,href.lastIndexOf("/")+1); }}}}}}); qx.Class.define("qx.event.handler.Focus",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(manager){this.base(arguments); this._manager=manager; this._window=manager.getWindow(); this._document=this._window.document; this._root=this._document.documentElement; this._body=this._document.body; this._initObserver(); },properties:{active:{apply:"_applyActive",nullable:true},focus:{apply:"_applyFocus",nullable:true}},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{focus:1,blur:1,focusin:1,focusout:1,activate:1,deactivate:1},IGNORE_CAN_HANDLE:true,FOCUSABLE_ELEMENTS:qx.core.Variant.select("qx.client",{"mshtml|gecko":{a:1,body:1,button:1,frame:1,iframe:1,img:1,input:1,object:1,select:1,textarea:1},"opera|webkit":{button:1,input:1,select:1,textarea:1}})},members:{__onNativeMouseDownWrapper:null,__onNativeMouseUpWrapper:null,__onNativeFocusWrapper:null,__onNativeBlurWrapper:null,__onNativeDragGestureWrapper:null,__onNativeSelectStartWrapper:null,__onNativeFocusInWrapper:null,__onNativeFocusOutWrapper:null,__previousFocus:null,__previousActive:null,canHandleEvent:function(target,type){},registerEvent:function(target,type,capture){},unregisterEvent:function(target,type,capture){},focus:function(element){try{element.focus(); }catch(ex){}this.setFocus(element); this.setActive(element); },activate:function(element){this.setActive(element); },blur:function(element){try{element.blur(); }catch(ex){} if(this.getActive()===element){this.resetActive(); } if(this.getFocus()===element){this.resetFocus(); }},deactivate:function(element){if(this.getActive()===element){this.resetActive(); }},tryActivate:function(element){var active=this.__findActivatableElement(element); if(active){this.setActive(active); }},__fireEvent:function(target,related,type,bubbles){var Registration=qx.event.Registration; var evt=Registration.createEvent(type,qx.event.type.Focus,[target,related,bubbles]); Registration.dispatchEvent(target,evt); },_windowFocused:true,__doWindowBlur:function(){if(this._windowFocused){this._windowFocused=false; this.__fireEvent(this._window,null,"blur",false); }},__doWindowFocus:function(){if(!this._windowFocused){this._windowFocused=true; this.__fireEvent(this._window,null,"focus",false); }},_initObserver:qx.core.Variant.select("qx.client",{"gecko":function(){this.__onNativeMouseDownWrapper=qx.lang.Function.listener(this.__onNativeMouseDown,this); this.__onNativeMouseUpWrapper=qx.lang.Function.listener(this.__onNativeMouseUp,this); this.__onNativeFocusWrapper=qx.lang.Function.listener(this.__onNativeFocus,this); this.__onNativeBlurWrapper=qx.lang.Function.listener(this.__onNativeBlur,this); this.__onNativeDragGestureWrapper=qx.lang.Function.listener(this.__onNativeDragGesture,this); this._document.addEventListener("mousedown",this.__onNativeMouseDownWrapper,true); this._document.addEventListener("mouseup",this.__onNativeMouseUpWrapper,true); this._window.addEventListener("focus",this.__onNativeFocusWrapper,true); this._window.addEventListener("blur",this.__onNativeBlurWrapper,true); this._window.addEventListener("draggesture",this.__onNativeDragGestureWrapper,true); },"mshtml":function(){this.__onNativeMouseDownWrapper=qx.lang.Function.listener(this.__onNativeMouseDown,this); this.__onNativeMouseUpWrapper=qx.lang.Function.listener(this.__onNativeMouseUp,this); this.__onNativeFocusInWrapper=qx.lang.Function.listener(this.__onNativeFocusIn,this); this.__onNativeFocusOutWrapper=qx.lang.Function.listener(this.__onNativeFocusOut,this); this.__onNativeSelectStartWrapper=qx.lang.Function.listener(this.__onNativeSelectStart,this); this._document.attachEvent("onmousedown",this.__onNativeMouseDownWrapper); this._document.attachEvent("onmouseup",this.__onNativeMouseUpWrapper); this._document.attachEvent("onfocusin",this.__onNativeFocusInWrapper); this._document.attachEvent("onfocusout",this.__onNativeFocusOutWrapper); this._document.attachEvent("onselectstart",this.__onNativeSelectStartWrapper); },"webkit":function(){this.__onNativeMouseDownWrapper=qx.lang.Function.listener(this.__onNativeMouseDown,this); this.__onNativeMouseUpWrapper=qx.lang.Function.listener(this.__onNativeMouseUp,this); this.__onNativeFocusOutWrapper=qx.lang.Function.listener(this.__onNativeFocusOut,this); this.__onNativeFocusWrapper=qx.lang.Function.listener(this.__onNativeFocus,this); this.__onNativeBlurWrapper=qx.lang.Function.listener(this.__onNativeBlur,this); this.__onNativeSelectStartWrapper=qx.lang.Function.listener(this.__onNativeSelectStart,this); this._document.addEventListener("mousedown",this.__onNativeMouseDownWrapper,true); this._document.addEventListener("mouseup",this.__onNativeMouseUpWrapper,true); this._document.addEventListener("selectstart",this.__onNativeSelectStartWrapper,false); this._window.addEventListener("DOMFocusOut",this.__onNativeFocusOutWrapper,true); this._window.addEventListener("focus",this.__onNativeFocusWrapper,true); this._window.addEventListener("blur",this.__onNativeBlurWrapper,true); },"opera":function(){this.__onNativeMouseDownWrapper=qx.lang.Function.listener(this.__onNativeMouseDown,this); this.__onNativeMouseUpWrapper=qx.lang.Function.listener(this.__onNativeMouseUp,this); this.__onNativeFocusInWrapper=qx.lang.Function.listener(this.__onNativeFocusIn,this); this.__onNativeFocusOutWrapper=qx.lang.Function.listener(this.__onNativeFocusOut,this); this._document.addEventListener("mousedown",this.__onNativeMouseDownWrapper,true); this._document.addEventListener("mouseup",this.__onNativeMouseUpWrapper,true); this._window.addEventListener("DOMFocusIn",this.__onNativeFocusInWrapper,true); this._window.addEventListener("DOMFocusOut",this.__onNativeFocusOutWrapper,true); }}),_stopObserver:qx.core.Variant.select("qx.client",{"gecko":function(){this._document.removeEventListener("mousedown",this.__onNativeMouseDownWrapper,true); this._document.removeEventListener("mouseup",this.__onNativeMouseUpWrapper,true); this._window.removeEventListener("focus",this.__onNativeFocusWrapper,true); this._window.removeEventListener("blur",this.__onNativeBlurWrapper,true); this._window.removeEventListener("draggesture",this.__onNativeDragGestureWrapper,true); },"mshtml":function(){this._document.detachEvent("onmousedown",this.__onNativeMouseDownWrapper); this._document.detachEvent("onmouseup",this.__onNativeMouseUpWrapper); this._document.detachEvent("onfocusin",this.__onNativeFocusInWrapper); this._document.detachEvent("onfocusout",this.__onNativeFocusOutWrapper); this._document.detachEvent("onselectstart",this.__onNativeSelectStartWrapper); },"webkit":function(){this._document.removeEventListener("mousedown",this.__onNativeMouseDownWrapper,true); this._document.removeEventListener("selectstart",this.__onNativeSelectStartWrapper,false); this._window.removeEventListener("DOMFocusIn",this.__onNativeFocusInWrapper,true); this._window.removeEventListener("DOMFocusOut",this.__onNativeFocusOutWrapper,true); this._window.removeEventListener("focus",this.__onNativeFocusWrapper,true); this._window.removeEventListener("blur",this.__onNativeBlurWrapper,true); },"opera":function(){this._document.removeEventListener("mousedown",this.__onNativeMouseDownWrapper,true); this._window.removeEventListener("DOMFocusIn",this.__onNativeFocusInWrapper,true); this._window.removeEventListener("DOMFocusOut",this.__onNativeFocusOutWrapper,true); this._window.removeEventListener("focus",this.__onNativeFocusWrapper,true); this._window.removeEventListener("blur",this.__onNativeBlurWrapper,true); }}),__onNativeDragGesture:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"gecko":function(e){if(!this.__isSelectable(e.target)){qx.bom.Event.preventDefault(e); }},"default":null})),__onNativeFocusIn:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"mshtml":function(e){this.__doWindowFocus(); var target=e.srcElement; var focusTarget=this.__findFocusableElement(target); if(focusTarget){this.setFocus(focusTarget); }this.tryActivate(target); },"opera":function(e){var target=e.target; if(target==this._document||target==this._window){this.__doWindowFocus(); if(this.__previousFocus){this.setFocus(this.__previousFocus); delete this.__previousFocus; } if(this.__previousActive){this.setActive(this.__previousActive); delete this.__previousActive; }}else{this.setFocus(target); this.tryActivate(target); if(!this.__isSelectable(target)){target.selectionStart=0; target.selectionEnd=0; }}},"default":null})),__onNativeFocusOut:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"mshtml":function(e){if(!e.toElement){this.__doWindowBlur(); this.resetFocus(); this.resetActive(); }},"webkit":function(e){var target=e.target; if(target===this.getFocus()){this.resetFocus(); } if(target===this.getActive()){this.resetActive(); }},"opera":function(e){var target=e.target; if(target==this._document){this.__doWindowBlur(); this.__previousFocus=this.getFocus(); this.__previousActive=this.getActive(); this.resetFocus(); this.resetActive(); }else{if(target===this.getFocus()){this.resetFocus(); } if(target===this.getActive()){this.resetActive(); }}},"default":null})),__onNativeBlur:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"gecko":function(e){if(e.target===this._window||e.target===this._document){this.__doWindowBlur(); this.resetActive(); this.resetFocus(); }},"webkit":function(e){if(e.target===this._window||e.target===this._document){this.__doWindowBlur(); this.__previousFocus=this.getFocus(); this.__previousActive=this.getActive(); this.resetActive(); this.resetFocus(); }},"default":null})),__onNativeFocus:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"gecko":function(e){var target=e.target; if(target===this._window||target===this._document){this.__doWindowFocus(); target=this._body; }this.setFocus(target); this.tryActivate(target); },"webkit":function(e){var target=e.target; if(target===this._window||target===this._document){this.__doWindowFocus(); if(this.__previousFocus){this.setFocus(this.__previousFocus); delete this.__previousFocus; } if(this.__previousActive){this.setActive(this.__previousActive); delete this.__previousActive; }}else{this.setFocus(target); this.tryActivate(target); }},"default":null})),__onNativeMouseDown:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"gecko":function(e){var target=e.target; var focusTarget=this.__findFocusableElement(target); var selectable=this.__isSelectable(target); if(!selectable){qx.bom.Event.preventDefault(e); if(focusTarget){if(qx.core.Variant.isSet("qx.client","gecko")){var isElementOfRootPage=qx.bom.element.Attribute.get(focusTarget,"qxIsRootPage")==="1"; if(!isElementOfRootPage){focusTarget.focus(); }}else{focusTarget.focus(); }}}else if(!focusTarget){qx.bom.Event.preventDefault(e); }},"mshtml":function(e){var target=e.srcElement; var focusTarget=this.__findFocusableElement(target); if(focusTarget){if(!this.__isSelectable(target)){target.unselectable="on"; try{document.selection.empty(); }catch(e){}focusTarget.focus(); }}else{qx.bom.Event.preventDefault(e); if(!this.__isSelectable(target)){target.unselectable="on"; }}},"webkit":function(e){var target=e.target; var focusTarget=this.__findFocusableElement(target); if(focusTarget){this.setFocus(focusTarget); }else{qx.bom.Event.preventDefault(e); }},"opera":function(e){var target=e.target; var focusTarget=this.__findFocusableElement(target); if(!this.__isSelectable(target)){qx.bom.Event.preventDefault(e); if(focusTarget){var current=this.getFocus(); if(current&¤t.selectionEnd){current.selectionStart=0; current.selectionEnd=0; current.blur(); }if(focusTarget){this.setFocus(focusTarget); }}}else if(focusTarget){this.setFocus(focusTarget); }},"default":null})),__onNativeMouseUp:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"mshtml":function(e){var target=e.srcElement; if(target.unselectable){target.unselectable="off"; }this.tryActivate(this.__fixFocus(target)); },"gecko":function(e){var target=e.target; while(target&&target.offsetWidth===undefined){target=target.parentNode; } if(target){this.tryActivate(target); }},"webkit|opera":function(e){this.tryActivate(this.__fixFocus(e.target)); },"default":null})),__fixFocus:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"mshtml|webkit":function(target){var focusedElement=this.getFocus(); if(focusedElement&&target!=focusedElement&&(focusedElement.nodeName.toLowerCase()==="input"||focusedElement.nodeName.toLowerCase()==="textarea")){target=focusedElement; }return target; },"default":function(target){return target; }})),__onNativeSelectStart:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"mshtml|webkit":function(e){var target=qx.bom.client.Engine.MSHTML?e.srcElement:e.target; if(!this.__isSelectable(target)){qx.bom.Event.preventDefault(e); }},"default":null})),__isFocusable:function(el){var index=qx.bom.element.Attribute.get(el,"tabIndex"); if(index>=1){return true; }var focusable=qx.event.handler.Focus.FOCUSABLE_ELEMENTS; if(index>=0&&focusable[el.tagName]){return true; }return false; },__findFocusableElement:function(el){while(el&&el.nodeType===1){if(el.getAttribute("qxKeepFocus")=="on"){return null; } if(this.__isFocusable(el)){return el; }el=el.parentNode; }return this._body; },__findActivatableElement:function(el){var orig=el; while(el&&el.nodeType===1){if(el.getAttribute("qxKeepActive")=="on"){return null; }el=el.parentNode; }return orig; },__isSelectable:function(node){while(node&&node.nodeType===1){var attr=node.getAttribute("qxSelectable"); if(attr!=null){return attr==="on"; }node=node.parentNode; }return true; },_applyActive:function(value,old){if(old){this.__fireEvent(old,value,"deactivate",true); } if(value){this.__fireEvent(value,old,"activate",true); }},_applyFocus:function(value,old){if(old){this.__fireEvent(old,value,"focusout",true); } if(value){this.__fireEvent(value,old,"focusin",true); }if(old){this.__fireEvent(old,value,"blur",false); } if(value){this.__fireEvent(value,old,"focus",false); }}},destruct:function(){this._stopObserver(); this._manager=this._window=this._document=this._root=this._body=this.__mouseActive=null; },defer:function(statics){qx.event.Registration.addHandler(statics); var focusable=statics.FOCUSABLE_ELEMENTS; for(var entry in focusable){focusable[entry.toUpperCase()]=1; }}}); qx.Class.define("qx.event.handler.Window",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(manager){this.base(arguments); this._manager=manager; this._window=manager.getWindow(); this._initWindowObserver(); },statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{error:1,load:1,beforeunload:1,unload:1,resize:1,scroll:1,beforeshutdown:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true},members:{canHandleEvent:function(target,type){},registerEvent:function(target,type,capture){},unregisterEvent:function(target,type,capture){},_initWindowObserver:function(){this._onNativeWrapper=qx.lang.Function.listener(this._onNative,this); var types=qx.event.handler.Window.SUPPORTED_TYPES; for(var key in types){qx.bom.Event.addNativeListener(this._window,key,this._onNativeWrapper); }},_stopWindowObserver:function(){var types=qx.event.handler.Window.SUPPORTED_TYPES; for(var key in types){qx.bom.Event.removeNativeListener(this._window,key,this._onNativeWrapper); }},_onNative:qx.event.GlobalError.observeMethod(function(e){if(this.isDisposed()){return; }var win=this._window; var doc=win.document; var html=doc.documentElement; var target=e.target||e.srcElement; if(target==null||target===win||target===doc||target===html){var event=qx.event.Registration.createEvent(e.type,qx.event.type.Native,[e,win]); qx.event.Registration.dispatchEvent(win,event); var result=event.getReturnValue(); if(result!=null){e.returnValue=result; return result; }}})},destruct:function(){this._stopWindowObserver(); this._manager=this._window=null; },defer:function(statics){qx.event.Registration.addHandler(statics); }}); qx.Class.define("qx.bom.Blocker",{extend:qx.core.Object,construct:function(){this.base(arguments); this.__init(); },members:{__iframeElement:null,__blockerElement:null,__blockedElement:null,__isActive:false,__defaultZIndex:10000,__defaultBlockerOpacity:0,__defaultBlockerColor:"transparent",block:function(element){if(!this.__isActive){this.__blockedElement=element; var styles=this.__calculateStyles(); this.__styleAndInsertBlocker(styles); this.__isActive=true; }},unblock:function(){if(this.__isActive){this.__removeBlocker(); this.__isActive=false; }},isBlocked:function(){return this.__isActive; },getBlockerElement:function(){return this.__blockerElement; },setBlockerColor:function(color){qx.bom.element.Style.set(this.__blockerElement,"backgroundColor",color); },getBlockerColor:function(){return qx.bom.element.Style.get(this.__blockerElement,"backgroundColor"); },setBlockerOpacity:function(opacity){qx.bom.element.Opacity.set(this.__blockerElement,opacity); },getBlockerOpacity:function(){return qx.bom.element.Opacity.get(this.__blockerElement); },setBlockerZIndex:function(zIndex){qx.bom.element.Style.set(this.__blockerElement,"zIndex",zIndex); },getBlockerZIndex:function(){return qx.bom.element.Style.get(this.__blockerElement,"zIndex"); },__init:function(){this.__setupBlockerElement(); if(qx.core.Variant.isSet("qx.client","mshtml")){this.__setupIframeElement(); }qx.event.Registration.addListener(window,"resize",this.__onResize,this); },__setupBlockerElement:function(){this.__blockerElement=qx.bom.Element.create("div"); qx.bom.element.Style.setStyles(this.__blockerElement,{display:"block",opacity:this.__defaultBlockerOpacity,backgroundColor:this.__defaultBlockerColor}); this.setBlockerZIndex(this.__defaultZIndex); if(qx.core.Variant.isSet("qx.client","mshtml")){qx.bom.element.Style.setStyles(this.__blockerElement,{backgroundImage:"url("+qx.util.ResourceManager.getInstance().toUri("/core/img/blank.gif")+")",backgroundRepeat:"repeat"}); }},__setupIframeElement:function(){this.__iframeElement=qx.bom.Iframe.create(); qx.bom.element.Attribute.set(this.__iframeElement,"allowTransparency",false); qx.bom.element.Attribute.set(this.__iframeElement,"src","javascript:false;"); qx.bom.element.Style.setStyles(this.__iframeElement,{display:"block",opacity:this.__defaultBlockerOpacity}); },__calculateStyles:function(){var styles={position:"absolute"}; if(this.__isWholeDocumentBlockTarget()){styles.left="0px"; styles.top="0px"; styles.right=null; styles.bottom=null; styles.width=qx.bom.Document.getWidth()+"px"; styles.height=qx.bom.Document.getHeight()+"px"; }else{styles.width=qx.bom.element.Dimension.getWidth(this.__blockedElement)+"px"; styles.height=qx.bom.element.Dimension.getHeight(this.__blockedElement)+"px"; styles.left=qx.bom.element.Location.getLeft(this.__blockedElement)+"px"; styles.top=qx.bom.element.Location.getTop(this.__blockedElement)+"px"; }return styles; },__styleAndInsertBlocker:function(styles){var target=document.body; qx.bom.element.Style.setStyles(this.__blockerElement,styles); qx.dom.Element.insertEnd(this.__blockerElement,target); if(qx.core.Variant.isSet("qx.client","mshtml")){styles.zIndex=this.getBlockerZIndex()-1; qx.bom.element.Style.setStyles(this.__iframeElement,styles); qx.dom.Element.insertEnd(this.__iframeElement,document.body); }},__removeBlocker:function(){qx.dom.Element.remove(this.__blockerElement); if(qx.core.Variant.isSet("qx.client","mshtml")){qx.dom.Element.remove(this.__iframeElement); }},__onResize:function(e){if(this.__isWholeDocumentBlockTarget()){this.__resizeBlocker({width:"0px",height:"0px"}); qx.event.Timer.once(function(){var dimension={width:qx.bom.Document.getWidth()+"px",height:qx.bom.Document.getHeight()+"px"}; this.__resizeBlocker(dimension); },this,0); }},__resizeBlocker:function(dimension){qx.bom.element.Style.setStyles(this.__blockerElement,dimension); if(qx.core.Variant.isSet("qx.client","mshtml")){qx.bom.element.Style.setStyles(this.__iframeElement,dimension); }},__isWholeDocumentBlockTarget:function(){return (this.__blockedElement==null||qx.dom.Node.isWindow(this.__blockedElement)||qx.dom.Node.isDocument(this.__blockedElement)); }}}); qx.Class.define("qx.bom.element.Background",{statics:{__tmpl:["background-image:url(",null,");","background-position:",null,";","background-repeat:",null,";"],__emptyStyles:{backgroundImage:null,backgroundPosition:null,backgroundRepeat:null},__computePosition:function(left,top){var Engine=qx.bom.client.Engine; if(Engine.GECKO&&Engine.VERSION<1.9&&left==top&&typeof left=="number"){top+=0.01; } if(left){var leftCss=(typeof left=="number")?left+"px":left; }else{leftCss="0"; } if(top){var topCss=(typeof top=="number")?top+"px":top; }else{topCss="0"; }return leftCss+" "+topCss; },compile:function(source,repeat,left,top){var position=this.__computePosition(left,top); var backgroundImageUrl=qx.util.ResourceManager.getInstance().toUri(source); var tmpl=this.__tmpl; tmpl[1]=backgroundImageUrl; tmpl[4]=position; tmpl[7]=repeat; return tmpl.join(""); },getStyles:function(source,repeat,left,top){if(!source){return this.__emptyStyles; }var position=this.__computePosition(left,top); var backgroundImageUrl=qx.util.ResourceManager.getInstance().toUri(source); var map={backgroundPosition:position,backgroundImage:"url("+backgroundImageUrl+")"}; if(repeat!=null){map.backgroundRepeat=repeat; }return map; },set:function(element,source,repeat,left,top){var styles=this.getStyles(source,repeat,left,top); for(var prop in styles){element.style[prop]=styles[prop]; }}}}); qx.Class.define("qx.bom.element.Location",{statics:{__style:function(elem,style){return qx.bom.element.Style.get(elem,style,qx.bom.element.Style.COMPUTED_MODE,false); },__num:function(elem,style){return parseInt(qx.bom.element.Style.get(elem,style,qx.bom.element.Style.COMPUTED_MODE,false),10)||0; },__computeScroll:function(elem){var left=0,top=0; if(elem.getBoundingClientRect&&!qx.bom.client.Engine.OPERA){var win=qx.dom.Node.getWindow(elem); left-=qx.bom.Viewport.getScrollLeft(win); top-=qx.bom.Viewport.getScrollTop(win); }else{var body=qx.dom.Node.getDocument(elem).body; elem=elem.parentNode; while(elem&&elem!=body){left+=elem.scrollLeft; top+=elem.scrollTop; elem=elem.parentNode; }}return {left:left,top:top}; },__computeBody:qx.core.Variant.select("qx.client",{"mshtml":function(elem){var doc=qx.dom.Node.getDocument(elem); var body=doc.body; var left=0; var top=0; left-=body.clientLeft+doc.documentElement.clientLeft; top-=body.clientTop+doc.documentElement.clientTop; if(qx.bom.client.Feature.STANDARD_MODE){left+=this.__num(body,"borderLeftWidth"); top+=this.__num(body,"borderTopWidth"); }return {left:left,top:top}; },"webkit":function(elem){var doc=qx.dom.Node.getDocument(elem); var body=doc.body; var left=body.offsetLeft; var top=body.offsetTop; if(qx.bom.client.Engine.VERSION<530.17){left+=this.__num(body,"borderLeftWidth"); top+=this.__num(body,"borderTopWidth"); }return {left:left,top:top}; },"gecko":function(elem){var body=qx.dom.Node.getDocument(elem).body; var left=body.offsetLeft; var top=body.offsetTop; if(qx.bom.client.Engine.VERSION<1.9){left+=this.__num(body,"marginLeft"); top+=this.__num(body,"marginTop"); }if(qx.bom.element.BoxSizing.get(body)!=="border-box"){left+=this.__num(body,"borderLeftWidth"); top+=this.__num(body,"borderTopWidth"); }return {left:left,top:top}; },"default":function(elem){var body=qx.dom.Node.getDocument(elem).body; var left=body.offsetLeft; var top=body.offsetTop; return {left:left,top:top}; }}),__computeOffset:qx.core.Variant.select("qx.client",{"mshtml|webkit":function(elem){var doc=qx.dom.Node.getDocument(elem); if(elem.getBoundingClientRect){var rect=elem.getBoundingClientRect(); var left=rect.left; var top=rect.top; }else{var left=elem.offsetLeft; var top=elem.offsetTop; elem=elem.offsetParent; var body=doc.body; while(elem&&elem!=body){left+=elem.offsetLeft; top+=elem.offsetTop; left+=this.__num(elem,"borderLeftWidth"); top+=this.__num(elem,"borderTopWidth"); elem=elem.offsetParent; }}return {left:left,top:top}; },"gecko":function(elem){if(elem.getBoundingClientRect){var rect=elem.getBoundingClientRect(); var left=Math.round(rect.left); var top=Math.round(rect.top); }else{var left=0; var top=0; var body=qx.dom.Node.getDocument(elem).body; var box=qx.bom.element.BoxSizing; if(box.get(elem)!=="border-box"){left-=this.__num(elem,"borderLeftWidth"); top-=this.__num(elem,"borderTopWidth"); } while(elem&&elem!==body){left+=elem.offsetLeft; top+=elem.offsetTop; if(box.get(elem)!=="border-box"){left+=this.__num(elem,"borderLeftWidth"); top+=this.__num(elem,"borderTopWidth"); }if(elem.parentNode&&this.__style(elem.parentNode,"overflow")!="visible"){left+=this.__num(elem.parentNode,"borderLeftWidth"); top+=this.__num(elem.parentNode,"borderTopWidth"); }elem=elem.offsetParent; }}return {left:left,top:top}; },"default":function(elem){var left=0; var top=0; var body=qx.dom.Node.getDocument(elem).body; while(elem&&elem!==body){left+=elem.offsetLeft; top+=elem.offsetTop; elem=elem.offsetParent; }return {left:left,top:top}; }}),get:function(elem,mode){if(elem.tagName=="BODY"){var location=this.__getBodyLocation(elem); var left=location.left; var top=location.top; }else{var body=this.__computeBody(elem); var offset=this.__computeOffset(elem); var scroll=this.__computeScroll(elem); var left=offset.left+body.left-scroll.left; var top=offset.top+body.top-scroll.top; }var right=left+elem.offsetWidth; var bottom=top+elem.offsetHeight; if(mode){if(mode=="padding"||mode=="scroll"){var overX=qx.bom.element.Overflow.getX(elem); if(overX=="scroll"||overX=="auto"){right+=elem.scrollWidth-elem.offsetWidth+this.__num(elem,"borderLeftWidth")+this.__num(elem,"borderRightWidth"); }var overY=qx.bom.element.Overflow.getY(elem); if(overY=="scroll"||overY=="auto"){bottom+=elem.scrollHeight-elem.offsetHeight+this.__num(elem,"borderTopWidth")+this.__num(elem,"borderBottomWidth"); }} switch(mode){case "padding":left+=this.__num(elem,"paddingLeft"); top+=this.__num(elem,"paddingTop"); right-=this.__num(elem,"paddingRight"); bottom-=this.__num(elem,"paddingBottom"); case "scroll":left-=elem.scrollLeft; top-=elem.scrollTop; right-=elem.scrollLeft; bottom-=elem.scrollTop; case "border":left+=this.__num(elem,"borderLeftWidth"); top+=this.__num(elem,"borderTopWidth"); right-=this.__num(elem,"borderRightWidth"); bottom-=this.__num(elem,"borderBottomWidth"); break; case "margin":left-=this.__num(elem,"marginLeft"); top-=this.__num(elem,"marginTop"); right+=this.__num(elem,"marginRight"); bottom+=this.__num(elem,"marginBottom"); break; }}return {left:left,top:top,right:right,bottom:bottom}; },__getBodyLocation:qx.core.Variant.select("qx.client",{"default":function(body){var top=body.offsetTop+this.__num(body,"marginTop"); var left=body.offsetLeft+this.__num(body,"marginLeft"); return {left:left,top:top}; },"mshtml":function(body){var top=body.offsetTop; var left=body.offsetLeft; if(!((qx.bom.client.Engine.VERSION<8||qx.bom.client.Engine.DOCUMENT_MODE<8)&&!qx.bom.client.Feature.QUIRKS_MODE)){top+=this.__num(body,"marginTop"); left+=this.__num(body,"marginLeft"); }return {left:left,top:top}; },"gecko":function(body){var top=body.offsetTop+this.__num(body,"marginTop")+this.__num(body,"borderLeftWidth"); var left=body.offsetLeft+this.__num(body,"marginLeft")+this.__num(body,"borderTopWidth"); return {left:left,top:top}; }}),getLeft:function(elem,mode){return this.get(elem,mode).left; },getTop:function(elem,mode){return this.get(elem,mode).top; },getRight:function(elem,mode){return this.get(elem,mode).right; },getBottom:function(elem,mode){return this.get(elem,mode).bottom; },getRelative:function(elem1,elem2,mode1,mode2){var loc1=this.get(elem1,mode1); var loc2=this.get(elem2,mode2); return {left:loc1.left-loc2.left,top:loc1.top-loc2.top,right:loc1.right-loc2.right,bottom:loc1.bottom-loc2.bottom}; },getPosition:function(elem){return this.getRelative(elem,this.getOffsetParent(elem)); },getOffsetParent:function(element){var offsetParent=element.offsetParent||document.body; var Style=qx.bom.element.Style; while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&Style.get(offsetParent,"position")==="static")){offsetParent=offsetParent.offsetParent; }return offsetParent; }}}); qx.Bootstrap.define("qx.dev.StackTrace",{statics:{getStackTrace:qx.core.Variant.select("qx.client",{"gecko":function(){try{throw new Error(); }catch(ex){var errorTrace=this.getStackTraceFromError(ex); qx.lang.Array.removeAt(errorTrace,0); var callerTrace=this.getStackTraceFromCaller(arguments); var trace=callerTrace.length>errorTrace.length?callerTrace:errorTrace; for(var i=0;i=0){continue; }var callerArr=callerCall.split(":"); if(callerArr.length!=2){continue; }var callerClassName=callerArr[0]; var methodName=callerArr[1]; var errorCall=errorTrace[i]; var errorArr=errorCall.split(":"); var errorClassName=errorArr[0]; var lineNumber=errorArr[1]; if(qx.Class.getByName(errorClassName)){var className=errorClassName; }else{className=callerClassName; }var line=className+":"; if(methodName){line+=methodName+":"; }line+=lineNumber; trace[i]=line; }return trace; }},"mshtml|webkit":function(){return this.getStackTraceFromCaller(arguments); },"opera":function(){var foo; try{foo.bar(); }catch(ex){var trace=this.getStackTraceFromError(ex); qx.lang.Array.removeAt(trace,0); return trace; }return []; }}),getStackTraceFromCaller:qx.core.Variant.select("qx.client",{"opera":function(args){return []; },"default":function(args){var trace=[]; var fcn=qx.lang.Function.getCaller(args); var knownFunction={}; while(fcn){var fcnName=qx.lang.Function.getName(fcn); trace.push(fcnName); try{fcn=fcn.caller; }catch(ex){break; } if(!fcn){break; }var hash=qx.core.ObjectRegistry.toHashCode(fcn); if(knownFunction[hash]){trace.push("..."); break; }knownFunction[hash]=fcn; }return trace; }}),getStackTraceFromError:qx.core.Variant.select("qx.client",{"gecko":function(error){if(!error.stack){return []; }var lineRe=/@(.+):(\d+)$/gm; var hit; var trace=[]; while((hit=lineRe.exec(error.stack))!=null){var url=hit[1]; var lineNumber=hit[2]; var className=this.__fileNameToClassName(url); trace.push(className+":"+lineNumber); }return trace; },"webkit":function(error){if(error.sourceURL&&error.line){return [this.__fileNameToClassName(error.sourceURL)+":"+error.line]; }else{return []; }},"opera":function(error){if(error.message.indexOf("Backtrace:")<0){return []; }var trace=[]; var traceString=qx.lang.String.trim(error.message.split("Backtrace:")[1]); var lines=traceString.split("\n"); for(var i=0;i=2){var lineNumber=reResult[1]; var fileName=this.__fileNameToClassName(reResult[2]); trace.push(fileName+":"+lineNumber); }}return trace; },"default":function(){return []; }}),__fileNameToClassName:function(fileName){var scriptDir="/source/class/"; var jsPos=fileName.indexOf(scriptDir); var className=(jsPos==-1)?fileName:fileName.substring(jsPos+scriptDir.length).replace(/\//g,".").replace(/\.js$/,""); return className; }}}); qx.Class.define("qx.util.ObjectPool",{extend:qx.core.Object,construct:function(size){this.base(arguments); this.__pool={}; if(size!=null){this.setSize(size); }},properties:{size:{check:"Integer",init:Infinity}},members:{__pool:null,getObject:function(clazz){if(this.$$disposed){return; } if(!clazz){throw new Error("Class needs to be defined!"); }var obj=null; var pool=this.__pool[clazz.classname]; if(pool){obj=pool.pop(); } if(obj){obj.$$pooled=false; }else{obj=new clazz; }return obj; },poolObject:function(obj){if(!this.__pool){return; }var classname=obj.classname; var pool=this.__pool[classname]; if(obj.$$pooled){throw new Error("Object is already pooled: "+obj); } if(!pool){this.__pool[classname]=pool=[]; }if(pool.length>this.getSize()){if(obj.destroy){obj.destroy(); }else{obj.dispose(); }return; }obj.$$pooled=true; pool.push(obj); }},destruct:function(){var pool=this.__pool; var classname,list,i,l; for(classname in pool){list=pool[classname]; for(i=0,l=list.length;i=1){return ""; } if(opacity<0.00001){opacity=0; }return "zoom:1;filter:alpha(opacity="+(opacity*100)+");"; },"gecko":function(opacity){if(opacity==1){opacity=0.999999; } if(qx.bom.client.Engine.VERSION<1.7){return "-moz-opacity:"+opacity+";"; }else{return "opacity:"+opacity+";"; }},"default":function(opacity){if(opacity==1){return ""; }return "opacity:"+opacity+";"; }}),set:qx.core.Variant.select("qx.client",{"mshtml":function(element,opacity){var filter=qx.bom.element.Style.get(element,"filter",qx.bom.element.Style.COMPUTED_MODE,false); if(opacity>=1){element.style.filter=filter.replace(/alpha\([^\)]*\)/gi,""); return; } if(opacity<0.00001){opacity=0; }if(!element.currentStyle||!element.currentStyle.hasLayout){element.style.zoom=1; }element.style.filter=filter.replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+opacity*100+")"; },"gecko":function(element,opacity){if(opacity==1){opacity=0.999999; } if(qx.bom.client.Engine.VERSION<1.7){element.style.MozOpacity=opacity; }else{element.style.opacity=opacity; }},"default":function(element,opacity){if(opacity==1){opacity=""; }element.style.opacity=opacity; }}),reset:qx.core.Variant.select("qx.client",{"mshtml":function(element){var filter=qx.bom.element.Style.get(element,"filter",qx.bom.element.Style.COMPUTED_MODE,false); element.style.filter=filter.replace(/alpha\([^\)]*\)/gi,""); },"gecko":function(element){if(qx.bom.client.Engine.VERSION<1.7){element.style.MozOpacity=""; }else{element.style.opacity=""; }},"default":function(element){element.style.opacity=""; }}),get:qx.core.Variant.select("qx.client",{"mshtml":function(element,mode){var filter=qx.bom.element.Style.get(element,"filter",mode,false); if(filter){var opacity=filter.match(/alpha\(opacity=(.*)\)/); if(opacity&&opacity[1]){return parseFloat(opacity[1])/100; }}return 1.0; },"gecko":function(element,mode){var opacity=qx.bom.element.Style.get(element,qx.bom.client.Engine.VERSION<1.7?"MozOpacity":"opacity",mode,false); if(opacity==0.999999){opacity=1.0; } if(opacity!=null){return parseFloat(opacity); }return 1.0; },"default":function(element,mode){var opacity=qx.bom.element.Style.get(element,"opacity",mode,false); if(opacity!=null){return parseFloat(opacity); }return 1.0; }})}}); qx.Class.define("qx.bom.element.Style",{statics:{__hints:{styleNames:{"float":qx.core.Variant.select("qx.client",{"mshtml":"styleFloat","default":"cssFloat"}),"appearance":qx.core.Variant.select("qx.client",{"gecko":"MozAppearance","webkit":"WebkitAppearance","default":"appearance"}),"userSelect":qx.core.Variant.select("qx.client",{"gecko":"MozUserSelect","webkit":"WebkitUserSelect","default":"userSelect"}),"userModify":qx.core.Variant.select("qx.client",{"gecko":"MozUserModify","webkit":"WebkitUserModify","default":"userSelect"})},cssNames:{"appearance":qx.core.Variant.select("qx.client",{"gecko":"-moz-appearance","webkit":"-webkit-appearance","default":"appearance"}),"userSelect":qx.core.Variant.select("qx.client",{"gecko":"-moz-user-select","webkit":"-webkit-user-select","default":"user-select"}),"userModify":qx.core.Variant.select("qx.client",{"gecko":"-moz-user-modify","webkit":"-webkit-user-modify","default":"user-select"}),"textOverflow":qx.core.Variant.select("qx.client",{"opera":"-o-text-overflow","default":"text-overflow"})},mshtmlPixel:{width:"pixelWidth",height:"pixelHeight",left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:"pixelBottom"},special:{clip:qx.bom.element.Clip,cursor:qx.bom.element.Cursor,opacity:qx.bom.element.Opacity,boxSizing:qx.bom.element.BoxSizing,overflowX:{set:qx.lang.Function.bind(qx.bom.element.Overflow.setX,qx.bom.element.Overflow),get:qx.lang.Function.bind(qx.bom.element.Overflow.getX,qx.bom.element.Overflow),reset:qx.lang.Function.bind(qx.bom.element.Overflow.resetX,qx.bom.element.Overflow),compile:qx.lang.Function.bind(qx.bom.element.Overflow.compileX,qx.bom.element.Overflow)},overflowY:{set:qx.lang.Function.bind(qx.bom.element.Overflow.setY,qx.bom.element.Overflow),get:qx.lang.Function.bind(qx.bom.element.Overflow.getY,qx.bom.element.Overflow),reset:qx.lang.Function.bind(qx.bom.element.Overflow.resetY,qx.bom.element.Overflow),compile:qx.lang.Function.bind(qx.bom.element.Overflow.compileY,qx.bom.element.Overflow)}}},__hyphens:{},compile:function(map){var html=[]; var hints=this.__hints; var special=hints.special; var names=hints.cssNames; var hyphens=this.__hyphens; var str=qx.lang.String; var name,prop,value; for(name in map){value=map[name]; if(value==null){continue; }name=names[name]||name; if(special[name]){html.push(special[name].compile(value)); }else{prop=hyphens[name]; if(!prop){prop=hyphens[name]=str.hyphenate(name); }html.push(prop,":",value,";"); }}return html.join(""); },setCss:qx.core.Variant.select("qx.client",{"mshtml":function(element,value){element.style.cssText=value; },"default":function(element,value){element.setAttribute("style",value); }}),getCss:qx.core.Variant.select("qx.client",{"mshtml":function(element){return element.style.cssText.toLowerCase(); },"default":function(element){return element.getAttribute("style"); }}),COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,set:function(element,name,value,smart){{}; var hints=this.__hints; name=hints.styleNames[name]||name; if(smart!==false&&hints.special[name]){return hints.special[name].set(element,value); }else{element.style[name]=value!==null?value:""; }},setStyles:function(element,styles,smart){{}; var hints=this.__hints; var styleNames=hints.styleNames; var special=hints.special; var style=element.style; for(var key in styles){var value=styles[key]; var name=styleNames[key]||key; if(value===undefined){if(smart!==false&&special[name]){special[name].reset(element); }else{style[name]=""; }}else{if(smart!==false&&special[name]){special[name].set(element,value); }else{style[name]=value!==null?value:""; }}}},reset:function(element,name,smart){var hints=this.__hints; name=hints.styleNames[name]||name; if(smart!==false&&hints.special[name]){return hints.special[name].reset(element); }else{element.style[name]=""; }},get:qx.core.Variant.select("qx.client",{"mshtml":function(element,name,mode,smart){var hints=this.__hints; name=hints.styleNames[name]||name; if(smart!==false&&hints.special[name]){return hints.special[name].get(element,mode); }if(!element.currentStyle){return element.style[name]||""; }switch(mode){case this.LOCAL_MODE:return element.style[name]||""; case this.CASCADED_MODE:return element.currentStyle[name]||""; default:var currentStyle=element.currentStyle[name]||""; if(/^-?[\.\d]+(px)?$/i.test(currentStyle)){return currentStyle; }var pixel=hints.mshtmlPixel[name]; if(pixel){var localStyle=element.style[name]; element.style[name]=currentStyle||0; var value=element.style[pixel]+"px"; element.style[name]=localStyle; return value; }if(/^-?[\.\d]+(em|pt|%)?$/i.test(currentStyle)){throw new Error("Untranslated computed property value: "+name+". Only pixel values work well across different clients."); }return currentStyle; }},"default":function(element,name,mode,smart){var hints=this.__hints; name=hints.styleNames[name]||name; if(smart!==false&&hints.special[name]){return hints.special[name].get(element,mode); }switch(mode){case this.LOCAL_MODE:return element.style[name]||""; case this.CASCADED_MODE:if(element.currentStyle){return element.currentStyle[name]||""; }throw new Error("Cascaded styles are not supported in this browser!"); default:var doc=qx.dom.Node.getDocument(element); var computed=doc.defaultView.getComputedStyle(element,null); return computed?computed[name]:""; }}})}}); qx.Class.define("qx.event.dispatch.MouseCapture",{extend:qx.event.dispatch.AbstractBubbling,construct:function(manager,registration){this.base(arguments,manager); this.__window=manager.getWindow(); this.__registration=registration; manager.addListener(this.__window,"blur",this.releaseCapture,this); manager.addListener(this.__window,"focus",this.releaseCapture,this); manager.addListener(this.__window,"scroll",this.releaseCapture,this); },statics:{PRIORITY:qx.event.Registration.PRIORITY_FIRST},members:{__registration:null,__captureElement:null,__containerCapture:true,__window:null,_getParent:function(target){return target.parentNode; },canDispatchEvent:function(target,event,type){return (this.__captureElement&&this.__captureEvents[type]); },dispatchEvent:function(target,event,type){if(type=="click"){event.stopPropagation(); this.releaseCapture(); return; } if(this.__containerCapture||!qx.dom.Hierarchy.contains(this.__captureElement,target)){target=this.__captureElement; }this.base(arguments,target,event,type); },__captureEvents:{"mouseup":1,"mousedown":1,"click":1,"dblclick":1,"mousemove":1,"mouseout":1,"mouseover":1},activateCapture:function(element,containerCapture){var containerCapture=containerCapture!==false; if(this.__captureElement===element&&this.__containerCapture==containerCapture){return; } if(this.__captureElement){this.releaseCapture(); }this.nativeSetCapture(element,containerCapture); if(this.hasNativeCapture){var self=this; qx.bom.Event.addNativeListener(element,"losecapture",function(){qx.bom.Event.removeNativeListener(element,"losecapture",arguments.callee); self.releaseCapture(); }); }this.__containerCapture=containerCapture; this.__captureElement=element; this.__registration.fireEvent(element,"capture",qx.event.type.Event,[true,false]); },getCaptureElement:function(){return this.__captureElement; },releaseCapture:function(){var element=this.__captureElement; if(!element){return; }this.__captureElement=null; this.__registration.fireEvent(element,"losecapture",qx.event.type.Event,[true,false]); this.nativeReleaseCapture(element); },hasNativeCapture:qx.bom.client.Engine.MSHTML,nativeSetCapture:qx.core.Variant.select("qx.client",{"mshtml":function(element,containerCapture){element.setCapture(containerCapture!==false); },"default":qx.lang.Function.empty}),nativeReleaseCapture:qx.core.Variant.select("qx.client",{"mshtml":function(element){element.releaseCapture(); },"default":qx.lang.Function.empty})},destruct:function(){this.__captureElement=this.__window=this.__registration=null; },defer:function(statics){qx.event.Registration.addDispatcher(statics); }}); qx.Class.define("qx.dom.Element",{statics:{hasChild:function(parent,child){return child.parentNode===parent; },hasChildren:function(element){return !!element.firstChild; },hasChildElements:function(element){element=element.firstChild; while(element){if(element.nodeType===1){return true; }element=element.nextSibling; }return false; },getParentElement:function(element){return element.parentNode; },isInDom:function(element,win){if(!win){win=window; }var domElements=win.document.getElementsByTagName(element.nodeName); for(var i=0,l=domElements.length;i=0;i--){entry=data[i]; if(entry){entry.dispose(); }}}catch(ex){throw new Error("The array field: "+field+" of object: "+obj+" has non disposable entries: "+ex); }data.length=0; obj[field]=null; },disposeMap:function(obj,field){var data=obj[field]; if(!data){return; }if(qx.core.ObjectRegistry.inShutDown){obj[field]=null; return; }try{for(var key in data){if(data.hasOwnProperty(key)){data[key].dispose(); }}}catch(ex){throw new Error("The map field: "+field+" of object: "+obj+" has non disposable entries: "+ex); }obj[field]=null; },disposeTriggeredBy:function(disposeMe,trigger){var triggerDispose=trigger.dispose; trigger.dispose=function(){triggerDispose.call(trigger); disposeMe.dispose(); }; }}}); qx.Class.define("qx.log.appender.Util",{statics:{toHtml:function(entry){var output=[]; var item,msg,sub,list; output.push("",this.formatOffset(entry.offset,6)," "); if(entry.object){var obj=entry.win.qx.core.ObjectRegistry.fromHashCode(entry.object); if(obj){output.push("",obj.classname,"[",obj.$$hash,"]: "); }}else if(entry.clazz){output.push(""+entry.clazz.classname,": "); }var items=entry.items; for(var i=0,il=items.length;i"+this.escapeHTML(sub)+""); }else if(sub.key){list.push(""+sub.key+":"+this.escapeHTML(sub.text)+""); }else{list.push(""+this.escapeHTML(sub.text)+""); }}output.push(""); if(item.type==="map"){output.push("{",list.join(", "),"}"); }else{output.push("[",list.join(", "),"]"); }output.push(""); }else{output.push(""+this.escapeHTML(msg)+" "); }}var wrapper=document.createElement("DIV"); wrapper.innerHTML=output.join(""); wrapper.className="level-"+entry.level; return wrapper; },formatOffset:function(offset,length){var str=offset.toString(); var diff=(length||6)-str.length; var pad=""; for(var i=0;i&"']/g,this.__escapeHTMLReplace); },__escapeHTMLReplace:function(ch){var map={"<":"<",">":">","&":"&","'":"'",'"':"""}; return map[ch]||"?"; },toText:function(entry){return this.toTextArray(entry).join(" "); },toTextArray:function(entry){var output=[]; output.push(this.formatOffset(entry.offset,6)); if(entry.object){var obj=entry.win.qx.core.ObjectRegistry.fromHashCode(entry.object); if(obj){output.push(obj.classname+"["+obj.$$hash+"]:"); }}else if(entry.clazz){output.push(entry.clazz.classname+":"); }var items=entry.items; var item,msg; for(var i=0,il=items.length;i=element.scrollWidth){return Math.max(element.clientWidth,element.scrollWidth)-paddingLeft-paddingRight; }else{var width=element.scrollWidth-paddingLeft; var Engine=qx.bom.client.Engine; if(Engine.NAME==="mshtml"&&Engine.VERSION==6){width-=paddingRight; }return width; }}},getContentHeight:function(element){var Style=qx.bom.element.Style; var overflowY=qx.bom.element.Overflow.getY(element); var paddingTop=parseInt(Style.get(element,"paddingTop"),10); var paddingBottom=parseInt(Style.get(element,"paddingBottom"),10); if(this.__hiddenScrollbars[overflowY]){return element.clientHeight-paddingTop-paddingBottom; }else{if(element.clientHeight>=element.scrollHeight){return Math.max(element.clientHeight,element.scrollHeight)-paddingTop-paddingBottom; }else{var height=element.scrollHeight-paddingTop; var Engine=qx.bom.client.Engine; if(Engine.NAME==="mshtml"&&Engine.VERSION==6){height-=paddingBottom; }return height; }}},getContentSize:function(element){return {width:this.getContentWidth(element),height:this.getContentHeight(element)}; }}}); //### zip:/home/stage74/pfix/pfixorder/projects/servletconf/tomcat/shared/lib/de.schlund.pfixschlund.order-modules+frontend-elements+0.4.23.jar!/script/backbutton.js UNOUNO.util.BackButtonHandler = function() { this.init(); }; UNOUNO.util.BackButtonHandler.prototype = { getCookieValue: function(name) { var value = null; var begin = document.cookie.indexOf(name + '='); if (begin != -1) { begin += name.length + 1; value = document.cookie.substring(begin, document.cookie.indexOf(";", begin)); } return value; }, handleWindowLoad: function(ev) { var lastpage = this.getCookieValue('lastpage'); if (UNOUNO.params.lastpage !== '' && lastpage === UNOUNO.params.lastpage && UNOUNO.params.page !== UNOUNO.params.lastpage) { document.cookie = 'backpage=' + lastpage; document.cookie = 'ucuo=' + UNOUNO.params.ucuoId; } var backpage = this.getCookieValue('backpage'); var ucuo = this.getCookieValue('ucuo'); if (UNOUNO.params.ucuoId == ucuo && UNOUNO.params.lastpage != '' && UNOUNO.params.page == backpage) { this.showBanner(); } if (document.getElementById('close_banner') !== null) { qx.bom.Element.addListener(document.getElementById('close_banner'), 'click', this.hideBanner); } }, hideBanner: function() { if (document.getElementById('support_banner') !== null) { qx.bom.element.Style.set(document.getElementById('support_banner'), 'display', 'none'); window.scrollTo(0, 0); } }, showBanner: function() { if (document.getElementById('support_banner') !== null) { qx.bom.element.Style.set(document.getElementById('support_banner'), 'display', 'block'); window.scrollTo(0, 0); } }, handleWindowUnload: function(ev) { document.cookie = 'lastpage=' + UNOUNO.params.page; }, init: function() { this.handleWindowLoad(); //qx.event.Registration.addListener(window, 'ready', this.handleWindowLoad, this); qx.event.Registration.addListener(window, 'beforeunload', this.handleWindowUnload, this); } }; //### zip:/home/stage74/pfix/pfixorder/projects/servletconf/tomcat/shared/lib/de.schlund.pfixschlund.order-modules+frontend-qooxdoo+0.2.11.jar!/script/qx-collection.js qx.Class.define("qx.io2.ScriptLoader",{extend:qx.core.Object,construct:function(){this.base(arguments); this.__oneventWrapped=qx.lang.Function.bind(this.__onevent,this); this.__elem=document.createElement("script"); },members:{__running:null,__callback:null,__context:null,__oneventWrapped:null,__elem:null,load:function(url,callback,context){if(this.__running){throw new Error("Another request is still running!"); }this.__running=true; var head=document.getElementsByTagName("head")[0]; var script=this.__elem; this.__callback=callback||null; this.__context=context||window; script.type="text/javascript"; script.onerror=script.onload=script.onreadystatechange=this.__oneventWrapped; script.src=url; head.appendChild(script); },abort:function(){if(this.__running){this.__cleanup("abort"); }},__cleanup:function(status){var script=this.__elem; script.onerror=script.onload=script.onreadystatechange=null; document.getElementsByTagName("head")[0].removeChild(script); delete this.__running; if(this.__callback){this.__callback.call(this.__context,status); }},__onevent:qx.event.GlobalError.observeMethod(qx.core.Variant.select("qx.client",{"mshtml":function(e){var state=this.__elem.readyState; if(state=="loaded"){this.__cleanup("success"); }else if(state=="complete"){this.__cleanup("success"); }else{return; }},"default":function(e){if(qx.lang.Type.isString(e)||e.type==="error"){this.__cleanup("fail"); }else if(e.type==="load"){this.__cleanup("success"); }else if(e.type==="readystatechange"&&(e.target.readyState==="complete"||e.target.readyState==="loaded")){this.__cleanup("success"); }else{return; }}}))},destruct:function(){this.__elem=this.__oneventWrapped=this.__callback=this.__context=null; }}); qx.Class.define("qx.type.BaseArray",{extend:Array,construct:function(length){},members:{toArray:null,valueOf:null,pop:null,push:null,reverse:null,shift:null,sort:null,splice:null,unshift:null,concat:null,join:null,slice:null,toString:null,indexOf:null,lastIndexOf:null,forEach:null,filter:null,map:null,some:null,every:null}}); (function(){function createStackConstructor(stack){if(qx.core.Variant.isSet("qx.client","mshtml")){Stack.prototype={length:0,$$isArray:true}; var args="pop.push.reverse.shift.sort.splice.unshift.join.slice".split("."); for(var length=args.length;length;){Stack.prototype[args[--length]]=Array.prototype[args[length]]; }}var slice=Array.prototype.slice; Stack.prototype.concat=function(){var constructor=this.slice(0); for(var i=0,length=arguments.length;i>.5?length:this.push(length); }else if(arguments.length){this.push.apply(this,arguments); }}function PseudoArray(){}PseudoArray.prototype=[]; Stack.prototype=new PseudoArray; Stack.prototype.length=0; qx.type.BaseArray=createStackConstructor(Stack); })(); qx.Bootstrap.define("qx.bom.Selector",{statics:{query:null,matches:null}}); (function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString,hasDuplicate=false; var Sizzle=function(selector,context,results,seed){results=results||[]; var origContext=context=context||document; if(context.nodeType!==1&&context.nodeType!==9){return []; } if(!selector||typeof selector!=="string"){return results; }var parts=[],m,set,checkSet,check,mode,extra,prune=true,contextXML=isXML(context); chunker.lastIndex=0; while((m=chunker.exec(selector))!==null){parts.push(m[1]); if(m[2]){extra=RegExp.rightContext; break; }} if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context); }else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context); while(parts.length){selector=parts.shift(); if(Expr.relative[selector])selector+=parts.shift(); set=posProcess(selector,set); }}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML); context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]; } if(context){var ret=seed? {expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML); set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set; if(parts.length>0){checkSet=makeArray(set); }else{prune=false; } while(parts.length){var cur=parts.pop(),pop=cur; if(!Expr.relative[cur]){cur=""; }else{pop=parts.pop(); } if(pop==null){pop=context; }Expr.relative[cur](checkSet,pop,contextXML); }}else{checkSet=parts=[]; }} if(!checkSet){checkSet=set; } if(!checkSet){throw "Syntax error, unrecognized expression: "+(cur||selector); } if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet); }else if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]); }}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]); }}}}else{makeArray(checkSet,results); } if(extra){Sizzle(extra,origContext,results,seed); Sizzle.uniqueSort(results); }return results; }; Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=false; results.sort(sortOrder); if(hasDuplicate){for(var i=1;i":function(checkSet,part,isXML){var isPartStr=typeof part==="string"; if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase(); for(var i=0,l=checkSet.length;i=0)){if(!inplace)result.push(elem); }else if(inplace){curLoop[i]=false; }}}return false; },ID:function(match){return match[1].replace(/\\/g,""); },TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase(); },CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]); match[2]=(test[1]+(test[2]||1))-0; match[3]=test[3]-0; }match[0]=done++; return match; },ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,""); if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]; } if(match[2]==="~="){match[4]=" "+match[4]+" "; }return match; },PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(chunker.exec(match[3]).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop); }else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not); if(!inplace){result.push.apply(result,ret); }return false; }}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true; }return match; },POS:function(match){match.unshift(true); return match; }},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"; },disabled:function(elem){return elem.disabled===true; },checked:function(elem){return elem.checked===true; },selected:function(elem){elem.parentNode.selectedIndex; return elem.selected===true; },parent:function(elem){return !!elem.firstChild; },empty:function(elem){return !elem.firstChild; },has:function(elem,i,match){return !!Sizzle(match[3],elem).length; },header:function(elem){return /h\d/i.test(elem.nodeName); },text:function(elem){return "text"===elem.type; },radio:function(elem){return "radio"===elem.type; },checkbox:function(elem){return "checkbox"===elem.type; },file:function(elem){return "file"===elem.type; },password:function(elem){return "password"===elem.type; },submit:function(elem){return "submit"===elem.type; },image:function(elem){return "image"===elem.type; },reset:function(elem){return "reset"===elem.type; },button:function(elem){return "button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON"; },input:function(elem){return /input|select|textarea|button/i.test(elem.nodeName); }},setFilters:{first:function(elem,i){return i===0; },last:function(elem,i,match,array){return i===array.length-1; },even:function(elem,i){return i%2===0; },odd:function(elem,i){return i%2===1; },lt:function(elem,i,match){return imatch[3]-0; },nth:function(elem,i,match){return match[3]-0==i; },eq:function(elem,i,match){return match[3]-0==i; }},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name]; if(filter){return filter(elem,i,match,array); }else if(name==="contains"){return (elem.textContent||elem.innerText||"").indexOf(match[3])>=0; }else if(name==="not"){var not=match[3]; for(var i=0,l=not.length;i=0); }}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match; },TAG:function(elem,match){return (match==="*"&&elem.nodeType===1)||elem.nodeName===match; },CLASS:function(elem,match){return (" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1; },ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4]; return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false; },POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name]; if(filter){return filter(elem,i,match,array); }}}}; var origPOS=Expr.match.POS; for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source); }var makeArray=function(array,results){array=Array.prototype.slice.call(array,0); if(results){results.push.apply(results,array); return results; }return array; }; try{Array.prototype.slice.call(document.documentElement.childNodes,0); }catch(e){makeArray=function(array,results){var ret=results||[]; if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array); }else{if(typeof array.length==="number"){for(var i=0,l=array.length;i"; var root=document.documentElement; root.insertBefore(form,root.firstChild); if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]); return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]; }}; Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id"); return elem.nodeType===1&&node&&node.nodeValue===match; }; }root.removeChild(form); root=form=null; })(); (function(){var div=document.createElement("div"); div.appendChild(document.createComment("")); if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]); if(match[1]==="*"){var tmp=[]; for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]); }}results=tmp; }return results; }; }div.innerHTML=""; if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2); }; }div=null; })(); if(document.querySelectorAll)(function(){var oldSizzle=Sizzle,div=document.createElement("div"); div.innerHTML="

"; if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return; }Sizzle=function(query,context,extra,seed){context=context||document; if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra); }catch(e){}}return oldSizzle(query,context,extra,seed); }; for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]; }div=null; })(); if(document.getElementsByClassName&&document.documentElement.getElementsByClassName)(function(){var div=document.createElement("div"); div.innerHTML="
"; if(div.getElementsByClassName("e").length===0)return; div.lastChild.className="e"; if(div.getElementsByClassName("e").length===1)return; Expr.order.splice(1,0,"CLASS"); Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]); }}; div=null; })(); function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML; for(var i=0,l=checkSet.length;i0){match=elem; break; }}elem=elem[dir]; }checkSet[i]=match; }}}var contains=document.compareDocumentPosition? function(a,b){return a.compareDocumentPosition(b)&16; }: function(a,b){return a!==b&&(a.contains?a.contains(b):true); }; var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&elem.ownerDocument.documentElement.nodeName!=="HTML"; }; var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context; while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0]; selector=selector.replace(Expr.match.PSEUDO,""); }selector=Expr.relative[selector]?selector+"*":selector; for(var i=0,l=root.length;i0){var ptn=clazz[method]; for(var i=0;i0){var ret=this[0].nodeType===1?clazz[method](this[0],arg1,arg2,arg3,arg4,arg5,arg6):null; if(ret&&ret.nodeType){return this.__pushStack([ret]); }else{return ret; }}return null; }; }; qx.Class.define("qx.bom.Collection",{extend:qx.type.BaseArray,statics:{query:function(selector,context){var arr=qx.bom.Selector.query(selector,context); return qx.lang.Array.cast(arr,qx.bom.Collection); },id:function(id){var elem=document.getElementById(id); if(elem&&elem.id!=id){return qx.bom.Collection.query("#"+id); }return new qx.bom.Collection(elem); },html:function(html,context){var arr=qx.bom.Html.clean([html],context); return qx.lang.Array.cast(arr,qx.bom.Collection); },__expr:/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,create:function(input,context){var Collection=qx.bom.Collection; if(input.nodeType){return new Collection(input); }else if(typeof input==="string"){var match=Collection.__expr.exec(input); if(match){return match[1]?Collection.html(match[1],context):Collection.id(match[3].substring(1)); }else{return Collection.query(input,context); }}else{return qx.lang.Array.cast(input,qx.bom.Collection); }}},members:{__prevObject:null,setAttribute:setter(qx.bom.element.Attribute,"set"),resetAttribute:setter(qx.bom.element.Attribute,"reset"),getAttribute:getter(qx.bom.element.Attribute,"get"),addClass:setter(qx.bom.element.Class,"add"),getClass:getter(qx.bom.element.Class,"get"),hasClass:getter(qx.bom.element.Class,"has"),removeClass:setter(qx.bom.element.Class,"remove"),replaceClass:setter(qx.bom.element.Class,"replace"),toggleClass:setter(qx.bom.element.Class,"toggle"),setValue:setter(qx.bom.Input,"setValue"),getValue:getter(qx.bom.Input,"getValue"),setStyle:setter(qx.bom.element.Style,"set"),setStyles:setter(qx.bom.element.Style,"setStyles"),resetStyle:setter(qx.bom.element.Style,"reset"),getStyle:getter(qx.bom.element.Style,"get"),setCss:setter(qx.bom.element.Style,"setCss"),getCss:setter(qx.bom.element.Style,"getCss"),getOffset:getter(qx.bom.element.Location,"get"),getPosition:getter(qx.bom.element.Location,"getPosition"),getOffsetParent:getter(qx.bom.element.Location,"getOffsetParent"),setScrollLeft:function(value){var Node=qx.dom.Node; for(var i=0,l=this.length,obj;i0; },__simple:/^.[^:#\[\.,]*$/,not:function(selector){if(this.__simple.test(selector)){var res=qx.bom.Selector.matches(":not("+selector+")",this); return this.__pushStack(res); }var res=qx.bom.Selector.matches(selector,this); return this.filter(function(value){return res.indexOf(value)===-1; }); },add:function(selector,context){var res=qx.bom.Selector.query(selector,context); var arr=qx.lang.Array.unique(this.concat(res)); return this.__pushStack(arr); },children:function(selector){var children=[]; for(var i=0,l=this.length;i0){return current; }current=current.parentNode; }}); return this.__pushStack(qx.lang.Array.unique(ret)); },contents:function(){var res=[]; var lang=qx.lang.Array; for(var i=0,l=this.length;i*",this[i]).destroy(); while(this.firstChild){this.removeChild(this.firstChild); }}return this; },clone:function(events){var Element=qx.bom.Element; return events? this.map(function(elem){return Element.clone(elem,true); }):this.map(Element.clone,Element); }},defer:function(statics,members){if(window.$==null){window.$=statics.create; }}}); })(); qx.Class.define("qx.bom.Html",{statics:{__fixNonDirectlyClosableHelper:function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+">"; },__convertMap:{opt:[1,""],leg:[1,"
","
"],table:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],def:qx.core.Variant.select("qx.client",{"mshtml":[1,"div
","
"],"default":null})},__convertHtmlString:function(html,context){var div=context.createElement("div"); html=html.replace(/(<(\w+)[^>]*?)\/>/g,this.__fixNonDirectlyClosableHelper); var tags=html.replace(/^\s+/,"").substring(0,5).toLowerCase(); var wrap,map=this.__convertMap; if(!tags.indexOf(""&&!hasBody?div.childNodes:[]; for(var j=tbody.length-1;j>=0;--j){if(tbody[j].tagName.toLowerCase()==="tbody"&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j]); }}if(/^\s/.test(html)){div.insertBefore(context.createTextNode(html.match(/^\s*/)[0]),div.firstChild); }}return qx.lang.Array.fromCollection(div.childNodes); },clean:function(objs,context,fragment){context=context||document; if(typeof context.createElement==="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document; }if(!fragment&&objs.length===1&&typeof objs[0]==="string"){var match=/^<(\w+)\s*\/?>$/.exec(objs[0]); if(match){return [context.createElement(match[1])]; }}var obj,ret=[]; for(var i=0,l=objs.length;i= 0){ var classes = elements[i].className.split(" "); for (var j = 0;j < classes.length;j++){ if (classes[j] === 'infolayer') { qx.bom.element.Style.set(elements[i], 'display', 'none'); } } } else { if (elements[i].className === 'infolayer') { qx.bom.element.Style.set(elements[i], 'display', 'none'); } } } }, toggleElem: function(id) { if (document.getElementById(id)) { if (document.getElementById(id).style.display !== 'none') { document.getElementById(id).style.display = 'none'; } else { document.getElementById(id).style.display = 'block'; } } }, toggleButtonContinue: function(elemId, buttonOn, buttonOff) { var toggle = function() { if (document.getElementById(elemId)) { if (document.getElementById(elemId).checked === true) { document.getElementById(buttonOn).style.display = 'block'; document.getElementById(buttonOff).style.display = 'none'; } else { document.getElementById(buttonOn).style.display = 'none'; document.getElementById(buttonOff).style.display = 'block'; } } }; qx.bom.Element.addListener(document.getElementById(elemId), 'click', toggle, this); toggle(); }, checkAllCheckboxes: function(elemId, checkboxClasses) { var checkboxes = qx.bom.Collection.query('.'+checkboxClasses); var checkall = function() { if (document.getElementById(elemId).checked === true ) { for (i = 0; i < checkboxes.length; i++) { checkboxes[i].checked = 'checked'; } } else { for (j = 0; j < checkboxes.length; j++) { checkboxes[j].checked = ''; } } }; qx.bom.Element.addListener(document.getElementById(elemId), 'click', checkall, this); }, setFieldFocus: function(elem) { if (typeof document.getElementById(elem) !== 'undefined' && document.getElementById(elem) !== null) { var viewport = qx.bom.Viewport.getHeight(); var elemPos = qx.bom.element.Location.get(document.getElementById(elem)).bottom; if (viewport >= elemPos) { var setfocus = function() { qx.bom.Element.focus(document.getElementById(elem)); }; /* because of IE 6 */ setTimeout(setfocus, 1000); } else { return false; } } }, uncheckTldChecks: function(checks) { if (typeof document.getElementsByName(checks) !== 'undefined' && document.getElementsByName(checks) !== null) { for (var i = 0; i < document.getElementsByName(checks).length; i++) { document.getElementsByName(checks)[i].checked = false; } } }, daysLeft: function(jahr, monat, tag) { var jetzt = new Date(); var dann = new Date(jahr, monat - 1, tag); var sdiff = Math.floor((dann-jetzt) / 1000); var ddiff = Math.ceil(sdiff / (60*60*24)); return ddiff; }, daysLeftfixDate: function() { var jetzt = new Date(); var dann = new Date(2008, 8, 15); var sdiff = Math.floor((dann-jetzt)/1000); var ddiff = Math.ceil(sdiff / (60*60*24)); if (ddiff <=-1) {ddiff = 0;} if (ddiff >=12){ddiff=12;} return ddiff; }, toggleAchelp: function(elemId, toogleElem) { var elemInfoLayer = document.getElementById(toogleElem); if (elemInfoLayer) { var achelp = function() { if (elemInfoLayer) { if (elemInfoLayer.style.display !== 'none') { elemInfoLayer.style.display = 'none'; } else { elemInfoLayer.style.display = ''; } } }; } if (document.getElementById(elemId)) { qx.bom.Element.addListener(document.getElementById(elemId), 'mouseover', achelp, this); qx.bom.Element.addListener(document.getElementById(elemId), 'mouseout', achelp, this); } }, toggleAdminRegTechC: function(select, view, data) { var owner = document.getElementById(select); var viewElem = document.getElementById(view); var dataElem = document.getElementById(data); var toggle = function() { if (owner !== null && viewElem !== null && dataElem !== null) { if (owner.options[owner.selectedIndex].value === 'false') { viewElem.style.display = 'none'; dataElem.style.display = ''; } else { viewElem.style.display = ''; dataElem.style.display = 'none'; } } }; qx.bom.Element.addListener(document.getElementById(select), 'change', toggle, this); toggle(); }, popupClose: function(hrefPopup) { if (opener) { opener.location.href = hrefPopup; window.close(); return false; } }, moreTlds: function (allDomains, domainBox, more, less, classClose, classOpen) { allDomains = document.getElementById(allDomains); domainBox = document.getElementById(domainBox); more = document.getElementById(more); less = document.getElementById(less); var moreTlds = function(e) { e.preventDefault(); qx.bom.element.Class.replace(allDomains, classClose, classOpen); domainBox.style.display = 'block'; more.style.display = 'none'; less.style.display = 'block'; }; var lessTlds = function(e) { e.preventDefault(); qx.bom.element.Class.replace(allDomains, classOpen, classClose); domainBox.style.display = 'none'; more.style.display = 'block'; less.style.display = 'none'; }; if (allDomains && domainBox && more && less) { domainBox.style.display = 'none'; less.style.display = 'none'; qx.bom.Element.addListener(more, 'click', moreTlds, this); qx.bom.Element.addListener(less, 'click', lessTlds, this); } } }; UNOUNO.global.CDSSlider = function(sliderDOMElement, knobDOMElement, bodyDOMElement, valueDOMElement, sliderValueElements, values, offset, width) { this.init(sliderDOMElement, knobDOMElement, bodyDOMElement, valueDOMElement, sliderValueElements, values, offset, width); }; UNOUNO.global.CDSSlider.prototype = { slider: null, sliderValueElement: null, update: function() { var sliderValue = this.sliderValueElement.value; if (window.console) { console.log('Update Slider with value: ' + sliderValue); } this.slider.setValue(sliderValue); }, init: function(sliderDOMElement, knobDOMElement, bodyDOMElement, valueDOMElement, sliderValueElements, values, offset, width) { this.slider = new hostingslider.Slider(sliderDOMElement, knobDOMElement, values, offset); this.sliderValueElement = valueDOMElement; this.slider.addListener('changeValue', function(bodyDOMElement, valueDOMElement, sliderValueElements, width) { return function(e) { var value = e.getData().value; var position = e.getData().position; var correctPosition = position; bodyDOMElement ? bodyDOMElement.innerHTML = value : false; valueDOMElement ? valueDOMElement.value = value : false; qx.bom.element.Style.set(bodyDOMElement, 'left', correctPosition + 'px'); sliderValueElements.updatePrice(); }; }(bodyDOMElement, valueDOMElement, sliderValueElements, width)); } }; UNOUNO.global.initSliderValueElements = function(valueElementIds) { this.init(valueElementIds); }; UNOUNO.global.initSliderValueElements.prototype = { valueElementIds: [], updatePrice: function() { if (this.valueElementIds.length == 3) { var cpuValue = document.getElementById(this.valueElementIds[0]).value; var ramValue = document.getElementById(this.valueElementIds[1]).value; var discspaceValue = document.getElementById(this.valueElementIds[2]).value; if (window.console) { console.log('Call webservice with values: CPU (' + cpuValue + '), RAM (' + ramValue + '), DISCSPACE (' + discspaceValue + ')'); } } }, init: function(valueElementIds) { this.valueElementIds = valueElementIds; } }; UNOUNO.global.initPresetList = function(presetListElementId, sliderObjects, sliderValueElements, updateElementIds) { if (document.getElementById(presetListElementId)) { qx.bom.Element.addListener(document.getElementById(presetListElementId), 'change', function(sliderObjects, sliderValueElements, updateElementIds) { return function(e) { e.preventDefault(); var value = e.getCurrentTarget().value; if (value) { var presetValues = value.split('#'); for (var i = 0; i < presetValues.length; i++) { if (updateElementIds[i] && document.getElementById(updateElementIds[i])) { document.getElementById(updateElementIds[i]).value = presetValues[i]; } } } for (var j = 0; j < sliderObjects.length; j++) { sliderObjects[j].update(); } sliderValueElements.updatePrice(); }; }(sliderObjects, sliderValueElements, updateElementIds)); } }; UNOUNO.util.featureCloudServerToogle = function(featureId, topToogleShow, topToogleHide, bottomToogleHide) { this.init(featureId, topToogleShow, topToogleHide, bottomToogleHide); }; UNOUNO.util.featureCloudServerToogle.prototype = { qxBom: qx.bom, topToogleShow: null, topToogleHide: null, bottomToogleHide: null, setToggleLinks: function(topToogleShow, topToogleHide, bottomToogleHide) { this.topToogleShow = document.getElementById(topToogleShow); this.topToogleHide = document.getElementById(topToogleHide); this.bottomToogleHide = document.getElementById(bottomToogleHide); }, initFeatures: function() { this.featureId.style.display = 'none'; this.showLink(this.topToogleShow); this.hideLink(this.topToogleHide); this.hideLink(this.bottomToogleHide); this.qxBom.Element.addListener(this.topToogleShow, 'click', this.showFeatures, this); this.qxBom.Element.addListener(this.topToogleHide, 'click', this.hideFeatures, this); this.qxBom.Element.addListener(this.bottomToogleHide, 'click', this.hideFeaturesGoTop, this); }, showFeatures: function(e) { e.preventDefault(); this.hideLink(this.topToogleShow); this.showLink(this.topToogleHide); this.showLink(this.bottomToogleHide); this.featureId.style.display = ''; }, hideLink: function(link) { if (link !== null) { link.style.display = 'none'; } }, showLink: function(link) { if (link !== null) { link.style.display = ''; } }, hideFeatures: function(e) { this.hideTheFeatures(e); }, hideFeaturesGoTop: function(e) { this.hideTheFeatures(e); window.scrollTo(0, 0); }, hideTheFeatures: function(e) { e.preventDefault(); this.showLink(this.topToogleShow); this.hideLink(this.topToogleHide); this.hideLink(this.bottomToogleHide); this.featureId.style.display = 'none'; }, init: function(featureId, topToogleShow, topToogleHide, bottomToogleHide) { this.featureId = document.getElementById(featureId); this.setToggleLinks(topToogleShow, topToogleHide, bottomToogleHide); this.initFeatures(); } }; //### file:/home/stage74/pfix/pfixorder/projects/oneandone_us/htdocs/script/local.js /* !IMPORTANT !*/ /* Place your scripts only in the UNOUNO.local Namespace! If you don't know what a Namespace is or if something doesn't work please contact Nico, Andi or Helena. Never do something like function foo() { doSomething(); } */ /*global UNOUNO, document, window, console */ UNOUNO.local = { /* Light-Boxen */ openLBMailXChangeFlashTour: function() { if (UNOUNO.util.LightBox) { if (!window.lbMailXChangeFlashTour) { window.lbMailXChangeFlashTour = new UNOUNO.util.LightBox(); var html = ''; lbMailXChangeFlashTour.createBox('lightbox1', html, 625, 518); } lbMailXChangeFlashTour.showBox(0.5, 0, 0.8); } }, closeLBMailXChangeFlashTour: function() { //document.getElementById("lbMailXChangeFlashTour").src = ""; // var flash = document.getElementById("lbMailXChangeFlashTour"); lbMailXChangeFlashTour.hideBox(0.5, 0); } }; //### zip:/home/stage74/pfix/pfixorder/projects/servletconf/tomcat/shared/lib/de.schlund.pfixschlund.order-modules+frontend-tracking+0.1.11.jar!/script/econda.js UNOUNO.util.econdaTrackingPixel = function() { this.init(); }; UNOUNO.util.econdaTrackingPixel.prototype = { init: function() { var properties = {}; if (UNOUNO.params.countryid !== undefined) { properties.countryid = UNOUNO.params.countryid; } else { 'NULL'; } if (UNOUNO.params.shopid !== undefined) { properties.siteid = UNOUNO.params.shopid; } else { 'NULL'; } if (UNOUNO.params.page !== undefined && UNOUNO.params.project !== undefined) { properties.pageid = UNOUNO.params.page+'-'+UNOUNO.params.project; } else { 'NULL'; } if (UNOUNO.params.mktchan !== undefined) { properties.mktchan = UNOUNO.params.mktchan; } else { 'NULL'; } if (UNOUNO.params.shoptype !== undefined) { properties.shoptype = UNOUNO.params.shoptype; } else { 'NULL'; } if (UNOUNO.params.tgroup !== undefined) { properties.tgroup = UNOUNO.params.tgroup; } else { 'NULL'; } if (UNOUNO.params.tariff !== undefined) { if (UNOUNO.params.tariff === '') { properties.tarif = 'NULL'; } else { properties.tarif = UNOUNO.params.tariff; } } else { 'NULL'; } if (UNOUNO.params.ptype !== undefined) { properties.ptype = UNOUNO.params.ptype; } else { 'NULL'; } if (UNOUNO.params.project !== undefined && UNOUNO.params.page !== undefined && UNOUNO.params.tariff !== undefined) { if (UNOUNO.params.tariff !== '') { properties.content = UNOUNO.params.project+'/'+UNOUNO.params.page+'/'+UNOUNO.params.tariff; } else { properties.content = UNOUNO.params.project+'/'+UNOUNO.params.page; } } else { 'NULL'; } if (UNOUNO.params.variant !== undefined) { properties.shopVar = UNOUNO.params.variant; } else { 'NULL'; } if (UNOUNO.params.ac !== undefined) { properties.actioncode = UNOUNO.params.ac; } else { 'NULL'; } if (UNOUNO.params.semtraffic !== undefined) { if (UNOUNO.params.semtraffic === 'false') { properties.semtraffic = 0; } else { properties.semtraffic = UNOUNO.params.semtraffic } } else { 0; } if (UNOUNO.params.ec_Event !== undefined) { properties.ec_Event = UNOUNO.params.ec_Event; } else { 'NULL'; } if (UNOUNO.params.billing !== undefined) { properties.billing = UNOUNO.params.billing; } else { 'NULL'; } if (UNOUNO.params.orderProcess !== undefined) { properties.orderProcess = UNOUNO.params.orderProcess; } else { 'NULL'; } window.emosPropertiesEvent(properties); if (UNOUNO.params.testTracking === 'econda' && typeof console !== 'undefined') { console.log(properties.siteid+' Econda Properties'); for (propName in properties) { console.log('properties.'+propName+' = '+properties[propName]+' | '+ typeof properties[propName]); } if (UNOUNO.params.page !== UNOUNO.params.orderConfirmPage && UNOUNO.params.page !== UNOUNO.params.orderSummaryPage) { console.log('\n'+'properties.ec_Event, properties.billing, properties.orderProcess werden nur auf den Seiten '+UNOUNO.params.orderSummaryPage+' und '+UNOUNO.params.orderConfirmPage+' uebergeben'); } } } }; /* Folgende Properties sollen ueber Econda erfasst werden: 1. Bei jedem Seitenaufruf: properties.countryid de, us, uk, fr, es ... <- DOM conf/econda.xml properties.siteid Produktbereich - DSL, Server <- DOM conf/econda.xml properties.pageId eindeutige Seiten-Id <- DOM properties.mktchan Direkt Marketing, Online-Marketing <- DOM properties.shoptype Neu, Bestand aus der <- DOM conf/econda.xml properties.tgroup Produktgruppe - Classic Hosting, Branchen Home-page <- DOM conf/econda.xml properties.tarif Tarif des Angebotes <- DOM properties.ptype 'popup, normal' <- window.opener properties.content Shop/Seitennamen/Tarif <- DOM properties.shopVar Shop-Variante <- UNOUNO.params properties.actioncode Actioncodes <- DOM properties.semtraffic ID <- DOM conf/econda.xml 2. Zusammenfassungsseite: Alle Properties aus 1. und zusaetzlich: properties.orderProcess '1_Zusammenfassung' <- static properties.ec_Event ['c_add', produkt-id, id, 1, NULL, amount, NULL, NULL, NULL] <- DOM 3. Dankeschoenseite Alle Properties aus 1. und zusaetzlich: properties.billing Cart Slot <- DOM properties.ec_Event orderId/orderId/vistiId/countryCode/citiy/zipCode <- DOM properties.orderProcess '2_Danke' <- static */ //### zip:/home/stage74/pfix/pfixorder/projects/servletconf/tomcat/shared/lib/de.schlund.pfixschlund.order-modules+frontend-tracking+0.1.11.jar!/script/emos2.js (function(){var EMOS_VERSION="cm43";var URL_TRACKING_ALLOWED=false;var SITE_ID="0";var MANDANT=false;var LOG_URL=(location.protocol=="https:")?"https://www.econda-monitor.de/els/logging":"http://www.econda-monitor.de/els/logging";var STORAGE_MAX=10;var COOKIES_MAX=10;var JUNK_SIZE=1600;var CLIENT_COOKIE_LIFETIME=0;var COOKIENAME_SESSION_ID="emos1un1d1_jcsid";var COOKIENAME_VISITOR_ID="emos1und1d1_jcvid";var COOKIENAME_CAMPAIGN="emos1und1d1_jckamp";var COOKIENAME_CROSS="emos_jccross";var COOKIENAME_POSTVIEWCAMPAIGN="emos_postview";var COOKIE_DOMAIN=location.hostname;var TRACK_FIRSTPARTY=true;var TRACK_POSTCONVERSION=true;var EVENT_MILLIS=200;var sendSecondary=false;var carriesSecondaryCookie=false;var acc=null;var CLIENT_KEY='';if (UNOUNO.params.siteModus === 'live'){CLIENT_KEY = '00000ea0-91fb6ec8-0341-4fd4-a560-d25f237235f6';}else{CLIENT_KEY = '00001206-58ca3bdd-2f2a-42e8-ab75-5249c6964d0c';}var SECOND_ACCOUNT=null;var SECOND_CLIENT_KEY=null;var FIRST_ACTIVE=true;var SECOND_ACTIVE=false;var SECOND_SUMA=false;var TRACK_THIRD_PARTY=false;var USE_SYSTEM_SID=false;var SAMPLING_RATE=10;var BEST_PRODUCTS_COOKIE=false;var PRODUCT_ID_IN_EC_EVENT=1;var COOKIENAME_BEST_PRODUCTS="emos_best_products";var BEST_PRODUCTS_COOKIE_LIFETIME=2592000;var TRACK_VERSION=2;var SAMPLING_MODE_CLICKONLY=true;var CAPTURE_CLICKS=(window.emosTrackClicks)?window.emosTrackClicks:true;var ATTRIBUTES_TRACKED=["id","name","title","alt","class"];if(URL_TRACKING_ALLOWED){ATTRIBUTES_TRACKED=ATTRIBUTES_TRACKED.concat(["href","src"])}var ELEMENTID_BY_TAGNAME_PARENTDEPTH=2;var ELEMENTID_BY_TAGNAME_USE_PARENTPOS=true;var ATTRIBUTES_MAX_LENGTH=128;var COOKIENAME_CLICKMONITOR="emos_clickmonitor";var URL_CLICKMONITOR="https://monitor.econda-monitor.de/click";var J;var ap=function(){if(window.emosPageId){J=window.emosPageId.substring(0,254);return}var aP=document.getElementsByTagName("meta");for(var aO=0;aO0){aR[aO].emcl=CLIENT_COOKIE_LIFETIME;aR[aO].emcc=aP}if(MANDANT){aR[aO].emcm=SITE_ID}}aR[aO].emnc=aQ;aR[aO].emtn=aO+1;aR[aO].emhost=location.hostname;if(FIRST_ACTIVE){if(CLIENT_KEY){aR[aO].ckey=CLIENT_KEY}else{aR[aO].emkd=acc}if(SECOND_ACTIVE&&sendSecondary){if(SECOND_CLIENT_KEY){aR[aO].skey=SECOND_CLIENT_KEY}else{aR[aO].emsc=SECOND_ACCOUNT}}}else{if(SECOND_ACTIVE&&sendSecondary){if(CLIENT_KEY){aR[aO].ckey=SECOND_CLIENT_KEY}else{aR[aO].emkd=SECOND_ACCOUNT}}}if(TRACK_THIRD_PARTY){aR[aO].tpct=1}aR[aO].d=e.substr(aO*JUNK_SIZE,JUNK_SIZE)}return aR};var F=function(){var e={};l(e);W(e,0)};var l=function(e){n(e);if(window.emosBillingPageArray){v(window.emosBillingPageArray,e)}if(window.emosECPageArray){S(window.emosECPageArray,e)}U(e);if(window.emosBasketPageArray){Z(window.emosBasketPageArray,e)}D(e)};var d=function(aS){if(!BEST_PRODUCTS_COOKIE){return}if(!aS.ec_Event){return}if(aS.ec_Event.length==0){return}var e=[];for(var aR=0;aRPRODUCT_ID_IN_EC_EVENT){e[e.length]=aS.ec_Event[aR][PRODUCT_ID_IN_EC_EVENT]}}if(e.length==0){return}var aO=af();var aP=[];for(var aR=0;aR0){var aQ=aP.split(":");for(var aO=0;aO=0){var aP=aR.split("/");if(aP.length=aS[0]&&aO>=aS[1]&&e<=aS[0]+aP.clientWidth&&aO<=aS[1]+aP.clientHeight){return aP}}}}return document.body.parentNode};var t=function(aP){if(aP.nodeName.toLowerCase()!="a"){return aP}var aQ=aP.childNodes;var e=null;for(var aO=0;aO0){return aP}}}if(e==null){return aP}if(aH(e)){return e}else{return aP}};var W=function(aS,aP){if(aS.pageId){J=aS.pageId}else{if(J){aS.pageId=J}}try{if(J&&top.ClickwatcherAccess){top.ClickwatcherAccess.setPageId(J);K=false;Q=false;return}}catch(aV){}var aR=location.search.indexOf("clickmonitor=econda")>=0;if(aR){if(B){B.setItem(COOKIENAME_CLICKMONITOR,"true")}else{aE(COOKIENAME_CLICKMONITOR,"true")}}if(aR||(B&&B[COOKIENAME_CLICKMONITOR]=="true")||(!B&&ad(COOKIENAME_CLICKMONITOR)=="true")){var aO=document.getElementsByTagName("head")[0];if(!aO){var aU=document.documentElement;aO=document.createElement("head");aU.insertBefore(aO,aU.firstChild)}window.emosClickmonitor={pageId:J,cookieName:COOKIENAME_CLICKMONITOR,urlClickmonitor:URL_CLICKMONITOR};var aQ=document.createElement("script");aQ.setAttribute("type","text/javascript");aQ.setAttribute("src",URL_CLICKMONITOR+"/scripts/click.js");aO.appendChild(aQ);K=false;Q=false;return}r=new Date().getTime();A=j();G=r;az=0;aC(aS);if(!K){return}d(aS);if(SECOND_ACTIVE){var aT=aN(aS);if(sendSecondary||aT){sendSecondary=true}}s(k(aS),A,aP)};var s=function(aQ,aR,e){if(FIRST_ACTIVE||(SECOND_ACTIVE&&sendSecondary)){var aP=an(aQ,aR);for(var aO=0;aO attribute not found in ATTRIBUTES_TRACKED"};var w=function(e,aO){if(aO=="href"){return e.getAttribute("href",2)}else{if(aO=="src"){return e.getAttribute("src",2)}else{if(aO=="class"){return e.className}}}return e.getAttribute(aO)};var ah=function(aU){var e=[];H(aU,ELEMENTID_BY_TAGNAME_PARENTDEPTH,e);var aQ=[];for(var aT=0;aTATTRIBUTES_MAX_LENGTH){break}e[0].attributes[aQ[aT]]=""+aS}var aR=document.getElementsByTagName(e[0].nodeName);var aO=0;for(var aT=0;aT=0;aT--){var aU=aO[aT];aR+="<"+aU.nodeName;if(aT==aO.length-1){aR+=' idx="'+aS+'"'}if(typeof aU.parentPos=="number"){aR+=' p="'+aU.parentPos+'"'}var aQ=[];for(var e in aU.attributes){aQ[aQ.length]=e}aQ.sort(x);for(var aP=0;aP"}else{aR+=">"}}for(var aT=1;aT"}return aR};var X=function(e){e=e.replace(/&/g,"&");e=e.replace(/"/g,""");e=e.replace(//g,">")};var T=function(aP,aO){var aS=aP[0];var aR=document.getElementsByTagName(aS.nodeName);var e=0;for(var aQ=0;aQ0){H(aP,aT-1,aS)}return};var z=function(){var aS="emosTransmit".length;if(B){for(var aQ=0;aQ0&&aW.billing[0].length>3){var aU=Number(aW.billing[0][3]);if(!isNaN(aU)){a2=Math.round(aU*100)}}var aZ=true;var a0=ad(COOKIENAME_SESSION_ID);if(a0&&a0.length>0){var aX=a0.split(":");if(aX.length==4){at=aX[0];au=parseInt(aX[1])+1;if(!isNaN(au)){aZ=false;aE(COOKIENAME_SESSION_ID,at+":"+au+":"+A+":"+r)}}}if(aZ){var aP=null;if(USE_SYSTEM_SID){var a3=document.getElementsByName("emos_sid");for(var aT=0;aT0){aP=a1;break}a1=a3[aT].getAttribute("title",2);if(a1&&a1.length>0){aP=a1;break}}if(aP==null&&typeof(window.emos_sid)=="string"&&window.emos_sid.length>0){aP=window.emos_sid}}if(aP==null){aP=j()}var aO=aP+":1:"+A+":"+r;aE(COOKIENAME_SESSION_ID,aO);var aR=ad(COOKIENAME_SESSION_ID);if(aO==aR){at=aP;au=1;aZ=true}else{at="NULL";au=-1;aZ=false}}var a0=ad(COOKIENAME_VISITOR_ID);if(a0&&a0.length>0){var aX=a0.split(":");if(aX.length==5||aX.length==7){E=aX[0];g=parseInt(aX[1])+((aZ)?1:0);var e=aX[2];var aS=parseInt(aX[3]);if(aZ){L=e;h=r-aS;aS=r}else{L=null;h=null}ak=a2;var aV=parseInt(aX[4]);if(aX.length==7){Q=("true"==aX[5]);var aQ=parseInt(aX[6]);if(aQ!=SAMPLING_RATE){Q=Math.random()*SAMPLING_RATE<=1}}else{Q=Math.random()*SAMPLING_RATE<=1}if(!SAMPLING_MODE_CLICKONLY){K=Q}if(!isNaN(aV)){ak+=aV}if(!isNaN(g)){aE(COOKIENAME_VISITOR_ID,E+":"+g+":"+at+":"+aS+":"+ak+":"+Q+":"+SAMPLING_RATE,805306367);return}}}var aY=at;ak=a2;Q=Math.random()*SAMPLING_RATE<=1;if(!SAMPLING_MODE_CLICKONLY){K=Q}var aO=aY+":1:"+at+":"+r+":"+ak+":"+Q+":"+SAMPLING_RATE;aE(COOKIENAME_VISITOR_ID,aO,805306367);var aR=ad(COOKIENAME_VISITOR_ID);if(aO==aR){E=aY;g=1}else{E="NULL";g=-1}};var ad=function(aR){var e=document.cookie.split(";");for(var aP=0;aP>>24;e[e.length]=aR>>>16&255;e[e.length]=aR>>>8&255;e[e.length]=aR&255;e[e.length]=aS>>>24;e[e.length]=aS>>>16&255;e[e.length]=aS>>>8&255;e[e.length]=aS&255;for(var aO=0;aO<4;aO++){var aP=(4294967296*Math.random())&4294967295;e[e.length]=aP>>>24;e[e.length]=aP>>>16&255;e[e.length]=aP>>>8&255;e[e.length]=aP&255}return ae(e)};var C=function(aO){var aP=[];var e=String.fromCharCode(237);if(e.charCodeAt(0)<0){for(var aR=0;aR0){if(aQ>=32){aP[aP.length]=aQ}}else{aP[aP.length]=(((256+aQ)>>6)|192);aP[aP.length]=(((256+aQ)&63)|128)}}}else{for(var aR=0;aR=32){aP[aP.length]=aQ}}else{if((aQ>127)&&(aQ<2048)){aP[aP.length]=((aQ>>6)|192);aP[aP.length]=((aQ&63)|128)}else{aP[aP.length]=((aQ>>12)|224);aP[aP.length]=(((aQ>>6)&63)|128);aP[aP.length]=((aQ&63)|128)}}}}return aP};var q=function(){var aP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*_";var aO=[];for(var e=0;e>2];aR[aR.length]=aQ[((aS[aP]&3)<<4)|(aS[aP+1]>>4)];aR[aR.length]=aQ[((aS[aP+1]&15)<<2)|(aS[aP+2]>>6)];aR[aR.length]=aQ[aS[aP+2]&63];aP+=3}if((e%3)==1){aR[aR.length-1]=aR[aR.length-2]=""}if((e%3)==2){aR[aR.length-1]=""}var aO=aR.join("");return aO};var aD=function(aU){var aT;var aQ;var aW="";var a1=0;var aO=0;var a3=false;var aV=0;var aS=0;var aX=0;var aP=0;var a0=(typeof(window.emos_campaignName)!="undefined")?window.emos_campaignName:"na";var aZ=(typeof(window.emos_sourceId)!="undefined")?window.emos_sourceId:"na";aA={};try{aT=f(top.location.search)}catch(a5){aT=f(location.search)}try{aQ=top.document.referrer}catch(a5){aQ=document.referrer}var aY=ag(aQ);var a4=c(aQ,3);if(aY!="NULL"){aO=1}if(aQ==null||aQ.length<1){a3=true;aW="direct"}else{if(ar(aQ,aU)==true){a1=1;aW="suma"}else{aW="ref"}}if(ay(a4)){aW="intern"}if(aT.refID){a0=aT.refID;if(aT.emsrc){aZ=aT.emsrc}}if(a0!="na"){if(aZ!="na"){aW=aZ;if(aW=="kw"){aT.adword=a0}if(aW=="nl"){aT.newsletter=a0}if(aW=="cp"){aT.campaign=a0}if((aW!="kw")&&(aW!="cp")&&(aW!="nl")){aT.campaign=a0;aP=1}}else{aW="cp";aT.campaign=a0}}if(aT.adword||aT.amktid){aS=1;aW="kw";if(aT.adword){aU.adwordClick=av(aT.adword)}if(aT.amktid){aU.amktidClick=av(aT.amktid)}if(aT.adword){aA.adword=av(aT.adword)}if(aT.amktid){aA.amktid=av(aT.amktid)}aA.ref=a4;if(aO){aA.refUrl=aY}}if(aT.campaign){aX=1;if(!aP){aW="cp"}aU.campClick=av(aT.campaign);aA.campaign=av(aT.campaign);if(aT.efp){aA.efp=av(aT.efp)}if(aT.efc){aA.efc=av(aT.efc)}if(aT.efpn){aA.efpn=av(aT.efpn)}if(aT.mktsp){aA.mktsp=av(aT.mktsp)}aA.ref=a4;if(aO){aA.refUrl=aY}}if(aT.newsletter){aU.newsClick=av(aT.newsletter);aV=1;aW="nl";aA.news=av(aT.newsletter)}if(aT.incpc){aU.incpc=av(aT.incpc)}if(aT.secondary&&SECOND_ACTIVE){sendSecondary=true;aU.secLabel="landingPage";aA.scnd="1"}if(SECOND_ACTIVE&&a1&&SECOND_SUMA){sendSecondary=true}aU.source=aW;if(aS||aX||aV||aP){a3=false;aA.source=aW}if((aW=="intern")||a3){var a6=ad(COOKIENAME_POSTVIEWCAMPAIGN);if(a6&&a6.length>0){aU.source="cp";aU.campaign=av(a6)}else{if(!a3){aU.ref=c(aQ,-1)}}}if(TRACK_FIRSTPARTY){var a2=N();if(a2){for(var aR in a2){aU[aR]=a2[aR]}}}};var ay=function(e){return(e.split("/")[2]==location.host)};var ac=[["q","ie","start",1],["p",null,"b",1],["su",null,"pageIndex",10],["query",null],["qry_str",null],["begriff",null],["words",null],["encquery",null],["qt",null],["terms",null]];var ar=function(aT,aP){var aS;try{aS=f(aT)}catch(aR){return false}for(var aO=0;aO0){aV.crossData=[];for(var aR=0;aR0){if(aP.length>0){if(aO.length>0){aS[e]=[[av(aP),av(aO)]]}else{aS[e]=av(aP)}}}}};var N=function(){var aP=aa(aA);if(aP!=""){aE(COOKIENAME_CAMPAIGN,aP,CLIENT_COOKIE_LIFETIME);return aA}else{var aO=ad(COOKIENAME_CAMPAIGN);if(aO&&aO.length>0){var e=ax(aO);if(e.scnd&&e.scnd=="1"){carriesSecondaryCookie=true}e.postconv="1";return e}}return null};var aj=function(){var aQ=ad(COOKIENAME_CROSS);if(R!=""){var aP=String(R);aP=aP.split(",");aP[1]="previous_visit";if(aQ&&aQ.length>0){var aO=aQ.split(":");var aR=[];if(aO.length>0){for(var e=0;e5){aR.length=5}}aP=aR.join(":");aE(COOKIENAME_CROSS,aP,CLIENT_COOKIE_LIFETIME);return aP}else{aE(COOKIENAME_CROSS,aP,CLIENT_COOKIE_LIFETIME);return aP}}else{if(aQ&&aQ.length>0){return aQ}}return null};var S=function(aR,aP){try{if(aR){if(aR.length&&aR.length>0){aP.ec_Event=[];for(var aO=0;aO=aP){COOKIE_DOMAIN="";for(var aO=e.length-aP;aO=0){aS=aS.substr(aR+1)}var aQ={};var aO=aS.split("&");for(var e=0;e Client-Key: 00001206-58ca3bdd-2f2a-42e8-ab75-5249c6964d0c Produktivsystem im live Modus (account 1und1d1)--> Client-Key: 00000ea0-91fb6ec8-0341-4fd4-a560-d25f237235f6 */