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

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

//### zip:baseLib-0.9.22.jar/PUSTEFIX-INF/script/slider-min.js
(function(){var f=window.qxWeb.$$qx;f.Bootstrap.setRoot({qx:window.qxWeb.$$qx,baselib:window.baselib,qui:window.qui});f.$$packageData["0"]={locales:{},resources:{},translations:{}};(function(){f.Bootstrap.define("baselib.Slider",{extend:f.ui.website.Widget,construct:function(a,b){f.ui.website.Widget.call(this,a,b)},events:{changeValue:"qx.event.Emitter",changePosition:"qx.event.Emitter"},statics:{_config:{steps:[0,1,2,3,4,5,6,7,8,9,10],offset:0},slider:function(a,b,c){var d=new baselib.Slider(this);
if(!qxWeb.isElement(a))throw Error("Please provide a valid knob DOM element!");if(b&&"Array"!==qxWeb.type.get(b))throw Error("Please provide the 'steps' parameter as valid array!");d.setConfig("steps",b);"undefined"!=typeof c&&(c="number"==typeof c?parseInt(c,10):0,d.setConfig("offset",parseInt(c,10)));d.setProperty("__knob",qxWeb(a));d.init();return d}},members:{init:function(){if(!f.ui.website.Widget.prototype.init.call(this))return!1;var a=this.getProperty("__knob");this.setProperty("__currentIndex",
null);this.setProperty("__documentElement",a.getAncestors().find("html"));this.setProperty("__leftOffset",parseInt(a.getStyle("left"),10)||0);this.__OD();this.__OC();this.__OM();this.setValue(this.getConfig("steps")[0]);return!0},render:function(){this.__OG();this.__OM();var a=this.getConfig("steps"),b=this.getValue();b&&-1==a.indexOf(b)?(a=this.__ON(this.getValue()),this.setValue(this.getConfig("steps")[a]),this.setProperty("__currentIndex",a)):this.setValue(b);return this},getValue:function(){return this.getProperty("__value")},
setValue:function(a){if("Number"!=qxWeb.type.get(a))throw Error("Please provide a Number value for 'value'!");-1!=this.getConfig("steps").indexOf(a)&&(this.__cc(a),this.getValue()!=a&&(this.setProperty("__value",a),this.emit("changeValue",{value:a,getData:function(){return a}})));return this},getPosition:function(){var a=this.getProperty("__knob");return this.getProperty("__OE")?(a.getStyle("transform").match(/matrix(3d)?\((.*?)\)/),a=RegExp.$2.split(","),a=a[12]||a[4],parseInt(Number(a),10)):parseInt(a.getStyle("left"),
10)},__OC:function(){this.__OG();var a={draggable:"false",ondragstart:"event.stopPropagation ? event.stopPropagation() : event.cancelBubble = true;event.preventDefault ? event.preventDefault() : event.returnValue = false;",unselectable:"true"};this.getProperty("__knob").setAttributes(a);this.setAttributes(a);this.__OO()},__OD:function(){var a=qxWeb.env.get("css.transform"),b=null!==a&&"object"===typeof a;this.setProperties({__cb:null,__OE:b,__OF:b?a["3d"]:!1})},__OG:function(){var a=this.getProperty("__knob").getWidth(),
b=this.getOffset().left,c=this.getWidth();this.setProperties({__OH:c,__OI:b,__OJ:parseInt(a/2,10),__OK:b+this.getConfig("offset"),__OL:b+c-this.getConfig("offset")})},__OM:function(){var a=[],b=this.getConfig("steps");a.push(this.getProperty("__OK"));for(var c=b.length-1,c=(this.getProperty("__OH")-2*this.getConfig("offset"))/(b[c]-b[0]),d=0,e=1,g=b.length-1;e<g;e++)d=b[e]-b[0],a.push(Math.round(d*c)+this.getProperty("__OK"));a.push(this.getProperty("__OL"));this.setProperty("__pixel",a)},__ON:function(a){for(var b=
this.getConfig("steps"),c=0;c<b.length;c++)if(b[c]>a&&0<c)return a-b[c-1]<b[c]-a?c-1:c;return 0},__OO:function(){this.on("tap",this._onTap,this);this.getProperty("__knob").on("pointerdown",this._onPointerDown,this);this.getProperty("__documentElement").on("pointerup",this._onPointerUp,this);qxWeb(window).on("resize",this._onWindowResize,this)},__DR:function(a){for(var b=0,c=0,d=0,e=this.getProperty("__pixel"),g=0,f=e.length;g<f;g++)if(a>=e[g])b=g,c=e[g],d=e[g+1]||c;else break;b=Math.abs(a-c)<=Math.abs(a-
d)?b:b+1;this.setProperty("__currentIndex",b);return this.getConfig("steps")[b]},_onTap:function(a){a=a.getViewportLeft();this.setValue(this.__DR(a))},_onPointerDown:function(a){if(!this.getProperty("__cb")){this.setProperty("__cb",!0);var b=this.getProperty("__documentElement");b.on("pointermove",this._onPointerMove,this);b.setStyle("cursor","pointer");a.stopPropagation()}},_onPointerUp:function(a){!0===this.getProperty("__cb")&&(this.setProperty("__cb",null),this.__cc(this.getValue()),a=this.getProperty("__documentElement"),
a.off("pointermove",this._onPointerMove,this),a.setStyle("cursor",null))},_onPointerMove:function(a){a.preventDefault();if(this.getProperty("__cb")){a.touches||(a.touches=[a]);var b=a.getViewportLeft()?a.getViewportLeft():a.touches[0].pageX;if(b>=this.getProperty("__OK")&&b<=this.getProperty("__OL")){this.setValue(this.__DR(b));var c=b-this.getOffset().left-this.getProperty("__OJ");0<c&&(b=this.__OP(c),this.getProperty("__knob").setStyle(b.left,b.value),this.emit("changePosition",{position:c,getData:function(){return{position:c}}}))}}a.stopPropagation()},
__OP:function(a){var b=this.getProperty("__leftOffset");return this.getProperty("__OF")?{left:"transform",value:"translate3d("+(a-b)+"px,0px,0px)"}:this.getProperty("__OE")?(a-=b,{left:"transform",value:"translate("+a+"px,0px)"}):{left:"left",value:a+"px"}},_onWindowResize:function(){this.__OG();this.__OM();if(this.getProperty("__currentIndex")){var a=this.getProperty("__pixel")[this.getProperty("__currentIndex")]-this.getOffset().left-this.getProperty("__OJ"),a=this.__OP(a);this.getProperty("__knob").setStyle(a.left,
a.value)}},__cc:function(a){var b=this.getProperty("__pixel")[this.getConfig("steps").indexOf(a)]-this.getProperty("__OI")-this.getProperty("__OJ");a=this.__OP(b);this.getProperty("__knob").setStyle(a.left,a.value);this.emit("changePosition",{position:b,getData:function(){return{position:b}}})}},defer:function(a){qxWeb.$attach({slider:a.slider});qxWeb.$attachStatic({slider:function(a,c,d,e){if(!qxWeb.isElement(a))throw Error("Please provide a valid slider DOM element!");return qxWeb(a).slider(c,d,
e)}});if(null===window.qui||"object"!=typeof window.qui)window.qui={};if(null===window.qui.bom||"object"!=typeof window.qui.bom)window.qui.bom={};window.qui.bom.Slider=baselib.Slider},destruct:function(){this.off("tap",this._onTap,this);this.getProperty("__konb").off("pointerdown",this._onPointerDown,this);this.getProperty("__documentElement").off("pointerup",this._onPointerUp,this);qxWeb(window).off("resize",this._onWindowResize,this);this.setProperty("__knob",null);this.set("__documentElement",
null)}})})()})();

UNOUNO.util.ToggleContent=function(toggleSet){this.init(toggleSet);};UNOUNO.util.ToggleContent.prototype={toggleSet:null,initState:"",boxes:[],contentClasses:[],queryStart:null,qxBom:qx.bom,initRadioboxes:function(){this.queryStart="#content";for(var i=0;i<this.toggleSet.length;i++){if(document.getElementById(this.toggleSet[i][0])){this.qxBom.Element.addListener(document.getElementById(this.toggleSet[i][0]),"change",this.toggleContent,this);
if(navigator.appVersion.indexOf("MSIE")!==-1&&navigator.appVersion.indexOf("MSIE 9")===-1&&navigator.appVersion.indexOf("MSIE 1")===-1){this.qxBom.Element.addListener(document.getElementById(this.toggleSet[i][0]),"click",this.toggleContent,this);}if(document.getElementById(this.toggleSet[i][0]).checked===true){this.showContent(this.toggleSet[i][1]);
}this.boxes.push(this.toggleSet[i][0]);this.contentClasses.push(this.toggleSet[i][1]);}}},toggleContent:function(){this.resetContent();for(var i=0;i<this.toggleSet.length;i++){if(document.getElementById(this.toggleSet[i][0])){if(document.getElementById(this.toggleSet[i][0]).checked===true){this.showContent(this.toggleSet[i][1]);
}}}},resetContent:function(){for(var i=0;i<this.contentClasses.length;i++){this.hideContent(this.contentClasses[i]);}},showContent:function(className){if(className&&className!==""){var elems=this.qxBom.Collection.query(this.queryStart+" ."+className);for(var i=0;i<elems.length;i++){elems[i].style.display="block";
}}},hideContent:function(className){var elems=this.qxBom.Collection.query(this.queryStart+" ."+className);for(var i=0;i<elems.length;i++){elems[i].style.display="none";}},init:function(toggleSet){this.toggleSet=toggleSet;this.initRadioboxes();}};
UNOUNO.util.tariffFeature=function(featureIDs){this.init(featureIDs);};UNOUNO.util.tariffFeature.prototype={featureIDs:null,featureShowAll:null,featureHideAll:null,featureShowHideAll:null,featureShowHideAllEventRegistered:false,countFeatures:null,toggleStore:[],qxBom:qx.bom,setFeatureIDs:function(featureIDs){this.featureIDs=featureIDs;
},setShowHideAll:function(){this.featureHideAll=document.getElementById("hideall.feature");this.featureShowAll=document.getElementById("showall.feature");var showHideAll=document.getElementsByClassName("showhideall");this.featureShowHideAll=showHideAll.length>0?showHideAll[0]:null;},setCountFeatures:function(){if(this.isArray(this.featureIDs)){this.countFeatures=this.featureIDs.length;
}},initFeatures:function(featureIDs){this.setFeatureIDs(featureIDs);this.setShowHideAll();this.setCountFeatures();this.setupFeatures(this.featureIDs);},setupFeatures:function(){var addListenerShowFeatureElem=function(scope,featureID,setcontrol){return function(e){scope.hideAllFeatureElem();scope.showFeatureElem(featureID,setcontrol);
};};var addListenerHideFeatureElem=function(scope,featureID,setcontrol){return function(e){scope.hideFeatureElem(featureID,setcontrol);};};if(this.isArray(this.featureIDs)){for(var i=0;i<this.featureIDs.length;i++){if(document.getElementById(this.featureIDs[i])){var featuresShow=document.getElementById(this.featureIDs[i]+".link.show");
var featuresHide=document.getElementById(this.featureIDs[i]+".link.hide");if(document.getElementById(this.featureIDs[i]).style.display!=="none"){this.hideFeatureElem(this.featureIDs[i],true);}if(featuresShow!==null&&featuresHide!==null){this.qxBom.Element.addListener(featuresShow,"click",addListenerShowFeatureElem(this,this.featureIDs[i],true));
this.qxBom.Element.addListener(featuresHide,"click",addListenerHideFeatureElem(this,this.featureIDs[i],true));}}}if((this.featureIDs.length<=1)&&(this.featureShowAll!==null)&&(this.featureHideAll!==null)){this.featureShowAll.style.display="none";this.featureHideAll.style.display="none";}}else{if(document.getElementById(this.featureIDs)){var featureShow=document.getElementById(this.featureIDs+".link.show");
var featureHide=document.getElementById(this.featureIDs+".link.hide");if(document.getElementById(this.featureIDs).style.display!=="none"){this.hideFeatureElem(this.featureIDs,true);}if(featureShow!==null&&featureHide!==null){this.qxBom.Element.addListener(featureShow,"click",addListenerShowFeatureElem(this,this.featureIDs,false));
this.qxBom.Element.addListener(featureHide,"click",addListenerHideFeatureElem(this,this.featureIDs,false));}}if(this.featureShowAll!==null&&this.featureHideAll!==null){this.featureShowAll.style.display="none";this.featureHideAll.style.display="none";}}},hideFeatureElem:function(featureID,setcontrol){var feature=document.getElementById(featureID);
if(feature.style.display!=="none"){feature.style.display="none";}var linkShow=document.getElementById(featureID+".link.show");var linkHide=document.getElementById(featureID+".link.hide");if(linkShow){linkShow.style.display="";}if(linkHide){linkHide.style.display="none";}if(setcontrol===true){this.setControlAll();
}if(this.toggleStore.length>0){this.toggleAdditionalElements(featureID);}},showFeatureElem:function(featureID,setcontrol){var feature=document.getElementById(featureID);if(feature.style.display==="none"){feature.style.display="";}document.getElementById(featureID+".link.show").style.display="none";document.getElementById(featureID+".link.hide").style.display="";
if(setcontrol===true){this.setControlAll();}if(this.toggleStore.length>0){this.toggleAdditionalElements(featureID);}},showAllFeatureElem:function(){if(this.isArray(this.featureIDs)){for(var i=0;i<this.featureIDs.length;i++){this.showFeatureElem(this.featureIDs[i],false);}if(this.featureShowAll!==null&&this.featureHideAll!==null){this.featureShowAll.style.display="none";
this.featureHideAll.style.display="";}}},hideAllFeatureElem:function(){if(this.isArray(this.featureIDs)){for(var i=0;i<this.featureIDs.length;i++){this.hideFeatureElem(this.featureIDs[i],false);}if(this.featureShowAll!==null&&this.featureHideAll!==null){this.featureShowAll.style.display="";this.featureHideAll.style.display="none";
}}},toggleAllFeatureElem:function(){if(this.featureShowAll.style.display==="none"){this.hideAllFeatureElem();}else{this.showAllFeatureElem();}},setToggleAdditionalElements:function(linkId,toggleElem){this.toggleStore.push([linkId,toggleElem]);},toggleAdditionalElements:function(featureID){for(var i=0;
i<this.toggleStore.length;i++){if(featureID===this.toggleStore[i][0]){var toggleElem=document.getElementById(this.toggleStore[i][1]);if(toggleElem){if(qx.bom.element.Style.get(toggleElem,"display","COMPUTED_MODE",true)==="none"){toggleElem.style.display="block";}else{toggleElem.style.display="none";}}}}},setControlAll:function(){var countOpenFeatures=1;
if(this.isArray(this.featureIDs)){for(var i=0;i<this.featureIDs.length;i++){if(document.getElementById(this.featureIDs[i])&&document.getElementById(this.featureIDs[i]).style.display!=="none"){countOpenFeatures++;}}if(this.featureShowAll!==null&&this.featureHideAll!==null){if(countOpenFeatures>1){this.featureShowAll.style.display="none";
this.featureHideAll.style.display="block";}else{this.featureShowAll.style.display="";this.featureHideAll.style.display="none";}if(this.featureShowHideAll){if(!this.featureShowHideAllEventRegistered){this.featureShowHideAllEventRegistered=true;this.featureShowHideAll.style.cursor="pointer";this.qxBom.Element.addListener(this.featureShowHideAll,"click",this.toggleAllFeatureElem,this);
}}else{this.qxBom.Element.addListener(this.featureHideAll,"click",this.hideAllFeatureElem,this);this.qxBom.Element.addListener(this.featureShowAll,"click",this.showAllFeatureElem,this);}}}},init:function(featureIDs){this.isArray=function(featureIDs){return featureIDs&&typeof featureIDs==="object"&&typeof featureIDs.length==="number"&&typeof featureIDs.splice==="function"&&!(featureIDs.propertyIsEnumerable("length"));
};this.initFeatures(featureIDs);}};
UNOUNO.util.gfxRadiobox=function(radioboxName){this.init(radioboxName);};UNOUNO.util.gfxRadiobox.prototype={qxBom:qx.bom,initRadioboxes:function(){this.radioboxes=document.getElementsByName(this.radioboxName);this.setRadioboxListener();},setRadioboxListener:function(){var addListenerCallbackCheckRadiobox=function(scope,radiobox){return function(e){scope.checkRadiobox(radiobox);
};},i;for(i=0;i<this.radioboxes.length;i++){if(document.getElementById(this.radioboxes[i].id+".unchecked")){this.qxBom.Element.addListener(document.getElementById(this.radioboxes[i].id+".unchecked"),"click",addListenerCallbackCheckRadiobox(this,this.radioboxes[i]));this.qxBom.Element.addListener(this.radioboxes[i],"change",this.toggleRadioboxGfx,this);
}}},checkRadiobox:function(clickedRadiobox){qx.bom.element.Attribute.set(clickedRadiobox,"checked","checked");qx.bom.Event.fire(clickedRadiobox,"change");},focus:function(e){this.qxBom.element.Style.set(document.getElementById(e.getTarget().id+".checked"),"outline","1px dotted #005BA7");this.qxBom.element.Style.set(document.getElementById(e.getTarget().id+".unchecked"),"outline","1px dotted #005BA7");
},blur:function(e){this.qxBom.element.Style.set(document.getElementById(e.getTarget().id+".checked"),"outline","0 none transparent");this.qxBom.element.Style.set(document.getElementById(e.getTarget().id+".unchecked"),"outline","0 none transparent");},active:function(e){this.qxBom.element.Style.set(document.getElementById(e.getTarget().id+".checked"),"outline","0 none transparent");
this.qxBom.element.Style.set(document.getElementById(e.getTarget().id+".unchecked"),"outline","0 none transparent");},toggleRadioboxGfx:function(){var gfxRadioboxes=this.radioboxes,i;for(i=0;i<gfxRadioboxes.length;i++){if(gfxRadioboxes[i].id&&document.getElementById(gfxRadioboxes[i].id+".checked")&&document.getElementById(gfxRadioboxes[i].id+".unchecked")){if(gfxRadioboxes[i].checked===true){document.getElementById(gfxRadioboxes[i].id+".checked").style.display="block";
document.getElementById(gfxRadioboxes[i].id+".unchecked").style.display="none";}else{document.getElementById(gfxRadioboxes[i].id+".checked").style.display="none";document.getElementById(gfxRadioboxes[i].id+".unchecked").style.display="block";}this.qxBom.Element.addListener(document.getElementById(gfxRadioboxes[i].id),"focus",this.focus,this);
this.qxBom.Element.addListener(document.getElementById(gfxRadioboxes[i].id),"active",this.active,this);this.qxBom.Element.addListener(document.getElementById(gfxRadioboxes[i].id),"blur",this.blur,this);}}},init:function(radioboxName){this.radioboxName=radioboxName;this.initRadioboxes();this.toggleRadioboxGfx();
}};
if(!window.pfx){pfx={};}if(!pfx.net){pfx.net={};}var _browser;if(window.opera){_browser="opera";}else{if(typeof navigator.vendor=="string"&&navigator.vendor=="KDE"){_browser="khtml";}else{if(typeof navigator.product=="string"&&navigator.product=="Gecko"){_browser="gecko";}else{if(/msie/i.test(navigator.userAgent)){_browser="mshtml";
}}}}_isMshtml=_browser=="mshtml";_isGecko=_browser=="gecko";_isOpera=_browser=="opera";_isKhtml=_browser=="khtml";pfx.net.HTTPRequest=function(){this.method=arguments[0];this.url=arguments[1];this.callback=arguments[2];this.context=arguments[3];this.headers=[];this.errors=[];this.status=0;this.statusText="";
var self=this;this.customOnReadyStateChange=function(){self._customOnReadyStateChange();};this.cancelOnReadyStateChange=function(i,msg){self._cancelOnReadyStateChange(i,msg);};};pfx.net.HTTPRequest._xml=[];pfx.net.HTTPRequest._xmlThis=[];pfx.net.HTTPRequest._xmlTimer=[];pfx.net.HTTPRequest._xmlTimerCount=[];
pfx.net.HTTPRequest._xmlTimerCountMax=1000;pfx.net.HTTPRequest._xmlTimerInterval=5;pfx.net.HTTPRequest.builtin=window.XMLHttpRequest?true:false;pfx.net.HTTPRequest.IFRAMES_NEVER=-1;pfx.net.HTTPRequest.IFRAMES_FALLBACK=0;pfx.net.HTTPRequest.IFRAMES_ONLY=1;pfx.net.HTTPRequest.prototype.iframes=pfx.net.HTTPRequest.IFRAMES_FALLBACK;
pfx.net.HTTPRequest.msXmlHttp=null;if(!pfx.net.HTTPRequest.builtin&&!_isOpera&&window.ActiveXObject){var msXmlHttpList=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"];var obj;for(var j=0;j<msXmlHttpList.length;
j++){try{obj=new ActiveXObject(msXmlHttpList[j]);pfx.net.HTTPRequest.msXmlHttp=msXmlHttpList[j];break;}catch(e){}}}pfx.net.HTTPRequest.activeX=typeof pfx.net.HTTPRequest.msXmlHttp=="string";pfx.net.HTTPRequest.prototype.start=function(content,headers,reqId){var i=pfx.net.HTTPRequest._xml.length;if(this.iframes!=pfx.net.HTTPRequest.IFRAMES_ONLY){if(pfx.net.HTTPRequest.builtin){try{pfx.net.HTTPRequest._xml[i]=new XMLHttpRequest();
}catch(e){pfx.net.HTTPRequest._xml[i]=null;if(this.iframes==pfx.net.HTTPRequest.IFRAMES_NEVER){throw new Error("HTTP_Request: Could not create XMLHttpRequest");}}}else{if(pfx.net.HTTPRequest.activeX){try{pfx.net.HTTPRequest._xml[i]=new ActiveXObject(pfx.net.HTTPRequest.msXmlHttp);}catch(e){pfx.net.HTTPRequest._xml[i]=null;
if(this.iframes==pfx.net.HTTPRequest.IFRAMES_NEVER){throw new Error("HTTP_Request: Could not create ActiveXObject "+pfx.net.HTTPRequest.msXmlHttp);}}}}if(typeof pfx.net.HTTPRequest._xml[i]!="undefined"){if(this.callback){try{var self=this;if(pfx.net.HTTPRequest.activeX){pfx.net.HTTPRequest._xml[i].onreadystatechange=function(){if(pfx.net.HTTPRequest._xml[i].readyState==4){var reqId;
try{reqId=pfx.net.HTTPRequest._xml[i].getResponseHeader("Request-Id");}catch(e){}var content=self._getResponse(pfx.net.HTTPRequest._xml[i]);if(content!=null){self.callback.call(self.context,content,reqId);}else{if(!pfx.net.HTTPRequest._xml[i].aborted){throw new Error("Empty response");}}pfx.net.HTTPRequest._xml[i]=null;
}};}else{pfx.net.HTTPRequest._xml[i].onreadystatechange=function(){if(pfx.net.HTTPRequest._xml[i].readyState==4){try{self.status=pfx.net.HTTPRequest._xml[i].status;self.statusText=pfx.net.HTTPRequest._xml[i].statusText;}catch(e){}if(self.status&&self.status>=400){throw new Error("HTTP_Request: Asynchronous call failed"+" (status "+self.status+", "+self.statusText+")");
}var reqId;try{reqId=pfx.net.HTTPRequest._xml[i].getResponseHeader("Request-Id");}catch(e){}var content=self._getResponse(pfx.net.HTTPRequest._xml[i]);if(content!=null){self.callback.call(self.context,content,reqId);}else{if(!pfx.net.HTTPRequest._xml[i].aborted){throw new Error("Empty response");}}pfx.net.HTTPRequest._xml[i]=null;
}};}}catch(e){pfx.net.HTTPRequest._xml[i]=null;throw new Error("HTTP_Request: Onreadystatechange failed");}}try{pfx.net.HTTPRequest._xml[i].open(this.method,this.url,this.callback?true:false);for(var j=0;j<this.headers.length;j++){try{pfx.net.HTTPRequest._xml[i].setRequestHeader(this.headers[j][0],this.headers[j][1]);
}catch(e){}}if(this.callback&&typeof reqId!="undefined"){try{pfx.net.HTTPRequest._xml[i].setRequestHeader("Request-Id",reqId.toString());}catch(e){}}pfx.net.HTTPRequest._xml[i].send(content);if(!this.callback){this.status=pfx.net.HTTPRequest._xml[i].status;this.statusText=pfx.net.HTTPRequest._xml[i].statusText;
return this._getResponse(pfx.net.HTTPRequest._xml[i]);}else{return true;}}catch(e){pfx.net.HTTPRequest._xml[i]=null;throw new Error("HTTP_Request: Call failed [Cause: "+e+"]");}}}if(this.iframes!=pfx.net.HTTPRequest.IFRAMES_NEVER&&!pfx.net.HTTPRequest._xml[i]&&document.createElement){if(!this.callback){throw new Error("HTTP_Request: Synchronous call by iframe not supported");
}try{var el;if(!(_isMshtml||_isOpera)){el=document.createElement("iframe");el.style.display="none";el.name="pfxreqiframe"+i;el.id="pfxreqiframe"+i;document.body.appendChild(el);}else{el=document.createElement("div");el.style.display="none";el.id="pfxreqdiv"+i;document.body.appendChild(el);document.getElementById("pfxreqdiv"+i).innerHTML="<"+'iframe id="pfxreqiframe'+i+'" name="pfxreqiframe'+i+'" style="display:block"><'+"/iframe>";
}var url=this.url;if(reqId){url=this.setQueryParameter(url,"PFX_Request_ID",reqId);}if(this.method.toLowerCase()=="get"){el.src=url;document.body.appendChild(el);var self=this;pfx.net.HTTPRequest._xmlTimer[i]=window.setInterval(self.customOnReadyStateChange,pfx.net.HTTPRequest._xmlTimerInterval);}else{if(this.method.toLowerCase()=="post"){el=document.createElement("div");
el.style.display="none";el.id="pfxreqformdiv"+i;pfx.net.HTTPRequest._xml[i]=this.callback;pfx.net.HTTPRequest._xmlThis[i]=this;pfx.net.HTTPRequest._xmlTimer[i]=true;pfx.net.HTTPRequest._xmlTimerCount[i]=0;var self=this;window.setTimeout(function(){var elForm=document.createElement("form");elForm.action=url;
elForm.target="pfxreqiframe"+i;elForm.method=self.method;elForm.id="pfxreqform"+i;var elField=document.createElement("textarea");elField.name="message";elField.value=content;elForm.appendChild(elField);for(var h=0;h<self.headers.length;h++){elField=document.createElement("input");elField.type="hidden";
elField.name=self.headers[h][0];elField.value=self.headers[h][1];elForm.appendChild(elField);}if(_isMshtml){elField=document.createElement("input");elField.type="hidden";elField.name="insertpi";elField.value="1";elForm.appendChild(elField);}el.appendChild(elForm);document.body.appendChild(el);document.getElementById("pfxreqform"+i).target="pfxreqiframe"+i;
window.setTimeout(function(){var form=document.getElementById("pfxreqform"+i);form.submit();},1);},1);pfx.net.HTTPRequest._xmlTimer[i]=window.setInterval(self.customOnReadyStateChange,pfx.net.HTTPRequest._xmlTimerInterval);}else{throw new Error("HTTP_Request: Iframes do not support method "+this.method);
}}return"iframe";}catch(e){throw new Error("HTTP_Request: Iframes failed"+e);}}throw new Error("HTTP_Request: Failure");};pfx.net.HTTPRequest.prototype.setRequestHeader=function(field,value){this.headers.push([field,value]);};pfx.net.HTTPRequest.prototype.setQueryParameter=function(url,field,value){url+=((url.indexOf("?")+1)?"&":"?")+field+"="+encodeURI(value);
return url;};pfx.net.HTTPRequest.prototype.getQueryParameter=function(url,field){var pairs=url.substr(url.indexOf("?")+1).split("&");var param;for(var i=0;i<pairs.length;i++){param=pairs[i].split("=");if(param[0]==field){return param[1];}}return null;};pfx.net.HTTPRequest.prototype._getResponse=function(request){var ctype=request.getResponseHeader("Content-Type");
if(ctype==null){if(request.status==0){request.aborted=true;return null;}throw new Error("Missing response content type");}else{if(ctype.indexOf("text/plain")==0||ctype.indexOf("text/html")==0){return request.responseText;}else{if(ctype.indexOf("text/xml")==0){return request.responseXML;}else{throw new Error("Illegal response content type: "+ctype);
}}}};pfx.net.HTTPRequest.prototype._customOnReadyStateChange=function(){var win=null;for(var i=0;i<pfx.net.HTTPRequest._xml.length;i++){if(pfx.net.HTTPRequest._xmlTimer[i]&&pfx.net.HTTPRequest._xml[i]){try{if(pfx.net.HTTPRequest._xmlTimerCount[i]<pfx.net.HTTPRequest._xmlTimerCountMax){win=window.frames["pfxreqiframe"+i];
if(win&&win.document&&win.location.href!="about:blank"&&(_isMshtml?win.document.readyState=="complete":true)){var resdoc=_isMshtml?win.document.body:win.document;var text=resdoc.getElementsByTagName("pre")[0].firstChild.nodeValue;pfx.net.HTTPRequest._xml[i].call(pfx.net.HTTPRequest._xmlThis[i].context,text,pfx.net.HTTPRequest._xmlThis[i].getQueryParameter(win.location.href,"PFX_Request_ID"));
this.cancelOnReadyStateChange(i);}else{pfx.net.HTTPRequest._xmlTimerCount[i]++;}}else{this.cancelOnReadyStateChange(i,"too many intervals "+i+", "+pfx.net.HTTPRequest._xmlTimerCount[i]);}}catch(e){this.cancelOnReadyStateChange(i,"Exception:"+e);}}}};pfx.net.HTTPRequest.prototype._cancelOnReadyStateChange=function(i,msg){try{window.clearInterval(pfx.net.HTTPRequest._xmlTimer[i]);
pfx.net.HTTPRequest._xmlTimer[i]=null;pfx.net.HTTPRequest._xml[i]=null;pfx.net.HTTPRequest._xmlThis[i]=null;pfx.net.HTTPRequest._xmlTimerCount[i]=0;}catch(e){msg="Could not cancel";}var el;try{if(el=document.getElementById("pfxreqiframe"+i)){document.body.removeChild(el);}}catch(e){}try{if(el=document.getElementById("pfxreqdiv"+i)){document.body.removeChild(el);
}}catch(e){}try{if(el=document.getElementById("pfxreqform"+i)){document.body.removeChild(el);}}catch(e){}try{if(el=document.getElementById("pfxreqformdiv"+i)){document.body.removeChild(el);}}catch(e){}if(msg){throw new Error("HTTP_Request: "+msg);}};
if(!window.pfx){pfx={};}if(!pfx.ws){pfx.ws={};}if(!pfx.ws.json){pfx.ws.json={};}pfx.ws.json.deserialize=function(response){if(this._debug==true){alert("Response: "+response);}eval("res="+response);return res;};pfx.ws.json.serialize=function(obj){var json=null;if(obj!=null){if(obj.constructor==String){json=pfx.ws.json.escapeJSONString(obj);
}else{if(obj.constructor==Number){json=obj.toString();}else{if(obj.constructor==Boolean){json=obj.toString();}else{if(obj.constructor==Date){json="new Date("+obj.valueOf()+")";}else{if(obj.constructor==Array){var arr=[];for(var i=0;i<obj.length;i++){arr.push(pfx.ws.json.serialize(obj[i]));}json="["+arr.join(",")+"]";
}else{var arr=[];for(attr in obj){var attrObj=obj[attr];if(attrObj==null){arr.push('"'+attr+'": null');}else{if(typeof attrObj!="function"){arr.push(pfx.ws.json.escapeJSONString(attr)+":"+pfx.ws.json.serialize(attrObj));}}}json="{"+arr.join(",")+"}";}}}}}}else{json="null";}return json;};pfx.ws.json.escapeJSONChar=function(ch){if(ch=='"'||ch=="\\"){return"\\"+ch;
}else{if(ch=="\b"){return"\\b";}else{if(ch=="\f"){return"\\f";}else{if(ch=="\n"){return"\\n";}else{if(ch=="\r"){return"\\r";}else{if(ch=="\t"){return"\\t";}}}}}}var hex=ch.charCodeAt(0).toString(16);if(hex.length==1){return"\\u000"+hex;}else{if(hex.length==2){return"\\u00"+hex;}else{if(hex.length==3){return"\\u0"+hex;
}else{return"\\u"+hex;}}}};pfx.ws.json.replaceCallbackSupport=null;pfx.ws.json.escapeJSONString=function(str){if(pfx.ws.json.replaceCallbackSupport==null){if(navigator.userAgent.indexOf("Safari")!=-1){pfx.ws.json.replaceCallbackSupport=false;}else{pfx.ws.json.replaceCallbackSupport=true;}}if(pfx.ws.json.replaceCallbackSupport){return'"'+str.replace(/([^\u0020-\u007f]|[\\\"])/g,pfx.ws.json.escapeJSONChar)+'"';
}else{var escStr=[];for(var i=0;i<str.length;i++){if(str.charAt(i)=='"'||str.charAt(i)=="\\"||str.charCodeAt(i)<32||str.charCodeAt(i)>=128){escStr[i]=pfx.ws.json.escapeJSONChar(str.charAt(i));}else{escStr[i]=str.charAt(i);}}return'"'+escStr.join("")+'"';}};pfx.ws.json.BaseStub=function(service,context,scope,requestPath){this._service=service;
this._context=context;this._scope=scope;this._requestPath=requestPath;this._protocol="jsonws";this._uri=null;};pfx.ws.json.BaseStub.prototype.setService=function(service){this._service=service;this._uri=null;};pfx.ws.json.BaseStub.prototype.setContext=function(context){this._context=context;};pfx.ws.json.BaseStub.prototype.setRequestPath=function(requestPath){this._requestPath=requestPath;
this._uri=null;};pfx.ws.json.BaseStub.prototype.setDebug=function(debug){this._debug=debug;};pfx.ws.json.BaseStub.prototype.getURI=function(){if(this._uri==null){var session="";var matches=window.location.href.match(/;jsessionid=[A-Z0-9]+(\.[a-zA-Z0-9]+)?/);if(matches){session=matches[0];}var reqpath=this._requestPath+"/"+this._service;
this._uri=window.location.protocol+"//"+window.location.host+reqpath+session;}return this._uri;};pfx.ws.json.BaseStub.prototype.callMethod=function(method,args,expLen){var wsCall=new pfx.ws.json.Call(this.getURI(),this._context,this._scope,this._debug);return wsCall.invoke(method,args,expLen);};pfx.ws.json.DynamicProxy=function(service,context){pfx.ws.json.BaseStub.call(this,service,context);
this._proxySetup();};pfx.ws.json.DynamicProxy.prototype=new pfx.ws.json.BaseStub;pfx.ws.json.DynamicProxy.prototype._proxySetup=function(){var req=new pfx.net.HTTPRequest("POST",this.getURI()+"?json",this._proxySetupCB,this);req.setRequestHeader("wstype",this._protocol);req.start("",0);};pfx.ws.json.DynamicProxy.prototype._proxySetupCB=function(response){eval("response="+response);
var methods=response.result;for(var i=0;i<methods.length;i++){this._createMethod(methods[i]);}};pfx.ws.json.DynamicProxy.prototype._createMethod=function(name){var f=function(){return f.ownerObject._callMethod.call(f.ownerObject,f.methodName,arguments);};f.ownerObject=this;f.methodName=name;this[name]=f;
};pfx.ws.json.DynamicProxy.prototype._callMethod=function(method,args){var wsCall=new pfx.ws.json.Call(this.getURI(),this._context,this._debug);return wsCall.invoke(method,args);};pfx.ws.json.Call=function(uri,context,scope,debug){this._uri=uri;this._context=context;this._scope=scope;this._debug=debug;
this._opName=null;this._userCallback=null;};pfx.ws.json.Call.prototype.invoke=function(method,args,expLen){this._opName=method;var jsonReq={};jsonReq.method=method;var argLen=args.length;if(expLen){if(argLen==expLen+1){if(typeof args[argLen-1]=="function"||typeof args[argLen-1]=="object"){this._userCallback=args[argLen-1];
}else{this._requestId=args[argLen-1];}argLen=argLen-1;}else{if(argLen==expLen+2&&(typeof args[argLen-2]=="function"||typeof args[argLen-2]=="object")&&typeof args[argLen-1]=="string"){this._userCallback=args[argLen-2];this._requestId=args[argLen-1];argLen=argLen-2;}else{if(argLen!=expLen){throw new Error("Wrong number of arguments: "+argLen+" - "+expLen);
}}}}else{if(argLen>0&&typeof args[argLen-1]=="function"){this._userCallback=args[argLen-1];argLen=argLen-1;}else{if(argLen>1&&typeof args[argLen-2]=="function"){this._requestId=args[argLen-1];this._userCallback=args[argLen-2];argLen=argLen-2;}}}if(this._requestId){jsonReq.id=this._requestId;}var jsonParams=[];
for(var i=0;i<argLen;i++){jsonParams[i]=args[i];}jsonReq.params=jsonParams;var jsonStr=pfx.ws.json.serialize(jsonReq);if(this._debug==true){alert("Request: "+jsonStr);}if(this._userCallback||this._context){var httpReq=new pfx.net.HTTPRequest("POST",this._uri,this.callback,this);httpReq.setRequestHeader("Content-Type","text/plain");
httpReq.setRequestHeader("wstype","jsonws");httpReq.start(jsonStr,null,jsonReq.id);}else{var httpReq=new pfx.net.HTTPRequest("POST",this._uri);httpReq.setRequestHeader("Content-Type","text/plain");httpReq.setRequestHeader("wstype","jsonws");var response=httpReq.start(jsonStr,null,jsonReq.id);return this.callback(response);
}};pfx.ws.json.Call.prototype.callback=function(text){var res=pfx.ws.json.deserialize(text);if(res.error){var error=new Error();error.name=res.error.name;error.message=res.error.message;if(this._userCallback){this._userCallback(null,res.id,error);}else{if(this._context){this._context[this._opName].call(this._scope?this._scope:this._context,null,res.id,error);
}else{throw error;}}}else{if(this._userCallback){this._userCallback(res.result,res.id,null);}else{if(this._context){this._context[this._opName].call(this._scope?this._scope:this._context,res.result,res.id,null);}else{return res.result;}}}};
function WS_VDSPriceService(context,scope){pfx.ws.json.BaseStub.call(this,"VDSPriceService",context,scope,"/webservice");}WS_VDSPriceService.prototype=new pfx.ws.json.BaseStub;WS_VDSPriceService.prototype.getExtendedDcsInfo=function(){return this.callMethod("getExtendedDcsInfo",arguments,0);};WS_VDSPriceService.prototype.getVDSPrice=function(){return this.callMethod("getVDSPrice",arguments,4);
};WS_VDSPriceService.prototype.dcsRemove=function(){return this.callMethod("dcsRemove",arguments,2);};WS_VDSPriceService.prototype.extendedDcsAddOrChange=function(){return this.callMethod("extendedDcsAddOrChange",arguments,6);};WS_VDSPriceService.prototype.getDcsInfo=function(){return this.callMethod("getDcsInfo",arguments,0);
};
$q.define("UNOUNO.pages.CloudDynamicServer",{statics:{decimalSeparator:",",priceService:{"request":0,"timer":null,"instance":null},radioBoxes:{"instance":null,"elements":{"1":{"value":"osLinux","instance":null},"4":{"value":"osWindowsStandard","instance":null}},"name":"vdsOs"},imageSets:{"elements":{}},toggle:{"instance:":null,"elements":[["vdsOs-osLinux","osLinux"],["vdsOs-osWindowsStandard","osWindowsStandard"]]},sliders:{"cpu":{"instance":null,"elements":{"update":".cpu-value","included":".cpu-value-included","slider":document.getElementById("slider-cpu"),"knob":document.getElementById("slider-knob-cpu"),"glow":document.getElementById("slider-glow-cpu"),"body":document.getElementById("slider-body-cpu")},"options":[0,1,2,3,4,5,6,7,8],"offset":{"default":10,"body":-1},"value":0},"ram":{"instance":null,"elements":{"update":".ram-value","included":".ram-value-included","slider":document.getElementById("slider-ram"),"knob":document.getElementById("slider-knob-ram"),"glow":document.getElementById("slider-glow-ram"),"body":document.getElementById("slider-body-ram")},"options":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"offset":{"default":10,"body":-1},"value":0},"hdd":{"instance":null,"elements":{"update":".hdd-value","included":".hdd-value-included","slider":document.getElementById("slider-hdd"),"knob":document.getElementById("slider-knob-hdd"),"glow":document.getElementById("slider-glow-hdd"),"body":document.getElementById("slider-body-hdd")},"options":[0,100,200,300,400,500,600,700,800],"offset":{"default":10,"body":-1},"value":0}},configuration:{"vm":1,"cpu":null,"hdd":null,"ram":null,"imageset":null,"imageid":null},getDcsInfo:function(response,requestId,exception){var dcsInfoString=window.JSON?JSON.parse(response.dcsInfoString)[0]:eval("("+response.dcsInfoString+")")[0];
var tariffsWithResponse=response.tariffsWithResponse;for(var key in this.sliders){if(!isNaN(dcsInfoString[key])){this.sliders[key].instance.setValue(Number(dcsInfoString[key]));}}this.radioBoxes.instance.checkRadiobox(document.getElementById(this.radioBoxes.name+"-"+this.radioBoxes.elements[dcsInfoString.imageset].value));
this.imageSets.elements[this.radioBoxes.elements[dcsInfoString.imageset].value].instance.setValue(dcsInfoString.installImageId);this._updatePrices("tariff-dcs-flex",tariffsWithResponse["tariff-dcs-flex"]);this._updatePrices("tariff-dcs-pro",tariffsWithResponse["tariff-dcs-pro"]);this._initBackendEvents();
},extendedDcsAddOrChange:function(response,requestId,exception){if(requestId==this.priceService.request){var tariffsWithResponse=response.tariffsWithResponse;this._updatePrices("tariff-dcs-flex",tariffsWithResponse["tariff-dcs-flex"]);this._updatePrices("tariff-dcs-pro",tariffsWithResponse["tariff-dcs-pro"]);
}},_getCurrentConfiguration:function(){return this.configuration;},_updateConfiguration:function(){var config=this._getCurrentConfiguration();this.priceService.instance.extendedDcsAddOrChange(Number(config.vm),Number(config.cpu),Number(config.ram),Number(config.hdd),Number(config.imageset),Number(config.imageid),(++this.priceService.request).toString());
},_setUpdateTimer:function(){var _this=this;window.clearTimeout(this.priceService.timer);this.priceService.timer=window.setTimeout(function(){_this._updateConfiguration();},100);},_initBackendEvents:function(){for(var key in this.sliders){this._initElementBackendEvent(this.sliders[key].instance,"changeValue");
}for(var key in this.radioBoxes.elements){this._initElementBackendEvent(this.radioBoxes.elements[key].instance);}for(var key in this.imageSets.elements){this._initElementBackendEvent(this.imageSets.elements[key].instance);}},_initElementBackendEvent:function(element,type){type=type||"change";element.on(type,function(e){this._setUpdateTimer();
},this);},_getPriceDetails:function(price){return{priceBefore:price.split(".")[0],priceAfter:price.split(".")[1],replaceFollowingZeros:true,useSupElement:true,appendDecimalSeparator:true};},_updatePrices:function(tariff,properties){for(var property in properties){var price=properties[property];if(!isNaN(price)){var elements=$("#"+tariff+" ."+property);
var webfontPrice=$q.webfontPrice(price,{currency:false,decimalLength:2});elements.forEach(function(element,index){element=$q(element);if(!webfontPrice.draw(element)){element.setHtml(webfontPrice.format());}},this);}}},_setSliderValue:function(slider,value){$q(slider.elements.update).forEach(function(element,index){var elementValue=value;
if($q(element).getAncestors(".dcs-tariff").length){var includedValue=parseInt($q(element).getAncestors(".dcs-tariff").find(slider.elements.included).eq(0).getHtml());if(!isNaN(includedValue)){elementValue-=includedValue;}if(elementValue<0){elementValue=0;}}$q(element).setHtml(String(elementValue));});
},_createSlider:function(key,slider){slider.instance=new $q.slider(slider.elements.slider,slider.elements.knob,slider.options,slider.offset["default"]);slider.instance.on("changeValue",function(e){this.configuration[key]=slider.instance.getValue();this._setSliderValue(slider,this.configuration[key]);
this._checkTariffOrderable();},this);this._setSliderValue(slider,slider.instance.getValue());slider.instance.on("changePosition",function(e){var position=e.getData().position;$q(slider.elements.body).setStyle("left",(position+slider.offset.body)+"px");$q(slider.elements.glow).setStyle("width",(position+10)+"px");
});},_checkTariffOrderable:function(){var tariffElement=$q("#tariff-dcs-flex .tariff-submit");if(this.configuration.cpu&&this.configuration.hdd&&this.configuration.ram){if(tariffElement.hasClass("tariff-disabled")){tariffElement.removeClass("tariff-disabled");}return true;}if(!tariffElement.hasClass("tariff-disabled")){tariffElement.addClass("tariff-disabled");
}return false;},_initRadioBoxes:function(){var radioBoxes=$q("input[name = '"+this.radioBoxes.name+"']");for(var id in this.radioBoxes.elements){var searchValue=this.radioBoxes.elements[id].value;for(var r=0;r<radioBoxes.length;r++){var radioBox=$q(radioBoxes[r]);var radioBoxValue=radioBox.getValue();
if(radioBoxValue==searchValue){this.radioBoxes.elements[id].instance=$q(radioBoxes[r]);break;}}}radioBoxes.forEach(function(radioBox,index){radioBox=$q(radioBox);if(radioBox.getAttribute("checked")){for(var key in this.radioBoxes.elements){if(this.radioBoxes.elements[key].value==radioBox.getValue()){this.configuration["imageset"]=key;
}}}},this);radioBoxes.on("change",function(e){var currentValue=$q(e.getTarget()).getValue();for(var id in this.radioBoxes.elements){if(this.radioBoxes.elements[id].value==currentValue){this.configuration["imageset"]=id;this.configuration["imageid"]=this.imageSets.elements[this.radioBoxes.elements[id].value].instance.getValue();
break;}}},this);},_initSelectBoxes:function(){var selectBoxes=$q(".os-images select");selectBoxes.forEach(function(selectBox,sindex){selectBox=$q(selectBox);var selectBoxName=selectBox.getAttribute("name"),selectBoxId=selectBox.getAttribute("id");if(selectBoxId=="imageSet"+this.configuration.imageset){this.configuration["imageid"]=selectBox.getValue();
}this.imageSets.elements[selectBoxName]={"value":selectBox.getValue(),"options":[],"instance":selectBox};var selectBoxOptions=selectBox.find("option");selectBoxOptions.forEach(function(option,oindex){option=$q(option);this.imageSets.elements[selectBoxName].options.push({"value":option.getAttribute("value"),"text":option.getAttribute("text"),"instance:":option});
},this);},this);selectBoxes.on("change",function(e){this.configuration["imageid"]=$q(e.getTarget()).getValue();},this);},init:function(){for(var key in this.sliders){this._createSlider(key,this.sliders[key]);}this._initRadioBoxes();this._initSelectBoxes();this.toggle.instance=new UNOUNO.util.ToggleContent(this.toggle.elements);
this.radioBoxes.instance=new UNOUNO.util.gfxRadiobox(this.radioBoxes.name);this.priceService.instance=new WS_VDSPriceService(this);this.priceService.instance.getDcsInfo();}}});UNOUNO.pages.CloudDynamicServer.init();
$q.define("UNOUNO.components.renderinclude",{construct:function(properties,callbacks,options){this.properties=properties;this.success=callbacks.success;this.error=callbacks.error;this.options=options;this.init();},statics:{cache:{},getCachedResponse:function(url){return this.cache[url];},setCachedResponse:function(url,response){this.cache[url]=response;
}},members:{properties:null,callback:null,callback:function(fnc,response){typeof (fnc)=="function"&&fnc.call(null,response);},createRenderIncludeURL:function(){var querystring={reuse:UNOUNO.params.reuseDOM};["part","href","module","search"].forEach(function(key){if(this.properties.hasOwnProperty(key)&&this.properties[key]){querystring["__render_"+key]=this.properties[key];
}},this);if(querystring.__render_href){while(!!querystring.__render_href.length&&querystring.__render_href.charAt(0)=="/"){querystring.__render_href=querystring.__render_href.substring(1);}}var url=window.location.href;["#","?"].forEach(function(token){var indexOfToken=url.indexOf(token);if(indexOfToken>-1){url=url.substring(0,indexOfToken);
}});url=$q.uri.appendParams(url,querystring);return url;},handleResponse:function(response){if(response.readyState==4){if(response.status===200&&response.responseText){this.callback(this.success,response);}else{this.callback(this.error,response);}}},init:function(){var url=this.createRenderIncludeURL();
var cachedResponse=UNOUNO.components.renderinclude.getCachedResponse(url);if(!cachedResponse){var xhr=$q.xhr(url,this.options);xhr.on("loadend",function(response){UNOUNO.components.renderinclude.setCachedResponse(url,response);this.handleResponse(response);},this);xhr.send(null);return ;}this.handleResponse(cachedResponse);
}}});$q.$attachStatic({"renderinclude":function(configuration,callbacks,options){return new UNOUNO.components.renderinclude(configuration,callbacks,options);}});
$q.define("UNOUNO.components.lazyLightbox",{construct:function(element){this.element=$q(element);if(this.element&&this.element.hasClass("lazy-lightbox")){this.properties=this.element.getAllData();this.lightboxName=$q.string.camelCase(this.properties.part);this.initializeClickEvents();if(this.properties.trigger&&this.properties.trigger==="onload"){this.openLightbox();
}return this;}return undefined;},members:{element:null,content:null,properties:{},lightboxName:null,instance:null,inspectTimer:null,firstCompleteCallback:true,getLightboxOpener:function(){return this.element;},openLightbox:function(){this.getLightboxContent();},callback:function(event){var ctx=(UNOUNO.lightbox||{})[this.lightboxName];
if(ctx&&this.lightboxName&&!!this.lightboxName.length&&typeof (ctx[event])==="function"){return ctx[event].apply(ctx,[].concat.call([].slice.call(arguments,1),this));}return undefined;},lightboxDimensions:function(){this.instance.show();var content=this.instance.getContent();var contentHeight=content.getHeight(true);
var contentWidth=content.getWidth(true);var contentMaxWidth=content.getWidthMax(true);if(contentMaxWidth>1030){contentWidth=860;}var minWidth=this.properties.minwidth;var minHeight=this.properties.minheight;if(!isNaN(minWidth)&&contentWidth<minWidth){contentWidth=minWidth;}if(!isNaN(minHeight)&&contentHeight<minHeight){contentHeight=minHeight;
}this.instance.setWidth(Number(contentWidth));this.instance.setHeight(Number(contentHeight));if(this.instance.getHeight()>$q(window).getHeight()){this.instance.setTop($q(window).getScrollTop()+40);}this.instance.close();this.instance.show();},determineContentDimensions:function(){var content=this.instance.getContent();
var currentContentHeight=content.getHeight();var minHeight=this.properties.minheight;if(!isNaN(minHeight)&&currentContentHeight<minHeight){currentContentHeight=minHeight;}if(currentContentHeight!=Number(this.instance.getHeight())){this.instance.setHeight(Number(currentContentHeight));}},initializeLightbox:function(){if(!this.instance){this.instance=$q.lightbox(this.content);
this.instance.setDefaultStyle(true);var instanceBlocker=this.instance.getBlocker();instanceBlocker.setBackgroundColor("#4d84bb");instanceBlocker.setOpacity(0.75);this.lightboxDimensions();this.instance.close();instanceBlocker.on("unblock",function(){$q(document).offMatchTarget("click",".lightbox-close",this.closeLightbox,this);
$q(document).offMatchTarget("click",".qx-blocker",this.closeLightbox,this);window.clearInterval(this.inspectInterval);window.setTimeout(function(){this.callback("onClosed",this.instance);}.bind(this),0);},this);instanceBlocker.on("block",function(){$q(document).onMatchTarget("click",".lightbox-close",this.closeLightbox,this);
$q(document).onMatchTarget("click",".qx-blocker",this.closeLightbox,this);this.inspectInterval=window.setInterval(function(){this.determineContentDimensions();}.bind(this),150);window.setTimeout(function(){this.callback("onComplete",this.instance,this.firstCompleteCallback);if(this.firstCompleteCallback){this.firstCompleteCallback=false;
}if(typeof (UNOUNO.tracking.lightboxTracking)==="function"){UNOUNO.tracking.lightboxTracking(this.lightboxName);}}.bind(this),0);},this);this.callback("onCreate",this.instance);}this.instance.show();},closeLightbox:function(target,e){e.preventDefault();this.callback("onCleanUp",this.instance);this.instance.close();
},getLightboxContent:function(){if(!this.instance){if(!this.properties.reference||!!!this.properties.reference.length){this.getContentViaXHR({success:function(response){this.prepareLightbox(response.responseText);}});return ;}var renderIncludeReference=$q(".lazy-lightbox-reference[data-renderinclude = '"+this.properties.reference+"']");
if(!!renderIncludeReference.length&&!!(renderIncludeReference.getHtml()||"").length){this.prepareLightbox(renderIncludeReference.getHtml());}return ;}this.initializeLightbox();},initializeClickEvents:function(){this.element.on("click",function(e){e.preventDefault();this.getLightboxContent();},this);},prepareLightbox:function(content){var qxHtml=$q.create(content);
if(!qxHtml.getChildren().length&&!!content.length){qxHtml=$q.create("<div />").setHtml(content);}this.content=qxHtml;this.content=this.callback("onContentLoaded",this.content)||this.content;this.content.find("img").forEach(function(image){new Image().src=$q(image).getAttribute("src");});this.content.hasClass("hidden")&&this.content.removeClass("hidden");
this.initializeLightbox();},getContentViaXHR:function(callbacks,options){$q.renderinclude({part:this.properties.part,href:this.properties.href,module:this.properties.module,search:this.properties.search},{success:(callbacks.success||new Function()).bind(this),error:(callbacks.error||new Function()).bind(this)},options);
}}});$q.$attachStatic({"lazyLightbox":function(element){return new UNOUNO.components.lazyLightbox($q(element));}});$q.ready(function(){$q(".lazy-lightbox").forEach(function(element){return $q.lazyLightbox(element);});});
$q.define("UNOUNO.lightbox.lightboxContentSitelock",{statics:{onComplete:function(lightbox,firstCall,instance){if(firstCall){var ctx=$q(lightbox.getContent());var tabs=ctx.find("ul.tabs > li");var tabContents=ctx.find(".tab-content");tabs.on("click",function(e){var target=$q(e.getTarget());var tabId=target.getData("tab");
tabs.removeClass("current");tabContents.removeClass("current");target.addClass("current");tabContents.filter("[id = "+tabId+"]").addClass("current");},this);}}}});$q.define("UNOUNO.lightbox.lightboxContentWebsiteBuilder",{statics:{onComplete:function(lightbox,firstCall,instance){if(firstCall){lightbox.getContent().find(".responsive-layout").forEach(function(container){new UNOUNO.animation.responsiveLayout($q(container),{"classes":["tablet","smartphone","desktop"],"cycletime":3500}).start();
});}}}});$q.define("UNOUNO.lightbox.lightboxFormSubscribe",{statics:{onComplete:function(lightbox,firstCall,instance){$q.placeholder.update();}}});$q.define("UNOUNO.lightbox.lightboxContentContentDeliveryNetwork",{statics:{onComplete:function(lightbox,firstCall,instance){if(firstCall){var ctx=$q(lightbox.getContent());
var tabs=ctx.find("ul.tabs > li");var tabContents=ctx.find(".tab-content");tabs.on("click",function(e){var target=$q(e.getTarget());var tabId=target.getData("tab");tabs.removeClass("current");tabContents.removeClass("current");target.addClass("current");tabContents.filter("[id = "+tabId+"]").addClass("current");
},this);}}}});$q.define("UNOUNO.components.vh215Lightbox",{construct:function(startHours,endHours,showContent,showAfter,excludeDays){this.startHours=startHours;this.endHours=endHours;this.showAfter=showAfter||3000;this.showContent=showContent;this.excludeDays=excludeDays||[0];if(!!$q(showContent).length){this.showLightbox();
}},members:{showAfter:0,startHours:0,endHours:0,showContent:null,excludeDays:null,showLightbox:function(){var now=new Date();var currentHour=now.getHours();var currentDay=now.getDay();if(currentHour>=this.startHours&&currentHour<this.endHours&&this.excludeDays.indexOf(currentDay)==-1){window.setTimeout(function(){var lightBox=new qui.bom.lightbox.LightBox();
lightBox.setWidth(940);lightBox.setHeight(325);lightBox.getBlocker().setBackgroundColor("#4d84bb");lightBox.getBlocker().setOpacity(0.75);lightBox.setContent($q(this.showContent).getHtml());lightBox.show();UNOUNO.tracking.lightboxTracking("tsInbound-layer");$q(".lightbox-close",$q(".lightbox_container")).on("click",function(lightBox){lightBox.close();
}.bind(this,lightBox),this);}.bind(this),this.showAfter);}}}});$q.define("UNOUNO.components.lightboxes",{statics:{init:function(){if(document.getElementById("tvspot-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("tvspot","tvspot-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);
}if(document.getElementById("webappVideo-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("webappVideo","webappVideo-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("custom-layout-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("custom-layout","custom-layout-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("custom-style-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("custom-style","custom-style-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("insert-elements-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("insert-elements","insert-elements-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("image-gallery-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("image-gallery","image-gallery-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("image-edit-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("image-edit","image-edit-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("contact-maps-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("contact-maps","contact-maps-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("diyfilmSEO-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("diyfilmSEO","diyfilmSEO-container",true);
UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("diyfilmSMC-container")){UNOUNO.inline.webappsLightBox=new UNOUNO.global.LightBox("diyfilmSMC","diyfilmSMC-container",true);UNOUNO.inline.webappsLightBox.lightBox.setWidth(940);}if(document.getElementById("branches-container")){UNOUNO.inline.branchesBrowser=new UNOUNO.global.LightBox("lightbox-branches","branches-container",true);
UNOUNO.inline.branchesBrowser.lightBox.setWidth(940);}}}});UNOUNO.components.lightboxes.init();
$q.define("UNOUNO.components.webfontPrice",{construct:function(price,configuration){configuration=configuration||{};this._priceConfiguration=$q.object.merge({},this._defaultConfiguration,this._configuration,configuration);this.setPrice(price);},members:{_defaultConfiguration:{currency:true,replace00With:"",thousandsSeparator:"",decimalSeparator:".",decimalLength:2},_object:undefined,_priceConfiguration:undefined,_price:undefined,setDecimalSeparator:function(decimalSeparator){this._priceConfiguration.decimalSeparator=!!decimalSeparator;
this._parse();return this;},setDecimalLength:function(decimalLength){this._priceConfiguration.decimalLength=decimalLength;this._parse();return this;},setCurrency:function(currency){this._priceConfiguration.currency=currency;this._parse();return this;},setThousandsSeparator:function(thousandsSeparator){this._priceConfiguration.thousandsSeparator=thousandsSeparator;
this._parse();return this;},setReplace00With:function(replace00With){this._priceConfiguration.replace00With=replace00With;this._parse();return this;},setCurrencyBefore:function(currencyBefore){this._priceConfiguration.currencyBefore=currencyBefore;this._parse();return this;},setCurrencyBehind:function(currencyBehind){this._priceConfiguration.currencyBehind=currencyBehind;
this._parse();return this;},setPrice:function(price){this._price=price;this._parse();return this;},getCurrency:function(){return !!this._priceConfiguration.currency;},getConfiguration:function(){return this._priceConfiguration;},getDecimalSeparator:function(){return this._priceConfiguration.decimalSeparator;
},getThousandsSeparator:function(){return this._priceConfiguration.thousandsSeparator;},getDecimalLength:function(){return this._priceConfiguration.decimalLength;},getRawPrice:function(){return Number(this._price).toFixed(Math.max(0,~~this._priceConfiguration.decimalLength));},getReplace00With:function(){return this._priceConfiguration.replace00With||undefined;
},getFormattedPrice:function(){var result=this.getRawPrice();var currencySign=this.getCurrencySign();var decimalSeparator=this.getDecimalSeparator();var thousandsSeparator=this.getThousandsSeparator();var decimalLength=this.getDecimalLength();if(decimalSeparator){result=result.replace(".",decimalSeparator);
}if(thousandsSeparator){result=result.replace(new RegExp("\\d(?=(\\d{3})+"+(decimalLength>0?"\\D":"$")+")","g"),"$&"+thousandsSeparator);}var resultSplitted=result.split(decimalSeparator);if(resultSplitted[1]==="00"){result=resultSplitted[0];if("replace00With" in this._priceConfiguration&&!!this._priceConfiguration.replace00With.length){result+=decimalSeparator+this._priceConfiguration.replace00With;
}}if(this.getCurrency()){if(this.isCurrencyBefore()){result=this.getCurrencySign()+""+result;}else{if(this.isCurrencyBehind()){result=result+" "+this.getCurrencySign();}}}return result;},isCurrencyBefore:function(){return !!this._priceConfiguration.currencyBefore;},isCurrencyBehind:function(){return !!this._priceConfiguration.currencyBehind;
},getCurrencySign:function(){return this._priceConfiguration.currencyBefore||this._priceConfiguration.currencyBehind||undefined;},parse:function(){return this._object;},format:function(){return this.getFormattedPrice();},draw:function(container){container=$q(container);if(container&&!!container.getAncestors(".webfont-price-container").length){if(container.hasClass("price-container")){return this._drawPriceContainer(container);
}else{if(container.hasClass("price-container-inline")){return this._drawInlinePriceContainer(container);}}return false;}return false;},_drawPriceContainer:function(container){var parsedObject=this._object;var priceBeforeSeparatorElement=container.getChildren(".price-before-separator");var priceSeparatorElement=container.getChildren(".price-separator");
var priceBehindSeparatorElement=container.getChildren(".price-behind-separator");var priceBehindTextElement=container.getChildren(".price-text-behind-inline");if(!!priceBeforeSeparatorElement.length){priceBeforeSeparatorElement.setTextContent(parsedObject.beforeDecimalSeparator);if(parsedObject.decimalSeparator&&parsedObject.behindDecimalSeparator){if(!!!priceSeparatorElement.length){priceSeparatorElement=$q.create("<span />").addClass("price-separator").setTextContent(parsedObject.decimalSeparator).insertAfter(priceBeforeSeparatorElement);
}if(!!!priceBehindSeparatorElement.length){priceBehindSeparatorElement=$q.create("<span />").addClass("price-behind-separator").insertAfter(priceSeparatorElement);}if(container.hasClass("price-should-be-supped")&&!priceBehindSeparatorElement.hasClass("price-sup")){priceBehindSeparatorElement.addClass("price-sup");
}if(parsedObject.behindDecimalSeparator==0||isNaN(parsedObject.behindDecimalSeparator)){priceBehindSeparatorElement.addClass("price-zero");}else{if(priceBehindSeparatorElement.hasClass("price-zero")){priceBehindSeparatorElement.removeClass("price-zero");}}var previousBehindSeparatorHtml=$q.create("<span />").append(priceBehindSeparatorElement.getChildren()).getHtml();
if(previousBehindSeparatorHtml){priceBehindSeparatorElement.setHtml(previousBehindSeparatorHtml+parsedObject.behindDecimalSeparator);}else{priceBehindSeparatorElement.setHtml(parsedObject.behindDecimalSeparator);}if(!!priceBehindTextElement.length&&container.hasClass("price-should-be-supped")&&!priceBehindTextElement.hasClass("price-behind-separator-supped")){priceBehindTextElement.addClass("price-behind-separator-supped");
}}else{priceSeparatorElement.remove();priceBehindSeparatorElement.remove();if(!!priceBehindTextElement.length&&priceBehindTextElement.hasClass("price-behind-separator-supped")){priceBehindTextElement.removeClass("price-behind-separator-supped");}}return true;}return false;},_drawInlinePriceContainer:function(container){var parsedObject=this._object;
var priceElement=container.getChildren(".price-text-inline").getChildren(".price-text");if(!!priceElement.length){priceElement.setTextContent(parsedObject.formattedPrice);return true;}return false;},_parse:function(){this._object=new Object();this._object.rawPrice=this.getRawPrice();this._object.formattedPrice=this.getFormattedPrice();
this._object.currencySign=this.getCurrencySign();this._object.decimalSeparator=this.getDecimalSeparator();this._object.thousandsSeparator=this.getThousandsSeparator();var splittedFormattedPrice=this._object.formattedPrice.split(this.getDecimalSeparator());this._object.beforeDecimalSeparator=splittedFormattedPrice[0];
this._object.behindDecimalSeparator=splittedFormattedPrice[1];}}});$q.$attachStatic({"webfontPrice":function(price,configuration){return new UNOUNO.components.webfontPrice(price,configuration);}});


UNOUNO.countdowns=UNOUNO.countdowns||{};UNOUNO.countdowns={toggle:function(className,delay){delay=delay||2500;window.setTimeout(function(){var countdownElement;if(typeof ($q)!=="undefined"){countdownElement=$q(className);}else{countdownElement=qx.bom.Collection.query(className);}if(countdownElement.hasClass("countdown-visible")){countdownElement.removeClass("countdown-visible");
}else{countdownElement.addClass("countdown-visible");}UNOUNO.countdowns.toggle(className,delay);},delay);}};
UNOUNO.init.registerForJSLoad(function(){if(typeof (UNOUNO.util.infoFootnote)=="function"){UNOUNO.inline.footnoteFccKwkHotline=new UNOUNO.util.infoFootnote("footnote-fcckwkhotline","asterisk-fcckwkhotline","left");UNOUNO.inline.footnoteKwk=new UNOUNO.util.infoFootnote("footnote-kwk","asterisk-kwk","left");
UNOUNO.inline.footnoteKwkHosting=new UNOUNO.util.infoFootnote("footnote-kwk-hosting","asterisk-kwk-hosting","left");UNOUNO.inline.footnoteKwkHosting=new UNOUNO.util.infoFootnote("footnote-kwk-hosting","asterisk-kwk-hosting-diy","left");}});
$q.define("UNOUNO.components.local",{statics:{init:function(){UNOUNO.inline.hideLayer=function(e){var expireDate=new Date();$q("#cookieinfo-container").addClass("hide");expireDate=new Date();expireDate.setDate(expireDate.getDate()+30);document.cookie="banner-cookieinfo=1;expires="+expireDate.toUTCString()+";";
};$q("#cookieinfo-close").addListener("click",UNOUNO.inline.hideLayer,this,false);if(document.cookie.indexOf("banner-cookieinfo")===-1){$q("#cookieinfo-container").addClass("show");}}}});UNOUNO.components.local.init();UNOUNO.local={isValidPostcode:function(postcode){var postcodeRegEx=/[A-Z]{1,2}[0-9]{1,2} ?[0-9][A-Z]{2}/i;
return postcodeRegEx.test(postcode);},formatPostcode:function(postcode){if(UNOUNO.local.isValidPostcode(postcode)){var postcodeRegEx=/(^[A-Z]{1,2}[0-9]{1,2})([0-9][A-Z]{2}$)/i;return postcode.replace(postcodeRegEx,"$1 $2");}return postcode;}};


$q.define("UNOUNO.components.webfontPrice",{extend:UNOUNO.components.webfontPrice,construct:function(price,configuration){this.base(arguments,price,configuration);},members:{_configuration:{currencyBefore:"£",decimalSeparator:".",decimalLength:2}}});
qx.Bootstrap.define("UNOUNO.global.Functions",{statics:{getElementsByClassName:function(clsName,element){var retVal=[];var elements;if(element){elements=element.getElementsByTagName("*");}else{elements=document.getElementsByTagName("*");}for(var i=0;i<elements.length;i++){if(elements[i].className.indexOf(" ")>=0){var classes=elements[i].className.split(" ");
for(var j=0;j<classes.length;j++){if(classes[j]==clsName){retVal.push(elements[i]);}}}else{if(elements[i].className==clsName){retVal.push(elements[i]);}}}return retVal;},countdownIntervalDisplay:function(clazz,interval,useVisibility){useVisibility=useVisibility||false;var allCountdownElementsA;var allCountdownElementsB;
if(clazz instanceof Array){allCountdownElementsA=this.getElementsByClassName(clazz[0]);allCountdownElementsB=this.getElementsByClassName(clazz[1]);}else{allCountdownElementsA=this.getElementsByClassName(clazz);}if(allCountdownElementsA){for(var i=0;i<allCountdownElementsA.length;i++){var imgElements=this.getElementsByClassName("day");
if(imgElements.length>0){for(var x=0;x<imgElements.length;x+=1){imgElements[x].style.display="block";}}allCountdownElementsA[i].style.display="block";}}if(allCountdownElementsB){for(var i=0;i<allCountdownElementsB.length;i++){if(useVisibility){allCountdownElementsB[i].style.visibility="hidden";}else{allCountdownElementsB[i].style.display="none";
}}}window.setInterval(function(scope,clazz){return function(){scope.toggleCountdown(allCountdownElementsA,useVisibility);scope.toggleCountdown(allCountdownElementsB,useVisibility);};}(this,clazz),interval);},toggleCountdown:function(countdownElements){if(countdownElements){for(var i=0;i<countdownElements.length;
i++){if(countdownElements[i].style.visibility){if(countdownElements[i].style.visibility!=="visible"){countdownElements[i].style.visibility="visible";}else{countdownElements[i].style.visibility="hidden";}}else{if(countdownElements[i].style.display!=="block"){countdownElements[i].style.display="block";
}else{countdownElements[i].style.display="none";}}}}}}});

UNOUNO.util.infoFootnote=function(footnoteId,linkIDs,alignment,vertical){this.init(footnoteId,linkIDs,alignment,vertical);};UNOUNO.util.infoFootnote.prototype={parent:null,modifyedFootnote:false,initInfoFootnote:function(){if(document.getElementById("container")!==null){this.parent=document.getElementById("container");
}else{this.parent=document.getElementById("container-plain");}if(this.footnote){var i=0,openerLink;if(this.isArray(this.linkIDs)){for(i;i<this.linkIDs.length;i+=1){openerLink=document.getElementById(this.linkIDs[i]);if(openerLink){qx.bom.Element.addListener(openerLink,"click",this.openFootnote,this);
qx.bom.Element.addListener(openerLink,"mouseover",this.setHover,this);qx.bom.Element.addListener(openerLink,"mouseout",this.removeHover,this);}}}else{openerLink=document.getElementById(this.linkIDs);if(openerLink){qx.bom.Element.addListener(openerLink,"click",this.openFootnote,this);qx.bom.Element.addListener(openerLink,"mouseover",this.setHover,this);
qx.bom.Element.addListener(openerLink,"mouseout",this.removeHover,this);}}qx.bom.Element.addListener(this.footnote,"click",this.closeFootnote,this);}},setHover:function(e){qx.bom.element.Class.add(e._currentTarget,"asterisk-hover");},removeHover:function(e){qx.bom.element.Class.remove(e._currentTarget,"asterisk-hover");
},openFootnote:function(e){if(this.footnote){e.preventDefault();this.closeFootnote();if(UNOUNO.global.openFootnote){UNOUNO.global.openFootnote.style.display="none";}UNOUNO.global.openFootnote=this.footnote;this.footnote.style.display="block";this.modifyFootnote(e._currentTarget.id);}},closeFootnote:function(){var i,iframeFixIE6;
this.footnote.style.display="none";if(qx.core.Environment){if(qx.core.Environment.get("engine.version")==="mshtml"&&qx.core.Environment.get("engine.version")==="6.0"){iframeFixIE6=qx.bom.Collection.query(".footnoteInfoIframe")[0];if(iframeFixIE6){qx.dom.Element.remove(iframeFixIE6);}}}},modifyFootnote:function(openerLinkId){if(this.modifyedFootnote===false){if(this.footnote.parentNode!==this.parent){qx.dom.Element.insertBegin(this.footnote,this.parent);
}this.modifyedFootnote=true;}this.footnote.style.position="absolute";var openerLink=document.getElementById(openerLinkId),leftPos=typeof (q)==="object"?$q.create(openerLink).getOffset().left:qx.bom.element.Location.getLeft(openerLink),topPos=typeof (q)==="object"?$q.create(openerLink).getOffset().top:qx.bom.element.Location.getTop(openerLink)-10,width=this.footnote.offsetWidth,height=this.footnote.offsetHeight,idIE6,zIndexIE6,footnoteBoxIFrameIE6,footnoteBoxIFrameIE6Elem;
if(this.alignment==="left"||typeof this.alignment==="undefined"){leftPos=leftPos-width+25;qx.bom.element.Style.set(this.footnote,"left",leftPos+"px");}else{if(this.alignment==="right"){leftPos=leftPos-10;qx.bom.element.Style.set(this.footnote,"left",leftPos+"px");}}if(this.vertical==="down"||typeof this.vertical==="undefined"){qx.bom.element.Style.set(this.footnote,"top",topPos+"px");
}else{if(this.vertical==="up"){topPos=topPos-height+35;qx.bom.element.Style.set(this.footnote,"top",topPos+"px");}}if(qx.core.Environment){if(qx.core.Environment.get("engine.version")==="mshtml"&&qx.core.Environment.get("engine.version")==="6.0"){idIE6=this.footnote.id;zIndexIE6=qx.bom.element.Style.get(this.footnote,"zIndex","COMPUTED_MODE",true)-1;
if(!document.getElementById("iframe."+idIE6)){footnoteBoxIFrameIE6=document.createElement("iframe");footnoteBoxIFrameIE6.setAttribute("id","iframe."+idIE6);footnoteBoxIFrameIE6.setAttribute("src","/modules/frontend-ingrid/img/blank.gif");footnoteBoxIFrameIE6.className="footnoteInfoIframe";qx.dom.Element.insertBefore(footnoteBoxIFrameIE6,this.footnote);
footnoteBoxIFrameIE6Elem=document.getElementById("iframe."+idIE6);qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"opacity",0);qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"position","absolute");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"zIndex",zIndexIE6);qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"left",leftPos+"px");
qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"top",topPos+"px");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"width",width+"px");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"height",height+"px");qx.bom.element.Style.set(footnoteBoxIFrameIE6Elem,"display","block");}}}},isArray:function(linkIDs){return linkIDs&&typeof linkIDs==="object"&&typeof linkIDs.length==="number"&&typeof linkIDs.splice==="function"&&!(linkIDs.propertyIsEnumerable("length"));
},noTabIndex:function(){if(qx.bom.Collection.id(this.linkIDs).hasClass("no-tabindex")===true){qx.bom.Collection.id(this.linkIDs).setAttribute("tabindex","-1");}},init:function(footnoteId,linkIDs,alignment,vertical){this.footnote=document.getElementById(footnoteId);this.linkIDs=linkIDs;this.alignment=alignment;
this.vertical=vertical;this.noTabIndex();this.initInfoFootnote();}};
UNOUNO.util.TariffDynPrice=function(radioboxIDs){this.init(radioboxIDs);};UNOUNO.util.TariffDynPrice.prototype={radioboxIDs:null,qxBom:qx.bom,initRadioboxes:function(){var addListenerCallbackShowPrice=function(scope,radioboxId){return function(e){scope.showPrice(radioboxId);};};for(var i=0;i<this.radioboxIDs.length;
i++){if(this.isArray(this.radioboxIDs[i])){if(document.getElementById(this.radioboxIDs[i])){this.qxBom.Element.addListener(document.getElementById(this.radioboxIDs[i]),"change",addListenerCallbackShowPrice(this,this.radioboxIDs[i]));if(document.getElementById(this.radioboxIDs[i]).checked===true){this.showPrice(this.radioboxIDs[i]);
}else{this.hideColumn(this.radioboxIDs[i]);}}}else{if(document.getElementById(this.radioboxIDs[i])){this.qxBom.Element.addListener(document.getElementById(this.radioboxIDs[i]),"change",addListenerCallbackShowPrice(this,this.radioboxIDs[i]));if(document.getElementById(this.radioboxIDs[i]).checked===true){this.showPrice(this.radioboxIDs[i]);
}}}}},resetElems:function(){for(var i=0;i<this.radioboxIDs.length;i++){this.hidePrice(this.radioboxIDs[i]);}},showPrice:function(id){this.resetElems();var priceId=this.getPriceId(id);var priceElem=document.getElementById(priceId);if(priceId&&priceElem){priceElem.style.display="inline-block";}},hidePrice:function(id){var priceId=this.getPriceId(id);
var priceElem=document.getElementById(priceId);if(priceId&&priceElem){priceElem.style.display="none";}},getPriceId:function(id){if(document.getElementById(id)){var priceId=document.getElementById(id).value.replace(/-bundle/g,"");return priceId;}},isArray:function(param){return param&&typeof param==="object"&&typeof param.length==="number"&&typeof param.splice==="function"&&!(param.propertyIsEnumerable("length"));
},init:function(radioboxIDs){this.radioboxIDs=radioboxIDs;this.initRadioboxes();}};


$q.define("UNOUNO.components.servertable",{statics:{init:function(){if(UNOUNO.params.page==="CloudDynamicServer"){UNOUNO.inline.tariffFeature=new UNOUNO.util.tariffFeature(["server","os","optionalos","configuration","security","database","domains","mail","webdesk","marketing","service","addons"]);}}}});
UNOUNO.components.servertable.init();
$q.define("UNOUNO.pages.CloudDynamicServer",{statics:{decimalSeparator:".",_getPriceDetails:function(price){return{priceBefore:price.split(".")[0],priceAfter:price.split(".")[1],replaceFollowingZeros:false,useSupElement:true,appendDecimalSeparator:true};}}});UNOUNO.components.faqSlider.init();
UNOUNO.params.loadStatus="complete";if(UNOUNO.init.JSLoadStack&&UNOUNO.init.JSLoadStack.length>0){for(UNOUNO.init.processStack=0;UNOUNO.init.processStack<UNOUNO.init.JSLoadStack.length;UNOUNO.init.processStack+=1){UNOUNO.init.JSLoadStack[UNOUNO.init.processStack].call();}}