var __xDKIUtils__IamxDKI=!1,__xDKIUtils__initialized=!1;
try{if(typeof xDKI=="undefined")throw Error("xDKINotDefined");}catch(err){try{____registerNameSpace("xDKI");xDKI.msgBoxV2DEBUG=0;xDKI.DebugToConsoleOnly=!0;xDKI.DebugObjectManager=!1;xDKI.DEBUGxDKILocation=!1;xDKI.useGWTDebug=!1;____registerNameSpace("xDKI.effects");xDKI.effects.MaxFadeTicks=250;xDKI.clearTimeout=100;__xDKIUtils__IamxDKI=!0;try{xDKI.alert=function(h,e,f){function d(d,k){for(;d.length<k;)d="0000000000".substr(0,k-d.length)+d;return d}function k(){var k=new Date,e;try{e=d(k.getHours().toString(),
2)+":"+d(k.getMinutes().toString(),2)+":"+d(k.getSeconds().toString(),2)+"."+d(k.getMilliseconds().toString(),3)}catch(f){e="---"}return e}typeof e=="undefined"&&(e=-1);typeof f!="undefined"&&(h=h+" Error: "+f.description+"  "+f.message+"  "+f);if(xDKI.msgBoxV2DEBUG>=e)try{window.console.log(k()+": "+h)}catch(q){if(!(xDKI.DebugToConsoleOnly&&e>=0))try{window.xDKIDS(h)}catch(p){alert(h)}}}}catch(err$$1){alert("MessageBoxV2 ___setxDKIAlert: "+err$$1)}}catch(e$$8){alert("MB: preInit error "+e$$8)}}____registerNameSpace("xDKI._Top");
____registerNameSpace("xDKI._Utilities");____registerNameSpace("xDKI._Components");____registerNameSpace("xDKI._Objects");____registerNameSpace("xDKI.Callbacks");____registerNameSpace("xDKI.Events");____registerNameSpace("xDKI.Events.Instances");____registerNameSpace("xDKI.Services.Loading");____registerNameSpace("xDKI.Services.Display");____registerNameSpace("xDKI.Services.Session");____registerNameSpace("xDKI.Data.Translation");____registerNameSpace("xDKI.Data.Configurator");____registerNameSpace("xDKI.Services.AddToBasket");
xDKI.Utilities="nil";xDKI.Components="nil";xDKI.Objects="nil";function ____registerNameSpace(h,e){var f=h.split("."),d=window;typeof e!="undefined"&&(d=e);for(var k=0;k<f.length;k++)typeof d[f[k]]=="undefined"&&(d[f[k]]={}),d=d[f[k]]}
xDKI.Services._AddToBasket=function(){function h(d,k,e,p,m,l,h,a,b,c){c||(c="");var g;try{g=["xR","DKI3WebAddToBasket","PartNo",d,"AmountList",k,"xL",e,"xS",p,"ConfiguratorTypeList",c,"Theme",a],b==!0&&(g[g.length]="showAddToBasketDialog",g[g.length]="true")}catch(o){xDKI.alert("Basket.js:AddToBasket reports: ",0,o)}(new f).add(m,l,h,g)}function e(d,k,e,h,m,l,n,a,b,c,g,o,j,t){k=k.replace(/\n/g,"");e=e.replace(/\n/g,"");h=h.replace(/\n/g,"");g||(g="");o||(o="");j||(j="");if(!t){var t="",y;try{y=d.split(";").length}catch(z){y=
1}for(var r=0;r<y;r++)t+="<configurator/>",r<y-1&&(t+=";")}d=j==""?["xR","DKI3WebAddToBasket","showAddToBasketDialog","true","PartNoList",d,"IDCODE1List",k,"IDCODE2List",e,"AmountList",h,"xL",m,"xS",l,"Theme",c,"CheckXStroke",g,"CADInfo",o,"ConfiguratorTypeList",t]:["xR","DKI3WebAddToBasket","showAddToBasketDialog","true","PartNoList",d,"IDCODE1List",k,"IDCODE2List",e,"AmountList",h,"xL",m,"xS",l,"Theme",c,"CheckXStroke",g,"xmlParam",j,"ConfiguratorTypeList",t];(new f).add(n,a,b,d)}function f(){function d(d){d._RemoveAddToBasketIF=
function(d){try{var e=xDKI.Utilities.getObject(d);if(typeof e!="undefined")try{e.close()}catch(k){}}catch(f){xDKI.alert("MB: _AddToBasket: ",0,f)}try{var h=xDKI.Utilities.getObject("atbMG"+d);if(typeof h!="undefined")try{h.close()}catch(a){}}catch(b){xDKI.alert("MB: _AddToBasket: ",0,b)}try{xDKI.Utilities.adjustHeightInPortal()}catch(c){xDKI.alert("MB: _AddToBasket: ",0,c)}};d._updateBasketCounter=function(d){try{xDKI.Utilities.updateBasketCounter(d)}catch(e){}};d._internalResize=function(e,f,h){d.resize(f,
h,e);var l=xDKI.Utilities.sameWindowgetElementById("AddToBasketIFrame");l.style.width=f-5+"px";l.style.height=h-5+"px";d._positionInScreen(e,!0);d.position()}}return{add:function(e,f,h,m){try{var l=xDKI.Components.basicBox("",null,null,null,null,!0);l.isModal=!0;l._setZIndexHi(l.Id);d(l);xDKI.Components.modalGray("atbMG"+l.Id).fadeIn();l.DivContent(l.Id).innerHTML='<table class="festoreset" style="width:100%; height:100%"><tr class="festoreset"><td id="AddToBasketDiv" class="festoreset" style="border: 0px none black"><IFRAME id="AddToBasketIFrame" class="festoreset" onload="try { FindElementById(\'WaitIFrame\').style.display=\'none\'; xDKI.Utilities.setOpacity(document.getElementById(\'AddToBasketIFrame\'),0);} catch (e){}" src="'+
xDKI.Utilities.getxDKIBaseURL()+'emptywdiv.html" name="AddToBasketIFrame" FRAMEBORDER=0 style="padding:0px;width:100%;height:100%;display:none;"></IFRAME></td></tr></table>';l.addElements(l.Id);m.push("MsgBoxId");m.push(l.Id);m.push("DKIBASEURL");m.push(xDKI.Utilities.getxDKIBaseURL());try{callServiceWithWaitMessage("AddToBasketDiv","AddToBasketIFrame",m,305,0,h,"285","140",!0,xDKI.Utilities.getxDKILocation())}catch(n){xDKI.alert("AddToBasket: callServiceWithWaitMessage: ",0,n)}l.resize();l._positionInScreen(l.Id,
!0);l.position();l.unhide(l.Id)}catch(a){xDKI.alert("MB: _addToBasket._add: ",0,a)}try{xDKI.Utilities.adjustHeightInPortal()}catch(b){}},updateBasketCounter:function(d){xDKI.Utilities.updateBasketCounter(d)}}}return{partNo:function(d,e,f,p,m,l,n,a,b){var c="",g;try{g=PartNoList.split(";").length}catch(o){g=1}for(var j=0;j<g;j++)j<g-1&&(c+=";");h(d,c,e,f,p,m,l,n,a,b)},partNoAmmount:function(d,e,f,p,m,l,n,a,b,c){return h(d,e,f,p,m,l,n,a,b,c)},idCodeList:function(d,k,f,h,m,l,n,a,b,c,g,o,j){var t="",
k=k.replace(/\n/g,""),f=f.replace(/\n/g,"");c||(c="");g||(g="");o||(o="");var y;try{y=d.split(";").length}catch(z){y=1}for(var r=0;r<y;r++)r<y-1&&(t+=";");e(d,k,f,t,h,m,l,n,a,b,c,g,o,j,!0)},idCodeAmmountList:function(d,k,f,h,m,l,n,a,b,c,g,o,j,t){return e(d,k,f,h,m,l,n,a,b,c,g,o,j,t)},custNo:function(d,e,h,p,m,l,n,a,b){b||(b="");try{d=["xR","DKI3WebAddToBasket","CustNo",d,"xL",e,"xS",h,"ConfiguratorTypeList",b,"Theme",n],a==!0&&(d[d.length]="showAddToBasketDialog",d[d.length]="true"),xDKI.useGWTDebug&&
(d[d.length]="gwt.codesvr",d[d.length]="127.0.0.1:9997")}catch(c){xDKI.alert("Basket.js:AddCustNoToBasket reports: ",0,c)}(new f).add(p,m,l,d)}}};
xDKI.Services.Loading.callServiceFormAvailable=function(h,e,f,d){var k,q=[],p=[];try{k=f.split(",")}catch(m){k=f}for(var l,f=l=0;f<k.length;f++)f%2==0&&(q[l]=k[f]),f%2==1&&(p[l]=k[f],l++);k=q.length;try{for(f=0;f<k;f++)try{var n=q[f].replace(/\"/g,"&quot;"),a=p[f].replace(/\"/g,"&quot;");h.insertAdjacentHTML("beforeEnd",'<input name="'+n+'" value="'+a+'" type="hidden"/>')}catch(b){var c=d.createElement("INPUT");c.type="hidden";c.name=q[f];c.value=p[f];try{h.appendChild(c)}catch(g){}}}catch(o){xDKI.alert("callServiceFormAvailable Error: ",
2,o)}h.method="post";h.target=e;try{h.setAttribute("target",e)}catch(j){}h.action="xDKI.asp";tehForm=h;window.setTimeout(function(){tehForm.submit()},0)};
xDKI.Services.Loading.callService=function(h,e,f,d){d||(d="");var k=[],q=[],f=isArray(f)?f:f.split(","),p;for(i=p=0;i<f.length;i++)i%2==0&&(k[p]=f[i]),i%2==1&&(q[p]=f[i],p++);f=document.createElement("FORM");try{h.appendChild(f)}catch(m){document.getElementById(h)?document.getElementById(h).appendChild(f):document.body.appendChild(f)}p=k.length;for(i=0;i<p;i++){var l=document.createElement("INPUT");l.type="hidden";l.name=k[i];l.value=q[i];f.appendChild(l)}f.method="post";try{f.setAttribute("target",
e)}catch(n){}f.action=d.indexOf("xdki.asp")<=0?d+"xDKI.asp":d;f.submit();try{!document.getElementsByName(e).item(0)&&document.getElementById(e),newWindow=window.open("",e),newWindow.focus(),document.getElementById(h)?document.getElementById(h).removeChild(f):document.body.removeChild(f)}catch(a){}};xDKI.Services.Display.execFullScreenNoSessionId=function(h,e,f,d,k,q,p){e=xDKI.Utilities.getUserPW(e,f);axS=xDKI.Utilities.getSessionId(e[0],e[1]);xDKI.Services.Display.execFullScreen(h,axS,f,d,k,q,p)};
xDKI.Services.Display.execFullScreenNoResize=function(h,e,f,d,k,q,p){return xDKI.Services.Display.execFullScreen(h,e,f,d,k,q,p,!0)};
xDKI.Services.Display.execFullScreen=function(h,e,f,d,k,q,p,m,l){typeof m=="undefined"&&(m=!1);typeof k=="undefined"&&(k="~Close~*~~Ja~*~~Nein~*~~CancelProcess~*~~ReallyCancelProcess",q="~*~");aCSReg=q.replace(/\*/g,"\\*");aCSReg=aCSReg.replace(/\+/g,"\\+");if(k.replace(RegExp("("+aCSReg+")","g"),"").indexOf("~")<0){k=k.split(q);e==""&&(e=xDKI.Utilities.getSessionId());typeof p=="undefined"&&(p=360);for(q=0;q<=h.length-2;q+=2)if(h[q]=="xS"&&h[q+1]==""){h[q+1]=e;break}e=xDKI.Components.fullScreenOverlay(e,
f,xDKI.Utilities.sameWindow(),k[0],k[1],k[2],k[3],k[4],h,d,p);if(!m)e.adjustSizeCallback=function(a,b){b(a,"c")};if(m)e.adjustSizeCallback=function(a,b){b(a,"xlength")};try{window.external.xDKICallDLL!=null?(e.onClose=function(){window.external.xDKICamosEnable(1);l!=null&&l()},window.external.xDKICamosEnable(0)):e.onClose=l}catch(n){e.onClose=l}e.show();return e.Id}else var a=e,b=p,c=m,g=q,k=xDKI.Data.Translation.getProgStrings(function(o){xDKI.Services.Display.execFullScreen(h,a,f,d,o,g,b,c,l)},
k,q,e,d)};
xDKI.Services.Display.execCamosLink=function(h,e,f,d,k,q,p,m,l){var n={};e==""&&(e=xDKI.Utilities.getSessionId());typeof m=="undefined"?n=xDKI.Data.Configurator.getIsComplexConfig(h,e,q):typeof m.KNB=="undefined"?(m=xDKI.Data.Configurator.getIsComplexConfig(h,e,q),n+=m):n=m;if(typeof n.ID1=="undefined")n.ID1="";if(typeof n.ID2=="undefined")n.ID2="";if(typeof l!="undefined")n.ID1=l;if(n.HasCFP!=""&&(n.GUI=="c"||k==!0)){if(typeof n.PartNo=="undefined")n.PartNo="";h=xDKI.Components.fullScreenOverlay(e,f,
window,n.Close,n.Yes,n.No,n.Cancel,n.ReallyCancel,["xR","DKI3WebFaceV1","xS",e,"xL",f,"KNB",n.KNB,"SC",n.SC,"CFPPN",n.PN,"CFPPV",n.PV,"CFPPT",n.PT,"NodeId",h,"PartNo",n.PartNo,"PartType",n.ID1,"IDCODE2",n.ID2,"FullScreenId","~~FullScreenId~~","CFPWidth","~~Width~~","CFPHeight","~~Height~~"],q,p);try{h.onClose=window.external.xDKICallDLL!=null?function(){window.external.xDKICamosEnded();try{xDKI.Utilities.getObject("waitBox").close("waitBox")}catch(a){}}:function(){try{xDKI.Utilities.getObject("waitBox").close("waitBox")}catch(a){}}}catch(a){h.onClose=
function(){try{xDKI.Utilities.getObject("waitBox").close("waitBox")}catch(a){}}}var b=n.GUI;h.adjustSizeCallback=function(a,g){g(a,b)};h.show()}else d(n.GUI,n.Generic,n.KNB,n.SC,n.PN,n.PV,n.PT,n.ID1,n.ID2);delete n;n=""};
xDKI.Services.Display.execCamosFavorites=function(h,e,f,d,k,q,p,m){e==""&&(e=xDKI.Utilities.getSessionId());var l={};e==""&&(e=xDKI.Utilities.getSessionId());l=typeof m=="undefined"?xDKI.Data.Configurator.getIsComplexConfig(h,e,q):m;if(l.HasCFP!=""&&(l.GUI=="c"||k==!0)){var h=xDKI.Components.fullScreenOverlay(e,f,window,l.Close,l.Yes,l.No,l.Cancel,l.ReallyCancel,["xR","DKI3WebFaceV1","xS",e,"xL",f,"KNB",l.KNB,"SC",l.SC,"NodeId",h,"FaceStartupTab","FAVO","FullScreenId","~~FullScreenId~~","CFPWidth",
"~~Width~~","CFPHeight","~~Height~~"],q,p),n=l.GUI;h.adjustSizeCallback=function(a,b){b(a,n)};h.show()}else d(l.GUI,l.Generic,l.KNB,l.SC,l.PN,l.PV,l.PT,l.ID1,l.ID2);delete l;l=""};
xDKI.Services.Session.RequestSessionId=function(h,e){var f=xDKI.Utilities.getXmlHttp();if(f)try{f.open("GET",xDKI.Utilities.getxDKIBaseURL()+"xdki.asp?xR=DKI3DatPortInfoV1&xU="+h+"&xP="+e,!1);f.send(null);var d=null;for(i=0;i<f.responseXML.childNodes[0].childNodes.length;i++)if(f.responseXML.childNodes[0].childNodes[i].localName=="SessionID"){d=f.responseXML.childNodes[0].childNodes[3].attributes[0].nodeValue;break}return d}catch(k){alert(k.message)}};
xDKI.Data.Translation.getProgStrings=function(h,e,f,d,k){d==""&&(d=xDKI.Utilities.getSessionId());typeof k=="undefined"&&(k=xDKI.Utilities.getxDKIBaseURL());xDKI.Callbacks.getProgStringsCallback=function(d){try{h(d),document.body.removeChild(q)}catch(e){xDKI.alert("Error in xDKI.Callbacks.getProgStringsCallback(): ",2,e)}};try{var q=xDKI.Utilities.getDocument().createElement("iframe")}catch(p){}q.style.display="none";q.src=k+"xdki.asp?xR=DKI3WebTranslatorV1&xS="+d+"&TranslateTheme=PROGRAM&TranslateKey="+
e+"&TranslateSeparator="+f;xDKI.Utilities.getDocument().body.appendChild(q)};
xDKI.Data.Configurator.getIsComplexConfig=function(h,e,f){typeof f=="undefined"&&(f=xDKI.Utilities.getxDKIBaseURL());var d={HasCFP:"",Generic:"",KNB:"",SC:"",GUI:"",PN:"",PV:"",PT:"",Close:"~Close",Cancel:"~CancelConfView",ReallyCancel:"~ReallyCancelConfView",Yes:"~Yes",No:"~No"},k=xDKI.Utilities.getXmlHttp();if(k){try{k.open("GET",f+"xdki.asp?xR=DKI3DatCamosV1&xS="+e+"&NodeId="+h,!1),k.send(null)}catch(q){xDKI.alert("Error in xDKI.Data.Configurator.getIsComplexConfig ",2,q)}try{try{if(m=k.responseXML.documentElement.getElementsByTagName("HasCFP"),
m[0].firstChild!=null){if(typeof m[0].firstChild.nodeValue!="undefined")d.HasCFP="X"}else d.HasCFP=""}catch(p){xDKI.alert("Error in getIsComplexConfig (response 1) ",2,p)}if(d.HasCFP!=""){try{var m=k.responseXML.getElementsByTagName("KNB")}catch(l){return document.open(),document.write(k.responseText),document.close(),d[0]=-1,d}try{d.KNB=m[0].firstChild.nodeValue}catch(n){}try{m=k.responseXML.documentElement.getElementsByTagName("SC"),d.SC=m[0].firstChild.nodeValue}catch(a){xDKI.alert("Error in getIsComplexConfig (response SC) ",
2,a)}try{m=k.responseXML.documentElement.getElementsByTagName("UIStyle"),d.GUI=m[0].firstChild.nodeValue}catch(b){xDKI.alert("Error in getIsComplexConfig (response UI) ",2,b)}try{m=k.responseXML.documentElement.getElementsByTagName("Generic"),d.Generic=m[0].firstChild.nodeValue}catch(c){d.Generic=""}try{var m=k.responseXML.documentElement.getElementsByTagName("CFPPN"),m=m[0].getElementsByTagName("p"),g,o,j;j=o=g="";for(var t=0;t<m.length;t++)g!=""&&(g+=";"),o!=""&&(o+=";"),j!=""&&(j+=";"),j!=""&&
(j+=";"),g+=m[t].getElementsByTagName("n")[0].firstChild.nodeValue,o+=m[t].getElementsByTagName("v")[0].firstChild.nodeValue,j+=m[t].getElementsByTagName("t")[0].firstChild.nodeValue;d.PN=g;d.PV=o;d.PT=j}catch(y){xDKI.alert("Error in getIsComplexConfig (responses (4,5,6)) ",2,y)}}try{m=k.responseXML.getElementsByTagName("String");for(t=0;t<m.length;t++)switch(m[t].attributes.getNamedItem("Name").value){case "~Close":d.Close=m[t].attributes.getNamedItem("Value").value;break;case "~Ja":d.Yes=m[t].attributes.getNamedItem("Value").value;
break;case "~Nein":d.No=m[t].attributes.getNamedItem("Value").value;break;case "~CancelConfView":d.Cancel=m[t].attributes.getNamedItem("Value").value;break;case "~ReallyCancelConfView":d.ReallyCancel=m[t].attributes.getNamedItem("Value").value}}catch(z){xDKI.alert("Error in getIsComplexConfig (locale) ",2,z)}}catch(r){xDKI.alert("Error in getIsComplexConfig (processing answer) ",2,r)}}else xDKI.alert("Could not create ajax object!",1);return d};
xDKI._Components=function(){function h(a,b,c){function g(a){var j=0;try{for(j=0;j<a.childNodes.length;j++){try{if(a.childNodes[j].id=="roundedinputStyled")if(c){if(b=="blue")a.childNodes[j].type=="button"?(a.childNodes[j].disabled=!1,a.childNodes[j].className="rounded_button_blue"):a.childNodes[j].className="bg_caerul";if(b=="white")a.childNodes[j].type=="button"?(a.childNodes[j].disabled=!1,a.childNodes[j].className="rounded_button_white"):a.childNodes[j].className="bg_aterul15"}else{if(b=="blue")a.childNodes[j].type==
"button"?(a.childNodes[j].disabled=!0,a.childNodes[j].className="rounded_button_blue_inactive"):a.childNodes[j].className="bg_inactive";if(b=="white")a.childNodes[j].type=="button"?(a.childNodes[j].disabled=!0,a.childNodes[j].className="rounded_button_white_inactive"):a.childNodes[j].className="bg_inactive"}}catch(d){xDKI.alert("MsgBox: _buttonActive() catched ",2,d)}g(a.childNodes[j])}}catch(e){}}a=document.getElementById(a);g(a)}function e(a){a.className="festoreset";a.style.margin="0px";a.style.padding=
"0px";a.style.border="0px none black";a.style.lineHeight="1";a.style.borderCollapse="separate";a.style.borderSpacing="0"}function f(a,b,c,g,o,j,d,e,f,r,u){this.movable=!0;this.xPos=b;this.yPos=c;this.AutoWidth=xDKI.Utilities.isEmptyOrNullDefault(g,-1);this.AutoHeight=xDKI.Utilities.isEmptyOrNullDefault(o,-1);this.Width=xDKI.Utilities.isNullDefault(g,300);this.Height=xDKI.Utilities.isNullDefault(o,-1);this.Id=xDKI.Utilities.isNullDefaultString(e,xDKI.Utilities.generateGuid());this.createEventsCallback=
function(){};this.deleteEventsCallback=function(){};this.OriginWindow=self;this.Body=xDKI.Utilities.getBody(a,xDKI.Utilities.sameWindow().document.body);this.Document=xDKI.Utilities.isNullDefault(f,xDKI.Utilities.sameWindow().document);this.isModal=!1;this.SaveMouseY=this.SaveMouseX=null;this.Style=d;this.hidden=this.MoveEventAdded=!1;a=xDKI.Utilities.getBrowserSize(xDKI.Utilities.sameWindow());this.winWidth=a[0];this.winHeight=a[1];this.AddElementsLater=xDKI.Utilities.isNullDefault(j,!1);this.maxFadeTicks=
xDKI.effects.MaxFadeTicks;this.zIndexHigh=xDKI.Utilities.isNullDefault(r,999);this.zIndexLow=xDKI.Utilities.isNullDefault(u,899);var v=this.Id;this._mouseDownEvent=function(a){try{return xDKI.Utilities.getObject(v).__mouseDownEvent(a,v)}catch(b){return xDKI.alert("basicBoxV2 _mouseDownEvent: ",2,b),!0}};this._mouseUpEvent=function(a){try{return xDKI.Utilities.getObject(v).__mouseUpEvent(a,v)}catch(b){return xDKI.alert("basicBoxV2 _mouseUpEvent: ",2,b),!0}};this._mouseMoveEvent=function(a){try{return xDKI.Utilities.getObject(v).__mouseMoveEvent(a,
v)}catch(b){return xDKI.alert("basicBoxV2 _mouseMoveEvent: ",2,b),!0}};this.onRepositionCallback=function(){};this.onFadedOut=function(){};this._onFadedOut=function(){};this.onClose=function(){};this.maxOpacity=80;xDKI.Utilities.registerObject(this.Id,this);this._createBox()}function d(a,b,c,g,o,j,d,e,f,r,u,v,k){this.modalGray=null;this.Message=a;this.Caption=b;this.Btn1Txt=c;this.Btn1Fkt=xDKI.Utilities.isNullDefault(g,null);this.Btn2Txt=o;this.Btn2Fkt=xDKI.Utilities.isNullDefault(j,null);this.OriginWindow=
self;this.Body=xDKI.Utilities.getBody(d,xDKI.Utilities.sameWindow().document.body);this.Width=xDKI.Utilities.isNullDefault(u,300);this.AutoWidth=this.Width<=10;if(this.Width<0)this.Width=0;var h=this.Width,l=this.Body;this.basicBox=xDKI.Utilities.giveMeA(function(){return xDKI.Components.basicBox(l,f,r,h,"",!0).Id});this.Id=m+this.basicBox;this.isModal=xDKI.Utilities.isNullDefault(e,!0);this.xPos=f;this.yPos=r;this.AutoPos=xDKI.Utilities.isEmptyOrNullDefault(f,-1);this.Width=xDKI.Utilities.isNullDefault(u,
10);this.NoFocus=xDKI.Utilities.isNullDefault(v,!1);var p=this.Id;this.MouseOnButtonDown=0;this.mouseDownEvent=function(a){try{return xDKI.Utilities.getObject(p)._mouseDown(a,p)}catch(b){return!0}};this.mouseUpEvent=function(a){try{return xDKI.Utilities.getObject(p)._mouseUp(a,p)}catch(b){return!0}};this.onMBFadedIn=function(){};this.onMBFadedOut=function(){};this.onClose=function(){};this.isDrawn=!1;this.dontShow=xDKI.Utilities.isNullDefault(k,!1);xDKI.Utilities.registerObject(this.Id,this);this._createContent();
var n=this.Id;window.setTimeout(function(){try{xDKI.Utilities.getObject(n)._generateBox(n)}catch(a){xDKI.alert("messageBox() _generateBox timeout error: ",2,a)}},10)}function k(a,b,c,g){this.zIndex=xDKI.Utilities.isNullDefault(c,900);this.Id=xDKI.Utilities.isNullDefaultString(a,xDKI.Utilities.generateGuid());this.Body=xDKI.Utilities.getBody(b,xDKI.Utilities.sameWindow().document.body);this.onMBFadedIn=function(){};this.onMBFadedOut=function(){};this.onClose=function(){};this.startTicks="nil";this.maxFadeTicks=
xDKI.effects.MaxFadeTicks;try{this.scrollEvent=function(a,b){try{xDKI.Utilities.getObject(b)._repositionBackgrounds(b)}catch(c){xDKI.alert("mG: scroll event: ",2,c)}return!0}}catch(o){xDKI.alert("new modalGrayV2: register scroll event: ",2,o)}this._register();g!=!0&&this.show()}function q(a,b,c,g,o,j,d,e,f,r,u,v,k){this.Id=l+xDKI.Utilities.isNullDefaultString(v,xDKI.Utilities.generateGuid());this.Body=xDKI.Utilities.getBody(k,xDKI.Utilities.sameWindow().document.body);this.zIndex=xDKI.Utilities.isNullDefault(u,
300);var h=this.Id,m=this.zIndex,p=this.Body;this.modalGray=xDKI.Utilities.giveMeA(function(){return xDKI.Components.modalGray(xDKI.Components.modalGrayPrefix()+"_"+h,p,m-5,!0).Id});this.txtClose=g;this.txtYes=o;this.txtNo=j;this.txtCloseConfig=d;this.txtReallyCloseConfig=e;this.axS=a;this.axL=b;this.ServiceOptions=f.slice();this.windowElement=xDKI.Utilities.isNullDefault(c,window);this.closeQuestion=null;this.closing=!1;this.destHeight=this.destWidth=this.height=this.width=0;this.clientWidth=xDKI.Utilities.getBrowserSize()[0];
this.xDKIBase=xDKI.Utilities.isNullDefaultString(r,xDKI.Utilities.getxDKIBaseURL());this.onClose=function(){};this.adjustSizeCallback="nil";this.maxTicks=-1;this._askForClose=!0;this.GUIStyle="c";this.resizeTimeout="";this.DKIBASEURLset=this.DKIURLset=!1;this._register();try{this.resizeEvent=function(a,b){try{xDKI.Utilities.getObject(b)._internalOnResize(b)}catch(c){xDKI.alert("FSO: resize event: ",2,c)}return!0}}catch(n){xDKI.alert("new modalGrayV2: register scroll event: ",2,n)}this.closing=this.inOnResize=
!1;this._createEvents(this.Id)}function p(a,b){this.Id=n+xDKI.Utilities.isNullDefaultString(b,xDKI.Utilities.generateGuid());this.CallerId=a;this.ObjectList=[];this.maxTicks=xDKI.effects.MaxFadeTicks;this.maxOpacityIn=100;this.maxOpacityOut=0;this.onFadedOut=function(a){xDKI.Utilities.getObject(a).close(a)};this.onFadedIn=function(a){xDKI.Utilities.getObject(a).close(a)};xDKI.Utilities.registerObject(this.Id,this)}var m="msgBoxV2",l="camosFSV2",n="fadeObjectV2";f.prototype={free:function(a){var a=
typeof a=="undefined"?this:xDKI.Utilities.getObject(a),b=xDKI.Utilities.sameWindowgetElementById("IF"+a.Id);a.Body.removeChild(b);try{var c=xDKI.Utilities.sameWindowgetElementById("dummyinput"+a.Id);c.parent.removeChild(c)}catch(g){}c=xDKI.Utilities.sameWindowgetElementById(a.Id);a.Body.removeChild(c)},close:function(a){var b;b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b.onFadedOut=function(a){(typeof a=="undefined"?this:xDKI.Utilities.getObject(a))._close(a)};b.hidden==!1?b.fadeOut(a):
b._close(a)},_close:function(a){var b;b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b.hide(a);b._deleteEvents();var c=xDKI.Utilities.sameWindowgetElementById("SizeTR"+b.Id),g=xDKI.Utilities.sameWindowgetElementById("SizeTDL"+b.Id);try{g.removeChild(xDKI.Utilities.sameWindowgetElementById("DivContent"+b.Id))}catch(o){}var j=xDKI.Utilities.sameWindowgetElementById("SizeTDR"+b.Id);try{j.removeChild(xDKI.Utilities.sameWindowgetElementById("DivRight"+b.Id))}catch(d){}try{c.removeChild(g)}catch(e){}g=
null;try{c.removeChild(j)}catch(f){}g=xDKI.Utilities.sameWindowgetElementById("SizeTBody"+b.Id);try{g.removeChild(c)}catch(r){}c=null;c=xDKI.Utilities.sameWindowgetElementById("SizeTable"+b.Id);try{c.removeChild(g)}catch(u){}g=null;a=xDKI.Utilities.sameWindowgetElementById(b.Id);try{a.removeChild(c)}catch(v){}c=null;c=xDKI.Utilities.sameWindowgetElementById("DivBottom"+b.Id);try{a.removeChild(c)}catch(k){}j=g=c=g=c=DivContent=c=DivRight=c=null;c=xDKI.Utilities.sameWindowgetElementById("IF"+b.Id);
try{c.src="javascript:false"}catch(h){}try{var l=xDKI.Utilities.sameWindow().document.createElement("input");l.id="dummyinput"+b.Id;l.type="text";a.appendChild(l);l.focus();l.blur()}catch(m){}var a=c=l=null,p=b.Id;try{b.onClose(Id)}catch(n){}window.setTimeout(function(){xDKI.Utilities.unregisterObject(p)},xDKI.clearTimeout)},DivContent:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);return xDKI.Utilities.sameWindowgetElementById("DivContent"+a.Id)},Div:function(a){a=typeof a==
"undefined"?this:xDKI.Utilities.getObject(a);return xDKI.Utilities.sameWindowgetElementById(a.Id)},hide:function(a,b,c){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b=b?b:xDKI.Utilities.sameWindowgetElementById(a.Id);c=c?c:xDKI.Utilities.sameWindowgetElementById("IF"+a.Id);b.style.display="none";c.style.display="none";a.hidden=!0},unhide:function(a,b,c){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b=typeof b!="undefined"?b:xDKI.Utilities.sameWindowgetElementById(a.Id);c=typeof c!=
"undefined"?c:xDKI.Utilities.sameWindowgetElementById("IF"+a.Id);b.style.display="";c.style.display="";a.hidden=!1},fadeIn:function(a,b,c,g){var o;typeof a=="undefined"?(o=this,a=o.Id):o=xDKI.Utilities.getObject(a);typeof b=="undefined"?b=o.maxOpacity:o.maxOpacity=b;typeof c=="undefined"&&(c=xDKI.Utilities.sameWindowgetElementById(o.Id));o.setOpacity(a,0);o.unhide(o.Id,c,g);xDKI.Utilities.setTransition(c,"opacity",o.maxFadeTicks,"ease");xDKI.Utilities.setOpacity(c,b)},fadeOut:function(a,b){var c;
typeof a=="undefined"?(c=this,a=c.Id):c=xDKI.Utilities.getObject(a);typeof b=="undefined"&&(b=0);var g=c.maxFadeTicks,o=xDKI.Utilities.sameWindowgetElementById(c.Id);xDKI.Utilities.setTransition(o,"opacity",g,"ease");xDKI.Utilities.isTransitionSet(o)||(g=0);xDKI.Utilities.setOpacity(o,b);o=null;xDKI.Utilities.sameWindow().setTimeout(function(){c.hide(c.Id);c._onFadedOut(c.Id);c.onFadedOut(c.Id)},g)},setOpacity:function(a,b){var c=null,c=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),c=xDKI.Utilities.sameWindowgetElementById(c.Id);
xDKI.Utilities.setOpacity(c,b)},immobilize:function(a){var b=null;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);var c=a;try{for(var g=xDKI.Utilities.sameWindowgetElementById("DivContent"+b.Id).getElementsByTagName("input"),a=0;a<g.length;a++)try{if(g[a].type=="text")g[a].onmousedown=function(){var a=xDKI.Utilities.getObject(c);a.movable=!1;a.startSelect()}}catch(o){}}catch(j){}},immobilizeAllContent:function(a){var b=null;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);
var c=a;try{xDKI.Utilities.sameWindowgetElementById("DivContent"+b.Id).onmousedown=function(){var a=xDKI.Utilities.getObject(c);a.movable=!1;a.startSelect()}}catch(g){}},addElements:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b.AddElementsLater=!1},position:function(a,b,c){_this=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);_this.xPos=xDKI.Utilities.isNullDefault(b,_this.xPos);_this.yPos=xDKI.Utilities.isNullDefault(c,_this.yPos);(typeof _this.xPos=="undefined"||
_this.xPos=="")&&_this._positionInScreen(_this.Id)&&_this.position(a,_this.xPos,_this.yPos);_this._getPosition(!1);a=xDKI.Utilities.sameWindowgetElementById(_this.Id);a.style.left=xDKI.Utilities.deletePx(_this.xPos)+"px";a.style.top=xDKI.Utilities.deletePx(_this.yPos)+"px";a=xDKI.Utilities.sameWindowgetElementById("IF"+_this.Id);a.style.left=xDKI.Utilities.deletePx(_this.xPos)+"px";a.style.top=xDKI.Utilities.deletePx(_this.yPos)+"px";if(_this.hidden==!1)xDKI.Utilities.sameWindowgetElementById("DivContent"+
_this.Id).style.display=""},resize:function(a,b,c){var g;typeof c=="undefined"?(g=this,c=this.Id):g=xDKI.Utilities.getObject(c);g._onResize(a,b,c)},displayPos:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.alert("l:"+a.xPos+"   t:"+a.yPos+"   w:"+a.Width+"    h:"+a.Height)},stopSelect:function(a,b,c){var g;typeof a=="undefined"?(g=this,a=this.Id):g=xDKI.Utilities.getObject(a);a=b?b:xDKI.Utilities.sameWindowgetElementById(g.Id);a.onselectstart=function(){return!1};a.ondragstart=
function(){return!1};xDKI.Utilities.noSelect(a);c=c?c:xDKI.Utilities.sameWindowgetElementById("IF"+g.Id);xDKI.Utilities.noSelect(c);c=a=null},startSelect:function(a,b){var c;typeof a=="undefined"?(c=this,a=this.Id):c=xDKI.Utilities.getObject(a);var g;g=b?b:xDKI.Utilities.sameWindowgetElementById(c.Id);g.onselectstart=function(){return!0};g.ondragstart=function(){return!0};xDKI.Utilities.canSelect(g);xDKI.Utilities.canSelect(xDKI.Utilities.sameWindowgetElementById("IF"+c.Id));g=null},prepareForNewContent:function(a){a=
typeof a=="undefined"?this:xDKI.Utilities.getObject(a);a.Width="";a.Height="";var b=xDKI.Utilities.sameWindowgetElementById(a.Id);b.style.width="10%";b.style.height="";a=xDKI.Utilities.sameWindowgetElementById("DivContent"+a.Id);a.innerHTML="";a.style.width="";a.style.height=""},manuallyResize:function(a){var b=xDKI.Utilities.sameWindowgetElementById("SizeTable"+_this.Id);b.style.height="100%";b.style.width="100%";b.style.width=xDKI.Utilities.deletePx(a)+"px";b=xDKI.Utilities.sameWindowgetElementById("DivContent"+
_this.Id);b.style.height="100%";b.style.width="";b=xDKI.Utilities.sameWindowgetElementById(_this.Id);b.style.height="";b.style.width=xDKI.Utilities.deletePx(a)+"px";this.Width=this.Height=""},getScrollHeight:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);a=xDKI.Utilities.sameWindowgetElementById("DivContent"+a.Id);return xDKI.Utilities.deletePx(a.scrollHeight)},getScrollWidth:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);a=xDKI.Utilities.sameWindowgetElementById("DivContent"+
a.Id);return xDKI.Utilities.deletePx(a.scrollScrollWidth)},_createBox:function(a){var b;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);b._createBackIFrame(a);b._createDiv(a);b._createSizeDivs(void 0,a);b.stopSelect(a);b._createEvents(a);b.hide(a);b.AddElementsLater||(b.addElements(a),b._onResize(void 0,void 0,a),b.position(a))},_createBackIFrame:function(a){var a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),b=a.Document.createElement("iframe");e(b);b.className="messageBoxIFrame";
with(b.style)position="absolute",margin=padding="0px",zIndex=a.zIndexLow-2,backgroundColor="transparent",border="#000000 none 0px",filter="alpha(opacity=0)",opacity=".0",top=left="0px",display="none";try{a.Body.appendChild(b)}catch(c){}b.frameBorder="100";b.id="IF"+a.Id;b.src=xDKI.Utilities.getxDKIBaseURL()+"empty.html"},_createDiv:function(a){var a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),b=a.Document.createElement("div");e(b);b.id=a.Id;if(a.Style)b.className=a.Style,b.style.position=
"absolute",b.style.padding="0px",b.style.margin="0px",b.style.width=a.Width,b.style.filter="alpha(opacity=100)",b.style.opacity="1",b.style.top="0px",b.style.left="0px",display="none";else{e(b);with(b.style)position="absolute",backgroundColor="#F8F8F8",border="1px none black",margin=padding="0px",zIndex=a.zIndexHigh,textAlign="center",width=a.Width,filter="alpha(opacity=100)",opacity="1",left=top="0px",display="none"}a._setZIndexHi(a.Id,b);a.Body.appendChild(b)},_createSizeDivs:function(a,b,c){b=
typeof b=="undefined"?this:xDKI.Utilities.getObject(b);if(a)g=xDKI.Utilities.sameWindowgetElementById("DivRight"+b.Id),o=xDKI.Utilities.sameWindowgetElementById("DivBottom"+b.Id),j=xDKI.Utilities.sameWindowgetElementById("DivContent"+b.Id),d=xDKI.Utilities.sameWindowgetElementById("SizeTable"+b.Id),f=xDKI.Utilities.sameWindowgetElementById("SizeTBody"+b.Id),k=xDKI.Utilities.sameWindowgetElementById("SizeTR"+b.Id),r=xDKI.Utilities.sameWindowgetElementById("SizeTDL"+b.Id),u=xDKI.Utilities.sameWindowgetElementById("SizeTDR"+
b.Id);else{var g=b.Document.createElement("div");g.id="DivRight"+b.Id;var o=b.Document.createElement("div");o.id="DivBottom"+b.Id;var j=b.Document.createElement("div");j.id="DivContent"+b.Id;var d=b.Document.createElement("table");d.id="SizeTable"+b.Id;var f=b.Document.createElement("tbody");f.id="SizeTBody"+b.Id;var k=b.Document.createElement("tr");k.id="SizeTR"+b.Id;var r=b.Document.createElement("td");r.id="SizeTDL"+b.Id;var u=b.Document.createElement("td");u.id="SizeTDR"+b.Id;e(g);e(o);e(j);e(d);
e(f);e(k);e(r);e(u)}c=c?c:xDKI.Utilities.sameWindowgetElementById(b.Id);e(d);a||(d.appendChild(f),f.appendChild(k),k.appendChild(r),k.appendChild(u));e(j);if(b.Style)j.className=b.Style;j.style.width="100%";j.style.height="100%";if(xDKI.Utilities.isIE())j.style.margin="-2px";e(g);g.style.height="100%";g.style.width="0px";e(o);o.style.width="100%";o.style.height="1px";o.innerHTML="&nbsp;";e(d);d.style.width="100%";d.style.height="100%";e(k);k.style.width="100%";k.style.height="100%";e(r);r.style.width=
"100%";r.style.height="100%";e(u);u.style.width="0%";u.style.height="0%";a||(r.appendChild(j),u.appendChild(g),c.appendChild(d),c.appendChild(o))},_getPosition:function(a,b){var c;typeof b=="undefined"?(c=this,b=this.Id):c=xDKI.Utilities.getObject(b);var g=xDKI.Utilities.sameWindowgetElementById("SizeTDL"+c.Id),o=xDKI.Utilities.sameWindowgetElementById("DivRight"+c.Id),d=xDKI.Utilities.sameWindowgetElementById("DivBottom"+c.Id),f=xDKI.Utilities.sameWindowgetElementById("DivContent"+c.Id),k=xDKI.Utilities.sameWindowgetElementById("SizeTDR"+
c.Id),h=xDKI.Utilities.sameWindowgetElementById(c.Id);if(a){f.style.display="none";var r=c.Document.createElement("div");e(r);g.appendChild(r);r.innerHTML=f.innerHTML;if(c.AutoWidth==-1)c.Width="",h.style.width="10%";c.AutoHeight==-1?(c.Height="",h.style.height=""):r.style.height=xDKI.Utilities.deletePx(c.Height)+"px";c._createSizeDivs(!0,b)}var u=xDKI.Utilities.deletePx(xDKI.Utilities.isNullDefault(c.xPos,0)),v=xDKI.Utilities.deletePx(xDKI.Utilities.isNullDefault(c.yPos,0));h.style.left=xDKI.Utilities.deletePx(u)+
"px";h.style.top=xDKI.Utilities.deletePx(v)+"px";var l=-1,m=-1;if(a&&(k.style.display="",d.style.display="",h.style.display="",l=xDKI.Utilities.findPosX(o),m=xDKI.Utilities.findPosY(d),g.removeChild(r),f.style.display="",d.style.display="none",k.style.display="none",c.hidden))h.style.display="none";return[u,v,l,m]},_onResize:function(a,b,c){var g;g=typeof c=="undefined"?this:xDKI.Utilities.getObject(c);if(xDKI.Utilities.sameWindowgetElementById(g.Id)){var d=g._getPosition(!0),c=d[2]-d[0]+1,d=d[3]-
d[1]-2;if(typeof a=="undefined")a=g.Width;if(typeof b=="undefined")b=g.Height;xDKI.alert("mb.js: _onResize1: "+g.AutoWidth+" "+g.AutoHeight+"<    local w/h>"+c+" "+d+"<    _this.w/h>"+g.Width+" "+g.Height+"<",6);g.AutoWidth==-1?(g.Width=c,xDKI.Utilities.sameWindowgetElementById(g.Id).style.width=Math.floor(g.Width)+1+"px"):c=a;g.AutoHeight==-1?g.Height=d:d=b;xDKI.alert("mb.js: _onResize2: Auto w/h>"+g.AutoWidth+" "+g.AutoHeight+"<    local w/h>"+c+" "+d+"<    _this.w/h>"+g.Width+" "+g.Height+"<",
5);d<0&&(d="100%");var a=xDKI.Utilities.sameWindowgetElementById("SizeTable"+g.Id),b=xDKI.Utilities.sameWindowgetElementById(g.Id),j=xDKI.Utilities.sameWindowgetElementById("DivContent"+g.Id);g=xDKI.Utilities.sameWindowgetElementById("IF"+g.Id);if(d!="")isNaN(d)&&(d=xDKI.Utilities.deletePx(d)),a.style.height=d+"px",b.style.height=d+2+"px",j.style.height=d-2+"px",g.style.height=d+2+"px";if(c!="")isNaN(c)&&(c=xDKI.Utilities.deletePx(c)),a.style.width=c+"px",b.style.width=c+"px",j.style.width=c+"px",
g.style.width=c+2+"px";this.Height=d;this.Width=c}},_positionInScreen:function(a,b){var c;c=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);if(!b&&c.AddElementsLater||xDKI.Utilities.deletePx(c.Height)<0)return!1;c.xPos=c.winWidth/2-c.Width/2+"px";c.yPos=c.winHeight/2-c.Height/2+xDKI.Utilities.getScrollPosY(xDKI.Utilities.sameWindow())+"px";xDKI.alert("reposition: win wxh: "+c.winWidth+" x"+c.winHeight+" / box wxh: "+c.Width+" x "+c.Height+" / x/y: "+c.xPos+"/"+c.yPos,100);if(c.yPos<0)c.yPos=
0;if(c.xPos<0)c.xPos=0;return!0},_setZIndex:function(a,b,c){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);(c?c:xDKI.Utilities.sameWindowgetElementById(a.Id)).style.zIndex=b},_setZIndexHi:function(a,b){var c;c=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);(b?b:xDKI.Utilities.sameWindowgetElementById(c.Id)).style.zIndex=c.isModal==!0?c.zIndexHigh:c.zIndexLow},_setZIndexLo:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.Utilities.sameWindowgetElementById(a.Id).style.zIndex=
a.isModal==!0?a.zIndexHigh-1:a.zIndexLow-1},_createEvents:function(a,b){var c;typeof a=="undefined"?(c=this,a=this.Id):c=xDKI.Utilities.getObject(a);var g;g=b?b:xDKI.Utilities.sameWindowgetElementById(c.Id);xDKI.Utilities.addEvent(g,"mousedown",c._mouseDownEvent);xDKI.Utilities.addEvent(g,"mouseup",c._mouseUpEvent);xDKI.Events.Instances.TopMouseUp.addEvent(a,c._mouseUpEvent)},_deleteEvents:function(a){var a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),b=xDKI.Utilities.sameWindowgetElementById(a.Id);
xDKI.Utilities.removeEvent(b,"mousedown",a._mouseDownEvent);xDKI.Utilities.removeEvent(b,"mouseup",a._mouseUpEvent);xDKI.Events.Instances.TopMouseUp.removeEvent(a.Id);a.MoveEventAdded&&xDKI.Events.Instances.TopMouseMove.removeEvent(a.Id)},__mouseUpEvent:function(a,b){var c;typeof b=="undefined"?(c=this,b=this.Id):c=xDKI.Utilities.getObject(b);if(typeof c=="undefined")return!0;if(c.MoveEventAdded)c.MoveEventAdded=!1,xDKI.Events.Instances.TopMouseMove.removeEvent(b);return!1},__mouseDownEvent:function(a,
b){var c;typeof b=="undefined"?(c=this,b=this.Id):c=xDKI.Utilities.getObject(b);if(typeof c=="undefined")return!0;var g=0,d=0,g=xDKI.Utilities.getObject(),j;for(j in g)j!=b&&typeof g[j]._setZIndexLo!="undefined"&&g[j]._setZIndexLo();c._setZIndexHi();if(!a)a=xDKI.Utilities.sameWindow().event;if(a)a.pageX||a.pageY?(g=a.pageX,d=a.pageY):(g=a.clientX+c.Body.scrollLeft+xDKI.Utilities.sameWindow().document.documentElement.scrollLeft,d=a.clientY+c.Body.scrollTop+xDKI.Utilities.sameWindow().document.documentElement.scrollTop),
c.SaveMouseX=g-xDKI.Utilities.deletePx(c.xPos),c.SaveMouseY=d-xDKI.Utilities.deletePx(c.yPos);if(c.movable)c.MoveEventAdded=!0,xDKI.Events.Instances.TopMouseMove.addEvent(b,c.__mouseMoveEvent);return!1},__mouseMoveEvent:function(a,b){var c;typeof b=="undefined"?(c=this,b=this.Id):c=xDKI.Utilities.getObject(b);if(typeof c=="undefined")return!0;if(c.MoveEventAdded==!1)return!0;xDKI.alert("__mouseMoveEvent mouseMove",80);var g=0,d=0;if(!a)a=xDKI.Utilities.sameWindow().event;a.pageX||a.pageY?(g=a.pageX,
d=a.pageY):(g=a.clientX+c.Body.scrollLeft+xDKI.Utilities.sameWindow().document.documentElement.scrollLeft,d=a.clientY+c.Body.scrollTop+xDKI.Utilities.sameWindow().document.documentElement.scrollTop);c.position(b,g-c.SaveMouseX,d-c.SaveMouseY);c.onRepositionCallback(b,g-c.SaveMouseX,d-c.SaveMouseY);return!1}};d.prototype={free:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b.modalGray=null;b.basicBox=null},close:function(a){var b=null;typeof a=="undefined"?(b=this,
a=b.Id):b=xDKI.Utilities.getObject(a);b._deleteEvents();try{xDKI.Utilities.getObject(b.basicBox).close(b.basicBox)}catch(c){}if(b.isModal==!0)try{xDKI.Utilities.getObject(b.modalGray).close(b.modalGray)}catch(g){}try{b.onClose(a)}catch(d){}xDKI.Utilities.unregisterObject(a)},resize:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.Utilities.getObject(b.basicBox).resize(b.Width,b.Height)},positionInScreen:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);
xDKI.Utilities.getObject(b.basicBox)._positionInScreen(b.basicBox,!0);xDKI.Utilities.getObject(b.basicBox).position(b.basicBox)},prepareForNewContent:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b.Width=0;b.height=0},immobilize:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);try{xDKI.Utilities.getObject(b.basicBox).immobilize()}catch(c){}},immobilizeAllContent:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);
try{xDKI.Utilities.getObject(b.basicBox).immobilizeAllContent()}catch(c){}},_generateBox:function(a){var b;typeof a=="undefined"?(b=this,a=b.Id):b=xDKI.Utilities.getObject(a);xDKI.alert("MB: _generateBox: _createMessage()",100);b._createMessage(a);b.dontShow||b.show(a);xDKI.alert("MB: _generateBox: done.",100)},show:function(a){var b;typeof a=="undefined"?(b=this,a=b.Id):b=xDKI.Utilities.getObject(a);if(!b.isDrawn){xDKI.alert("MB: show()...",100);if(b.isModal==!0){var c=b.basicBox,g=b.Body,d=xDKI.Utilities.giveMeA(function(){return xDKI.Components.modalGray("modalGrayV2"+
c,g)});b.modalGray=d.Id;d.onMBFadedIn=function(b){try{xDKI.Utilities.getObject(a)._MGFadedIn(a,b)}catch(c){}};d.onMBFadedOut=function(b){try{xDKI.Utilities.getObject(a)._MGFadedOut(a,b)}catch(c){}};d=null}b.isDrawn=!0;b._drawBox(a);b._executeDynamicFill(a);b._addEvents(a);xDKI.Utilities.getObject(b.basicBox).createEventsCallback=function(){xDKI.Utilities.getObject(a)._addEvents()};xDKI.Utilities.getObject(b.basicBox).deleteEventsCallback=function(){xDKI.Utilities.getObject(a)._deleteEvents()};b._drawBox(a);
b._setFocus(a);xDKI.alert("MB: show()...done",100)}},_MGFadedIn:function(a){var b;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);b.onMBFadedIn(a)},_MGFadedOut:function(a){var b;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);b.onMBFadedOut(a)},_createMessage:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.Utilities.getObject(a.basicBox).isModal=a.isModal;xDKI.Utilities.getObject(a.basicBox)._setZIndexHi(a.basicBox)},_createContent:function(a){var b;
b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);var c,g;xDKI.Utilities.isIE()?(c="width:100%; height: 100%; background-color: #F8F8F8; color: #ff00ff; border: 2px solid F8F8F8; padding: 0px; margin: 0px 0px -2px 0px; text-align: center;",g="display:inline; background-color: #FFFFFF; border: #999999 solid 1px; padding: 0px; margin: 10px; white-space: normal; "):(c="width:100%; height: 100%; background-color: #F8F8F8; color: #ff00ff; border: 0px none black; padding: 0px 2px 2px 2px; margin: 0px; text-align: center;",
g="background-color: #FFFFFF; border: #999999 solid 1px; padding: 0px; margin: 0px; white-space: normal;");a=b.Id;c='<table class="festoreset" style="'+c+'"><thead class="festoreset" style="padding: 0px; margin: 0px;"></thead><tbody class="festoreset" style="padding: 0px; margin: 0px;"><tr class="festoreset" style="padding: 0px; margin: 0px;"><td class="festoreset" style="width:100%; padding:1px 1px 1px 1px; margin: 0px" ><div class="festoreset" style="'+g+'" id="messageBoxInnerDiv'+a+'"><table class="festoreset" style="width: 100%;height:100%; text-align: center; padding: 0px; margin: 0px;"><tbody class="festoreset"><tr class="festoreset" style="height:100%;padding:0px; margin:0px">';
b.Caption!="JavaScript"?(b.Caption!="undefined"&&(c+='<td class="festoreset" align="center" style="text-align: center; "><b class="festoreset" id="messageBoxCaption'+a+'" style="font-family: Arial, Geneva, Helvetica, sans-serif; color:#666666; font-size:11px; font-weight : bold; border-color:#AAAAAA; text-align: center; padding: 5px 2px 4px 2px;">'+b.Caption+'</b></td></tr><tr class="festoreset">'),c+='<td class="festoreset" id="messageBoxInnerMessage'+a+'" style="font-family: Arial, Geneva, Helvetica, sans-serif; color:#000000; font-size:11px; font-weight : normal; border-color:#AAAAAA; padding: 0px 3px 3px 3px;">'+
b.Message):c+='<td class="festoreset" id="messageBoxInnerMessage'+a+'" style="font-family: Arial, Geneva, Helvetica, sans-serif; color:#000000; font-size:11px; font-weight : normal; border-color:#AAAAAA; padding: 0px 3px 3px 3px;">'+b.Message(a,0);c+='</td></tr><tr class="festoreset" style="text-align: center;"><td class="festoreset" align="middle" id="ButtonDiv'+a+'" style="padding: 10px 0px 0px 0px; text-align: center; width: 100%;">';c+='<table class="festoreset" style="text-align: center; width: 100%;"><thead class="festoreset"></thead><tbody class="festoreset" style="width: 100%;text-align: center;"><tr class="festoreset" style="text-align: center"><td class="festoreset" style="width:50%">&nbsp;</td><td class="festoreset" style="text-align: center">';
b.Btn1Txt&&(c+=b.Btn1Fkt?'<span class="festoreset" id="Button1'+a+'" style="width: 100%">'+xDKI.Components.roundedButtonStyled("blue",'<input type="button" value="&nbsp;&nbsp;'+b.Btn1Txt+'&nbsp;&nbsp;" class="rounded_button_blue" style="background-color: #0091DC; border:0pt none; color:#FFFFFF; cursor:pointer; font-size:11px; cursor:pointer; cursor:hand;" id="BTN1'+a+'" onclick="try { xDKI.Utilities.getObject(\''+a+"').Btn1Fkt('"+a+"'); } catch (e) { xDKI.alert('OnClick action excepted! ',2,e); }\">",
xDKI.Utilities.getxDKIBaseURL())+"</span>":'<span class="festoreset" id="Button1'+a+'" style="width: 100%">'+xDKI.Components.roundedButtonStyled("blue",'<input type="button" value="&nbsp;&nbsp;'+b.Btn1Txt+'&nbsp;&nbsp;" class="rounded_button_blue" style="background-color: #0091DC; border:0pt none; color:#FFFFFF; cursor:pointer; font-size:11px; cursor:pointer; cursor:hand;" id="BTN1'+a+'" onclick="new function() { try { xDKI.Utilities.getObject(\''+a+"').close(); } catch (e) { xDKI.alert('--default click action excepted: ',2,e);} }\">",
xDKI.Utilities.getxDKIBaseURL())+"</span>");b.Btn2Txt&&(c+='</td><td class="festoreset" style="width: 6px"></td><td class="festoreset">',c+=b.Btn2Fkt?'<span id="Button2'+a+'">'+xDKI.Components.roundedButtonStyled("blue",'<input type="button" value="&nbsp;&nbsp;'+b.Btn2Txt+'&nbsp;&nbsp;" class="rounded_button_blue" style="background-color: #0091DC; border:0pt none; color:#FFFFFF; cursor:pointer; font-size:11px; cursor:pointer; cursor:hand;" id="BTN2'+a+'" onclick="xDKI.Utilities.getObject(\''+a+"').Btn2Fkt('"+
a+"');\">",xDKI.Utilities.getxDKIBaseURL())+"</span>":'<span id="Button2'+a+'">'+xDKI.Components.roundedButtonStyled("blue",'<input type="button" value="&nbsp;&nbsp;'+b.Btn2Txt+'&nbsp;&nbsp;" class="rounded_button_blue" style="background-color: #0091DC; border:0pt none; color:#FFFFFF; cursor:pointer; font-size:11px; cursor:pointer; cursor:hand;" id="BTN2'+a+'" onclick="new function() { xDKI.Utilities.getObject(\''+a+"').close(); }\">",xDKI.Utilities.getxDKIBaseURL())+"</span>");c+='</td><td class="festoreset" style="width:50%"></td></tr></tbody></table>';
c+="</td></tr></tbody></table></div></td></tr></tbody></table>";xDKI.Utilities.getObject(b.basicBox).DivContent(b.basicBox).innerHTML=c;xDKI.Utilities.getObject(b.basicBox).addElements(b.basicBox)},_drawBox:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.alert("MB: _drawBox()",100);xDKI.Utilities.getObject(a.basicBox)._onResize(void 0,void 0,a.basicBox);a.AutoPos==-1&&xDKI.Utilities.getObject(a.basicBox)._positionInScreen(a.basicBox,!0);xDKI.Utilities.getObject(a.basicBox).position(a.basicBox);
xDKI.Utilities.getObject(a.basicBox).unhide();xDKI.alert("MB: _drawBox() done.",100)},_executeDynamicFill:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.alert("MB: _executeDynamicFill()",100);a.Caption=="JavaScript"&&(a.Message(a.Id,1),a._drawBox());xDKI.alert("MB: _executeDynamicFill() done.",100)},_setFocus:function(a){var b=null;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);if(!b._noFocus)try{xDKI.Utilities.sameWindowgetElementById("BTN1"+a)&&
xDKI.Utilities.sameWindowgetElementById("BTN1"+a).focus()}catch(c){}},_mouseDown:function(a,b){var c=null,c=typeof b=="undefined"?this:xDKI.Utilities.getObject(b);return typeof c=="undefined"?!0:xDKI.Utilities.getObject(c.basicBox).movable=!1},_mouseUp:function(a,b){var c=null,c=typeof b=="undefined"?this:xDKI.Utilities.getObject(b);if(typeof c=="undefined")return!0;xDKI.Utilities.getObject(c.basicBox).movable=!0;return!1},_addEvents:function(a){var b=a;typeof a=="undefined"?(_this=this,b=this.Id):
_this=xDKI.Utilities.getObject(b);xDKI.alert("MB: _addEvents()",100);try{xDKI.Utilities.addEvent(xDKI.Utilities.sameWindowgetElementById("BTN1"+b),"mousedown",_this.mouseDownEvent)}catch(c){}try{xDKI.Utilities.addEvent(xDKI.Utilities.sameWindowgetElementById("BTN2"+b),"mousedown",_this.mouseDownEvent)}catch(g){}try{xDKI.Events.Instances.TopMouseUp.addEvent(b,this.mouseUpEvent)}catch(d){}xDKI.alert("MB: _addEvents() done.",100)},_deleteEvents:function(a){var b=a;typeof a=="undefined"?(_this=this,b=
this.Id):_this=xDKI.Utilities.getObject(b);xDKI.alert("MB: _deleteEvents()",100);try{xDKI.Utilities.removeEvent(xDKI.Utilities.sameWindowgetElementById("BTN1"+b),"mousedown",_this.mouseDownEvent)}catch(c){}try{xDKI.Utilities.removeEvent(xDKI.Utilities.sameWindowgetElementById("BTN2"+b),"mousedown",_this.mouseDownEvent)}catch(g){}try{xDKI.Events.Instances.TopMouseUp.removeEvent(b)}catch(d){}xDKI.alert("MB: _deleteEvents() done.",100)}};k.prototype={free:function(a){typeof a=="undefined"||xDKI.Utilities.getObject(a)},
close:function(a){var b=null;typeof a=="undefined"?(b=this,a=b.Id):b=xDKI.Utilities.getObject(a);b._deleteEvents(a);b.fadeOut(a)},_close:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),a=xDKI.Utilities.sameWindowgetElementById("bkg"+b.Id),c=xDKI.Utilities.sameWindowgetElementById("IF"+b.Id);c.src="javascript:false";try{b.Body.removeChild(c)}catch(g){}try{b.Body.removeChild(a)}catch(d){}var a=c=null,j=b.Id;try{b.onClose(j)}catch(e){}window.setTimeout(function(){xDKI.Utilities.unregisterObject(j)},
xDKI.clearTimeout)},show:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),a=xDKI.Utilities.sameWindow().document.createElement("div");a.id="bkg"+b.Id;with(a.style)left=top="0px",position="absolute",left=top="0px",height=width="100%",zIndex=b.zIndex+1,backgroundColor="#000000",opacity=0,filter="alpha(opacity=0)";xDKI.Utilities.setOpacity(a,0);b.Body.appendChild(a);var c=xDKI.Utilities.sameWindow().document.createElement("iframe");c.src=xDKI.Utilities.getxDKIBaseURL()+
"empty.html";with(c.style)position="absolute",margin=padding="0px",zIndex=b.zIndex,backgroundColor="transparent",filter="alpha(opacity=0)",opacity=".0",border="#000000 none 0px",top=left=0,height=width="100%";xDKI.Utilities.setOpacity(c,0);c.frameBorder="0";c.id="IF"+b.Id;c.zIndex=b.zIndex;b.Body.appendChild(c);b._repositionBackgrounds(b.Id);b._createEvents();b.fadeIn(b.Id);delete c;delete a},_register:function(){xDKI.Utilities.registerObject(this.Id,this)},_createEvents:function(a){a=typeof a=="undefined"?
this:xDKI.Utilities.getObject(a);xDKI.Events.Instances.TopScroll.addEvent(a.Id,a.scrollEvent);xDKI.Events.Instances.TopResize.addEvent(a.Id,a.scrollEvent)},_deleteEvents:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.Events.Instances.TopScroll.removeEvent(a.Id);xDKI.Events.Instances.TopResize.removeEvent(a.Id)},fadeIn:function(a){var b;typeof a=="undefined"?(b=this,a=b.Id):b=xDKI.Utilities.getObject(a);var c=xDKI.Utilities.sameWindowgetElementById("bkg"+b.Id);xDKI.Utilities.setTransition(c,
"opacity",b.maxFadeTicks,"ease");xDKI.Utilities.setOpacity(c,35);c=b.maxFadeTicks;xDKI.Utilities.isTransitionSet(0)||(c=0);xDKI.Utilities.sameWindow().setTimeout(function(){b.onMBFadedIn(a)},c)},fadeOut:function(a){var b;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);var c=xDKI.Utilities.sameWindowgetElementById("bkg"+b.Id);xDKI.Utilities.setTransition(c,"opacity",b.maxFadeTicks,"ease");xDKI.Utilities.setOpacity(c,0);c=b.maxFadeTicks;xDKI.Utilities.isTransitionSet(0)||(c=0);
xDKI.Utilities.sameWindow().setTimeout(function(){b.onMBFadedOut(a);b._close(a)},c)},_repositionBackgrounds:function(a){var b=xDKI.Utilities.getObject(a),c=xDKI.Utilities.sameWindow().document,a=Math.max(b.Body.scrollTop,c.documentElement.scrollTop)+"px",c=Math.max(b.Body.scrollLeft,c.documentElement.scrollLeft)+"px",g=xDKI.Utilities.getBrowserSize(top),d=g[0],g=g[1]-1,j=xDKI.Utilities.sameWindowgetElementById("IF"+b.Id);with(j.style)top=a,left=c,width=d+"px";b=xDKI.Utilities.sameWindowgetElementById("bkg"+
b.Id);with(b.style)top=a,left=c,width=d+"px",height=g+"px";if(!xDKI.Utilities.isIE6())j.style.height=g+"px"}};q.prototype={free:function(a){typeof a=="undefined"||xDKI.Utilities.getObject(a)},_register:function(){xDKI.Utilities.registerObject(this.Id,this)},show:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);try{xDKI.Utilities.getObject(b.modalGray).show()}catch(c){}b.addFSIFrame(a)},askForClose:function(a,b){var c=null,c=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);
c._askForClose=b==!1?!1:!0},_createEvents:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.Events.Instances.TopResize.addEvent(b.Id,b.resizeEvent)},_deleteEvents:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);try{window.clearTimeout(b.resizeTimeout),b.resizeTimeout=""}catch(c){xDKI.alert("clear resize timeout: ",2,c)}try{window.clearTimeout(b.zoomTimeout),b.zoomTimeout=""}catch(g){xDKI.alert("clear zoom timeout: ",2,g)}xDKI.Events.Instances.TopResize.removeEvent(b.Id)},
_replaceFullScreenId:function(a){for(var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),a=/~~Width~~/g,c=/~~Height~~/g,g=/~~FullScreenId~~/g,d,j=0;j<b.ServiceOptions.length;j++){try{d=b.ServiceOptions[j].length}catch(e){d=0}if(d>0&&typeof b.ServiceOptions[j]!="undefined"){b.ServiceOptions[j]=b.ServiceOptions[j].replace(g,b.Id);b.destWidth!=""&&(b.ServiceOptions[j]=b.ServiceOptions[j].replace(a,b.destWidth));b.destHeight!=""&&(b.ServiceOptions[j]=b.ServiceOptions[j].replace(c,b.destHeight));
if(b.ServiceOptions[j]=="DKIURL")b.DKIURLset=!0;if(b.ServiceOptions[j]=="DKIBASEURL")b.DKIBASEURLset=!0}}},_emptywformLoaded:function(a,b){var c=null;typeof a=="undefined"?(c=this,a=c.Id):c=xDKI.Utilities.getObject(a);var g;try{var d=xDKI.Utilities.sameWindowgetElementById("CamosIFrame"+c.Id);g=d.contentDocument}catch(j){try{g=d.document}catch(e){xDKI.alert("MBV2.js: _emptywformLoaded: Err1: ",2,e)}}try{c.adjustSizeCallback!="nil"&&c.adjustSizeCallback(a,c.adjustSize)}catch(f){xDKI.alert("MessageBox error: adjustSiteCallback: ",
2,f)}c._replaceFullScreenId(a);try{c.DKIURLset||(c.ServiceOptions.push("DKIURL"),c.ServiceOptions.push(xDKI.Utilities.getxDKILocation())),c.DKIBASEURLset||(c.ServiceOptions.push("DKIBASEURL"),c.ServiceOptions.push(xDKI.Utilities.getxDKIBaseURL())),xDKI.Services.Loading.callServiceFormAvailable(b,"_self",c.ServiceOptions,g)}catch(k){xDKI.alert("MBV2.js: _emptywformLoaded: Err2: ",2,k)}},setSize:function(a,b,c){var d=null,d=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);if(!(d.width==b&&d.height==
c)){xDKI.alert("FSO: SetSize: Width: "+b+"  Height: "+c,60);d.width=b;d.height=c;var a=xDKI.Utilities.sameWindowgetElementById("CamosODiv"+d.Id),e=xDKI.Utilities.sameWindowgetElementById("CamosSIF"+d.Id);b>d.clientWidth-40?(a.style.left="10px",e.style.right="",e.style.left=xDKI.Utilities.deletePx(b)-(xDKI.Utilities.deletePx(e.style.width)+xDKI.Utilities.deletePx(a.style.left))+"px"):(e.style.left="",a.style.left="",e.style.right=xDKI.Utilities.deletePx(a.style.right)+25+"px");a.style.width=b+"px";
a.style.height=c+"px";e=xDKI.Utilities.sameWindowgetElementById("CamosIFrame"+d.Id);e.style.height="100%";var j=d.height,f=j;if(xDKI.Utilities.getIFrameDocument(e).body)f=xDKI.Utilities.getIFrameDocument(e).body.scrollHeight;f>j&&(j=f);if(e.scrollHeight>j)j=e.scrollHeight;a.style.height=j+"px";d=xDKI.Utilities.sameWindowgetElementById("CamosDummyIFrame"+d.Id);d.style.left=a.style.left;d.style.right=a.style.right;d.style.width=b+"px";d.style.height=c+"px"}},_internalOnResize:function(a){var b=null,
b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);if(b.inOnResize)return!1;b.inonResize=!0;b.maxTicks=-1;b.resizeTimeout!=""&&window.clearTimeout(b.resizeTimeout);var c=b.GUIStyle;b.resizeTimeout=window.setTimeout(function(){xDKI.Utilities.getObject(a).adjustSize(a,c)},250);return b.inOnResize=!1},_zoomTo:function(a,b,c,d,e){var j=null,j=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),f=xDKI.Utilities.calculateSize(j.startTick,j.maxTicks,b,d),k=xDKI.Utilities.calculateSize(j.startTick,
j.maxTicks,c,e);j.setSize(j.Id,f,k);var h=xDKI.Utilities.sameWindowgetElementById("CamosIFrame"+j.Id);if(h.style.width!=d)h.style.width=d;if(h.style.height!=e)h.style.height=e;var r=xDKI.Utilities.sameWindowgetElementById("CamosDummyIFrame"+j.Id),u=!1,v=!1;b>=d&&f<=d&&(u=!0);b<=d&&f>=d&&(u=!0);c>=e&&k<=e&&(v=!0);c<=e&&k>=e&&(v=!0);if(u&&v){if(r.style.display!="none")r.style.display="none";h.style.display=""}else{if(r.style.display=="none")r.style.display="";if(!j.closing)j.zoomTimeout=window.setTimeout(function(){xDKI.Utilities.getObject(a)._zoomTo(a,
b,c,d,e)},0)}r=h=null},adjustSize:function(a,b,c,d){function e(b,c){var d=new Date;j.startTick=d.getTime();delete d;d=xDKI.Utilities.sameWindowgetElementById("CamosODiv"+j.Id);j._zoomTo(a,xDKI.Utilities.deletePx(d.style.width),xDKI.Utilities.deletePx(d.style.height),b,c)}var j=null,j=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);typeof c=="undefined"&&(c=800);typeof d=="undefined"&&(c=600);typeof b=="undefined"&&(b="c");xDKI.alert("FSO: adjustSize() GUIStyle: "+b+" customX: "+c+" customY: "+
d+" aId: "+a,4);if(!j.closing){try{window.clearTimeout(j.resizeTimeout),j.resizeTimeout=""}catch(f){xDKI.alert("clear resize timeout: ",0,f)}try{window.clearTimeout(j.zoomTimeout),j.zoomTimeout=""}catch(k){xDKI.alert("clear zoom timeout: ",0,k)}j.clientWidth=xDKI.Utilities.getBrowserSize()[0];j.GUIStyle=b;b=="custom"?(j.destWidth=c,j.destHeight=d,e(j.destWidth,j.destHeight)):b=="c"?(b=xDKI.Utilities.getBrowserSize(xDKI.Utilities.sameWindow()),b[1]-=20,b[0]<1050&&(b[0]=1050),b[1]<875&&(b[1]=875),j.destWidth=
b[0]-40,j.destHeight=b[1],e(j.destWidth,j.destHeight)):b=="s"?(j.destWidth=960,j.destHeight=875,e(j.destWidth,j.destHeight)):b=="xlength"?(j.destWidth=400,j.destHeight=175,e(j.destWidth,j.destHeight)):b=="m"?(j.destWidth=600,j.destHeight=300,e(j.destWidth,j.destHeight)):function(){var a=xDKI.Utilities.sameWindowgetElementById("CamosODiv"+j.Id),b=0,c,d=0;try{try{b=a.document.body}catch(g){b=a.contentDocument.body}}catch(e){xDKI.alert("FSO: fixWidthHeight: Error: ",2,e)}try{c=b.scrollWidth,w=parseInt(c.replace(/px/g,
""))}catch(f){w=c}w=w+30+"px";a.style.width=w;try{c=b.scrollHeight,d=parseInt(c.replace(/px/g,""))}catch(k){d=c}a.style.height=d+30+"px"}()}},addFSIFrame:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),c="Close";try{if(typeof b.txtClose!="undefined")c=b.txtClose}catch(d){}xDKI.Utilities.sameWindow().emptywformLoaded=function(a){b._emptywformLoaded(b.Id,a)};try{var e=xDKI.Utilities.sameWindow().document.createElement("DIV");e.className="festoreset";with(e.style)backgroundColor=
color="white",position="absolute",top=xDKI.Utilities.deletePx(xDKI.Utilities.getScrollPosY())+10+"px",right=minHeight=minWidth=height=width="10px",zIndex=b.zIndex,padding="0px 0px 0px 3px";e.frameBorder="10px";e.id="CamosODiv"+b.Id;var j=xDKI.Utilities.sameWindow().document.createElement("IFRAME");j.className="festoreset";with(j.style)height=width="100%",zIndex=b.zIndex-1,display="none";j.frameBorder="0";j.id="CamosIFrame"+b.Id;var f=xDKI.Utilities.sameWindow().document.createElement("IFRAME");f.className=
"festoreset";with(f.style)backgroundColor=color="white",position="absolute",top=xDKI.Utilities.deletePx(xDKI.Utilities.getScrollPosY())+10+"px",right=minHeight=minWidth=height=width="10px",padding="0px 0px 0px 3px",zIndex=b.zIndex+1;f.frameBorder="0";f.id="CamosDummyIFrame"+b.Id;var k=xDKI.Utilities.sameWindow().document.createElement("IFRAME");k.className="festoreset";k.scrolling="no";xDKI.Utilities.sameWindow().emptybodyLoaded=function(a,d){try{var r=xDKI.Utilities.sameWindowgetElementById("CamosSIF"+
b.Id);a.style.overflow="visible";r.scrolling="no";var e='<span style="white-space: nowrap"><div id="myButtonDiv" style="float: left; overflow: visible;">'+xDKI.Components.roundedButton("blue",'<input class="rounded_button_blue" id="closeButton'+b.Id+'" type="button" onclick="try { '+(document.all&&!window.XMLHttpRequest?"this.blur(); ":"")+"xDKI.Utilities.getObject('"+b.Id+"').closeClick('"+b.Id+"'); } catch (err) { xDKI.alert('CloseClick error: ',2,err); }\" value=\""+c+'">')+'</div><span id="myButtonSpan" style="width: 1px; height: 1px;">&nbsp;</span></span><br/><span id="myLowerSpan" style="height: 1px; width: 1px;">&nbsp;</span>';
a.innerHTML=e;r.style.width=xDKI.Utilities.findPosX(d.document.getElementById("myButtonSpan"))+5+"px";var g=xDKI.Utilities.findPosY(d.document.getElementById("myLowerSpan"));if(g!=0)r.style.height=g+5+"px";r.style.overflow="visible"}catch(f){xDKI.alert("FSO: Loaded error: ",2,f)}};with(k.style)position="absolute",overflow="visible",top=xDKI.Utilities.deletePx(e.style.top)+3+"px",right=xDKI.Utilities.deletePx(e.style.right)+25+"px",zIndex=b.zIndex,display="none";k.id="CamosSIF"+b.Id;k.frameBorder=
"0";e.appendChild(j);b.Body.appendChild(f);b.Body.appendChild(e);e.style.backgroundColor="white";b.Body.appendChild(k);f.src=b.xDKIBase+"empty.html";k.src=b.xDKIBase+"emptybody.html";j.src=b.xDKIBase+"emptywform.html";var h=xDKI.Components.fadeObject(b.Id);h.ObjectList.push(k);h.fadeIn(h.Id);f=k=CamosOIDiv=j=null}catch(r){xDKI.alert("Error in button/fullscreen add: ",2,r)}},focusButton:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);try{var c=xDKI.Utilities.sameWindowgetElementById("CamosSIF"+
b.Id);xDKI.Utilities.getIFrameDocument(c).getElementById("closeButton"+b.Id).focus()}catch(d){xDKI.alert("xDKI._Components._fullScreenOverlay.focusButton: ",2,d)}},hideButton:function(a,b){var c=null,c=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),d=xDKI.Components.fadeObject(c.Id);d.ObjectList.push(xDKI.Utilities.sameWindowgetElementById("CamosSIF"+c.Id));if(b)d.onFadedOut=b;d.fadeOut(d.Id);return d},showButton:function(a,b){var c=null,c=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),
d=xDKI.Components.fadeObject(c.Id);if(b)d.onFadedIn=b;d.ObjectList.push(xDKI.Utilities.sameWindowgetElementById("CamosSIF"+c.Id));d.fadeIn(d.Id);return d},_fadeClose:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a),a=xDKI.Components.fadeObject(b.Id);a.maxTicks=-1;a.ObjectList.push(xDKI.Utilities.sameWindowgetElementById("CamosDummyIFrame"+b.Id));a.ObjectList.push(xDKI.Utilities.sameWindowgetElementById("CamosIFrame"+b.Id));a.ObjectList.push(xDKI.Utilities.sameWindowgetElementById("CamosODiv"+
b.Id));a.ObjectList.push(xDKI.Utilities.sameWindowgetElementById("CamosSIF"+b.Id));var c=xDKI.Utilities.sameWindowgetElementById("CamosIFrame"+b.Id);c.src=xDKI.Utilities.getxDKIBaseURL()+"emptywdiv.html";c=null;a.onFadedOut=function(a,c){b=xDKI.Utilities.getObject(c);document.all&&!window.performance&&window.focus();var d=xDKI.Utilities.sameWindowgetElementById("CamosIFrame"+b.Id),e=xDKI.Utilities.sameWindowgetElementById("CamosODiv"+b.Id),g=xDKI.Utilities.sameWindowgetElementById("CamosSIF"+b.Id),
r=xDKI.Utilities.sameWindowgetElementById("CamosDummyIFrame"+b.Id);e.removeChild(d);b.Body.removeChild(r);b.Body.removeChild(e);b.Body.removeChild(g);try{g.src="javascript:false"}catch(u){}try{d.src="javascript:false"}catch(f){}try{e.src="javascript:false"}catch(k){}try{r.src="javascript:false"}catch(h){}r=g=e=d=null;window.setTimeout(function(){xDKI.Utilities.unregisterObject(c)},xDKI.clearTimeout);xDKI.Utilities.getObject(a).close()};try{xDKI.Utilities.getObject(b.modalGray).close()}catch(d){}a.fadeOut(a.Id)},
closeClick:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b._tryclose()},close:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);b.closing=!0;try{b.onClose(b.Id)}catch(c){}b._deleteEvents(a);b._fadeClose(a)},_tryclose:function(a){var b=null,b=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);if(b.closing!=!0)if(b.closing=!0,b._askForClose==!0)try{b.closeQuestion=xDKI.Components.messageBox(b.txtReallyCloseConfig,b.txtCloseConfig,b.txtYes,
function(){try{b.close()}catch(a){xDKI.alert("FSO: Error while closing: ",2,a)}b.closeQuestion.close()},b.txtNo,function(){b.closing=!1;b.closeQuestion.close()})}catch(c){xDKI.alert("Tryclose: Err: ",2,c)}else b.close(a)}};p.prototype={free:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);for(i=0;i<a.ObjectList.length;i++)a.ObjectList[0]=null;if(!document.documentMode||!window.performance)delete a.ObjectList,a.ObjectList=null;a.onFadedOut="";a.onFadedIn=""},fadeIn:function(a){var b;
typeof a=="undefined"?(b=this,a=b.Id):b=xDKI.Utilities.getObject(a);b.ObjectList.length<=0&&xDKI.alert("xDKI.Components.fadeObject: No Object to fade. Please push objects into .ObjectList");var a=!1,c=b.maxTicks;for(i=0;i<b.ObjectList.length;i++)xDKI.Utilities.setOpacity(b.ObjectList[i],0),b.ObjectList[i].style.display="",xDKI.Utilities.setTransition(b.ObjectList[i],"opacity",b.maxTicks,"ease"),xDKI.Utilities.setOpacity(b.ObjectList[i],b.maxOpacityIn),a=xDKI.Utilities.isTransitionSet(b.ObjectList[i]);
a||(c=0);xDKI.Utilities.sameWindow().setTimeout(function(){b.onFadedIn(b.Id,b.CallerId)},c)},fadeOut:function(a){var b;typeof a=="undefined"?(b=this,a=this.Id):b=xDKI.Utilities.getObject(a);b.ObjectList.length<=0&&xDKI.alert("xDKI.Components.fadeObject: No Object to fade. Please push objects into .ObjectList");var a=!1,c=b.maxTicks;for(i=0;i<b.ObjectList.length;i++)xDKI.Utilities.setOpacity(b.ObjectList[i],0),b.ObjectList[i].style.display="",xDKI.Utilities.setTransition(b.ObjectList[i],"opacity",
b.maxTicks,"ease"),xDKI.Utilities.setOpacity(b.ObjectList[i],b.maxOpacityOut),a=xDKI.Utilities.isTransitionSet(b.ObjectList[i]);a||(c=0);xDKI.Utilities.sameWindow().setTimeout(function(){for(i=0;i<b.ObjectList.length;i++)b.ObjectList[i].style.display="none";b.onFadedOut(b.Id,b.CallerId)},c)},close:function(a){a=typeof a=="undefined"?this:xDKI.Utilities.getObject(a);xDKI.Utilities.unregisterObject(a.Id,a)}};_waitBox=function(a,b){var c="null",d="null";typeof b!="undefined"&&(d="modalGrayV2"+b);var e=
xDKI.Components.basicBox("",null,null,200,100,!0,null,b);typeof a=="undefined"&&(a=!1);if(e.isModal=a){c=xDKI.Components.modalGray(d,void 0,600);e.close_=e.close;var f=c.Id;e.close=function(a){try{c.close(f)}catch(b){}try{e.close_(a)}catch(d){}}}e.Div().style.border="#cccccc solid 1px";e.setOpacity(e.Id,0);d="";if(xDKI.Utilities.isPNF()==!1)d="position: absolute;",e.DivContent().style.position="absolute";e.DivContent().innerHTML='<table class="festoreset" style="'+d+' width: 100%; height: 100%; top: 0px; left: 0px;" onclick="xDKI.Utilities.getObject(\''+
e.Id+'\').close();"><thead class="festoreset"></thead><tbody class="festoreset"><tr class="festoreset"><td class="festoreset" style="width: 100%; height: 100%; text-align: center; vertical-align: middle;" ><img class="festoreset" src="'+xDKI.Utilities.getxDKIBaseURL()+'/images/wait_mov.gif" FRAMEBORDER=0 style="padding:0px;"></img></td></tr></tbody></table>';e.addElements();e.resize();e._positionInScreen(e.Id,!0);e.position();e.fadeIn();return e};return{basicBoxPrefix:function(){return"basicBoxV2"},
msgBoxPrefix:function(){return m},modalGrayPrefix:function(){return"modalGrayV2"},loginBoxPrefix:function(){return"loginBoxV2"},fullScreenPrefix:function(){return l},roundedButton:function(a,b){var c;a=="blue"&&(c="bg_caerul");a=="white"&&(c="bg_aterul15");axDKILoc=xDKI.Utilities.getxDKIBaseURL();return'<table class="festoreset" cellspacing="0" cellpadding="0" style="padding:0px"><tr><td class="festoreset" style="width:1px;height:1px;padding:0px"><img class="festoreset" src="'+axDKILoc+'images/1x1_trans.gif" /></td><td class="festoreset '+
c+'" id="roundedinputStyled" style="height:1px;padding:0px"></td><td class="festoreset" style="width:1px;height:1px;padding:0px"><img class="festoreset" src="'+axDKILoc+'images/1x1_trans.gif" /></td></tr><tr><td class="festoreset '+c+'" id="roundedinputStyled" style="width:1px;padding:0px"></td><td class="festoreset '+c+'" style="padding:0px">'+b+'</td><td class="festoreset '+c+'" id="roundedinputStyled" style="width:1px;padding:0px"></td></tr><tr><td class="festoreset" style="width:1px;height:1px;padding:0px"><img class="festoreset" src="'+
axDKILoc+'images/1x1_trans.gif" /></td><td class="festoreset '+c+'" id="roundedinputStyled" style="height:1px;padding:0px"></td><td class="festoreset" style="width:1px;height:1px;padding:0px"><img class="festoreset" src="'+axDKILoc+'images/1x1_trans.gif" /></td></tr></table>'},buttonActive:function(a,b,c){return h(a,b,c)},roundedButtonStyled:function(a,b,c){typeof c=="undefined"&&xDKI.Utilities.getxDKIBaseURL();c="";a=="blue"&&(c="background-color:#0091DC;");a=="white"&&(c="background-color:#D9D9D9;");
return'<table class="festoreset" cellspacing="0" cellpadding="0" style="padding:1px; line-height:0px"><thead class="festoreset"></thead><tbody class="festoreset"><tr class="festoreset" style="height: 1px"><td class="festoreset" style="width: 1px;height: 1px;padding: 0px 0px 0px 0px;"><span/></td><td class="festoreset" id="roundedinputStyled" style="height:1px;padding:0px;'+c+'"><span/></td><td class="festoreset"  style="width: 1px;height: 1px;padding: 0px 0px 0px 0px;"><span/></td></tr><tr class="festoreset"><td class="festoreset" id="roundedinputStyled" style="width:1px;padding:0px;'+
c+'"><span/></td><td class="festoreset" style="padding:0px;'+c+'">'+b+'</td><td class="festoreset" id="roundedinputStyled" style="width:1px;padding:0px;'+c+'"><span/></td></tr><tr class="festoreset" style="height: 1px"><td class="festoreset" style="width: 4px;height: 1px;padding: 0px 0px 0px 1px;"><span/></td><td class="festoreset" id="roundedinputStyled" style="height:1px;padding:0px 0px 0px 0px;'+c+'"><span/></td><td class="festoreset" style="width: 4px;height: 1px;padding: 0px 1px 0px 0px;"><span/></td></tr></tbody></table>'},
basicBox:function(a,b,c,d,e,k,h,l,m,r,u){return new f(a,b,c,d,e,k,h,l,m,r,u)},messageBox:function(a,b,c,e,f,k,h,l,m,r,u,v,p){return new d(a,b,c,e,f,k,h,l,m,r,u,v,p)},waitBox:function(a,b){return _waitBox(a,b)},modalGray:function(a,b,c,d){return new k(a,b,c,d)},fullScreenOverlay:function(a,b,c,d,e,f,k,h,l,r,u,v,m){return new q(a,b,c,d,e,f,k,h,l,r,u,v,m)},fadeObject:function(a,b){return new p(a,b)}}};xDKI.Events.Instances.TopMouseUp="null";xDKI.Events.Instances.TopMouseDown="null";
xDKI.Events.Instances.TopMouseMove="null";xDKI.Events.Instances.TopScroll="null";xDKI.Events.Instances.TopResize="null";
xDKI.Events.Instances.init=function(h){var e;try{e=h.document}catch(f){}typeof e=="undefined"&&(e=h.contentWindow||h.contentDocument);xDKI.Events.Instances.TopMouseUp=new xDKI.Events.Factory(e.documentElement,"mouseup","top_mouseup");xDKI.Events.Instances.TopMouseDown=new xDKI.Events.Factory(e.documentElement,"mousedown","top_mousedown");xDKI.Events.Instances.TopMouseMove=new xDKI.Events.Factory(e.documentElement,"mousemove","top_mousemove");xDKI.Events.Instances.TopScroll=new xDKI.Events.Factory(h,
"scroll","top_scroll");xDKI.Events.Instances.TopResize=new xDKI.Events.Factory(h,"resize","top_resize")};xDKI.Events.Factory=function(h,e,f){this.ownerId={};this.ownerFunc={};this.eventsCount=0;this.object=h;this.type=e;this.Id=f;var d=this;this.event=function(e){d._processEvent(e,d)}};
xDKI.Events.Factory.prototype={Try:function(){return"Succeeded"},addEvent:function(h,e){typeof this.ownerFunc[h]!="undefined"&&xDKI.alert("Warning! That Id already attached a function on "+this.type,1);this.ownerFunc[h]=e;this.eventsCount+=1;this.eventsCount==1&&this._addEventToObject()},removeEvent:function(h){typeof this.ownerFunc[h]=="undefined"?xDKI.alert("Warning! That Id has no attached function on "+this.type,1):(delete this.ownerFunc[h],this.eventsCount-=1,this.eventsCount<=0&&this._removeEventFromObject())},
_addEventToObject:function(){xDKI.Utilities.addEvent(this.object,this.type,this.event)},_removeEventFromObject:function(){xDKI.Utilities.removeEvent(this.object,this.type,this.event)},_processEvent:function(h,e){for(i in e.ownerFunc){var f=this.ownerFunc[i];try{f(h,i)}catch(d){try{xDKI.alert("_processEvent "+e.Id+"  failed on "+i+"   "+f,0,d)}catch(k){}}}}};
xDKI._Objects=function(){function h(){xDKI.alert("xDKI Object dump: ");xDKI.alert("=======================================================");s="";x=0;for(var d in f)s+="  "+d+"  \n",x++;xDKI.alert("Now we have "+x+" objects running:\n"+s);xDKI.alert("=======================================================")}function e(d){try{if(d=="Try")return xDKI.alert("getObjectV2: now",7),"Succeeded";var e;e=typeof d=="undefined"?f:f[d]}catch(q){try{e=f}catch(p){xDKI.alert("getObjectV2("+d+"): ",2,p)}}xDKI.msgBoxV2DEBUG>
1&&(e==null||typeof e=="undefined")&&xDKI.alert('Requested object to Id "'+d+'" is null!',1);xDKI.DebugObjectManager&&h();return e}var f={};return{getObject:function(d){return e(d)},registerObject:function(d,e){var q;q="";typeof f[d]!="undefined"&&(q="Object register collission!");f[d]==e&&(q+=" Attempt to registered object more than once not executed.");f[d]=e;xDKI.DebugObjectManager&&h();q!=""?(xDKI.alert("messageBoxV2: RO: "+q,1),q=!1):q=!0;return q},unregisterObject:function(d){var e="";typeof f[d]==
"undefined"&&(e="Object to unregister not found! "+d);if(e!="")xDKI.alert("MB: RU: "+e,1);else{e=f[d];try{e.free()}catch(q){xDKI.alert("No free found on "+d,1)}delete e;if(!document.documentMode||!window.performance)f[d]=null,delete f[d];xDKI.DebugObjectManager&&h()}},dumpObjects:function(){h()},closeAll:function(){var d={},k;for(k in f)d[k]="dummy";for(k in d)try{e(k).close(k)}catch(h){xDKI.alert("closeAll ("+k+"): ",1,h)}},freeAll:function(){for(var d in f)try{e(d).free()}catch(h){xDKI.alert("freeAll ("+
d+"): ",1,h)}}}};
xDKI._Top=function(){function h(){var e;if(typeof d.updateBasketCounter!="undefined"&&typeof d.adjustHeightInPortal!="undefined")e=[d.updateBasketCounter,d.adjustHeightInPortal];else a:{xDKI.alert("MsgBox: Now searching for portal functions",10);var f=self,h="nil",l="nil",n=!0,a,b;a=0;do{b=0;a+=1;do{b+=1;n=!(f==top||typeof f=="undefined"||f==null);try{if(typeof f.updateBasketCounter!="undefined")h=f.updateBasketCounter;if(typeof f.adjustHeightinPortal!="undefined")l=f.adjustHeightinPortal;if(l!="nil"&&
h!="nil"){e=[h,l];break a}}catch(c){}f=f.parent;xDKI.alert("MsgBoBox: searchPortalFunctions: i: "+a+"  x: "+b,10);f==f.parent&&(n=!1)}while(n&&b<k);try{f=f.opener}catch(g){xDKI.alert("_searchPortalFunctions catched: ",0,g)}}while(f!=null&&f.opener!=f&&a<k);xDKI.alert("MsgBoBox: searchPortalFunctions: ubc: "+h,101);xDKI.alert("MsgBoBox: searchPortalFunctions: ahp: "+l,101);e=[h,l]}return e}var e="---",f="---",d="",k=30;return{updateBasketCounter:function(d){var k;if(f=="---"){var m=h();f=m[0];e=m[1]}f!=
"nil"&&(k=f(d));return k},adjustHeightInPortal:function(d,k,m){var l;if(e=="---"){var n=h();e=n[1];f=n[0]}if(typeof k!="undefined"&&k!="")try{if(typeof m.body.height=="undefined"||m.body.height<m.body.scrollHeight){var a=xDKI.Utilities.getObject(k);a.setSize(a.Id,a.width,m.body.scrollHeight)}}catch(b){}if(e!="nil"){try{e(d)}catch(c){}l=""}return l}}};
xDKI._Utilities=function(){function h(a){typeof a!="undefined"&&(y=a);if(y!="null")return y;var b;if(t&&n==!1)b=l;else a:{try{if(window.external.xDKICallDLL!=null){b=window.top;break a}}catch(c){}b=a=self;var d,e=!1,f=z;do{try{a=a.parent;d=a.xDKI.Utilities.giveMeA("Try");(d=="Succeeded"||d=="Fake")&&xDKI.alert("_searchSame: found a working copy of messagebox in parent. Location: "+a.document.location,5);b=a;try{a.xDKI.Utilities.iAmTopInSameWindow()==!0&&(xDKI.alert("_searchSame: Found local top in same window",
4),e=!0)}catch(g){alert("_searchSame(): ",2,g)}}catch(h){}f-=1}while(a!=top&&typeof a!="undefined"&&a!=null&&a!=a.parent&&e==!1&&f>0)}return y=b}function e(a,b){return typeof a=="undefined"||a==null?b:a}function f(a,b){return typeof a=="undefined"||a==""||a=="null"||a==null?b:a}function d(){g==""&&(g=k().replace(/xdki.asp/gi,""));return g}function k(){if(o!="nil")return xDKI.DEBUGxDKILocation&&xDKI.alert("Found xDKI will be at: "+window.location.protocol+"//"+window.location.host+"/xdki/"),o;else try{if(g==
"")if(a=="false"){try{for(var b=document.getElementsByTagName("SCRIPT"),c=0;c<=b.length;c++){var d=b[c];if(typeof d!="undefined"&&typeof d.src!="undefined"&&d.src.indexOf("/javascript/MessageBoxV2.js")>0)return xDKI.DEBUGxDKILocation&&xDKI.alert("Found xDKI will be at: "+d.src.replace(/javascript\/MessageBoxV2.js/gi,"")),o=d.src.replace(/javascript\/MessageBoxV2.js/gi,"")}}catch(e){}xDKI.DEBUGxDKILocation&&xDKI.alert("Found xDKI will be at: "+window.location.protocol+"//"+window.location.host+"/xdki/");
o=window.location.protocol+"//"+window.location.host+"/xdki/"}else{var c=window.location.protocol+"//"+window.location.host+document.location.pathname,f=c.lastIndexOf("/");o=c.slice(0,f+1);xDKI.DEBUGxDKILocation&&xDKI.alert("Found xDKI will be at (aLoc): "+o)}else xDKI.DEBUGxDKILocation&&xDKI.alert("Found xDKI will be at (BASE_URL): "+g+"/"),o=g+"/";return o}catch(h){return xDKI.DEBUGxDKILocation&&xDKI.alert("Get xDKI Location error: ",0,h),""}}function q(a,b,c){a.attachEvent?(a["e"+b+c]=c,a[b+c]=
function(){a["e"+b+c](window.event)},a.attachEvent("on"+b,a[b+c])):a.addEventListener(b,c,!1)}function p(a,b){if(b=="")return null;for(var c=a+"=",d=c.length,e=b.length,f=0;f<e;){var g=f+d;b.substring(f,g);if(b.substring(f,g)==c){c=g;d=b;e=d.indexOf(";",c);if(e==-1)e=d.length;return unescape(d.substring(c,e))}f=b.indexOf(" ",f)+1;if(f==0)break}return null}var m=self,l=self,n=!1,a="nil",b="null",c="null",g="",o="nil",j="Succeeded",t=!1,y="null",z=30;return{init:function(){a:{try{if(window.external.xDKICallDLL!=
null){m=window.top;break a}}catch(b){}var c=self,d=self,e,f=!1,g=z;do{do{try{c=c.parent;e=c.xDKI.Utilities.giveMeA("Try");(e=="Succeeded"||e=="Fake")&&xDKI.alert("_searchTop: found a working copy of messagebox in parent. Location: "+c.document.location,5);d=c;try{c.xDKI.Utilities.iAmTopInSameWindow()==!0&&(xDKI.alert("_searchTop: Found local top in same window",4),f=!0)}catch(h){xDKI.alert("_searchTop: ",2,h)}}catch(j){}g-=1}while(c!=top&&typeof c!="undefined"&&c!=null&&c!=c.parent&&f==!1&&g>0);try{c=
c.opener}catch(k){break}}while(c!=null&&c.opener!=c&&c.parent!=c&&typeof c!="undefined"&&f==!1&&g>0);m=d}a:{try{if(window.external.xDKICallDLL!=null){l=window.top;break a}}catch(n){}d=c=m;e=z;do{do{try{c=c.parent,c.____xDKI___test={},xDKI.alert("_searchFakeTop: found a writable parent",5),d=c}catch(o){}e-=1}while(c!=top&&typeof c!="undefined"&&c!=null&&c!=c.parent&&e>0);try{c=c.opener}catch(p){break}}while(c!=null&&typeof c!="undefined"&&c.opener!=c&&c.parent!=c&&e>0);l=d}c=!1;try{if(typeof a=="undefined"||
a=="nil")c=!0}catch(q){c=!0}if(c){var t;try{t=document.location.toString(),t=t.toLowerCase()}catch(y){xDKI.alert("Error in _testPNF: ",5,y),t="dummy"}a=t.indexOf("/cat/")>0||t.indexOf("/pnf/")>0||t.indexOf("/cms/")>0||t.indexOf("/net/")>0||t.indexOf("/ptl/")>0?"true":"false"}xDKI.alert("topWindow: "+m+" loc: "+m.location,50);return m},topWindow:function(){return t?l:m},fakeTop:function(){return l},sameWindow:function(a){return h(a)},tryLoadingStyleSheet:function(b){try{typeof b=="undefined"&&(b=t?
l:m);var c=d();a!="false"&&c.indexOf("cat")<=0&&(c=document.location.protocol+"//"+document.location.host,typeof document.location.port!="undefined"&&document.location.port!=""&&(c+=":"+document.location.port),c+="/cat/de_de/");a:if(c+="css/reset.css",b.document.createStyleSheet){for(var e=0;e<b.document.styleSheets.length;e++)if(b.document.styleSheets[e].href==c)break a;b.document.createStyleSheet(c)}else if(typeof b.document.getElementById("myCheatedStyleSheet1")=="undefined"||b.document.getElementById("myCheatedStyleSheet1")==
null)e=b.document.createElement("link"),e.id="myCheatedStyleSheet1",e.rel="stylesheet",e.href=c,b.document.getElementsByTagName("head")[0].appendChild(e)}catch(f){xDKI.alert("Injecting CSS error: ",2,f)}},giveMeA:function(a){if(a=="Try")return xDKI.alert("__festoMsgBoxGiveMeAV2: now",6),j;if(typeof a!="undefined")return a()},execMeA:function(a){if(a=="Try")return xDKI.alert("__festoMsgBoxGiveMeAV2: now",6),"Succeeded";typeof a!="undefined"&&window.setTimeout(a,0)},isNullDefault:function(a,b){return e(a,
b)},isNullDefaultString:function(a,b){return f(a,b)},isEmptyOrNullDefault:function(a,b){return a==""||typeof a=="undefined"||a==null?b:a},getBody:function(a,b){var c=null;try{c=document.getElementById(a)}catch(d){}c||(c=f(a,b));return c},noSelect:function(a){a.onselectstart=function(){return!1};a.unselectable="on";a.style.MozUserSelect="none";a.style.cursor="default"},canSelect:function(a){a.onselectstart=function(){return!0};a.unselectable="true";a.style.MozUserSelect="";a.style.cursor=""},calculateOpacity:function(a,
b,c,d){var e=d;try{var f=(new Date).getTime();f-=a;e=f==0?c:f>b?d:c+f/b*(d-c)}catch(g){xDKI.alert("MessageboxV2: Error in calcOpacity: ",2,g)}return e},calculateSize:function(a,b,c,d){var e=d;try{var f=(new Date).getTime();f-=a;e=f==0?c:f>b?d:c*1+f/b*(d-c)}catch(g){xDKI.alert("MessageboxV2: Error in calcSize: ",2,g)}return e},setOpacity:function(a,b){var c;c=a.style;try{c.filter="alpha(opacity="+b+")"}catch(d){}try{c.opacity=b/100}catch(e){}},setTransition:function(a){with(a.style);},isTransitionSet:function(a){var b=
!1;if(typeof a=="undefined")a=b;else if(typeof a.style=="undefined")a=b;else{with(a.style);a=!1}return a},registerObject:function(a,b){return xDKI.Objects.registerObject(a,b)},unregisterObject:function(a,b){xDKI.Objects.unregisterObject(a,b)},getObject:function(a){return xDKI.Objects.getObject(a)},generateGuid:function(){var a,b,c;a="";for(c=0;c<32;c++){if(c==8||c==12||c==16||c==20)a+="_";b=Math.floor(Math.random()*16).toString(16).toUpperCase();a+=b}return a},deletePx:function(a){var b;try{b=parseInt(a)}catch(c){xDKI.alert("messagebox: MSdeletePx: "+
a,2,c)}try{b=parseInt(a.replace(/px/g,""))}catch(d){}if(b==""||isNaN(b))b=0;xDKI.alert('messagebox: MSdeletePx: "'+a+'" => "'+b+'"',20);return b},getScrollPosY:function(a){var a=e(a,xDKI.Utilities.sameWindow()),b=a.document.body.scrollTop;b==0&&(b=a.pageYOffset?a.pageYOffset:a.document.body.parentElement?a.document.body.parentElement.scrollTop:0);return b},getScrollPosX:function(a){var a=e(a,xDKI.Utilities.sameWindow()),b=a.document.body.scrollLeft;b==0&&(b=a.pageYOffset?a.pageXOffset:a.document.body.parentElement?
a.document.body.parentElement.scrollLeft:0);return b},getElemScrollWidth:function(a){return a.scrollWidth},getElemScrollHeight:function(a){return a.scrollHeight},getBrowserSize:function(a){var b,c=e(a,h()),d;try{d=c.document}catch(f){}if(typeof d=="undefined")try{c=t?l:m,d=(t?l:m).document}catch(g){}typeof d=="undefined"&&(d=c.contentWindow||c.contentDocument);if(typeof d.documentElement=="undefined")a=c.width,b=c.height;else if(a=d.documentElement.clientWidth,b=d.documentElement.clientHeight,c.innerHeight)a=
c.innerWidth,b=c.innerHeight;else if(d.documentElement&&d.documentElement.clientHeight)a=c.document.documentElement.clientWidth,b=c.document.documentElement.clientHeight;else if(d.body)a=d.body.clientWidth,b=d.body.clientHeight;return[a,b]},getxDKILocation:function(){return k()},isIE6:function(){var a;try{b=="null"&&(b=document.all&&navigator.appVersion.indexOf("MSIE 6.")!=-1?!0:!1),a=b}catch(c){a=!1}return a},isIE:function(){var a;try{c=="null"&&(c=document.all&&navigator.appVersion.indexOf("MSIE")!=
-1?!0:!1),a=c}catch(b){a=!1}return a},addEvent:function(a,b,c){q(a,b,c)},removeEvent:function(a,b,c){a.detachEvent?(a.detachEvent("on"+b,a[b+c]),a[b+c]=null):a.removeEventListener(b,c,!1)},findPosX:function(a){var b=0;if(a.offsetParent)for(;a.offsetParent;)b+=a.offsetLeft,a=a.offsetParent;else a.x&&(b+=a.x);return b},findPosY:function(a){var b=0;if(a.offsetParent)for(;a.offsetParent;)b+=a.offsetTop,a=a.offsetParent;else a.y&&(b+=a.y);return b},getXmlHttp:function(){var a=null;typeof window.XMLHttpRequest!=
"undefined"&&(a=new window.XMLHttpRequest);if(!a)try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){a=null}}return a},setxDKILocation:function(a){g="";o=a},setxDKIBaseURL:function(a){g=a;o=a+"xdki.asp"},getxDKIBaseURL:function(){return d()},getSessionId:function(a,b){var c=document.cookie!=""?p(document.cookie):null;c==null&&(typeof a=="undefined"&&(c=["GuestDEDE","GuestDEDE"],a=c[0],b=c[1]),c=xDKI.Services.Session.RequestSessionId(a,b));return c},
getCookieInt:function(a,b){return p(a,b)},getUserPW:function(){return["GuestDEDE","GuestDEDE"]},setIAmTopInSameWindow:function(a){n=a},iAmTopInSameWindow:function(){return n},setFake:function(){j="Fake"},useFakeTop:function(a){t=a},adjustHeightInPortal:function(a,b,c){xDKI.Top.adjustHeightInPortal(a,b,c)},updateBasketCounter:function(a){xDKI.Top.updateBasketCounter(a)},getIFrameDocument:function(a){a=document.getElementById(a)?document.getElementById(a):a;a=a.contentWindow||a.contentDocument;try{if(a.document)oDoc=
a.document}catch(b){oDoc=!1}return oDoc},removeElement:function(){xDKI.alert("Kickit!")},isPNF:function(){return a=="true"},mergeObjects:function(a,b){for(var c in b)a[c]=b[c];return a},closeAllObjects:function(){xDKI.Objects.closeAll()},freeOnUnload:function(){xDKI.Objects.freeAll()},sameWindowgetElementById:function(a){var b;try{b=xDKI.Utilities.sameWindow().document.getElementById(a)}catch(c){}b||(b=findElementById(a));return b},mouseOutOf:function(a,b){var c;var d=a;if(!d)d=window.event;c=window.event?
d.srcElement:d.target;if(c.id!=b)c=!1;else{for(d=d.relatedTarget?d.relatedTarget:d.toElement;d!=c&&d.nodeName!="BODY";)d=d.parentNode;c=d==c?!1:!0}return c},popupSetClose:function(a,b){if(h().__xDKIPopupCloseSender!=a){try{h().__xDKIPopupClose()}catch(c){try{eval(h().__xDKIPopupClose)}catch(d){xDKI.alert("popupSetClose direct: ",5,c),xDKI.alert("popupSetClose eval: ",5,d)}}h().__xDKIPopupCloseSender=a}h().__xDKIPopupClose=b},getDocument:function(){return document}}};
function _xDKIUtilsInit_(){if(__xDKIUtils__initialized)xDKI.alert("xDKI: Tried to initialize twice, blocked.",2);else{__xDKIUtils__initialized=!0;xDKI.alert("MsgBox2: initializing",5);var h=new xDKI._Utilities,e=h.init();try{window.external.xDKICallDLL!=null&&(e=h.sameWindow())}catch(f){}var d=h.fakeTop(),k=!1;try{k=document==window.top.document}catch(q){k=!1}var p="dl: "+document.location;try{p+="    wl: "+window.document.location}catch(m){p+="    wl: Exception: "+m.message}try{p+="    wt: "+window.top.document.location}catch(l){p+=
"    wt: Exception: "+l.message}try{p+="    newTab: "+(document==window.top.document)}catch(n){p+="    newTab: "+k+" Exception: "+n.message}xDKI.alert(p,5);var a=p="nil",b="nil";try{p=e.xDKI,a=e.xDKI.Utilities,b=e.xDKI.Utilities.getDocument("native")}catch(c){}xDKI.alert("topWindow.xDKI: "+p+"   topWindow.xDKI.Utilities: "+a+' topWindows "document": '+b+" typeof(twd): "+typeof b,5);if(typeof p=="undefined"||a=="nil"||p=="nil"||b=="nil"||typeof b=="undefined"||b==null){xDKI.alert("MsgBox2: instantiating new xDKI components",
5);e.onunload=function(){xDKI.Utilities.freeOnUnload()};xDKI.Utilities=h;xDKI.Utilities.setIAmTopInSameWindow(!0);xDKI.Components=new xDKI._Components;xDKI.Services.AddToBasket=new xDKI.Services._AddToBasket;xDKI.Objects=typeof b=="object"?b==null?e.xDKI.Objects:new xDKI._Objects:new xDKI._Objects;try{if(xDKI.Top=new xDKI._Top,xDKI.Top.__topWindow=e,xDKI.Top.__fakeTop=d,xDKI.Events.Instances.init(e),e!=d&&k==!1){xDKI.alert("MsgBox2: copying instances to fakeTop",5);xDKI.Events.Instances.init(d);____registerNameSpace("xDKI",
d);d.xDKI=e.xDKI;d.xDKI.Utilities.setFake();try{window.external.xDKICallDLL!=null?d.xDKI.Utilities.useFakeTop(!1):d.xDKI.Utilities.useFakeTop(!0)}catch(g){xDKI.alert("MsgBox2: setting myself as fakeTop",5),d.xDKI.Utilities.useFakeTop(!0)}}}catch(o){xDKI.alert("Check / create event facory: ",2,o)}}else k?(xDKI.alert("MsgBox2: using already instantiated xDKI components in other TAB >"+e.document.title+"< domain: "+e.document.domain+"   "+document.domain,5),xDKI.Top=new xDKI._Top,xDKI.Top.__topWindow=
window,xDKI.Top.__fakeTop=d,xDKI.Objects=new xDKI._Objects,xDKI.Utilities=h,xDKI.Utilities.setIAmTopInSameWindow(!0),xDKI.Utilities.sameWindow(window),xDKI.Components=new xDKI._Components,xDKI.Services.AddToBasket=new xDKI.Services._AddToBasket,xDKI.Events.Instances.init(window)):(xDKI.alert("MsgBox2: using already instantiated xDKI components in same TAB >"+e.document.title+"< domain: "+e.document.domain+"   "+document.domain,5),xDKI=e.xDKI);if(typeof xDKI.Utilities.sameWindow().xDKI=="undefined")xDKI.alert("Copying myself to sameWindow",
5),xDKI.Utilities.sameWindow().xDKI=e.xDKI,xDKI.Utilities.sameWindow().xDKI.Utilities.setIAmTopInSameWindow(!0);xDKI.Utilities.tryLoadingStyleSheet(xDKI.Utilities.sameWindow());xDKI.alert("MsgBox2: initialized",5);xDKI.DebugObjectManager&&xDKI.Objects.dumpObjects()}}_xDKIUtilsInit_();

