
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2011, 2012 - All Rights reserved.  **/
(function(){
var w=window,i$=function(){
if(i$.qel){
return i$.qel.apply(this,arguments);
}
};
w.i$=i$;
i$.global=w;
if(typeof (console)=="undefined"){
var f=function(){
};
console={log:f,debug:f,info:f,warn:f,error:f,assert:f};
}
i$.partial=function(f){
var _1=i$.toArray(arguments).slice(1);
return function(){
var _2=_1.slice(0),_3=i$.toArray(arguments),i=0;
for(;i<_2.length;i++){
if(_2[i]===undefined){
_2[i]=_3.shift();
}
}
_2.push.apply(_2,_3);
return f.apply(this,_2);
};
};
i$.scope=function(s,f){
var of=f;
f=function(){
return (i$.isString(of)?s[of]:of).apply(s,arguments);
};
return i$.partial.apply(this,i$.toArray(arguments).slice(1));
};
i$.error=function(_4,_5){
console.error(_5||new Error(_4));
};
i$.forEach=function(_6,f,_7){
if(_7==null){
_7=0;
}
for(var i=(_7>=0)?_7:0;i<_6.length;i++){
f(_6[i],i,_6);
}
};
i$.forIn=function(o,f){
for(var i in o){
if(Object.prototype.hasOwnProperty.call(o,i)){
f(o[i],i,o);
}
}
};
i$.each=function(o,f,s){
if(s){
f=i$.scope(s,f);
}
if(o){
if(o instanceof Array||typeof o.length==="number"){
i$.forEach(o,f);
}else{
i$.forIn(o,f);
}
}
};
i$.some=function(a,f,s){
if(s){
f=i$.scope(s,f);
}
for(var i=0;i<a.length;i++){
if(f(a[i])){
return true;
}
}
return false;
};
i$.every=function(o,f,s){
if(s){
f=i$.scope(s,f);
}
return !i$.some(o,function(_8){
return !f(_8);
});
};
i$.wrap=function(o,n,f){
var fn=o[n];
o[n]=function(){
return f.call(this,fn,arguments);
};
o[n]._wrapped=fn;
return o[n];
};
i$.unwrap=function(o,n){
var fn=o[n];
if(fn&&fn._wrapped){
o[n]=fn._wrapped;
}
return o[n];
};
i$.copyShallow=function(o){
var r=i$.isArrayLike(o)?[]:{};
i$.forIn(o,function(v,k){
r[k]=v;
});
return r;
};
var _9=function(_a,_b,_c,_d){
if(_c||_b[_d]===undefined){
_b[_d]=function(){
return this[_a][_d].apply(this[_a],arguments);
};
}
},_e=function(_f,_10,_11,_12){
if(_11||_10[_12]===undefined){
_10[_12]=function(){
return _f[_12].apply(_f,arguments);
};
}
};
i$.shadow=function(s,t,_13,_14){
i$.each(_13,i$.partial(i$.isString(s)?_9:_e,s,t,_14));
};
var _15=function(_16,c,s){
var i,p,ts=s||i$.global;
for(i=0;ts!=null,i<_16.length,p=_16[i];i++){
if(ts[p]==null){
if(c){
ts[p]={};
}else{
ts=null;
break;
}
}
ts=ts[p];
}
return ts;
};
i$.fromPath=function(n,c,s){
var _17=n.split(".");
return _15(_17,c,s);
};
i$.toPath=function(n,v,s){
var _18=n.split("."),p=_18.pop(),o=_15(_18,true,s);
o[p]=v;
return v;
};
i$.cachedFn=function(f,s){
var val;
var fn=function(){
if(!fn.called){
fn.called=true;
val=f.apply(s,arguments);
}
return val;
};
return fn;
};
i$.xhrFmts={text:function(xhr){
return xhr.responseText;
},json:function(xhr){
return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(xhr.responseText.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+xhr.responseText+")");
},xml:function(xhr){
return xhr.responseXML;
},javascript:function(xhr){
if((/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(str.replace(/"(\\.|[^"\\])*"/g,"")))){
throw new SyntaxError("Invalid characters in javascript object");
}else{
return eval("("+xhr.responseText+")");
}
}};
})();
(function(){
var i$=window.i$;
(function(ua){
var _19=function(_1a){
return parseFloat(_1a);
},_1b=[["IE",/MSIE\s*([\S]+)*/],["FF",/Firefox\/([\S]+)*/],["Opera",/Opera[\s\/]([\S]+)*/],["Safari",/Version\/([\S]+)*[\s\S]*Safari/],["Chrome",/Chrome\/([\S]+)*/],["WebKit",/AppleWebKit\/([\S]+)*/]];
i$.each(_1b,function(_1c){
var m=_1c[1].exec(ua);
if(m&&m.length>1){
i$["is"+_1c[0]]=_19(m[1]);
}
});
})(navigator.userAgent);
var _1d=document.documentMode;
if(_1d&&_1d!=5&&Math.floor(i$.isIE)!=_1d){
i$.isIE=_1d;
}
i$.isNode=function(o){
return typeof o==="object"&&typeof o.nodeType==="number"&&typeof o.nodeName==="string";
};
i$.isFunction=function(o){
return typeof o==="function"||o instanceof Function;
};
i$.isObject=function(o){
return typeof o==="object";
};
i$.isArray=function(o){
if(typeof Array.isArray==="function"){
return Array.isArray(o);
}else{
return Object.prototype.toString.call(o)==="[object Array]";
}
};
i$.isString=function(o){
return typeof o==="string";
};
i$.isNumber=function(o){
return typeof o==="number";
};
i$.isBoolean=function(o){
return typeof o==="boolean";
};
i$.isLikeArray=function(o){
return o instanceof Array||typeof o.length==="number";
};
i$.toArray=function(o){
return Array.prototype.slice.call(o);
};
if(i$.isIE){
var _1e=i$.toArray;
i$.toArray=function(o){
try{
return _1e(o);
}
catch(err){
var a=new Array(o.length);
for(var i=0;i<o.length;i++){
a[i]=o[i];
}
return a;
}
};
}
var _1f=(document.readyState==="complete"),_20=[],_21=[],_22=false;
i$._initPage=function(){
var fn;
_1f=true;
if(window.detachEvent){
window.detachEvent("onload",i$._initPage);
}
while(_20.length>0){
if(fn=_20.shift()){
try{
fn();
}
catch(err){
console.log(err);
}
}
}
};
i$._exitPage=function(){
var fn;
while(_21.length>0){
if(fn=_21.shift()){
try{
fn();
}
catch(err){
console.log(err);
}
}
}
};
i$._addEvent=function(e,f,o){
var w=o?o:window;
var s=w.attachEvent?e:e.substring(2);
var a=w.attachEvent||w.addEventListener;
a(s,function(){
f.apply(w,arguments);
},false);
};
if(!_1f){
i$._addEvent("onload",i$._initPage);
if(document.addEventListener){
document.addEventListener("DOMContentLoaded",i$._initPage,false);
}
}
i$.addOnLoad=function(f,o){
if(o){
f=i$.scope(o,f);
}
if(_1f){
f();
}else{
_20.push(f);
}
};
i$.addOnUnload=function(f,o){
if(!_22){
i$._addEvent("onunload",i$._exitPage);
_22=true;
}
if(o){
f=i$.scope(o,f);
}
_21.push(f);
};
var mx=function(o,m){
for(var p in m){
if(m.hasOwnProperty(p)){
o[p]=m[p];
}
}
},mxn=function(o,m,_23){
i$.forEach(_23,function(p){
if(m.hasOwnProperty(p)){
o[p]=m[p];
}
});
};
i$.mash=function(o){
i$.forEach(arguments,function(v){
mx(o,v);
},1);
return o;
};
i$.mashSpec=function(n,o){
i$.forEach(arguments,function(v){
mxn(o,v,n);
},2);
return o;
};
i$.augment=function(f){
var r=f;
if(f&&f.prototype){
f=f.prototype;
i$.mash.apply(i$,arguments);
}
return r;
};
i$.make=(function(){
var l=function(){
};
return function(o){
l.prototype=o;
o=new l();
return i$.mash.apply(i$,arguments);
};
})();
var _24=/^\s+/g;
i$.trim=function(str){
str=str.replace(_24,"");
var i=str.length-1;
while(str.charAt(i)==" "||str.charAt(i)=="\t"||str.charAt(i)=="\n"||str.charAt(i)=="\r"){
i--;
}
return str.substring(0,i+1);
};
var _25=i$.isArray,_26=i$.isObject;
i$.merge=function(_27,_28,_29){
var _29=_29||[],v,c;
_28=_28||i$.global;
if(_25(_27)&&_25(_28)){
_28.push.apply(_28,_27);
}else{
for(var x in _27){
if(_27.hasOwnProperty(x)){
v=_27[x],c=_28[x];
if(c!=null&&((_25(v)&&_25(c))||(_26(v)&&_26(c)))){
_28[x]=i$.merge(v,c,_29.concat(x));
}else{
_28[x]=v;
}
}
}
}
return _28;
};
var _2a;
i$.isRTL=function(_2b){
if(!_2a){
_2a=i$.fromPath("ibmCfg.themeConfig.RTLMap");
}
var _2c=_2a||{"iw":1,"he":1,"ar":1};
return (_2b.substring(0,2) in _2c);
};
})();


}catch(e){console.log("Module 'wp_client_main': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2011, 2012 - All Rights reserved.  **/
(function(){
var i$=window.i$;
i$.Promise=function(){
this._cbs=[];
this._stat=-1;
};
i$.promise={};
i$.promise.Promise=i$.Promise;
i$.mash(i$.promise,{isPromise:function(o){
return o&&i$.isFunction(o.then);
},resolved:function(o){
var p=new i$.Promise();
p.resolve(o);
return p;
},rejected:function(_1){
var p=new i$.Promise();
p.reject(_1);
return p;
},join:function(_2){
var _3=new i$.Promise(),_4=new Array(_2.length),_5=0,_6=false,_7=function(){
if(++_5>=_4.length){
_3[_6?"reject":"resolve"](_4);
}
};
if(_2.length>0){
i$.each(_2,function(p,i){
p.then(function(v){
_4[i]=v;
_7();
},function(e){
_6=true;
_4[i]=e;
_7();
});
});
}else{
_3.resolve([]);
}
return _3;
}});
i$.mash(i$,{when:function(o){
return i$.promise.isPromise(o)?o:i$.promise.resolved(o);
},whenAll:function(o){
var a=[];
i$.each(arguments,function(p){
a.push(i$.when(p));
});
return i$.promise.join(a);
}});
i$.promise.when=i$.when;
i$.promise.whenAll=i$.whenAll;
i$.Promise.prototype={_fin:function(v,s){
if(this._stat!==-1){
throw new Error("Promise already resolved");
}
this._v=v;
this._stat=s;
this._cbk();
return this;
},_cbk:function(){
var st=this._stat,_8=this._cbs,v=this._v,f;
if(st===0){
if(i$.promise.isPromise(v)){
while(_8.length>0){
v.then.apply(v,_8.shift());
}
}
}
while(_8.length>0){
f=_8.shift()[st];
if(f){
try{
f(v);
}
catch(err){
}
}
}
},_delegate:function(fn){
var p=new i$.Promise();
this.then(i$.partial(fn,p),i$.scope(p,"reject"));
return p;
},resolve:function(v){
return this._fin(v,0);
},reject:function(e){
return this._fin(e,1);
},progress:function(p){
i$.each(this._cbs,function(_9){
if(_9[2]){
_9[2](p);
}
});
return this;
},then:function(_a,_b,_c){
var p=new i$.Promise();
this._cbs.push([function(v){
try{
if(_a){
var rv=_a(v);
if(rv!==undefined){
v=rv;
}
}
p.resolve(v);
}
catch(exc){
p.reject(exc);
}
},function(e){
var rv=e;
try{
if(_b){
rv=_b(e);
if(rv===undefined){
rv=e;
}
}
}
catch(exc){
rv=exc;
}
p.reject(rv);
},_c]);
if(this._stat!==-1){
this._cbk();
}
return p;
},call:function(_d,_e){
return this._delegate(function(p,_f){
if(_f&&i$.isFunction(_f[_d])){
p.resolve(_f[_d].apply(_f,_e));
}else{
p.reject(new Error(_d+" is not a function on "+o));
}
});
},get:function(_10){
return this._delegate(function(p,_11){
if(_11){
p.resolve(_11[_10]);
}else{
p.reject(new Error(_11+" is null or undefined"));
}
});
}};
i$.onLoadPromise=new i$.Promise();
i$.addOnLoad(function(){
i$.onLoadPromise.resolve(true);
});
})();
(function(){
var i$=window.i$;
i$.getXHR=typeof XMLHttpRequest!=="undefined"?function(){
return new XMLHttpRequest();
}:function(){
return new ActiveXObject("MSXML2.XMLHTTP.3.0");
};
i$.toQuery=function(o){
var q=[];
var enc=encodeURIComponent;
i$.each(o,function(v,k){
var key=enc(k)+"=";
if(i$.isString(v)){
q.push(key+enc(v));
}else{
if(i$.isArray(v)){
var key=enc(k)+"=";
i$.each(v,function(av,i){
q.push(key+enc(av));
});
}
}
});
return q.join("&");
};
i$.addQueryString=function(u,o){
if(o){
var p=u&&u.indexOf("?")!==-1,t=p?"&":"?";
u+=t+i$.toQuery(o);
}
return u;
};
i$.fromQuery=function(q){
var o={};
var dec=decodeURIComponent;
i$.each(q.split("&"),function(av,i){
var p=av.split("="),k=dec(p[0]),v=dec(p[1]),cv=o[k];
if(cv){
if(!i$.isArray(cv)){
cv=o[k]=[cv];
}
cv.push(v);
}else{
o[k]=v;
}
});
return o;
};
i$.xhr=function(_12,_13){
var _12=_12||"GET",_14=new i$.Promise(),url=_13.url||"",_15=_13.sync||false,cb=_13.callback||function(){
},_16=_13.responseType||"text",_17=_13.postData||null,_18=_13.timeout||null,xhr=i$.getXHR(),_19=false,_1a=false;
var _1b=function(){
if(xhr.readyState===4){
xhr.onreadystatechange=i$.isIE<=8?new Function():null;
var _1c=function(){
if(xhr.status>=400){
var err=new Error(xhr.status+": "+xhr.responseText);
try{
cb(err,xhr);
}
finally{
if(!_19){
_19=true;
_14.reject({data:err,xhr:xhr});
}
}
}else{
try{
var ret="";
if(i$.xhrFmts[_16]){
ret=i$.xhrFmts[_16](xhr);
}
}
catch(err){
cb(err,xhr);
return;
}
try{
cb(ret,xhr);
}
finally{
if(!_19){
_19=true;
_14.resolve({data:ret,xhr:xhr});
}
}
}
};
if(xhr.timeout){
window.setTimeout(function(){
if(!_1a){
_1c();
}
},0);
}else{
_1c();
}
}
};
if(!_15){
xhr.onreadystatechange=_1b;
}
xhr.open(_12,url,!_15);
i$.each(_13.headers,function(v,k){
xhr.setRequestHeader(k,v);
});
if(_18){
xhr.timeout=_18;
xhr.ontimeout=function(){
_1a=true;
if(!_19){
_19=true;
_14.reject({data:"timeout",xhr:xhr});
}
};
}
xhr.send(_17);
if(_15){
_1b();
}
return _14;
};
i$.each(["Get","Put","Post","Delete"],function(m){
i$["xhr"+m]=i$.partial(i$.xhr,m.toUpperCase());
});
i$.loadScript=function(_1d){
var _1e=document.getElementsByTagName("head")[0],_1f=document.createElement("script"),_20=new i$.Promise(),_21=false,_22=function(_23,_24){
_1f.onreadystatechange=_1f.onload=null;
_21=true;
_20[_23?"resolve":"reject"](_24);
if(_1d.callback){
_1d.callback(_23,_24);
}
_1e.removeChild(_1f);
_1f=null;
};
_1f.type="text/javascript";
_1f.onreadystatechange=function(){
if(this.readyState==="loaded"||this.readyState==="complete"){
_22(true);
}
};
_1f.onload=function(){
_22(true);
};
i$.each(_1d.scriptAttrs,function(v,k){
if(v!=null){
_1f.setAttribute(k,v);
}
});
_1f.src=_1d.url;
_1e.appendChild(_1f);
if(_1d.timeout){
setTimeout(function(){
if(!_21){
_22(false,new Error("Timeout exceeded"));
}
},_1d.timeout);
}
return _20;
};
})();
(function(){
var i$=window.i$;
if(typeof (JSON)!="undefined"&&JSON.parse){
i$.fromJson=function(str){
return JSON.parse(str);
};
i$.toJson=function(obj,_25){
return JSON.stringify(obj,null,_25?"\t":"");
};
}else{
i$.fromJson=function(str){
return eval(["(",str,")"].join(""));
};
var _26=function(str){
return ["\"",str.replace(/[\\]/g,"\\\\").replace(/["]/g,"\\\"").replace(/[\r]/g,"\\r").replace(/[\n]/g,"\\n").replace(/[\b]/g,"\\b").replace(/[\t]/g,"\\t").replace(/[\f]/g,"\\f"),"\""].join("");
},_27=function(obj,p,_28,_29){
var ap,_2a;
if(_28){
_29=_29||"";
_2a=_29+"\t";
}
if(obj===null){
p.push("null");
}else{
if(obj===undefined){
p.push("undefined");
}else{
if(i$.isBoolean(obj)||i$.isNumber(obj)){
p.push(obj);
}else{
if(i$.isString(obj)){
p.push(_26(obj));
}else{
if(i$.isFunction(obj.toJson)){
p.push(obj.toJson());
}else{
if(i$.isArray(obj)){
p.push("[");
ap=[];
i$.each(obj,function(el){
var _2b=[];
_27(el,_2b,_28,_2a);
ap.push(_2b.join(""));
});
if(ap.length>0){
if(_28){
p.push("\n"+_2a);
}
p.push(ap.join(_28?",\n"+_2a:","));
if(_28){
p.push("\n"+_29);
}
}
p.push("]");
}else{
if(i$.isObject(obj)){
p.push("{");
ap=[];
i$.each(obj,function(el,key){
var _2c=[_26(key),": "];
_27(el,_2c,_28,_2a);
ap.push(_2c.join(""));
});
if(ap.length>0){
if(_28){
p.push("\n"+_2a);
}
p.push(ap.join(_28?",\n"+_2a:","));
if(_28){
p.push("\n"+_29);
}
}
p.push("}");
}
}
}
}
}
}
}
};
i$.toJson=function(obj,_2d){
var p=[];
_27(obj,p,_2d);
return p.join("");
};
}
i$.xhrFmts.json=function(xhr){
return i$.fromJson(xhr.responseText);
};
})();
(function(){
var i$=window.i$;
var _2e=function(){
this._evts={};
},_2f=function(_30,_31){
return _30._evts[_31]||(_30._evts[_31]={l:[],b:[]});
},add=function(_32,_33,_34,fn){
var e=_2f(_32,_33),c=e[_34].push(fn);
return [_33,_34,c-1];
},_35=function(_36,_37){
var e=_2f(_36,_37[0]);
delete e[_37[1]][_37[2]];
},_38=function(evt,_39,_3a){
var _3b=evt.b,_3a=_3a||0,b,r;
for(var i=_3a;i<_3b.length;i++){
b=_3b[i];
if(b){
_39=typeof _39==="undefined"?[]:_39;
r=b.apply(null,_39||[]);
if(i$.promise.isPromise(r)){
return r.then(function(_3c){
if(_3c!==false){
return _38(evt,_39,i+1);
}
return _3c;
});
}
}
}
},_3d=function(evt,_3e){
var _3f=evt.l,l;
for(var i=0;i<_3f.length;i++){
l=_3f[i];
if(l){
l.apply(null,_3e||[]);
}
}
},_40=function(_41,_42,_43){
var e=_2f(_41,_42);
return i$.when(_38(e,_43)).then(function(_44){
if(_44!==false){
_3d(e,_43);
}
return _44;
});
};
i$.augment(_2e,{addListener:function(_45,fn){
return add(this,_45,"l",fn);
},removeListener:function(_46){
return _35(this,_46);
},addBroker:function(_47,fn){
return add(this,_47,"b",fn);
},removeBroker:function(_48){
return _35(this,_48);
},fireEvent:function(_49,_4a){
return _40(this,_49,_4a);
}});
var _4b=new _2e();
i$.each(["addListener","removeListener","addBroker","removeBroker","fireEvent"],function(n){
i$[n]=i$.scope(_4b,n);
});
})();
(function(){
var _4c=(function(){
var _4d=new Map();
var _4e=function(){
this.isHCLEvent=function(_4f){
return _4f.match(/^HCL-.*/g);
};
this.addEvent=function(_50,_51,_52){
if(_50&&_51){
if(this.isHCLEvent(_50)){
var _53=_4d.get(_52)||{};
_53[_50]=_51;
_4d.set(_52,_53);
}
}
},this.removeEvent=function(_54,_55){
if(_54){
if(this.isHCLEvent(_54)){
_4d["delete"](_55);
}
}
},this.getEvent=function(_56,_57){
var _58=_4d.get(_57)||{};
return this.isHCLEvent(_56)?_58[_56]:null;
};
};
return new _4e();
})();
(function(){
if(typeof window.CustomEvent==="function"){
return false;
}
function _59(_5a,_5b){
_5b=_5b||{bubbles:false,cancelable:false,detail:null};
var evt=document.createEvent("CustomEvent");
evt.initCustomEvent(_5a,_5b.bubbles,_5b.cancelable,_5b.detail);
return evt;
};
window.CustomEvent=_59;
})();
var _5c=function(_5d){
return function(_5e,_5f,_60){
_5d.call(this,_5e,_5f,_60);
if(_60&&_60.lastState&&_4c.isHCLEvent(_5e)&&_4c.getEvent(_5e,this)){
_5f(_4c.getEvent(_5e,this));
}
};
};
var _61=function(_62){
return function(_63,_64,_65){
if(_4c.isHCLEvent(_63)){
_4c.removeEvent(_63,this);
}
_62.call(this,_63,_64,_65);
};
};
var _66=function(_67){
return function(_68){
if(_68.detail&&_4c.isHCLEvent(_68.type)){
_4c.addEvent(_68.type,_68,this);
}
_67.call(this,_68);
};
};
if(typeof EventTarget!="undefined"){
EventTarget.prototype.addEventListener=_5c(EventTarget.prototype.addEventListener);
EventTarget.prototype.removeEventListener=_61(EventTarget.prototype.removeEventListener);
EventTarget.prototype.dispatchEvent=_66(EventTarget.prototype.dispatchEvent);
}else{
var _69=[window,document];
_69.forEach(function(_6a){
_6a.addEventListener=_5c(_6a.addEventListener);
_6a.removeEventListener=_61(_6a.removeEventListener);
_6a.dispatchEvent=_66(_6a.dispatchEvent);
});
Element.prototype.addEventListener=_5c(Element.prototype.addEventListener);
Element.prototype.removeEventListener=_5c(Element.prototype.removeEventListener);
Element.prototype.dispatchEvent=_66(Element.prototype.dispatchEvent);
}
})();
(function(){
var i$=window.i$;
var _6b=document.createElement("div");
i$.byId=function(id){
if(i$.isNode(id)){
return id;
}else{
return document.getElementById(id);
}
};
i$.createDom=function(_6c,_6d,_6e){
var el=document.createElement(_6c);
i$.each(_6d,function(v,k){
el.setAttribute(k,v);
});
if(_6e){
_6e.appendChild(el);
}
return el;
};
var _6f=_6b.addEventListener?function(n){
return n.indexOf("on")==0?n.substr(2):n;
}:function(n){
return n.indexOf("on")!=0?"on"+n:n;
},add=_6b.addEventListener?function(_70,_71,f){
_70.addEventListener(_71,f,false);
}:function(_72,_73,f){
_72.attachEvent(_73,f);
},_74=_6b.removeEventListener?function(_75,_76,f){
_75.removeEventListener(_76,f,false);
}:function(_77,_78,f){
_77.detachEvent(_78,f);
};
i$.isDescendant=function(_79,anc){
if(anc){
while(_79){
if(_79==anc){
return true;
}
_79=_79.parentNode;
}
}
return false;
};
i$.bindDomEvt=function(_7a,_7b,f){
_7b=_6f(_7b);
if((_7b=="mouseleave"||_7b=="mouseenter")&&!i$.isIE){
var fp=f;
_7b=_7b=="mouseleave"?"mouseout":"mouseover";
f=function(e){
if(!i$.isDescendant(e.relatedTarget,_7a)){
return fp.call(this,e);
}
};
}
add(_7a,_7b,f);
return [_7a,_7b,f];
};
i$.unbindDomEvt=function(_7c){
if(_7c[0]){
_74(_7c[0],_7c[1],_7c[2]);
}
_7c.splice(0,3);
};
if("classList" in _6b){
i$.mash(i$,{addClass:function(_7d,_7e){
_7d&&_7d.classList&&_7d.classList.add(_7e);
},removeClass:function(_7f,_80){
_7f&&_7f.classList&&_7f.classList.remove(_80);
},hasClass:function(_81,_82){
return _81&&_81.classList&&_81.classList.contains(_82);
},toggleClass:function(_83,_84){
_83&&_83.classList&&_83.classList.toggle(_84);
}});
}else{
var _85=function(str,_86){
if(!str){
return -1;
}
var len=_86.length,i=str.indexOf(_86),_87,_88;
while(i>-1){
_88=str.charAt(i+len);
_87=str.charAt(i-1);
if((!_88||_88==" ")&&(!_87||_87==" ")){
break;
}
i=str.indexOf(_86,i+1);
}
return i;
};
i$.mash(i$,{addClass:function(_89,_8a){
if(!_89){
return;
}
if(_85(_89.className,_8a)<0){
_89.className+=" "+_8a;
}
},removeClass:function(_8b,_8c){
if(!_8b){
return;
}
var str=_8b.className,len=_8c.length,i=_85(str,_8c),val=[];
if(i>-1){
if(i>0){
val.push(str.substring(0,i));
}
if(str.length>i+len){
val.push(str.substr(i+len));
}
_8b.className=i$.trim(val.join());
}
},hasClass:function(_8d,_8e){
if(!_8d){
return;
}
return _85(_8d.className,_8e)>-1;
},toggleClass:function(_8f,_90){
if(!_8f){
return;
}
i$[i$.hasClass(_8f,_90)?"removeClass":"addClass"](_8f,_90);
}});
}
})();
(function(){
var i$=window.i$;
var _91=/([^_]+)_([^_]+)_deferred_?([\d]+)?/,_92=/alternate/i,_93=function(t){
return document.getElementsByTagName(t);
},_94=function(){
return _93("head")[0];
},_95=function(url){
i$.createDom("link",{rel:"stylesheet",type:"text/css",href:url},_94());
return i$.promise.resolved();
},_96=function(url){
return i$.loadScript({url:url});
},_97=function(mod){
return i$.xhrGet({url:mod.url,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_98){
return {mod:mod,data:_98.data};
});
},_99=function(_9a){
i$.each(_9a,function(_9b){
var m=_9b.mod;
var _9c=m.node.parentNode;
var _9d=m.p!="head"?m.node:null;
var _9e=document.createDocumentFragment(),tmp=i$.createDom("div");
tmp.innerHTML=_9b.data;
while(tmp.firstChild){
_9e.appendChild(tmp.firstChild);
}
_9c.insertBefore(_9e,_9d);
});
},_9f=function(_a0){
if(_92.test(_a0.rel)){
var id=_a0.id,_a1=id.match(_91);
if(_a1){
return {node:_a0,url:_a0.href,id:id,p:_a1[1],t:_a1[2],i:_a1[3]};
}
}
},_a2=function(){
var m={head:[],config:[]},_a3={},_a4={length:0},_a5=_93("link"),_a6=_93("a");
i$.each([_a5,_a6],function(_a7){
i$.each(_a7,function(_a8){
var mod=_9f(_a8);
if(mod&&!_a3[mod.id]){
_a3[mod.id]=mod;
if(!_a4[mod.t]){
_a4[mod.t]=[];
_a4.length=_a4.length+1;
}
_a4[mod.t].push(mod);
}
});
});
return _a4;
},_a9=function(_aa){
var _ab=[];
var _ac=[];
i$.each(_aa["markup"],function(mod){
_ac.push(_97(mod));
});
return i$.whenAll.apply(this,_ac).then(function(_ad){
_ab=_ad;
_ac=[];
i$.each(_aa["css"],function(mod){
_ac.push(_95(mod.url));
});
return i$.whenAll.apply(this,_ac);
},function(err){
console.log("Error: ",err);
}).then(function(_ae){
return _af(_aa["js"]);
}).then(function(){
_99(_ab);
});
},_af=function(_b0){
var m=_b0.shift(),p;
if(m){
p=_96(m.url);
}
return i$.when(p).then(function(){
return _b0.length>0?_af(_b0):true;
},function(err){
console.log("Error: ",err);
});
},_b1=false,_b2=null,_b3=false,_b4=false,_b5=new i$.Promise(),_b6=function(cbk){
i$.addOnLoad(function(){
if(!_b1){
_b2=_a2();
_b3=_b2.length>0?false:true;
if(_b3){
_b5.resolve();
}
_b1=true;
}
if(cbk){
cbk();
}
});
};
i$.modules={};
i$.mash(i$.modules,{areLoaded:function(){
return _b3;
},areLoading:function(){
return _b4;
},loadDeferred:function(){
if(_b4){
return _b5;
}
var cbk=function(){
if(!_b3){
_b4=true;
_a9(_b2).then(function(){
_b3=true;
_b4=false;
_b5.resolve();
},function(e){
_b5.reject(e);
});
}
};
_b6(cbk);
return _b5;
},addAfterLoaded:function(f){
var cbk=function(){
_b5.then(f);
};
_b6(cbk);
}});
var _b7=i$.addOnLoad,_b8=[];
i$.addOnLoad=function(f,o){
if(_b4){
if(o){
f=i$.scope(o,f);
}
_b8.push(f);
}else{
_b7(f,o);
}
};
i$.modules.addAfterLoaded(function(){
while(_b8.length>0){
if(fn=_b8.shift()){
fn();
}
}
});
})();
(function(){
var i$=window.i$;
i$.getCookie=function(n){
var cs=document.cookie.split(";"),c="",_b9=0,cn="",cv=null;
for(var i=0;i<cs.length;i++){
c=cs[i];
_b9=c.indexOf("=");
cn=_b9<0?null:i$.trim(c.substring(0,_b9));
if(cn==n){
if(c.length>1){
cv=_b9<0?null:i$.trim(c.substring(_b9+1,c.length));
}
return cv;
}
}
return null;
};
i$.setCookie=function(n,v,e,p,d,s){
if(!e){
var m=new Date().getTime();
m+=(1000*60*60*24*365*100);
e=new Date(m);
}
var c=n+"="+v+((e)?"; expires="+e.toGMTString():"")+((p)?"; path="+p:"; path=/")+((d)?"; domain="+d:"")+((s)?"; secure":"");
document.cookie=c;
};
i$.deleteCookie=function(n,p,d){
if(i$.getCookie(n)){
document.cookie=n+"="+((p)?"; path="+p:"; path=/")+((d)?"; domain="+d:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
};
})();


}catch(e){console.log("Module 'wp_client_ext': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2011, 2012 - All Rights reserved.  **/
(function(){
var i$=window.i$;
var _1=i$.log={};
var _2=[];
var _3=function(_4,_5){
return _4.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_6,_7,_8){
var _9=_5[_7];
return _9;
});
};
i$.Logger=function(_a){
this.name=_a?_a:null;
};
_1.Logger=i$.Logger;
i$.mash(_1,{LEVEL_TRACE:500,LEVEL_INFO:800,LEVEL_WARNING:900,LEVEL_SEVERE:1000});
var _b=_1.LEVEL_INFO;
var _c=_1.LEVEL_WARNING;
var _d=_1.LEVEL_SEVERE;
i$.mash(_1,{getLogger:function(_e){
if(!_2[_e]){
_2[_e]=new i$.Logger(_e);
}
return _2[_e];
},setTraceConfig:function(_f,_10){
console.log("IMPORTANT: In order to enable tracing you need to configure module wp_client_tracing to be downloaded.");
}});
i$.getLogger=i$.log.getLogger;
i$.setTraceConfig=i$.log.setTraceConfig;
i$.Logger.prototype={info:function(_11,_12,_13){
this.log(_b,_11,_12,_13);
},warning:function(_14,_15,_16){
this.log(_c,_14,_15,_16);
},severe:function(_17,_18,_19){
this.log(_d,_17,_18,_19);
},log:function(_1a,_1b,_1c,_1d){
if((_1d&&!i$.isArray(_1d))||_1d===false){
_1d=[_1d];
}
var _1e=this.name;
var _1f=_1d?_3(_1c.toString(),_1d):_1c;
var _20="ibmStatusBox";
var _21="/portal/status";
var _22=i$.fireEvent;
var _23=com.ibm.widgets.StatusMessage;
var _24=null;
if(_1a==_d){
_24="error";
}else{
if(_1a==_c){
_24="warning";
}else{
if(_1a==_b){
_24="info";
}
}
}
if(_24){
_22(_21,[{message:new _23(_24,_1e+" "+_1b+": "+_1f,""),uid:_20}]);
}
}};
})();


}catch(e){console.log("Module 'wp_client_logging': ",e);}
try{

}catch(e){console.log("Module 'wp_client_tracing': ",e);}
try{(function(){var h=window;function k(e){for(var g=l.call(arguments,1),c,b=g,d=b.length,a=[];d;)void 0===b[--d]&&a.unshift(d);c=a;return function(){for(var a=g.slice(),b=c.length;b;)a[c[--b]]=arguments[b];m.apply(a,l.call(arguments,c.length));return e.apply(void 0,a)}}function p(e,g,c){for(var b=e.split("."),d=b.length-1,a=c,f=0;f<d;){var n=b[f++],j;if(!(j=a[n]))j={},a[n]=j;a=j}b=b[f];c=k(g,c);d=a;if(!(f=d[b]))c=c(),f=d[b]=c;a=f;a.clone=k(p,e,g);return a}var q=h.Array.prototype,l=q.slice,m=q.push;
p("wpModules.modules",function(e){return{create:k(p,void 0,void 0,e),partial:k}},h);}());
}catch(e){console.log("Module 'wp_modules': ",e);}
try{(function(){var g=window;function j(a,c){var b,d;for(d=c.length-1;0<=d;--d)if(b=c[d],b===a)return d;return-1}function k(a,c,b){return b.setAttribute(a,c)}function l(a,c){return c.removeAttribute(a)}function m(a,c,b){return c?b.setAttribute(a,a):b.removeAttribute(a)}function n(a,c){var b=c.className.split(" "),d=j(a,b);0>d?b.push(a):b.splice(d,1);c.className=b.join(" ");return!0}function p(a,c){var b=c.className.split(" ");0>j(a,b)?(b.push(a),c.className=b.join(" "),b=!0):b=!1;return b}
function q(a,c){var b=c.className.split(" "),d=j(a,b);0<=d?(b.splice(d,1),c.className=b.join(" "),b=!0):b=!1;return b}function r(a,c,b){return c?p(a,b):q(a,b)}function s(a,c){return a&&c?c.getAttribute("data-"+a):void 0}function t(a){return a?a.innerText||a.textContent:void 0}function u(a,c){var b=s(a,c),d;b&&((d=b&&c?c.ownerDocument.getElementById(b):void 0)||(d=u(b,c)));return d}function v(a,c){var b,d,e;if(w(a)){d=0;e=a.length;for(b=c;d<e&&b;)b=u(a[d++],b)}else b=u(a,c);return b}
function x(a,c,b){for(var d=arguments,e=2,h=d.length,f=a.createElement(c);e<h;)k(d[e++],d[e++],f);return f}function y(a){var c=a.parentNode;c&&c.removeChild(a);return a}function z(a,c,b){c.addEventListener(a,b,!1)}function A(a,c,b){c.removeEventListener(a,b,!1)}function B(a,c){var b=c||a.oninput,d,e;b&&(d=a.ownerDocument,e=b.bind(a),z("focus",a,C(z,"selectionchange",d,e)),z("blur",a,C(A,"selectionchange",d,e)));return b}
function D(a,c){var b=c||a.event;b&&(b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0);return!1}function E(a){for(var c=0,b=0;a;)c+=a.offsetLeft+a.clientLeft,b+=a.offsetTop+a.clientTop,a=a.offsetParent;return{x:c,y:b}}function F(a,c,b,d){var e,h,f;if(w(b)){e=0;for(h=b.length;e<h;)f=F(a,c,b[e++],d)}else f=x(a,"INPUT","type","hidden","name",d,"value",b),c.appendChild(f);return f}var G=g.wpModules.modules,C=G.partial,w=g.Array.isArray;
(0,G.create)("wpModules.photon.dom",function(a){var c=a.document;a=C(D,a);var b=C(x,c),c=C(F,c);return{getData:s,getNode:v,getText:t,addClass:p,removeClass:q,conditionalClass:r,toggleClass:n,setAttribute:k,conditionalAttribute:m,removeAttribute:l,createElement:b,removeElement:y,polyfillOnInput:B,cancelEvent:a,getPosition:E,addHiddenInput:c}});}());
}catch(e){console.log("Module 'wp_photon_dom': ",e);}
try{(function(_1){
"use strict";
var _2="name",_3="id",_4="content",_5="meta",_6="x-ready",_7="ready",_8=_1["wpModules"],_9=_8["photon"]["dom"],_a=_8["modules"],_b=_a["create"],_c=_a["partial"],_d=_9["createElement"],_e=_9["removeElement"],_f=_9["getData"],_10=_1["Object"].prototype.toString;
function _11(_12){
var _13="[object String]"===_12;
return _13;
};
function _14(_15){
var _16=_10.call(_15);
return _16;
};
function _17(_18,aId){
return _18.getElementById(aId);
};
function _19(_1a,aId){
var _1b=_14(aId),_1c;
if(_11(_1b)){
_1c=aId;
}else{
_1c=_f(_7,aId);
}
return _1c;
};
function _1d(_1e,_1f,aId){
var id=_19(_1f,aId),_20=_1e.getItem(id),_21;
if(_20){
_1e.removeItem(id);
_21=_17(_1f,id);
if(_21){
_e(_21);
}
_21=_d(_5,_3,id,_2,_6,_4,_20);
_1f.head.appendChild(_21);
}
return _21;
};
function _22(_23){
var _24=_23.document,_25=_23.sessionStorage,_26=_c(_1d,_25,_24);
return {"addReady":_26};
};
return _b("wpModules.toolbar.common",_22);
}(window));


}catch(e){console.log("Module 'wp_toolbar_common': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
(function(_1){
function _2(_3){
return (_3.getElementsByTagName("html")[0].getAttribute("dir")||"").toLowerCase()=="rtl";
};
function _4(_5){
var v=_5.documentElement;
return {width:v.clientWidth,height:v.clientHeight};
};
function _6(_7){
var _8=curtop=0;
if(_7.offsetParent){
do{
_8+=_7.offsetLeft;
curtop+=_7.offsetTop;
}while(_7=_7.offsetParent);
return {left:_8,top:curtop};
}
return null;
};
function _9(_a){
var bb=_a.getBoundingClientRect(),b={width:bb.width,height:bb.height,left:bb.left,top:bb.top,right:bb.right,bottom:bb.bottom};
if(i$.isIE){
b.height=b.bottom-b.top;
b.width=b.right-b.left;
}
if(i$.isIE==7){
var _b=_6(_a);
b.left=(_b?_b.left:b.left);
b.top=(_b?_b.top:b.top);
}
return b;
};
function _c(_d,_e){
var b=_9(_d);
if(_e){
var fo=_f(self,_e);
b.top+=fo.top;
b.left+=fo.left;
b.bottom+=fo.top;
b.right+=fo.left;
}
return b;
};
function _10(_11,_12){
i$.forIn(_12,function(v,n){
_11.style[n]=Math.round(v)+"px";
});
};
function _f(_13,_14){
var box={top:0,left:0};
var w=_13;
while(w.frameElement&&w!==_14){
var b=_c(w.frameElement);
box.top+=b.top;
box.left+=b.left;
w=w.parent;
}
return box;
};
function _15(_16){
var doc=_16.document,de=doc.documentElement,b=doc.body;
return {left:isNaN(_16.scrollX)?(de.scrollLeft+b.scrollLeft):_16.scrollX,top:isNaN(_16.scrollY)?(de.scrollTop+b.scrollTop):_16.scrollY};
};
var _17={nodeHandler:{},pointerHandler:{},handle:function(_18){
var _19=_18.name,_1a=_18.targetWindow,_1b=_18.node,_1c=_18.refNode,_1d=_18.targetBox,_1e=_1e||0.5,_1f=_18.viewMargin,_20=_18.positionNode,_21=_17.nodeHandler[_19],_22=_17.pointerHandler[_19];
if(!_21&&!_1d){
return;
}
var doc=_1a.document,b=doc.body,_23=_4(doc),_24=_c(_1b),_25,_26=_15(_1a);
if(_1c){
var _27=function(_28){
var n=_28;
while(n&&n.offsetParent===null){
n=n.parentNode;
}
return n;
};
_1c=_27(_1c);
var _29=_c(_1c,_1a),_2a=_23.width-_29.left-_29.width*(1-_1e),_2b=_29.left+_29.width*_1e,_2c=_24.width+_1f,_2d=_2(doc)?!(_2b>_2c||_2a<_2c):_2a>_2c||_2b<_2c;
if(_2a<_24.width){
_25={left:_23.width-_24.width,top:_29.height+_29.top,};
}else{
_25=_21(_23,_24,_29,_2d,_1f);
}
}else{
var h=_1d.height||_24.height,w=_1d.width||_24.width;
_25={top:Math.max(10,Math.min(_1d.top||(_23.height-h)/2,_23.height-_24.height-_1f)),left:Math.max(0,Math.min(_1d.left||(_23.width-w)/2,_23.width-_24.width-_1f))};
}
if(!i$.isIE||i$.isIE!==7){
_25.top+=_26.top;
_25.left+=_26.left;
}
_10(_20||_1b,_25);
if(_1c&&_22){
var _2e=null;
var _2f=function(el){
var c=el.className;
if(c&&c.indexOf("pointer")>-1){
_2e=el;
}
if(!_2e&&el.hasChildNodes()){
i$.each(el.childNodes,function(val){
_2f(val);
});
}
};
_2f(_1b);
if(_2e){
_10(_2e,_22(_c(_1b),_29,_c(_2e),_2e));
}
}
},registerHandler:function(_30){
if(_30.nodeHandler){
_17.nodeHandler[_30.name]=_30.nodeHandler;
}
if(_30.pointerHandler){
_17.pointerHandler[_30.name]=_30.pointerHandler;
}
},addPositionChangeListener:function(_31){
if(!_31.node){
return null;
}
var _32={refNode:_31.node,targetWindow:_31.targetWindow||_1,callback:_31.callbackFn,pollInterval:_31.pollInterval||2000,intervalId:null,refBox:null,tolerance:_31.tolerance||5,intervalFn:function(){
if(this.refNode){
var box=_c(this.refNode,this.targetWindow);
if(!this.refBox){
this.refBox=box;
}else{
var _33=this.tolerance,_34=this.refBox,_35=Math.abs(_34.top-box.top),_36=Math.abs(_34.left-box.left),_37=Math.abs(_34.bottom-box.bottom),_38=Math.abs(_34.right-box.right);
if(_33<Math.max(_35,_36,_37,_38)){
this.refBox=box;
this.callback();
}
}
}else{
this.stop();
}
},start:function(){
var obj=this;
this.intervalId=this.targetWindow.setInterval(function(){
obj.intervalFn();
},this.pollInterval);
},stop:function(){
if(this.intervalId){
this.targetWindow.clearInterval(this.intervalId);
}
}};
_32.start();
return _32;
}};
i$.toPath("wpModules.util.Positioning",_17);
i$.toPath("wpModules.util.dialog",{viewPort:_4,setMetrics:_10,simpleBox:_9,scroll:_15});
})(window);
(function(){
var _39={name:"horizontallyBelow",nodeHandler:function(_3a,_3b,_3c,_3d,_3e){
var pos={};
pos.top=_3c.top+_3c.height;
if(pos.top<0){
pos.top=0;
}
if(pos.top+_3b.height>_3a.height){
pos.top=_3a.height-_3b.height-_3e;
}
pos.left=Math.max(_3c.left+(_3c.width-_3b.width)/2,_3e);
if(pos.left+_3b.width+_3e>_3a.width){
pos.left=_3a.width-_3b.width-_3e;
}
return pos;
},pointerHandler:function(_3f,_40,_41,_42){
i$.addClass(_42,"top");
var _43=_42.clientHeight,_44=_42.clientWidth,_45=Math.min(_40.left+_40.width,_3f.left+_3f.width),_46=Math.max(_40.left,_3f.left),_47=(_45+_46)/2-_3f.left;
var res={top:-(_43-4),left:_47-_44/2};
return res;
}};
wpModules.util.Positioning.registerHandler(_39);
})();
(function(){
var _48={name:"horizontallyCenteredBelow",nodeHandler:function(_49,_4a,_4b,_4c,_4d){
var pos={};
pos.top=_4b.top+_4b.height;
if(pos.top<0){
pos.top=0;
}
if(pos.top+_4a.height>_49.height){
pos.top=_49.height-_4a.height-_4d;
}
pos.left=Math.max(_4b.left+(_4b.width-_4a.width)/2,_4d);
if(pos.left+_4a.width+_4d>_49.width){
pos.left=_49.width-_4a.width-_4d;
}
return pos;
},pointerHandler:function(_4e,_4f,_50,_51){
i$.addClass(_51,"top");
var _52=_51.clientHeight,_53=_51.clientWidth,_54=Math.min(_4f.left+_4f.width,_4e.left+_4e.width),_55=Math.max(_4f.left,_4e.left),_56=(_54+_55)/2-_4e.left;
var res={top:-(_52-4),left:_56-_53/2};
return res;
}};
wpModules.util.Positioning.registerHandler(_48);
})();
(function(){
var _57={name:"verticallyCenteredRightHand",nodeHandler:function(_58,_59,_5a,_5b,_5c){
var pos={};
pos.top=Math.max(_5a.top+(_5a.height-_59.height)/2,_5c);
pos.top=Math.min(pos.top,_58.height-_59.height-_5c);
if(_5b){
pos.left=Math.min(_5a.left+_5a.width,_58.width-_59.width-_5c);
}else{
pos.left=Math.max(_5a.left-_59.width,_5c);
}
return pos;
},pointerHandler:function(_5d,_5e,_5f,_60){
var _61=_5f.height,_62=_61/2+6,_63=Math.min(_5e.top+_5e.height,_5d.top+_5d.height-_62),_64=Math.max(_5e.top,_5d.top+_62),_65=_5d.left-_60.offsetWidth,_66=_5d.right+_60.offsetWidth,_67=_5e.left>_65,_68=_5e.left<=_65,_69=_65<=_5e.right,_6a=_65>_5e.right,_6b=_66<=_5e.left,_6c=_66>_5e.right,_6d=_66<=_5e.right;
i$.removeClass(_60,"right");
i$.removeClass(_60,"left");
if(_63-_64>=0){
if((_67&&_6c)||(_68&&_6d)){
}else{
if((_67&&_6d)||(_67&&_6b)){
i$.addClass(_60,"right");
}else{
if((_69&&_6c)||(_6a&&_6c)){
i$.addClass(_60,"left");
}
}
}
}
return {top:(_64+_63-_61)/2-_5d.top};
}};
wpModules.util.Positioning.registerHandler(_57);
})();


}catch(e){console.log("Module 'wp_dialog_util': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
(function(_1){
var _2=wpModules.util.dialog;
function _3(e,_4){
e=e||_4.event;
e.stopPropagation&&e.stopPropagation();
e.preventDefault&&e.preventDefault();
e.cancelBubble=true;
e.cancel=true;
e.returnValue=false;
return false;
};
function _5(_6,_7){
var _8=_2.scroll(_7),_9=_6||_7.event;
return {left:_9.clientX+_8.left,top:_9.clientY+_8.top};
};
function _a(p){
var _b=p.window||_b,_c=_2.viewPort(_b.document),_d=p.element,_e=p.handle||_d,_f=i$.mash({top:0,left:0,width:_c.width,height:_c.height,margin:0},p.area),_10=false,_11=false,_12=false,_13,mmb,mub,mdb;
function _14(_15){
if(!_12&&_11&&!_10){
_12=true;
p.startCallback&&p.startCallback(_15,_d);
_13=_5(_15,_b);
var _16=_2.simpleBox(_d);
mmb=i$.bindDomEvt(_b.document,"mousemove",function(_17){
if(_12&&!_10){
var pos=_5(_17,_b),_18=_2.scroll(_b);
pos.left+=_16.left+_18.left-_13.left;
pos.top+=_16.top+_18.top+-_13.top;
pos.left=Math.min(Math.max(_f.left+_18.left+_f.margin,pos.left),_f.left+_18.left+_f.width-_16.width-_f.margin);
pos.top=Math.min(Math.max(_f.top+_18.top+_f.margin,pos.top),_f.top+_18.top+_f.height-_16.height-_f.margin);
_2.setMetrics(_d,pos);
p.moveCallback&&p.moveCallback(pos,_d);
return _3(_17,_b);
}
});
mub=i$.bindDomEvt(_b.document,"mouseup",function(_19){
_1a();
return _3(_19,_b);
});
return _3(_15,_b);
}
};
function _1a(){
if(_12&&!_10){
i$.unbindDomEvt(mmb);
i$.unbindDomEvt(mub);
_13=null;
p.endCallback&&p.endCallback(_d);
_12=false;
}
};
this.dispose=function(){
if(!_10){
this.StopListening(true);
_d=null;
_e=null;
p.startCallback=null;
p.moveCallback=null;
p.endCallback=null;
_10=true;
}
};
this.StartListening=function(){
if(!_11&&!_10){
_11=true;
mdb=i$.bindDomEvt(_e,"mousedown",_14);
}
};
this.StopListening=function(_1b){
if(_11&&!_10){
i$.unbindDomEvt(mdb);
_11=false;
_1b&&_12&&_1a();
}
};
this.isDragging=function(){
return _12;
};
this.isListening=function(){
return _11;
};
this.isDisposed=function(){
return _10;
};
this.StartListening();
};
i$.toPath("wpModules.util.Draggable",_a);
})(window);


}catch(e){console.log("Module 'wp_dialog_draggable': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
if(!i$.fromPath("wpModules.dialog.Dialog")){
var _T="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
i$.addListener("wpModules/dialog/closeAll",function(_1){
var _2=i$.fromPath("wpModules.dialog.DialogStorage.openDialogs",false,top);
if(_2&&_2.length>0){
i$.forEach(_2,function(_3){
if(!_1||_3.prm[_1]){
_3.close();
}
});
}
});
i$.toPath("wpModules.dialog.Dialog",function(_4,_5){
var _6=i$.fromPath("wpModules.dialog.DialogStorage",false,_4.top);
if(!_6){
_6=i$.toPath("wpModules.dialog.DialogStorage",{openDialogs:[]},_4.top);
}
var _7=_6.openDialogs,_8=wpModules.util.dialog;
function _9(_a,_b){
i$.each(_b,function(v,k){
_a=_a.replace(new RegExp("\\${"+k+"}","g"),v);
});
return _a;
};
function _c(_d,_e){
var s="data-attach-point";
var _f=function(el){
if(el.getAttribute&&el.getAttribute(s)){
_e[el.getAttribute(s)]=el;
}
if(el.hasChildNodes()){
i$.each(el.childNodes,function(val){
_f(val);
});
}
};
_f(_d);
};
function _10(){
return Math.round(Math.random()*1000000000)+"";
};
function _11(p,_12,box){
wpModules.util.Positioning.handle({name:p.posHandler,targetWindow:p.window,targetBox:box,node:_12,refNode:p.autoPosition,maxOverLay:p.maxOverlay,viewMargin:p.viewMargin});
};
function _13(_14){
return _14.window.document.getElementById(_14.id+"-iframe");
};
var _15=i$.augment((function(_16){
this._init(_16);
}),{_init:function(_17){
var doc=_17.window.document,div=doc.createElement("div"),_18=_17.parent,_19=this._overlayNode=_17.displayCloseOverlay?doc.createElement("div"):null,_1a=this.rootNode=doc.createElement("div"),_1b=[140,30];
if(_17.templateStyle=="flat"){
_1b=[300,200];
}
this.defaultWidth=_1b[0];
this.defaultHeight=_1b[1];
if(_19){
var os=_19.style;
os.display="block";
os.height="100%";
os.top="0px";
os.position="fixed";
os.backgroundColor="#000";
os.opacity="0.4";
os.filter="Alpha(opacity=40)";
os.left="0";
os.width="100%";
os.zIndex=_17.z_index-1;
if(!_17.modal){
os.opacity="0";
os.filter="Alpha(opacity=0)";
}
}
this.tabOut=_17.tabOut;
this.modal=_17.modal;
this.window=_17.window;
var _1c={title:_17.title||"",itemClose:_17.itemClose,z_index:_17.z_index,id:_17.id};
if(_17.templateStyle=="help"&&_17.learnMoreURL){
_1c.learnMore=_17.learnMore;
_1c.learnMoreURL=_17.learnMoreURL;
_1c.learnMoreParam=_17.learnMoreParam;
}
var s=[""],_1d=typeof _17.padding,_1e=_17.padding;
if(_1e&&_1d==="object"){
s.push("padding:",_1e[0],"px ",_1e[1],"px ",_1e[2],"px ",_1e[3],"px;");
}else{
if(_1d!=="number"){
_1e=15;
}
s.push("padding:",_1e,"px;");
}
_1c.contentStyle=s.join("");
div.innerHTML=_9(_17.template,_1c);
_c(div,this);
this.domNode=div.firstChild;
this.id=this.domNode.id=_17.id;
_18.insertBefore(_1a,_18.firstChild);
_19&&_1a.appendChild(_19);
_1a.appendChild(this.domNode);
if(!_17.autoPosition){
this._hidePointer();
}
},_hidePointer:function(){
this.domNode.lastChild.style.display="none";
},_showPointer:function(){
this.domNode.lastChild.style.display="inline";
},show:function(){
this.domNode.style.display="block";
},hide:function(){
this.domNode.style.display="none";
}});
return i$.augment((function(_1f){
this.blankImgSrc=_T;
this.z_index=_7.length===0?1000:_7[_7.length-1].z_index+500;
var _20=_1f.title||_1f.displayDialogHeader;
var _21={startDialog:"<div class=\"wpthemeDialog\" style=\"display:none;position:absolute;z-index:${z_index};\" role=\"dialog\" "+(_1f.title?"aria-labelledby=\"${id}-title\"":(_1f.description?"aria-label=\""+_1f.description+"\"":(_1f.labelledby?"aria-labelledby=\""+_1f.labelledby+"\"":"aria-label=\"dialog\"")))+">",endDialog:"</div>",dialogContent:"<div id=\"${id}-firstFocus\" tabIndex=\"0\"></div>"+"<div class=\"wpthemeDialogContent\" style=\"${contentStyle}\">"+"<div class=\"wpthemeDialogContentBody\">"+"<div>"+"<div class=\"west\" style=\"display:none;\" data-attach-point=\"westContentCell\">"+"<div style=\"display:none;\" data-attach-point=\"westContent\"></div>"+"</div>"+"<div class=\"central\" style=\"height:auto; width:auto; max-height:5000px; position:relative\" data-attach-point=\"centralContent\"></div>"+"<div class=\"east\" style=\"display:none;\" data-attach-point=\"eastContentCell\">"+"<div style=\"display:none;\" data-attach-point=\"eastContent\"></div>"+"</div>"+"</div>"+"<div class=\"south\" style=\"display:none;\" data-attach-point=\"southContent\"></div>"+"</div>"+"</div>"+"<div id=\"${id}-lastFocus\" tabIndex=\"0\"></div>"};
var prm=this.prm=i$.mash({id:_10(),window:_4,parent:_1f.window?_1f.window.document.body:_4.document.body,posHandler:"verticallyCenteredRightHand",displayCloseOverlay:true,maxOverlay:0.5,viewMargin:15,autoResize:false,autoClose:!_1f.modal,modal:false,tabOut:false,helpTemplate:_21.startDialog+"<div class=\"wpthemeDialogPopup\" data-attach-point=\"dialogNode\">"+"<a class=\"wpthemeDialogPopupClose\" href=\"javascript:void(0);\" data-attach-point=\"closeButtonNode\" title=\"${itemClose}\" role=\"button\">"+"<img alt=\"${itemClose}\" src=\""+this.blankImgSrc+"\" aria-label=\"${itemClose}\"/><span class=\"dialogAltText\" title=\"${itemClose}\">X</span>"+"</a>"+"<div id=\"${id}-firstFocus\" tabIndex=\"0\"></div>"+"<div class=\"wpthemeDialogPopupContent\">"+"<div class=\"wpthemeDialogPopupContentArea\">"+"<div class=\"west\" style=\"display:none;\" data-attach-point=\"westContentCell\">"+"<div style=\"display:none;\" data-attach-point=\"westContent\"></div>"+"</div>"+"<div class=\"central\" style=\"height:auto; width:auto; max-height:5000px; position:relative\" data-attach-point=\"centralContent\"></div>"+"<div class=\"east\" style=\"display:none;\" data-attach-point=\"eastContentCell\">"+"<div style=\"display:none;\" data-attach-point=\"eastContent\"></div>"+"</div>"+"</div>"+"<div class=\"south\" style=\"display:none;\" data-attach-point=\"southContent\"></div>"+"</div>"+((_1f.learnMore&&_1f.learnMore.url)?"<div class=\"wpthemeDialogPopupFooter\">"+"<a href=\"javascript:void(0);\" class=\"wpthemeDialogLearnLink\" onclick=\"window.open('${learnMoreURL}', '', 'location=no,menubar=no,scrollbars=yes,status=no,toolbar=no${learnMoreParam}', false);\">${learnMore}</a>"+"</div>":"")+"<div id=\"${id}-lastFocus\" tabIndex=\"0\"></div>"+"</div>"+"<div class=\"dialogPointer pointer\" style=\"top:50%;display:none\"/>"+_21.endDialog,defaultTemplate:_21.startDialog+"<div class=\"wpthemeDialogBorder\">"+"<div class=\"dialogContainer\" data-attach-point=\"dialogNode\">"+(_20?"<div id=\"${id}-header\" class=\"dialogHeader\" data-attach-point=\"dialogHeaderNode\" style=\"position:relative;\">"+(_1f.title?"<h1 id=\"${id}-title\" class=\"dialogHeaderText\" data-attach-point=\"titleNode\">${title}</h1>":"")+"<a href=\"javascript:void(0);\" data-attach-point=\"closeButtonNode\" class=\"dialogClose\" title=\"${itemClose}\">"+"<img src=\""+this.blankImgSrc+"\" alt=\"\" aria-label=\"${itemClose}\" />"+"<span class=\"dialogAltText\" title=\"${itemClose}\">X</span>"+"</a>"+"</div>":"")+_21.dialogContent+"</div>"+"</div>"+"<div class=\"dialogPointer pointer\" style=\"top: 50%;\"/>"+_21.endDialog,flatTemplate:_21.startDialog+"<div>"+"<div data-attach-point=\"dialogNode\">"+_21.dialogContent+"</div>"+"</div>"+"<div class=\"dialogPointer pointer\" style=\"top: 50%;display:none\"/>"+_21.endDialog},_1f);
if(!prm.template){
var ts=prm.templateStyle;
if(ts){
if(ts=="help"){
prm.template=prm.helpTemplate;
if(typeof _1f.autoResize==="undefined"){
prm.autoResize=true;
}
if(typeof _1f.autoClose==="undefined"){
prm.autoClose=true;
}
if(typeof _1f.modal==="undefined"){
prm.modal=false;
}
if(typeof _1f.window==="undefined"){
prm.window=_4.top;
prm.parent=prm.window.document.body;
}
if(typeof _1f.displayCloseOverlay==="undefined"){
prm.displayCloseOverlay=true;
}
}else{
if(ts=="flat"){
prm.template=prm.flatTemplate;
if(typeof _1f.padding==="undefined"){
prm.padding=0;
}
}
}
}
if(!prm.template){
prm.template=prm.defaultTemplate;
}
}
var _22={};
if(prm.templateStyle=="help"&&_1f.learnMore&&_1f.learnMore.url){
_22.learnMore=wpModules.dialog.nls["LINK_LEARN_MORE"];
_22.learnMoreURL=_1f.learnMore.url;
var w=800,h=800;
if(_1f.learnMore.width){
w=_1f.learnMore.width;
}
if(_1f.learnMore.height){
h=_1f.learnMore.height;
}
_22.learnMoreParam=",width="+w+",height="+h;
}
this.openerWindow=_4;
this.widget=new _15(i$.mash({id:prm.id,window:prm.window,parent:prm.parent,displayCloseOverlay:prm.displayCloseOverlay,title:prm.title,autoPosition:prm.autoPosition,modal:prm.modal,tabOut:prm.tabOut,itemClose:wpModules.dialog.nls["CLOSE_0"],template:prm.template,templateStyle:prm.templateStyle,padding:prm.padding,z_index:this.z_index},_22));
i$.bindDomEvt(this.widget.domNode,"onkeydown",i$.scope(this,function(e){
if(!e){
var e=_4.event;
}
if(e.keyCode===9){
var t=e.target||e.srcElement;
if(t.nodeType===3){
t=t.parentNode;
}
var f1=e.shiftKey?"-firstFocus":"-lastFocus",f2=e.shiftKey?"-lastFocus":"-firstFocus";
var w=this.widget,pn=this.prm.autoPosition;
if(w.tabOut&&w.id+f1==t.getAttribute("id")){
this._close();
if(pn){
pn.focus();
}
}else{
if(w.id+f1===t.getAttribute("id")){
w.window.document.getElementById(this.widget.id+f2).focus();
}
}
}else{
if(e.keyCode===27){
this._close(e);
}
}
}));
var cb=this.widget.closeButtonNode;
cb&&i$.bindDomEvt(cb,"onclick",i$.scope(this,"_close"));
if(prm.autoClose&&this.widget._overlayNode){
i$.bindDomEvt(this.widget._overlayNode,"onclick",i$.scope(this,"_close"));
}
prm.markup&&this._setMarkup(prm.markup);
_7.push(this);
}),{open:function(){
var w=this.widget,p=this.prm,wd=w.domNode,m=p.metrics,tb=p.targetBox={},doc=p.window.document,_23=_8.viewPort(doc);
if(p.url){
var f=_13(w);
if(f){
f.src=p.url;
}else{
w.centralContent.innerHTML=_9("<div class=\"dialogLoading\" style=\"display:block;position:absolute;left:50%;top:50%;margin-top:-8px;margin-left:-8px;\" id=\"${id}-progressLoading\">"+"<img style=\"display:inline-block\" width=\"16\" height=\"16\" src=\"${blank}\" ${border} alt=\"${loading}\"/>"+"</div>"+"<div id=\"${id}-sizing\" style=\"width:100%;height:0px;\"></div>"+"<iframe style=\"display:block;${visibility}\" title=\"${title}\" name=\"${id}-iframe\" id=\"${id}-iframe\" frameborder=\"0\" src=\"${url}\" allowTransparency=\"true\"></iframe>",{id:w.id,url:i$.isIE<9?"":p.url,title:p.title||p.description||"dialog contents",blank:this.blankImgSrc,loading:wpModules.dialog.nls["LOADING_0"],border:i$.isIE<9?"border='0'":"",visibility:i$.isIE<9?"visibility:hidden;":"opacity:0;filter:Alpha(opacity=0)"});
f=_13(w);
if(i$.isIE<9){
f.src=p.url;
this._initCallbacksOnloadIE();
this._ieRefreshListener=i$.addListener("wpModules/dialog/Dialog/ieRefresh",i$.scope(this,this._handleIeRefreshEvent));
}else{
f.onload=i$.scope(this,this._initCallbacks);
}
}
if(i$.isChrome){
f.setAttribute("scrolling","auto");
}else{
f.setAttribute("scrolling","no");
}
}
w.show();
if(w.dialogHeaderNode){
var _24=_8.simpleBox(w.dialogHeaderNode).width;
if(_24&&_24>w.defaultWidth){
w.defaultWidth=_24;
}
}
var _25=_23.width-2*p.viewMargin+2;
if(m){
if(!p.autoPosition){
m.top&&(tb.top=m.top);
m.left&&(tb.left=m.left);
}
m.width&&(tb.width=m.width);
m.height&&(tb.height=m.height);
if(m.width){
if(p.url){
var _26=_13(w),_27=_8.simpleBox(wd),_28=_8.simpleBox(doc.getElementById(w.id+"-sizing")),_29=_27.width-_28.width;
_25-=_29;
_8.setMetrics(_26,{width:Math.min(m.width,_25)});
}else{
_8.setMetrics(wd,{width:Math.min(m.width,_25)});
}
}
}else{
if(p.url){
_8.setMetrics(_13(w),{width:Math.min(w.defaultWidth,_25),height:w.defaultHeight});
}
}
_11(p,wd,tb);
this._positionChangeListener=wpModules.util.Positioning.addPositionChangeListener({node:p.autoPosition,targetWindow:p.window,callbackFn:function(){
_11(p,wd,tb);
}});
if(!p.url){
this.inlineKeyDownEvt=i$.bindDomEvt(doc.body,"onkeydown",i$.scope(this,function(e){
if(e.keyCode===27){
this._close(e);
}
}));
p.window.setTimeout(function(){
if(i$.isFF){
var di=p.window.document.createElement("input");
wd.appendChild(di);
di.focus();
wd.removeChild(di);
}else{
p.window.focus();
}
p.setFocusFn?p.setFocusFn(p.window):wd.focus();
if(p.templateStyle=="help"){
w.centralContent.tabIndex=-1;
w.centralContent.focus();
}
},100);
}
setTimeout(function(){
var _2a=doc.createElement("div"),_2b;
_2a.className="wpThemeDialogHighContrastTestNode";
wd.appendChild(_2a);
try{
_2b=doc.defaultView.getComputedStyle(_2a,"");
}
catch(e){
_2b=_2a.currentStyle;
}
var _2c=_2b.backgroundImage;
if((_2b.borderTopColor==_2b.borderRightColor)||(_2c!=null&&(_2c=="none"||_2c=="url(invalid-url:)"))){
i$.addClass(wd,"wpthemeDialogImagesOff");
}
wd.removeChild(_2a);
},10);
return false;
},_initCallbacks:function(){
var w=this.widget,p=this.prm,f=_13(w);
if(!f){
return;
}
var _2d=i$.scope(this,function(){
var fw=f.contentWindow,_2e=null;
try{
_2e=fw.contentDocument||fw.document;
fw.onunload=function(){
p.onUnloadCallbackFn&&p.onUnloadCallbackFn(_2e,fw);
};
}
catch(e){
}
var _2f=i$.scope(this,function(){
fw=f.contentWindow;
try{
if(!fw.resize){
fw.resize=i$.scope(this,"resize");
}
fw.setTimeout(i$.scope(this,function(){
this.onLoadFrame();
}),0);
}
catch(e){
this.onLoadFrame();
}
finally{
p.onLoadCallbackFn&&p.onLoadCallbackFn(_2e,fw);
}
});
try{
f.onload=_2f;
fw.closeDialog=f.onCloseModalDialog=i$.scope(this,"close");
}
catch(e){
}
_2f();
});
_2d();
},_initCallbacksOnloadIE:function(){
var _30=this;
var w=this.widget;
var p=this.prm;
var f=_13(w);
var fn=function(i){
p.window.setTimeout(function(){
if((f.contentDocument&&f.contentDocument.readyState&&f.contentDocument.readyState==="complete")||(f.readyState&&f.readyState==="complete")){
_30._initCallbacks();
}else{
if(i<300){
fn(i+1);
}
}
},200+10);
};
fn(0);
},_handleIeRefreshEvent:function(_31){
var w=this.widget;
var f=_13(w);
var cw=f.contentWindow;
if(_31==cw){
this._initCallbacksOnloadIE();
}
},onLoadFrame:function(_32){
var w=this.widget,wd=w.domNode,p=this.prm,_33=p.targetBox,_34=p.autoResize,_35=_8.viewPort(p.window.document),_36=_13(w),bs=wd.style;
if(!_36){
return;
}
_36.setAttribute("scrolling","no");
bs.maxWidth="none";
bs.maxHeight="none";
bs.minWidth="0";
bs.minHeight="0";
var _37=p.window.document.getElementById(w.id+"-progressLoading");
if(_37){
_37.style.display="none";
}
var cs=w.centralContent.style,fs=_36.style;
cs.paddingBottom="0px";
cs.marginBottom="0px";
if(i$.isIE<9){
fs.visibility="visible";
}else{
fs.opacity="100";
fs.filter="Alpha(opacity=100)";
}
var fw=_36.contentWindow,_38=_33.width,_39=_33.height||w.defaultHeight,_3a=null,fde=null,_3b=null,_3c=false;
if(!_38){
_38=w.defaultWidth;
_3c=true;
}
try{
_3a=fw.contentDocument||fw.document;
fde=_3a.documentElement;
_3b=_3a.body;
if(_3b){
var _3d=_8.simpleBox(_3b);
_8.setMetrics(_36,{width:((_38>_3d.width)?_38:_3d.width),height:_3d.height});
if(i$.isWebKit){
_3b.style.overflow="auto";
}
_3b.style.height="auto";
var _3e=i$.scope(this,function(e){
if(e.keyCode===27){
this._close(e);
}
});
if(i$.isFF){
i$.bindDomEvt(fde,"onkeydown",_3e);
}else{
i$.bindDomEvt(_3b,"onkeydown",_3e);
}
_38=Math.max(_3b.scrollWidth,fde.scrollWidth,_3b.offsetWidth,fde.offsetWidth,fde.clientWidth);
_8.setMetrics(_36,{width:_38});
if(w.eastContentCell.style.display!="none"||w.westContentCell.style.display!="none"){
var _3f=_8.simpleBox(_3b),_40=_8.simpleBox(fde);
_39=Math.max(_3d.height,_3f.height,_40.height,_3b.scrollHeight,fde.scrollHeight,_3b.offsetHeight,fde.offsetHeight,fde.clientHeight);
}else{
_39=Math.max(_3b.scrollHeight,fde.scrollHeight,_3b.offsetHeight,fde.offsetHeight,fde.clientHeight);
}
_38=Math.max(_3b.scrollWidth,fde.scrollWidth,_3b.offsetWidth,fde.offsetWidth,fde.clientWidth);
}else{
return;
}
}
catch(e){
}
var _41=_8.simpleBox(wd),_42=_8.simpleBox(_36),_43=_8.simpleBox(p.window.document.getElementById(w.id+"-sizing")),_44=_8.simpleBox(w.eastContent),_45=_8.simpleBox(w.westContent),_46=(_3c&&_43.width==w.defaultWidth)?0:_41.width-_43.width,_47=_41.height-_42.height,_48=_35.width-2*p.viewMargin-_46+2,_49=_35.height-2*p.viewMargin-_47+2,_4a=_33.height||(_34?_39:_35.height/3),_4b=_33.width||(_34?_38:_35.width/3);
_4a=Math.max(_4a,_44.height,_45.height);
_38=Math.min(_4b,_48);
_39=Math.min(_4a,_49);
_8.setMetrics(wd,{top:0,left:0});
if(i$.isIE&&_34){
_38++;
_39++;
}
_8.setMetrics(_36,{width:_38,height:_39});
if(_3b&&_34&&!_33.width){
if(fde&&i$.isFF){
var _4c=fde.scrollWidth-fde.clientWidth;
if(_4c>0){
_8.setMetrics(_36,{width:_38+=_4c});
}
}
if(_3b&&_4a>_49){
var _4d=Math.max(_3b.scrollWidth,fde.scrollWidth),_4e=Math.max(_3b.clientWidth,fde.clientWidth);
if(_4e<_4d){
var _4f=_4d-_4e;
if(_38+_4f<=_48){
_38+=_4f;
_8.setMetrics(_36,{width:_38});
}
}
}
}
if(_3b&&p.templateStyle!="help"){
_3b.style.height="100%";
}
_11(p,wd,{top:p.targetBox.top,left:p.targetBox.left,width:_38+_46,height:_39+_47});
_36.setAttribute("scrolling","auto");
if(!(_32&&_32.resize)){
p.window.setTimeout(function(){
p.setFocusFn?p.setFocusFn(fw):_36.focus();
},100);
}
},resize:function(_50){
var tb=this.prm.targetBox;
if(_50){
if(_50.width){
tb.width=_50.width;
}
if(_50.height){
tb.height=_50.height;
}
}
if(this.prm.url){
this.onLoadFrame({resize:true});
}
},_setMarkup:function(_51){
i$.forIn((i$.isString(_51)||i$.isNode(_51))?{"centralContent":_51}:_51,i$.scope(this,function(m,r){
var _52=this.widget[r],_53=this.widget[r+"Cell"];
if(_52){
if(m){
if(i$.isNode(m)){
_52.appendChild(m);
}else{
if(i$.isString(m)){
_52.innerHTML=m;
}
}
if(_53){
_53.style.display="";
}
_52.style.display="";
}else{
while(_52.hasChildNodes()){
_52.removeChild(_52.firstChild);
}
if(_53){
_53.style.display="none";
}
_52.style.display="none";
}
}
}));
},set:function(_54){
var prm=this.prm,_55=1,_56={"metrics":_55,"viewMargin":_55,"autoPosition":_55,"url":_55,"markup":i$.scope(this,"_setMarkup"),"title":i$.scope(this,function(_57){
prm.title=_57;
var t=this.widget.titleNode;
t&&(t.innerHTML=_57);
}),"description":_55};
i$.forIn(_54,function(v,n){
if(_56[n]===_55){
prm[n]=v;
}else{
if(i$.isFunction(_56[n])){
_56[n](v);
}
}
});
if(_54.url){
if(i$.isIE<9&&this._ieRefreshListener){
i$.removeListener(this._ieRefreshListener);
this._ieRefreshListener=null;
}
this.open();
}else{
if(_54.metrics){
this.resize(_54.metrics);
}
}
},_close:function(evt){
if(evt&&i$.isIE<=10){
evt.preventDefault&&evt.preventDefault();
evt.returnValue=false;
}
if(evt&&i$.isFF){
try{
evt.preventDefault();
}
catch(x){
evt.returnValue=false;
}
}
this.close({_terminated:true});
},close:function(_58){
var w=this.widget,r=w.rootNode,p=this.prm,_59=_13(w),fw=_59&&_59.contentWindow,_5a=false;
if(_58&&_58._terminated){
_5a=true;
_58=_5;
}
try{
if(fw&&fw.onbeforeunload){
var buv=fw.onbeforeunload();
if(buv===false||(buv&&buv!==true&&!confirm(buv))){
return;
}
}
}
catch(e){
}
try{
if(_5a&&fw&&fw.onTerminateDialog){
fw.onTerminateDialog();
}
}
catch(e){
if(e instanceof DOMException){
console.log("Could not invoke onTerminateDialog handler. Probably the dialog frame is cross-origin.");
}else{
throw e;
}
}
for(var da=_7,i=da.length;i>0;i--){
if(da[i-1].widget.id===w.id){
da.splice(i-1,1);
}else{
if(fw&&fw===da[i-1].openerWindow){
da[i-1].close();
}
}
}
if(this._positionChangeListener){
this._positionChangeListener.stop();
delete this._positionChangeListener;
}
if(this.inlineKeyDownEvt){
i$.unbindDomEvt(this.inlineKeyDownEvt);
}
if(this.openerWindow){
this.openerWindow.focus();
}
w.hide();
if(_59&&i$.isIE){
_59.src="about:blank";
}
for(var da=_7,i=da.length;i>0;i--){
if(da[i-1].widget.id===w.id){
da.splice(i-1,1);
break;
}
}
p.callbackFn&&p.callbackFn(_58);
r&&r.parentNode&&r.parentNode.removeChild(r);
if(i$.isIE<9){
i$.removeListener(this._ieRefreshListener);
}
}});
}(window));
}
if(!i$.fromPath("wpModules.dialog.confirm")){
wpModules.dialog.confirm=function(){
var _5b="OK",_5c="YES",_5d="NO",_5e="CANCEL",_5f="ABORT",_60="RETRY",_61="IGNORE",_62="TRY",_63="CONTINUE",_64="EXCLAMATION",_65="WARNING",_66="INFORMATION",_67="ASTERISK",_68="STOP",_69="ERROR";
return i$.mash(function(_6a){
var _6b=i$.fromPath,_6c=new i$.Promise(),nls=wpModules.dialog.nls,_6d={"<":"&lt;",">":"&gt;","&":"&amp;","\"":"&quot;","'":"&apos;"},_6e=function(){
return _6b("wpModules.dialog.confirm",true,top)._instance;
},_6f=function(dlg){
_6b("wpModules.dialog.confirm",true,top)._instance=dlg;
},_70=function(s){
return s.replace(/[<>&"']/g,function(ch){
return _6d[ch];
});
},_71=function(_72){
return nls["BUTTON_"+_72];
},_73=function(_74){
var id=i$.isString(_74)?_74:_66;
return nls["ICON_"+id];
},_75=function(_76,idx){
var _77=(_6a.buttonLabels?_6a.buttonLabels[_76]:_71(_76));
return "<input id='btn_"+_76+"' type='submit' tabindex='0' class='wpthemeDialogBtn' onclick='top.wpModules.dialog.confirm._instance.close(this.name);' name='"+_70(_76)+"' value='"+_70(_77)+"' />";
},_78=function(_79){
var b=(i$.isArray(_79)?_79:(i$.isString(_79)?[_79]:[(_5b),(_5e)])),_7a="",idx=0;
i$.each(b,function(_7b){
_7a+=_75(_7b);
});
return _7a;
},_7c=_6e(),_7d=i$.merge({autoClose:false,modal:true,setFocusFn:function(arg){
var _7e=arg.document.getElementById(this.focusControl?"btn_"+this.focusControl:"btn_"+_5d);
if(_7e){
_7e.focus();
}
},callbackFn:function(arg){
_6f(_7c);
var _7f=i$.isString(arg)?arg:_5e;
_6c.resolve({button:_7f});
},markup:"<table class='"+(_6a.rootClass?_6a.rootClass:"")+"' border='0' cellspacing='0' cellpadding='0' role='presentation'><tr>"+(_6a.icon?"<td><img src='"+_T+"' class='msgIcon "+_73(_6a.icon)+"' alt=''></td>":"")+"<td class='msgBody'>"+(_6a.markup||_70(_6a.message))+"</td></tr><tr>"+"<td colspan='2' class='wpthemeDialogFooter'><form action='#' onsubmit='return false;'>"+_78(_6a.buttons)+"</form></td></tr></table>"},i$.merge(_6a,{displayCloseOverlay:true,autoResize:true,draggable:true})),dlg=new wpModules.dialog.Dialog(_7d);
_6f(dlg);
dlg.open();
return _6c;
},{ICON:{EXCLAMATION:_64,WARNING:_65,INFORMATION:_66,ASTERISK:_67,STOP:_68,ERROR:_69},BUTTONS:{OK:_5b,YES:_5c,NO:_5d,CANCEL:_5e,ABORT:_5f,RETRY:_60,IGNORE:_61,TRY:_62,CONTINUE:_63,ABORTRETRYIGNORE:[_5f,_60,_61],CANCELTRYCONTINUE:[_5e,_62,_63],OKCANCEL:[_5b,_5e],RETRYCANCEL:[_60,_5e],YESNO:[_5c,_5d],NOYES:[_5d,_5c],YESNOCANCEL:[_5c,_5d,_5e]}});
}();
}


}catch(e){console.log("Module 'wp_dialog_main': ",e);}
try{(function(_1){
var _2="[\\u00ad\\u0600-\\u0603\\u06dd\\u070f\\u17b4-\\u17b5\\u200b-\\u200f\\u202a-\\u202e\\u2060-\\u2064\\u206a-\\u206f\\ufeff\\ufff9-\\ufffb]|\\ud834[\\udd73-\\udd7a]|\\udb40[\\udc01\\udc20-\\udc7f]",_3="[\\u0000-\\u001f\\u007f-\\u009f]",_4="data-",_5="a11y-",_6=_5+"next",_7=_5+"prev",_8=_5+"first",_9=_5+"last",_a=_5+"up",_b=_5+"down",_c=_5+"title",_d=_5+"action",_e=[_8,_a,_7,_9,_b,_6],_f=5,_10=4,_11=3,_12=2,_13=1,_14=0,_15="ltr",_16=37,_17=39,_18=38,_19=40,_1a=36,_1b=35,_1c=13,_1d=32,_1e=33,_1f=34,_20=true,_21=false,_22=Number.POSITIVE_INFINITY,_23=Number.NEGATIVE_INFINITY,_24=function(_25,_26){
var _27=_26[_25]=_26[_25]||{};
return _27;
},_28=function(aId,_29){
var _2a=_29.ownerDocument.getElementById(aId);
return _2a;
},_2b=function(_2c){
var _2d=((_2c>=0)&&(_2c<=31))||((_2c>=127)&&(_2c<=159));
return _2d;
},_2e=function(_2f,_30){
var _31=_30.getAttribute(_4+_2f);
return _31;
},_32=function(_33,_34){
var _35=_2e(_33,_34),_36=null;
if(_35){
_36=_28(_35,_34);
if(_36===null){
_36=_32(_35,_34);
}
}
return _36;
},_37=function(_38,_39,_3a,_3b){
if(_38){
var id=_38.id,i=_3b.length;
if(!_3a.hasOwnProperty(id)){
_3a[id]=_39(_38);
while(i){
_37(_32(_3b[--i],_38),_39,_3a,_3b);
}
}
}
return _3a;
},_3c=function(_3d){
var _3e=_32(_c,_3d),_3f=_3e?_3c(_3e):(_3d.innerText||_3d.textContent);
return _3f;
},_40=function(_41){
var _42=_41||_3c;
return _42;
},_43=function(_44){
var _45=new RegExp("^(\\s|"+_2+"|"+_3+")*\\u"+("0000"+Number(_44).toString(16)).slice(-4)+".*","i");
return _45;
},_46=function(_47,_48,_49){
var _4a=_49(_48),_4b=_4a&&(_4a.length>0)&&_47.test(_4a);
return _4b;
},_4c=function(_4d,_4e){
var _4f=_37(_4d,_4e,{},_e);
return _4f;
},_50=function(_51,_52,_53){
var _54,_55=_43(_51);
_4c(_52,function(_56){
if(_46(_55,_56,_53)){
if(!_54){
_54=[];
}
_54.push(_56);
}
});
return _54;
},_57=function(_58){
var _59=_58.getBoundingClientRect();
return _59;
},_5a=function(_5b,_5c){
var _5d=(_5b.right>_5c.left)&&(_5b.left<_5c.right);
return _5d;
},_5e=function(_5f,_60){
var _61=(_5f.bottom>_60.top)&&(_5f.top<_60.bottom);
return _61;
},_62=function(_63,_64,_65){
var _66=(_63>=_64)&&(_63<=_65);
return _66;
},_67=function(_68){
var _69=null,_6a=_57(_68),_6b=_22;
_4c(_68,function(_6c){
var _6d=_57(_6c);
if(_62(_6d.top,_6a.bottom,_6b)&&_5a(_6d,_6a)){
_69=_6c;
_6b=_6d.top;
}
});
return _69;
},_6e=function(_6f){
var _70=null,_71=_57(_6f),_72=_71.top;
_4c(_6f,function(_73){
var _74=_57(_73),_75=_74.top;
if((_75<_72)&&_5a(_74,_71)){
_70=_73;
_72=_75;
}
});
return _70;
},_76=function(_77){
var _78=null,_79=_57(_77),_7a=_79.bottom;
_4c(_77,function(_7b){
var _7c=_57(_7b),_7d=_7c.bottom;
if((_7d>_7a)&&_5a(_7c,_79)){
_78=_7b;
_7a=_7d;
}
});
return _78;
},_7e=function(_7f){
var _80=null,_81=_57(_7f),_82=_22;
_4c(_7f,function(_83){
var _84=_57(_83);
if(_62(_84.left,_81.right,_82)&&_5e(_84,_81)){
_80=_83;
_82=_84.left;
}
});
return _80;
},_85=function(_86){
var _87=null,_88=_57(_86),_89=_23;
_4c(_86,function(_8a){
var _8b=_57(_8a);
if(_62(_8b.bottom,_89,_88.top)&&_5a(_8b,_88)){
_87=_8a;
_89=_8b.bottom;
}
});
return _87;
},_8c=function(_8d){
var _8e=null,_8f=_57(_8d),_90=_23;
_4c(_8d,function(_91){
var _92=_57(_91);
if(_62(_92.right,_90,_8f.left)&&_5e(_92,_8f)){
_8e=_91;
_90=_92.right;
}
});
return _8e;
},_93=function(_94){
var _95=_94?_94.dir:_15;
return _95;
},_96=function(_97){
var _98=_93(_97)||_96(_97.parentNode);
return _98;
},_99=function(_9a,_9b){
_9b.tabIndex=_9a;
return _9b;
},_9c=function(_9d){
var _9e=_99(0,_9d);
return _9e;
},_9f=function(_a0){
var _a1=_99(-1,_a0);
return _a1;
},_a2=function(_a3){
var _a4=_a3.tabIndex;
return _a4;
},_a5=function(_a6){
_9c(_a6).focus();
return _20;
},_a7=function(_a8){
if(_a8){
_4c(_a8,_9f);
return _a5(_a8);
}
return _21;
},_a9=function(_aa){
if(_aa){
_4c(_aa,_9f);
return _20;
}
return _21;
},_ab=function(_ac,_ad){
var _ae=_a7(_32(_e[_ac],_ad));
return _ae;
},_af=function(_b0){
var _b1=_ab(_f,_b0);
return _b1;
},_b2=function(_b3){
var _b4=_ab(_12,_b3);
return _b4;
},_b5=function(_b6){
var _b7=_ab(_14,_b6);
return _b7;
},_b8=function(_b9){
var _ba=_ab(_11,_b9);
return _ba;
},_bb=function(_bc){
var _bd=_ab(_13,_bc);
return _bd;
},_be=function(_bf){
var _c0=_ab(_10,_bf);
return _c0;
},_c1=function(_c2){
var _c3=_a7(_85(_c2));
return _c3;
},_c4=function(_c5){
var _c6=_a7(_67(_c5));
return _c6;
},_c7=function(_c8){
var _c9=_a7(_8c(_c8));
return _c9;
},_ca=function(_cb){
var _cc=_a7(_7e(_cb));
return _cc;
},_cd=function(_ce){
return _a7(_6e(_ce));
},_cf=function(_d0){
return _a7(_76(_d0));
},_d1=function(_d2){
var _d3=(_d2===_15)?_17:_16;
return _d3;
},_d4=function(_d5){
_d5.click();
return _20;
},_d6,_d7=function(_d8){
var doc=_d8.document,_d9=doc.body,_da=doc.createElement("div"),_db,_dc,_dd;
_da.style.cssText="border:1px solid;border-color:red green;position:absolute;height:5px;top:-999px;background-image:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\");";
_d9.appendChild(_da);
try{
_db=doc.defaultView.getComputedStyle(_da,"");
}
catch(e){
_db=_da.currentStyle;
}
_dc=_db.backgroundImage;
_dd=((_db.borderTopColor===_db.borderRightColor)||(_dc!==null&&(_dc==="none"||_dc==="url(invalid-url:)")));
_d9.removeChild(_da);
return _dd;
},_de=function(_df){
return function(){
return _d7(_df);
};
},_e0=function(_e1){
var _e2=_e1.i$.onLoadPromise,_e3=_e2.then(_de(_e1)),_e4=function(_e5){
var _e6=_e5||_e1.event;
return _e6;
},_e7=function(_e8,_e9,_ea,_eb){
if(!_eb.altKey&&!_eb.ctrlKey&&!_2b(_e8)){
var _ec=_50(_e8,_e9,_ea),_ed,i,len;
if(_ec){
len=_ec.length;
i=0;
while(i<len){
_ed=_ec[i++];
if(_a2(_ed)<0){
return _a7(_ed);
}
}
return _a7(_ed);
}
}
return _21;
},_ee=function(_ef,_f0,_f1){
var _f2=_e4(_f0),_f3=_e7(_f2.keyCode,_ef,_40(_f1),_f2);
return _f3;
},_f4=function(_f5,_f6){
var _f7=_e4(_f6),_f8;
switch(_f7.keyCode){
case _18:
_f8=_c1(_f5);
break;
case _19:
_f8=_c4(_f5);
break;
case _17:
_f8=_ca(_f5);
break;
case _16:
_f8=_c7(_f5);
break;
case _1a:
_f8=_b5(_f5);
break;
case _1b:
_f8=_b8(_f5);
break;
case _1e:
return _cd(_f5);
case _1f:
return _cf(_f5);
default:
_f8=_21;
}
return _f8;
},_f9=function(_fa,_fb){
var _fc=_e4(_fb),_fd=_96(_fa),_fe=_d1(_fd),_ff=(_16+_17-_fe),_100;
switch(_fc.keyCode){
case _18:
_100=_bb(_fa);
break;
case _19:
_100=_be(_fa);
break;
case _fe:
_100=_af(_fa);
break;
case _ff:
_100=_b2(_fa);
break;
case _1a:
_100=_b5(_fa);
break;
case _1b:
_100=_b8(_fa);
break;
default:
_100=_21;
}
return _100;
},_101=function(_102,_103,_104){
var _105=_e4(_103),_106=_105.keyCode,_107;
switch(_106){
case _1c:
_107=_21;
break;
case _1d:
_107=_d4(_102);
break;
default:
return _f9(_102,_105)||_e7(_106,_102,_40(_104),_105);
}
return _107;
};
return {navigateSequence:_f9,navigateMenu:_101,navigateGrid:_f4,setFocus:_a7,clearFocus:_a9,setFocusFromKey:_ee,forEachNode:_4c,clone:_d6,highContrastMode:_e3};
};
_d6=function(_108){
var _109=_24("wpModules",_108),_10a=_109.a11y=_109.a11y||_e0(_108);
return _10a;
};
return _d6(_1);
}(window));


}catch(e){console.log("Module 'wp_a11y': ",e);}
try{(function(){
var _1=i$.fromPath,_2=i$.toPath,_3=i$.isArray,_4=i$.each,_5=i$.forEach,_6=i$.augment,_7=i$.Promise,_8=true,_9=false,_a="wpModules.state.page._mgr",_b=function(p){
return p.name;
},_c=function(p){
return p.value;
},_d=function(p){
return p.nsuri;
},_e=function(a){
return a.length;
},_f=function(a1,a2){
if(a1&&!a2){
return _9;
}
if(!a1&&a2){
return _9;
}
if(_e(a1)!=_e(a2)){
return _9;
}
var _10=_8;
_5(a1,function(a,i){
if(a!=a2[i]){
_10=_9;
return _9;
}
});
return _10;
},_11=function(_12){
var _13={};
if(!_12){
_13.all=[];
return _13;
}
if(!_3(_12)){
_12=[_12];
}
_13.all=_12.slice(0,_e(_12));
_13.cache={};
_13.log=[];
return _13;
},_14=function(_15,_16){
if(!_15){
return _16.all;
}
if(!_3(_15)){
_15=[_15];
}
if(_e(_15)<=0){
return [];
}
var _17=[];
_4(_15,function(p){
get(_d(p),_b(p),_16,_17);
});
return _17;
},get=function(_18,_19,_1a,_1b){
var _1c=_1a.cache[_18];
if(_1c){
if(_19){
add(_1c[_19],_1b);
}else{
_1d(_1c,_1b);
}
}else{
_1e(_18,_1a);
get(_18,_19,_1a,_1b);
}
},add=function(_1f,_20){
_1f&&_20.push(_1f);
},_1d=function(_21,_22){
if(_21){
_4(_21,function(p){
add(p,_22);
});
}
},_1e=function(_23,_24){
var _25=_24.cache[_23]={};
_5(_24.all,function(p){
if(_d(p)==_23){
_25[_b(p)]=p;
}
});
},_26=function(_27,_28,_29){
if(!_27){
return;
}
if(!_3(_27)){
_27=[_27];
}
if(_e(_27)>0){
_4(_27,function(p){
set(p,_28);
});
}
if(_29){
_2a(_27,_28);
}
},_2a=function(_2b,_2c){
var _2d=[];
if(_e(_2b)<_e(_2c.all)){
_5(_2c.all,function(p){
var _2e=false;
_5(_2b,function(_2f){
if(_d(p)==_d(_2f)&&_b(p)==_b(_2f)){
_2e=true;
return false;
}
});
if(!_2e){
_2d.push(p);
}
});
}
_5(_2d,function(p){
set({"name":p.name,"nsuri":p.nsuri,"value":null},_2c);
});
},set=function(_30,_31){
if(!_b(_30)||!_d(_30)){
return;
}
var _32=_9,_33=_9;
_5(_31.all,function(p,i){
if(_d(p)==_d(_30)&&_b(p)==_b(_30)){
var _34=_c(_30);
if(_34){
if(!_f(_34,_c(p))){
_31.all[i]=_30;
_33=_8;
}
}else{
_31.all.splice(i,1);
_33=_8;
}
_32=_8;
}
});
if(!_32&&_c(_30)){
_31.all.push(_30);
_33=_8;
}
if(_33){
_31.log.push(_30);
}
var _35=_31.cache[_d(_30)];
if(_35){
var _36=_b(_30);
if(_c(_30)){
_35[_36]=_30;
}else{
delete _35[_36];
}
}
},_37=function(_38){
var _39=_3a(_38);
return _39;
},_3b=0,_3c=function(_3d,fn){
var _3e="fn"+(++_3b);
_3d[_3e]=fn;
return _3e;
},_3f=function(_40,_41){
if(_41 in _40){
delete _40[_41];
}
},_42=function(_43,_44){
for(var _45 in _43){
var _46=_37(_44),fn=_43[_45];
if(fn){
try{
fn(_46);
}
catch(err){
}
}
}
},_47=function(_48){
return _1(_a,_9,_48);
},_49=function(_4a,_4b){
_2(_a,_4a,_4b);
},_4c=function(_4d){
var _4e=_11(_4d),cbs={};
return {getState:function(){
var _4f=new _7(),_50=_37(_4e);
_4f.resolve(_50);
return _4f;
},addListener:function(_51){
var _52=_3c(cbs,_51);
return _52;
},removeListener:function(_53){
_3f(cbs,_53);
},commit:function(_54){
_4e=_54._data;
_42(cbs,_4e);
_4e.log=[];
var _55=new _7().resolve();
return _55;
},init:function(_56){
_4e=_11(_56);
}};
},_3a=function(_57){
var d=_57;
return {_data:d,renderParams:function(){
var _58=_59(d);
return _58;
}};
},_59=function(_5a){
var d=_5a;
return {get:function(_5b){
return _14(_5b,d);
},set:function(_5c,_5d){
_26(_5c,d,_5d);
},getModified:function(){
return d.log;
}};
},_5e=i$.fromPath("wpModules.state.page",_8);
i$.mash(_5e,{"newStateManager":_4c,"setStateManager":_49,"getStateManager":_47});
})();
(function(){
var _5f=i$.fromPath("wpModules.state.page"),_60=_5f.newStateManager(),_61="window/startRender";
_60.init(_5f._initial);
delete wpModules.state.page._initial;
_5f.setStateManager(_60);
if(top!==self&&top.i$){
top.i$.fireEvent(_61,[self]);
}
i$.fireEvent(_61);
})();


}catch(e){console.log("Module 'wp_state_page': ",e);}
try{(function(_1){
var _2=_1,_3=i$.fromPath,_4="wpModules.theme.WindowUtils",_5=_4+".baseURL",_6=_5+".Promise."+Math.random(),_7="wpViewFrameContainer",_8="wpthemeMaster",_9="wpToolbarPrimaryFrameContainer",_a="wpToolbarSecondaryFrameContainer",_b=[_7,_8,_9,_a],_c=i$.createDom,_d=new i$.Promise(),_e=function(id){
if(id){
if(id==_7){
return _f(_7)||_10(_7)||top;
}else{
if(id==_8){
var _11=_e(_7);
return _11.parent||_11;
}else{
if(id==_9){
return _f(_9)||_10(_9);
}else{
if(id==_a){
return _f(_a)||_10(_a);
}else{
if(_12(_2)==id){
return _2;
}else{
for(var i=0,l=_b.length;i<l;i++){
var w=_e(_b[i]);
if(w&&_12(w)==id){
return w;
}
}
return null;
}
}
}
}
}
}else{
return _2;
}
},_f=function(id){
try{
var f=_13(top,id+"-iframe");
return f?f.window:null;
}
catch(e){
return null;
}
},_10=function(id){
try{
var w=_2,fID=id+"-iframe";
f=_13(w,fID);
while(!f&&w&&w!==top){
w=w.parent;
f=_13(w,fID);
}
return f?f.window:null;
}
catch(e){
return null;
}
},_13=function(w,id){
if(w){
var fs=w.frames;
if(fs){
return fs[id];
}
}
return null;
},_12=function(w){
return _3("ibmCfg.portalConfig.currentPageOID",false,w);
},_14=function(){
var ids=[],add=function(id){
if(id&&ids.indexOf(id)<0){
ids.push(id);
}
};
for(var i=0,l=_b.length;i<l;i++){
var w=_e(_b[i]);
if(w){
add(_12(w));
}
}
return ids;
},_15=function(win){
var id=_5,doc=win.document,_16=doc.getElementById(id);
if(!_16){
var _17=doc.getElementsByTagName("head")[0],_16=_c("link",{"id":id,"rel":"alternate","href":"#"},_17);
}
var _18=_16.href;
var _19=_18.indexOf("#");
if(_19>0){
_18=_18.substr(0,_19);
}
_18=_18.replace("%24project","$project");
return _18;
},_1a=function(win){
var _1b=_3(_4,false,win),doc=win.document,url;
if(null!=_1b){
return _1b.baseURL;
}
_1b=win[_6];
if(null!=_1b){
return _1b;
}
_1b=new i$.Promise();
win[_6]=_1b;
if(doc.readyState==="loading"){
doc.addEventListener("DOMContentLoaded",function(){
url=_15(win);
_1b.resolve(url);
});
}else{
url=_15(win);
_1b.resolve(url);
}
return _1b;
};
i$.toPath(_4,{VIEW_AREA:_7,MASTER:_8,getWindow:function(id){
return _e(id);
},getBaseURL:function(win){
return _15(win);
},getPageIDs:function(){
return _14();
},findBaseURL:_1a,baseURL:_d});
})(window);


}catch(e){console.log("Module 'wp_theme_utils': ",e);}
try{(function(){
i$.addOnLoad(function(){
var _1=i$.fromPath("wpModules.state.page");
if(_1){
var _2=_1.getStateManager(),ln=function(o){
return o.length;
},_3=function(o){
if(o&&ln(o)>0){
var v=o[0].value;
if(v&&ln(v)>0){
return v[0];
}
}
return null;
};
_2&&_2.getState().then(function(_4){
var _5=wpModules.theme.WindowUtils,_6=_3(_4.renderParams().get({nsuri:"http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",name:"showTools"})),_7=function(_8){
var _9=null;
if(_8&&_8.frames){
var _a=_8.frames[_5.VIEW_AREA+"-iframe"];
if(_a){
_9=_a.window;
}
}
return _9;
},_b=function(_c){
return _7(_c);
},_d=function(){
return top.location.href.indexOf("/$preview")>=0;
};
if(!_d()){
if((_6&&self===top)||(!_6&&self!==top&&_b(self.parent)&&_7(self.parent)===self)){
var _e=_5.getBaseURL(_5.getWindow(_5.VIEW_AREA)||top),_f=_e.indexOf("?");
if(_f>=0){
_e=_e.substr(0,_f);
}
_e+="?uri=toolbar:close";
top.location.href=_e;
}
}
var _10=function(){
if(!_6&&self===top){
var doc=document,_11=doc.activeElement;
if(doc.getElementsByClassName&&(!_11||_11===doc.body)){
var n=doc.getElementsByClassName("wpToolbarFocusStart");
if(n&&n.length>0){
var e=n[0];
e.focus();
}
}
}
};
_10();
});
}
});
})();


}catch(e){console.log("Module 'wp_toolbar_viewframe_validator': ",e);}
try{(function(){
	if(i$.isIE){
		document.createElement('article');
		document.createElement('aside');
		document.createElement('footer');
		document.createElement('header');
		document.createElement('hgroup');
		document.createElement('nav');
		document.createElement('section');
	}
	if(i$.isIE == 7){ document.getElementsByTagName("html")[0].className+=" wptheme_ie7"; }
	if(i$.isIE == 8){ document.getElementsByTagName("html")[0].className+=" wptheme_ie8"; }
	if(i$.isIE == 9){ document.getElementsByTagName("html")[0].className+=" wptheme_ie9"; }
	if(i$.isIE == 10){ document.getElementsByTagName("html")[0].className+=" wptheme_ie10"; }
	if(i$.isIE == 11){ document.getElementsByTagName("html")[0].className+=" wptheme_ie11"; }
})();


}catch(e){console.log("Module 'wp_theme_portal_85': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-U69, (C) Copyright IBM Corp. 2009, 2010 - All Rights reserved.  **/
(function(){var _1={};var _2=[];var _3=1;var _4={};_4.register=function(_5){var id=_6();_1[id]=_5;_2.push(_5);return id;};_4.deregister=function(_7){_1[_7]=null;_2=[];};_4.notify=function(_8,_9,_a){var _b=_c();var i=0;var _d=_b.length;if(!_a){_a={type:"AJAX"};}var _e=function(){if(i<_d){var _f=_b[i];i++;if(_f){_f(_8,_e,_a);}else{_e();}}};_e();if(_9){_9();}};_4.isActive=function(){return _2.length>0;};var _6=function(){return _3++;};var _c=function(){if(!_2||_2.length<=0){for(var _10 in _1){if(_1.hasOwnProperty(_10)){_2.push(_10);}}}return _2;};if(typeof (com)=="undefined"){com={};}if(typeof (com.ibm)=="undefined"){com.ibm={};}if(typeof (com.ibm.portal)=="undefined"){com.ibm.portal={};}if(typeof (com.ibm.portal.analytics)=="undefined"){com.ibm.portal.analytics={};}com.ibm.portal.analytics.SiteAnalyticsMediator=_4;com.ibm.portal.analytics.getSiteAnalyticsMediator=function(){return _4;};})();(function(){var _11=function(e){if(_12()){var _13=ibmCfg.portalConfig.currentPageOID;_14(null,null,{type:"PAGE",id:_13});var _15=_16();if(_15&&_15.length>0){for(var i=0;i<_15.length;++i){var _17=_15[i];var _18={};_18.type="PORTLET";_18.id=_19(_17);_1a(_17,_18.id);_14([_17],null,_18);}}}};var _14=function(_1b,_1c,_1d){com.ibm.portal.analytics.SiteAnalyticsMediator.notify(_1b,_1c,_1d);};var _12=function(){return com.ibm.portal.analytics.SiteAnalyticsMediator.isActive();};var _16=function(){var _1e=document.getElementById("layoutContainers");return _1f("div","component-control",_1e);};var _19=function(_20){var _21=_20.className,id=null;if(_21){var _22=_21.split(" ");for(var i=0,l=_22.length;i<l;++i){var cls=_22[i],_23=cls.indexOf("id-");if(_23>=0){id=cls.substring(_23+3);break;}}}return id;};var _1a=function(_24,_25){var _26=_24.className&&_24.className.indexOf("asa.portlet.selected")>=0;if(_26){var _27=document.getElementById("asa.portlet."+_25);if(_27){var _28=document.createElement("span");_28.className="asa.portlet.selected";_28.innerHTML="true";_27.appendChild(_28);}}};var _1f=function(_29,_2a,_2b){if(!_2b){_2b=document;}if(document.getElementsByClassName){return _2b.getElementsByClassName(_2a);}else{var _2c=[];_2a=_2a.toLowerCase();var _2d=_2b.getElementsByTagName(_29);if(_2d&&_2d.length>0){for(var i=0,l=_2d.length;i<l;i++){var e=_2d[i];if(e.className&&e.className.toLowerCase().indexOf(_2a)>=0){_2c.push(e);}}}return _2c;}};var _2e=i$.addOnLoad;if(typeof wp_wcm_async!="undefined"){_2e=i$.scope(wp_wcm_async,wp_wcm_async.addOnPageLoad);}_2e(_11);})();

}catch(e){console.log("Module 'wp_analytics_aggregator': ",e);}
try{/*
    Simple inline event handler for float buttons.  This handler allows skin developers to provide specialized
    float button behavior by defining a global function called "wlp_bighorn_float".  It is assumed that
    the float button is implemented as a HTML <A> element.
    
    If present the "wlp_bighorn_float" function will be called with the instance of the clicked float button.
    This function should return false if the default button click browser event should be suppressed.
    
    If absent, the default behavior will be to render floated windows in a new browser window via the
    HTML <A> element "target" attribute behavior.
*/
function wlp_bighorn_float_handler(button)
{
    var doAction = true;

    if (window.wlp_bighorn_float)
    {
        doAction = wlp_bighorn_float(button);
    }
    else
    {
        button.target = '_blank';
    }

    return doAction;
}

/*
    Simple inline event handler for delete buttons.  This handler allows skin developers to provide specialized
    delete button behavior by defining a global function called "wlp_bighorn_delete".  It is assumed that
    the delete button is implemented as a HTML <A> element.
    
    If present the "wlp_bighorn_delete" function will be called with the instance of the clicked delete button.
    This function should return false if the default button click browser event should be suppressed.
    
    If absent, the default behavior will be to invoke the "deletebuttondialog" feature.
*/
function wlp_bighorn_delete_handler(button)
{
    var doAction = true;

    if (window.wlp_bighorn_delete)
    {
        doAction = wlp_bighorn_delete(button);
    }
    else
    {
        doAction = wlp_deleteButtonDialog(button);
    }

    return doAction;
}

}catch(e){console.log("Module 'acssptheme': ",e);}
try{/*
    Utility function for attaching an event handler to a target element.  Note that this function is intended
    to be used by skeleton and skin developers, NOT by content developers.
*/
function wlp_bighorn_attachEventHandler(target, type, handler)
{
    var result = false;
    if (target.addEventListener)
    {
        target.addEventListener(type, handler, false);
        result = true;
    }
    else if (target.attachEvent)
    {
        result = target.attachEvent("on" + type, handler);
    }
    else
    {
        var name = "on" + type;
        var old = (target[name]) ? target[name] : function() {};
        target[name] = function(e) { old(e); handler(e) };
        return true;
    }
    return result;
}

/*
    Utility function to add a class name to a target element.  This function is intended for use by skin
    developers to help facilitate adding behaviors to elements.
*/
function wlp_bighorn_addClassName(target, name)
{
    target.className += (target.className ? ' ' : '') + name;
}

/*
    Utility function to remove a class name to a target element.  This function is intended for use by skin
    developers to help facilitate adding behaviors to elements.
*/
function wlp_bighorn_removeClassName(target, name)
{
    var regex = new RegExp(" ?" + name + "$");
	target.className = target.className.replace(regex, '');
}

}catch(e){console.log("Module 'acssptheme': ",e);}
try{function queryResponseNext(form)
{
	form.qrNext.value="true";
	form.submit();
}
function queryResponsePrevious(form)
{
	form.qrPrev.value="true";
	form.submit();
}
function queryResponseItemsPerPage(form,ipp)
{
	var numP  = ipp.options[ ipp.selectedIndex ].value;
	form.qrIPP.value=numP;
	form.submit();
}
function queryResponsePageChange(form,dpp)
{
	var page  = dpp.options[ dpp.selectedIndex ].value;
	form.qrPageSelection.value=page;
	form.submit();
}
function queryResponseSort(form,field)
{
	form.qrSort.value=field;
	form.submit();
    return false;
}

}catch(e){console.log("Module 'acssptheme': ",e);}
try{leftPos = 0;
topPos = 0;

if (screen) {
	leftPos = (screen.width / 2) - 383;
	topPos = (screen.height / 2) - 250;
}


var addPagesWin = null;
function showAddPagesDB() {
	if (!addPagesWin || addPagesWin.closed) {
	addPagesWin = open('add_new_page.htm','AddPages',"resizable=0,menubar=0,scrollbars=auto,width=650,height=500,left=" + leftPos + ",top=" + topPos);
		addPagesWin.creator = self;
	}	else {
		addPagesWin.focus();
	}
}


// Fixes width of all buttons: requires that text in buttons have <span> tag around them. To be called on body onload
function resizeButtons() {
    var btns = document.getElementsByTagName('button');
    var i;
    for (i=0; i < btns.length; i++) { //need to loop through all buttons
        var btnWidth = 12; //min width, provides padding
        var btnImg = btns[i].getElementsByTagName('img')[0];
        if (btnImg) { //if it's not null
            btnWidth += btnImg.width;
        }
        var btnText = btns[i].getElementsByTagName('span')[0];
        if (btnText) { //if it's not null
            btnWidth += btnText.offsetWidth;
            btns[i].style.width = btnWidth; //fail gracefully, don't set width if there is no span
        }
    }
}

function consumeOnEnter (event)
{
    if (event)
    {
        var inputKey = event.keyCode;
        var enterKey = 13;
        return !(inputKey == enterKey);
    }
    else
    {
        return true;
    }
}

function setDefaultElementFocus (id)
{
    var elementFieldId = lookupIdByTagId (id);
    var element = document.getElementById (elementFieldId);
    element.focus ();    
}

function resizeDialog(width, height)
{
    if (window.showModalDialog)
    {
        window.dialogWidth = width + "px";
        window.dialogHeight = height + "px";
    }
    else
    {
        window.resizeTo(width, height);
    }
}

var checkedHandler = null;

function setCheckedHandler(callback)
{
    checkedHandler = callback;
}

var uncheckedHandler = null;

function setUncheckedHandler(callback)
{
    uncheckedHandler = callback;
}

function recordChecked(cbox, title)
{
    var args = new Array();
    args.push(cbox);
    args.push(title);

    if (cbox.checked == true)
    {
        checkedHandler.apply(null, args);
    }
    else
    {
        uncheckedHandler.apply(null, args);
    }
}

function toggleCheckbox (divElement)
{
    //for every node in the passed in div.
    for (var i = 0; i < divElement.childNodes.length; i++)
    {
        var element = divElement.childNodes [i];
        //Find the first input.
        if (element.nodeName == 'INPUT')
        {
            var type = element.getAttribute ("type");
            //that is a checkbox.
            if (type == 'checkbox')
            {
                //toggle it's current value
                element.checked = !element.checked;
                break;
            }
        }
    }
}


function showDescription(description)
{
    //Since we are updating an innerHTML we need to ensure that the content
    //is properly escaped.
    document.getElementById('pageDesc').innerHTML = "<br/>" +
                                                    wlpEscape (description);
}

function hideDescription()
{
    document.getElementById('pageDesc').innerHTML = "<br/>";
}

function toggleHighlight(itemCol) 
{
    if (itemCol.style.backgroundColor == '#ffd185' || itemCol.style.backgroundColor == 'rgb(255, 209, 133)')
    {
        itemCol.style.backgroundColor = '';
    }
    else
    {
        itemCol.style.backgroundColor = '#FFD185';
    }
}

function toggleCheck (id)
{
    var cbox = document.getElementById (id);
    if (cbox.checked == true)
    {
        cbox.checked = false;
    }
    else
    {
        cbox.checked = true;
    }
}

var columns = new Array();

function setColumns(theColumns)
{
    columns = theColumns;
}

function createCapabilities(editLabel, editEnabled, themeLabel, themeEnabled, renameLabel, renameEnabled, removeLabel, removeEnabled)
{
    var capabilities = new Object();

    capabilities.edit = new Object();
    capabilities.edit.label = editLabel;
    capabilities.edit.enabled = editEnabled;

    capabilities.theme = new Object();
    capabilities.theme.label = themeLabel;
    capabilities.theme.enabled = themeEnabled;

    capabilities.rename = new Object();
    capabilities.rename.label = renameLabel;
    capabilities.rename.enabled = renameEnabled;

    capabilities.remove = new Object();
    capabilities.remove.label = removeLabel;
    capabilities.remove.enabled = removeEnabled;


    return capabilities;
}

function escapeQuotes (s)
{
    if (s)
    {
        var escaped = s.replace (/'/g, '\\\'');
        return escaped;
    }
}

function wlpEscape (s, escapeSingleQuote)
{
    if (!s)
    {
        return s;
    }
    var strLoc =
        s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
    if (escapeSingleQuote)
    {
        //replace double quote with ampersand-quot for proper functioning of ?
        //onclick functions
        strLoc = strLoc.replace(/"/g, '&quot;');
        strLoc = escapeQuotes (strLoc);
    }
    return strLoc
}

function createPanel(containerId, title, id, position, pathToImages,
                     capabilities, containerReadOnly, canView, isLeaf)
{
    var panelId = containerId + '-' + id;
    var container = document.getElementById(containerId);
    var containerIndex = Number(container.getAttribute('columnIndex'));
    var locked = container.getAttribute('isLocked');

    var editLabel = capabilities.edit.label;
    var themeLabel = capabilities.theme.label;
    var renameLabel = capabilities.rename.label;
    var removeLabel = capabilities.remove.label;

    var upImage = "up.gif";
    var downImage = "down.gif";
    var leftImage = "left.gif";
    var rightImage = "right.gif";

    var editStyle = "display:inline";
    var themeStyle = "display:inline";
    var renameStyle = "display:inline";
    var removeStyle = "display:inline";


    if (isLeaf || !capabilities.edit.enabled)
    {
         editStyle = "display:none";
    }

    if (!capabilities.theme.enabled)
    {
        themeStyle = "display:none";
    }

    if (!capabilities.rename.enabled)
    {
        renameStyle = "display:none";
    }

    if (!capabilities.remove.enabled ||
        containerReadOnly)
    {
        removeStyle = "display:none";
    }

    if (locked == "true")
    {
        upImage = "up_disabled.gif";
        downImage = "down_disabled.gif";
        leftImage = "left_disabled.gif";
        rightImage = "right_disabled.gif";

        editStyle = "display:none";
        themeStyle = "display:none";
        renameStyle = "display:none";
        removeStyle = "display:none";
    }

    if (containerReadOnly)
    {
        upImage = "up_disabled.gif";
        downImage = "down_disabled.gif";
        leftImage = "left_disabled.gif";
        rightImage = "right_disabled.gif";
    }

    var viewEditImage = "wlp-view-16.gif";


    if (canView || capabilities.edit.enabled)
    {
        if (capabilities.edit.enabled)
        {
            viewEditImage = "wlp-edit-16.gif";
        }
        editStyle = "display:inline";
    }

    if (isLeaf)
    {
        editStyle = "display:none";
    }

    var tableRow = createPanelRow(container, panelId, position);
    var tableCell = createPanelCell(tableRow);

    var panelHTML =
        "<table class=\"vt-placeable border-color-color4\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\">" +
        "    <tr>" +
        "        <th class=\"border-color-color4 background-color-color3\">" + wlpEscape (title, false) + "</th>" +
        "        <th style=\"text-align:right; width:1%;\" class=\"border-color-color4\"><span style=\"" + editStyle + "\" onclick=\"editResource('" + panelId +"')\"><img src=\"" + pathToImages + "/" + viewEditImage + "\" alt=\"" + editLabel + "\" title=\"" + editLabel + "\"></span><span style=\"" + themeStyle +"\" onclick=\"changeTheme('" + wlpEscape (title, true) +"', '" + id + "', '" + containerIndex + "', '" + position + "')\"><img src=\"" + pathToImages + "/wlp-laf-16.gif\" alt=\"" + themeLabel +"\" title=\"" + themeLabel + "\"></span><span style=\"" + renameStyle + "\" onclick=\"renameResource('" + wlpEscape (title, true) + "', '" + id + "', '" + containerIndex + "', '" + position + "')\"><img src=\"" + pathToImages + "/wlp-rename-16.gif\" alt=\"" + renameLabel + "\" title=\"" + renameLabel + "\"></span><span style=\"" + removeStyle + "\" onclick=\"deleteResource('" + wlpEscape (title, true) +"', '" + id + "', '" + containerIndex +"', '" + position + "')\"><img src=\"" + pathToImages + "/delete.gif\" alt=\"" + removeLabel + "\" title=\"" + removeLabel + "\"></span></th>" +
        "    </tr>" +
        "    <tr>";

    if (columns.length == 1)
    {
        panelHTML = panelHTML +
                "        <td colspan='2'>" +
                "            <table cellpadding='0' cellspacing='0' class='vt-arrows' style='width:100%;' summary=''><tr><td style='text-align:center;'><img id='" + panelId + "_upImage' src='" + pathToImages + "/" + upImage + "' onClick='movePanelUp(\"" + panelId + "\", \"" + pathToImages + "\");'><br/><img id='" + panelId + "_downImage' src='" + pathToImages + "/" + downImage + "' onClick='movePanelDown(\"" + panelId + "\", \"" + pathToImages + "\");'></td></tr></table>" +
                "        </td>" +
                "    </tr>" +
                "</table>";
    }
    else
    {
        panelHTML = panelHTML +
                "        <td colspan='2'>" +
                "            <table cellpadding='0' cellspacing='0' class='vt-arrows' style='width:100%;' summary=''><tr><td style='width:1%;'><img id='" + panelId + "_leftImage' src='" + pathToImages + "/" + leftImage + "' onClick='movePanelLeft(\"" + panelId + "\", \"" + pathToImages + "\")'></td><td style='text-align:center;'><img id='" + panelId + "_upImage' src='" + pathToImages + "/" + upImage + "' onClick='movePanelUp(\"" + panelId + "\", \"" + pathToImages + "\");'><br/><img id='" + panelId +"_downImage' src='" + pathToImages + "/" + downImage + "' onClick='movePanelDown(\"" + panelId + "\", \"" + pathToImages + "\");'></td><td style='width:1%;'><img id='" + panelId + "_rightImage' src='" + pathToImages + "/" + rightImage +"' onClick='movePanelRight(\"" + panelId + "\", \"" + pathToImages + "\")'></td></tr></table>" +
                "        </td>" +
                "    </tr>" +
                "</table>";
    }

    tableCell.innerHTML = panelHTML;
}

function createPanelRow(container, panelId, position)
{
    var tableRow = container.insertRow(position);
    tableRow.id = panelId;
    tableRow.setAttribute('panelIndex', position);
    tableRow.setAttribute('currentColumnId', container.id);
    tableRow.onmousedown = dragPanel;
    tableRow.onmouseover = setTargetPanel;
    tableRow.onmouseout = clearTargetPanel;

    return tableRow;
}

function createPanelCell(tableRow)
{
    var tableCell = tableRow.insertCell(0);
    tableCell.className = "background-color-gray2";
    tableCell.onclick = function() { toggleHighlight(tableCell); }

    return tableCell;
}

var dragEnabled=false;
var dragIcon = null;
var sourcePanel = null;
var targetPanel = null;
var oldMoveHandler = document.onmousemove;
var oldUpHandler = document.onmouseup;

var dndPathToImages = null;

function setDndPathToImages(path)
{
    dndPathToImages = path;
}

function findEnclosingPanel(element)
{
    var topElement = "BODY";

    if (element.parentNode)
    {
        topElement = "HTML";
    }

    while (element.tagName != topElement && element.getAttribute('panelIndex') == null)
    {
        if (element.parentNode)
        {
            element = element.parentNode;
        }
        else
        {
            element = element.parentElement;
        }
    }

    return element;
}



function dragPanel(e)
{
    if (!e)
    {
        e = window.event;
    }

    dragEnabled = false;
    targetPanel = null;

    if (e.target)
    {
        sourcePanel = findEnclosingPanel(e.target);
    }
    else if (e.srcElement)
    {
        sourcePanel = findEnclosingPanel(e.srcElement);
    }

    var sourceContainerId = sourcePanel.getAttribute("currentColumnId");

    dragIcon = document.getElementById('dragIcon');

    var posX = e.clientX - (dragIcon.width + 2);
    var posY = e.clientY - (dragIcon.height + 2);
    dragIcon.style.left = posX + "px";
    dragIcon.style.top = posY + "px";

    if (document.addEventListener)
    {
        document.addEventListener("mousemove", moveIcon, true);
        document.addEventListener("mouseup", endDragPanel, true);
    }
    else if (document.attachEvent)
    {
        document.attachEvent("onmousemove", moveIcon);
        document.attachEvent("onmouseup", endDragPanel);
    }
    else
    {
        document.onmousemove=moveHandler;
        document.onmouseup=upHandler;
    }

    eventHandlerTail(e);

    return false;
}
function moveIcon(e)
{
    if (!e)
    {
        e = window.event;
    }

    if (dragEnabled)
    {
        if (self.pageYOffset) 
        {
            leftScroll = self.pageXOffset;
            topScroll = self.pageYOffset;
        } 
        else if (document.documentElement && document.documentElement.scrollTop) 
        {
            leftScroll = document.documentElement.scrollLeft;
            topScroll = document.documentElement.scrollTop;
        } 
        else if (document.body) 
        {
            leftScroll = document.body.scrollLeft;
            topScroll = document.body.scrollTop;
        }

        var posX = e.clientX  + leftScroll - (dragIcon.width + 2);
        var posY = e.clientY + topScroll - (dragIcon.height + 2);
        dragIcon.style.left = posX + "px";
        dragIcon.style.top = posY + "px";

        if (targetPanel != null)
        {
            targetPanel.scrollIntoView(false);
        }
    }
    else
    {
        dragEnabled = true;
        dragIcon.style.display = 'block';
    }

    eventHandlerTail(e);

    return true;
}

function setTargetPanel(e)
{
    if (!e)
    {
        e = window.event;
    }

    if (dragEnabled)
    {
        if (e.target)
        {
            targetPanel = findEnclosingPanel(e.target);
        }
        else if (e.srcElement)
        {
            targetPanel = findEnclosingPanel(e.srcElement);
        }
    }
}

function clearTargetPanel(e)
{
    if (!e)
    {
        e = window.event;
    }

    if (dragEnabled)
    {
        targetPanel = null;
    }
}

function endDragPanel(e)
{
    if (!e)
    {
        e = window.event;
    }

    if (document.removeEventListener)
    {
        document.removeEventListener("mouseup", endDragPanel, true);
        document.removeEventListener("mousemove", moveIcon, true);
    }
    else if (document.detachEvent)
    {
        document.detachEvent("onmouseup", endDragPanel);
        document.detachEvent("onmousemove", moveIcon);
    }
    else
    {
        document.onmouseup = oldUpHandler;
        document.onmousemove = oldMoveHandler;
    }

    if (dragEnabled)
    {
        dragEnabled = false
        dragIcon.style.display = 'none';

        if (targetPanel)
        {
            swapPanels(sourcePanel.id, targetPanel.id);
        }
    }
}

function eventHandlerTail(e)
{
    if (e.stopPropagation)
    {
        e.stopPropagation();
    }
    else if (e.cancelBubble)
    {
        e.cancelBubble = true;
    }

    if (e.preventDefault)
    {
        e.preventDefault();
    }
    else if (e.returnValue)
    {
        e.returnValue = false;
    }
}

var swapHandler = null;

function setSwapHandler(handler)
{
    swapHandler = handler;
}

function swapPanels(panel1Id, panel2Id)
{
    var panel1 = document.getElementById(panel1Id);
    var rowIndex1 = panel1.rowIndex;
    var container1Id = panel1.getAttribute("currentColumnId");

    var container1 = document.getElementById(container1Id);
    var column1Index = Number(container1.getAttribute("columnIndex"));
    var column1Locked = container1.getAttribute("isLocked");

    var panel2 = document.getElementById(panel2Id);
    var rowIndex2 = panel2.rowIndex;
    var container2Id = panel2.getAttribute("currentColumnId");

    var container2 = document.getElementById(container2Id);
    var column2Index = Number(container2.getAttribute("columnIndex"));
    var column2Locked = container2.getAttribute("isLocked");

    if (column1Locked == "true" || column2Locked == "true")
    {
        return;
    }

    if (swapHandler)
    {
        var args = new Array();
        args.push(column1Index);
        args.push(rowIndex1);
        args.push(column2Index);
        args.push(rowIndex2);
        swapHandler.apply(null, args);
    }

    var panel1HTML = panel1.cells[0].innerHTML;
    var panel2HTML = panel2.cells[0].innerHTML;

    panel1.cells[0].innerHTML = panel2HTML;
    panel2.cells[0].innerHTML = panel1HTML;

    panel1.id = 'tmp_panel_id';
    panel2.id = panel1Id;
    panel1.id = panel2Id;

    resetPanelButtons(panel1Id, dndPathToImages);
    setDisabledImages(container2Id, dndPathToImages);

    resetPanelButtons(panel2Id, dndPathToImages);
    setDisabledImages(container1Id, dndPathToImages);
}

var moveUpHandler = null;

function setMoveUpHandler(handler)
{
    moveUpHandler = handler;
}

function movePanelUp(panelId, pathToImages)
{
    var panel = document.getElementById(panelId);
    var rowIndex = panel.rowIndex;
    var containerId = panel.getAttribute("currentColumnId");

    // Don't let users move the first panel in the table up
    if (rowIndex == 0)
        return;

    var container = document.getElementById(containerId);

    // Users may not modify locked columns
    if (container.getAttribute('isLocked') == "true")
    {
        return;
    }

    // Invoke the client's callback
    if (moveUpHandler)
    {
        var args = new Array();
        args.push(Number(container.getAttribute('columnIndex')));
        args.push(rowIndex);
        moveUpHandler.apply(null, args);
    }

    // Get a reference to the panel itself
    var innerHTML = panel.cells[0].innerHTML;

    // Delete the row that contains the panel
    container.deleteRow(rowIndex);

    // Handle the special case where we are moving the next to top 
    // panel into the top position. We need to reset the movement 
    // buttons on the panel being moved down.
    if (rowIndex == 1)
    {
        var movedRow = container.rows[0];
        var movedId = movedRow.id;
        var movedRowUp = document.getElementById(movedId + '_upImage');
        var movedRowDown = document.getElementById(movedId + '_downImage');
        movedRowUp.src = pathToImages + '/up.gif';
        movedRowDown.src = pathToImages + '/down.gif';
    }

    // Create a new row for the panel, one slot up
    var tableRow = createPanelRow(container, panelId, rowIndex - 1);

    // Put the panel inside the table row
    var tableCell = createPanelCell(tableRow);
    tableCell.innerHTML = innerHTML;

    resetPanelButtons(panelId, pathToImages);
    setDisabledImages(containerId, pathToImages);
}

var moveDownHandler = null;

function setMoveDownHandler(handler)
{
    moveDownHandler = handler;
}

function movePanelDown(panelId, pathToImages)
{
    var panel = document.getElementById(panelId);
    var rowIndex = panel.rowIndex;
    var containerId = panel.getAttribute("currentColumnId");

    var container = document.getElementById(containerId);

    // Don't let users move the last panel in the table down 
    if (rowIndex == container.rows.length - 1)
        return;

    // Users may not modify locked columns
    if (container.getAttribute('isLocked') == "true")
    {
        return;
    }

    // Invoke the client's callback
    if (moveDownHandler)
    {
        var args = new Array();
        args.push(Number(container.getAttribute('columnIndex')));
        args.push(rowIndex);
        moveDownHandler.apply(null, args);
    }

    // Get a reference to the panel itself
    var innerHTML = panel.cells[0].innerHTML;

    // Delete the row that contains the panel
    container.deleteRow(rowIndex);

    // Handle the special case where we are moving the next to last 
    // panel into the top position. We need to reset the movement  
    // buttons on the panel being moved up.
    if (rowIndex == container.rows.length - 1)
    {
        var movedRow = container.rows[container.rows.length - 1];
        var movedId = movedRow.id;
        var movedRowUp = document.getElementById(movedId + '_upImage');
        var movedRowDown = document.getElementById(movedId + '_downImage');
        movedRowUp.src = pathToImages + '/up.gif';
        movedRowDown.src = pathToImages + '/down.gif';
    }

    // Create a new row for the panel, one slot down
    var tableRow = createPanelRow(container, panelId, rowIndex + 1);

    // Put the panel inside the table row
    var tableCell = createPanelCell(tableRow);
    tableCell.innerHTML = innerHTML;

    resetPanelButtons(panelId, pathToImages);
    setDisabledImages(containerId, pathToImages);
}

var moveLeftHandler = null;

function setMoveLeftHandler(handler)
{
    moveLeftHandler = handler;
}

function movePanelLeft(panelId, pathToImages)
{
    var panel = document.getElementById(panelId);
    var rowIndex = panel.rowIndex;
    var containerId = panel.getAttribute("currentColumnId");

    var container = document.getElementById(containerId);
    var columnIndex = Number(container.getAttribute("columnIndex"));

    // Can't move left if this is the leftmost column
    if (columnIndex == 0)
        return;

    // Users may not modify locked columns
    if (container.getAttribute('isLocked') == "true")
    {
        return;
    }

    // Get the next column to the left of this one that isn't locked
    var newContainer = getNextColumnLeft(columnIndex);

    // All columns are locked. Nothing to do.
    if (!newContainer)
    {
        return;
    }

    var newContainerId = newContainer.id;

    // Get a reference to the panel itself
    var innerHTML = panel.cells[0].innerHTML;

    // Delete the row that contains the panel
    container.deleteRow(rowIndex);

    // Create a new row for the panel in the container to the left
    var tableRow = null;
    var newIndex = rowIndex;

    if (rowIndex < newContainer.rows.length)
    {
        tableRow = createPanelRow(newContainer, panelId, rowIndex);
    }
    else
    {
        tableRow = createPanelRow(newContainer, panelId, newContainer.rows.length);
        newIndex = newContainer.rows.length;
    }

    // Put the panel inside the table row
    var tableCell = createPanelCell(tableRow);
    tableCell.innerHTML = innerHTML;

    resetPanelButtons(panelId, pathToImages);
    setDisabledImages(newContainerId, pathToImages);

    // Invoke the client's callback
    if (moveLeftHandler)
    {
        var args = new Array();
        args.push(columnIndex);
        args.push(rowIndex);
        args.push(Number(newContainer.getAttribute('columnIndex')));
        args.push(newIndex);
        moveLeftHandler.apply(null, args);
    }
}

var moveRightHandler = null;

function setMoveRightHandler(handler)
{
    moveRightHandler = handler;
}

function movePanelRight(panelId, pathToImages)
{
    var panel = document.getElementById(panelId);
    var rowIndex = panel.rowIndex;
    var containerId = panel.getAttribute("currentColumnId");

    var container = document.getElementById(containerId);
    var columnIndex = Number(container.getAttribute("columnIndex"));

    // Can't move right if this is the rightmost column
    if (columnIndex == columns.length - 1)
        return;

    // Users may not modify locked columns
    if (container.getAttribute('isLocked') == "true")
        return;

    // Get the next column to the right of this one that isn't locked
    var newContainer = getNextColumnRight(columnIndex);

    // All placeholders are locked. Nothing to do.
    if (!newContainer)
    {
        return;
    }

    var newContainerId = newContainer.id;

    // Get a reference to the panel itself
    var innerHTML = panel.cells[0].innerHTML;

    // Delete the row that contains the panel
    container.deleteRow(rowIndex);

    // Create a new row for the panel in the container to the right
    var tableRow = null;
    var newIndex = rowIndex;

    if (rowIndex < newContainer.rows.length)
    {
        tableRow = createPanelRow(newContainer, panelId, rowIndex);
    }
    else
    {
        tableRow = createPanelRow(newContainer, panelId, newContainer.rows.length);
        newIndex = newContainer.rows.length;
    }

    // Put the panel inside the table row
    var tableCell = createPanelCell(tableRow);
    tableCell.innerHTML = innerHTML;

    resetPanelButtons(panelId, pathToImages);
    setDisabledImages(newContainerId, pathToImages);

    // Invoke the client's callback
    if (moveRightHandler)
    {
        var args = new Array();
        args.push(columnIndex);
        args.push(rowIndex);
        args.push(Number(newContainer.getAttribute('columnIndex')));
        args.push(newIndex);
        moveRightHandler.apply(null, args);
    }

}

function resetPanelButtons(panelId, pathToImages)
{
    // Reset the panel's movement buttons
    var updatedRow = document.getElementById(panelId);
    var updatedId = updatedRow.id;

    var updatedRowUp = document.getElementById(updatedId + '_upImage');
    var updatedRowDown = document.getElementById(updatedId + '_downImage');
    updatedRowUp.src = pathToImages + '/up.gif';
    updatedRowDown.src = pathToImages + '/down.gif';

    var updatedRowLeft = document.getElementById(updatedId + '_leftImage');
    var updatedRowRight = document.getElementById(updatedId + '_rightImage');
    if (updatedRowLeft && updatedRowRight)
    {
        updatedRowLeft.src = pathToImages + '/left.gif';
        updatedRowRight.src = pathToImages + '/right.gif';
    }
}

function setDisabledImages(containerId, pathToImages, containerReadOnly)
{
    var container = document.getElementById(containerId);
    var columnIndex = Number(container.getAttribute("columnIndex"));

    if (containerReadOnly)
    {
        return;
    }

    // Check for conditions that don't require any action

    if (!container.rows || container.rows.length == 0)
    {
        return;
    }
    else if (container.getAttribute('isLocked') == "true")
    {
        return;
    }

    // Disable up and down buttons as if we need to

    if (container.rows.length == 1)
    {
        var firstRow = container.rows[0];
        var panelId = firstRow.id;
        var firstRowUp = document.getElementById(panelId + '_upImage');
        var firstRowDown = document.getElementById(panelId + '_downImage');
        firstRowUp.src = pathToImages + '/up_disabled.gif';
        firstRowDown.src = pathToImages + '/down_disabled.gif';
    }
    else
    {
        var firstRow = container.rows[0];
        var firstRowId = firstRow.id;
        var firstRowUp = document.getElementById(firstRowId + '_upImage');
        var firstRowDown = document.getElementById(firstRowId + '_downImage');
        firstRowUp.src = pathToImages + '/up_disabled.gif';
        firstRowDown.src = pathToImages + '/down.gif';

        var lastRow = container.rows[container.rows.length - 1];
        var lastRowId = lastRow.id;
        var lastRowUp = document.getElementById(lastRowId + '_upImage');
        var lastRowDown = document.getElementById(lastRowId + '_downImage');
        lastRowUp.src = pathToImages + '/up.gif';
        lastRowDown.src = pathToImages + '/down_disabled.gif';
    }

    // Disable left and right buttons if we need to

    if (columns.length == 1)
    {
        return;
    }

    if (columnIndex == 0)
    {
        disableColumnLeft(container, pathToImages);
    }

    if (columnIndex == columns.length - 1)
    {
        disableColumnRight(container, pathToImages);
    }

    if (columnIndex > 0 && !getNextColumnLeft(columnIndex))
    {
        // All placeholders to the left are locked
        disableColumnLeft(container, pathToImages);
    }

    if (columnIndex < columns.length - 1 && !getNextColumnRight(columnIndex))
    {
        // All placeholders to the right are locked
        disableColumnRight(container, pathToImages);
    }
}

function disableColumnLeft(container, pathToImages)
{
   for (var index=0; index < container.rows.length; index++)
   {
       var panelId = container.rows[index].id;
       var leftImage = document.getElementById(panelId + '_leftImage');
       leftImage.src = pathToImages + '/left_disabled.gif';
   } 
}

function disableColumnRight(container, pathToImages)
{
   for (var index=0; index < container.rows.length; index++)
   {
       var panelId = container.rows[index].id;
       var rightImage = document.getElementById(panelId + '_rightImage');
       rightImage.src = pathToImages + '/right_disabled.gif';
   } 
}

function getNextColumnLeft(columnIndex)
{
    var nextColumnIndex = columnIndex-1;
    var newContainer = document.getElementById(columns[nextColumnIndex]);

    while (newContainer.getAttribute('isLocked') == 'true' && nextColumnIndex > 0)
    {
        newContainer = document.getElementById(columns[--nextColumnIndex]);
    }

    if (newContainer.getAttribute('isLocked') == 'true')
    {
        return null;
    }

    return newContainer;
}

function getNextColumnRight(columnIndex)
{
    var nextColumnIndex = columnIndex+1;
    var newContainer = document.getElementById(columns[nextColumnIndex]);

    while (newContainer.getAttribute('isLocked') == 'true' && nextColumnIndex < columns.length)
    {
        newContainer = document.getElementById(columns[++nextColumnIndex]);
    }

    if (newContainer.getAttribute('isLocked') == 'true')
    {
        return null;
    }

    return newContainer;
}

function getContents(containerId)
{
    var container = document.getElementById(containerId);
    var state = new Array();

    if (!container.rows)
        return state;

    for (var index=0; index < container.rows.length; index++)
    {

            // TODO: Ensure that atnId uses is properly escaped

        var id = container.rows[index].id.split('-', 2)[1];
        state.push(id);
    }

    return state; 
}

var editHandler = null;

function setEditHandler(handler)
{
    editHandler = handler;
}

function editResource(id)
{
    var args = new Array();
    args.push(id);

    editHandler.apply(null, args);
}

var themeHandler = null;

function setThemeHandler(handler)
{
    themeHandler = handler;
}

function changeTheme(title, id, columnIndex, panelIndex)
{
    var args = new Array();
    args.push(title);
    args.push(id);
    args.push(columnIndex);
    args.push(panelIndex);

    themeHandler.apply(null, args);
}

var renameHandler = null;

function setRenameHandler(handler)
{
    renameHandler = handler;
}

function renameResource(title, id, columnIndex, panelIndex)
{
    var args = new Array();
    args.push(title);
    args.push(id);
    args.push(columnIndex);
    args.push(panelIndex);

    renameHandler.apply(null, args);
}

var deleteHandler = null;

function setDeleteHandler(handler)
{
    deleteHandler = handler;
}

function deleteResource(title, id, columnIndex, panelIndex)
{
    var args = new Array();
    args.push(title);
    args.push(id);
    args.push(columnIndex);
    args.push(panelIndex);

    deleteHandler.apply(null, args);
}

function closeDialog (dialogWindow, reloadForFirefox)
{

    if (dialogWindow.parent.dialogArguments)
    {
        window.parent.dialogArguments.location.replace(window.parent.dialogArguments.location.href);
    }
    else if (parent.window.opener)
    {
    	if (reloadForFirefox)
    	{
    		parent.window.opener.document.location.reload (true);	
    	}
    	else
    	{
        	parent.window.opener.document.location.replace (
            	parent.window.opener.document.location.href);
		}
    }
    else
    {
        //some other browser version.
        //The user may have to refresh the browser manually.
    }
    dialogWindow.parent.close();
}


function gotoCommunity (dialogWindow, url)
{
    if (parent.window.opener)
    {
        parent.window.opener.open (url, "_blank");
    }
    else if (window.parent.dialogArguments)
    {
        window.parent.dialogArguments.open (url, "_blank");
    }
    else
    {
        //some other browser version.
        //The user may have to refresh the browser manually.
    }
    dialogWindow.parent.close ();
}



/**
* Used by the wizards to set a hidden netui form input with with a button
* command [next, previous, search...]
*
* @param cmd The command to set
* @param element the html element that is passed to the netui
*  lookupTagIdById to find the hidden element in the dom.
*/
function setCommand (cmd, element)
{
    if (cmd == null)
    {
        throw "Invalid command";
    }

    if (element == null)
    {
        throw "Invalid element";
    }

    var cmdElement = getCommandElement (element);
    cmdElement.value = cmd;
}

/**
 * Helper method called by setCommand to find the hidden netui command input
 * using the netui lookupIdByTagId javascript function
 *
 * @param element the html element that is passed to the netui
 *  lookupTagIdById to find the hidden element in the dom.
 */
function getCommandElement (element)
{
    var cmdId = lookupIdByTagId ("cmdHidden", element);
    if (cmdId == null)
    {
        throw "Failed to lookup the tagId for [cmdHidden]";
    }
    var cmdElement = document.getElementById (cmdId);
    if (cmdElement == null)
    {
        throw "Failed to find element assigned to id [" + cmdId + "]";
    }
    return cmdElement;
}

/**
 * Get the selected value from a radio button group.
 *
 * @param radio an array of radio inputs
 * @param defaultValue a default value if no input is selected
 *
 * @returns the value of the selected input (or default if none are selected)
 */
function getSelectedRadio(radio, defaultValue)
{
    var value = defaultValue;

    for (var index=0; index < radio.length; index++)
    {
        if (radio[index].checked)
        {
            value = radio[index].value;
            break;
        }
    }

    return value;
}

var vtExpandedMenuId;

function showVtMenu (menuId)
{
    //Menu is opened for the first time
    if (vtExpandedMenuId == null)
    {
        setMenuVisible (menuId, true);
        vtExpandedMenuId = menuId
    }
    //different menu is being opened
    else
    {
        setMenuVisible (vtExpandedMenuId, false);
        setMenuVisible (menuId, true);
        vtExpandedMenuId = menuId;
    }
    //anytime this is called we don't set the hide timer unil the menu raises
    //a mouse out event.
    clearHideTimer (menuId)
}

function setMenuVisible (menuId, show)
{
    var element = document.getElementById (menuId);
    if (show)
    {
        element.style.display = 'block';
    }
    else
    {
        element.style.display = 'none';
    }
}

function hideVtMenu (menuId)
{
    var element = document.getElementById (menuId);
    if (element != null && element.style.display == 'block')
    {
        setMenuVisible (menuId, false);
        vtExpandedMenuId = null;
    }
}



/**Used to capture the id of the timer so it can be cleared in certain cases*/
var vtMenuTimerId;

/**start the timer when a mouse out occurs in the to level menu row.*/
function setHideTimer (menuId)
{
    vtMenuTimerId = setTimeout('hideVtMenu ("' + menuId + '")', 1000);
}

/**clears the timer when a mouseOver occurs on the sub menu*/
function clearHideTimer ()
{
    clearTimeout (vtMenuTimerId);
    vtMenuTimerId = null;
}

function showNewVisitorWindow (filename, windowElement, winName, wWidth, wHeight, cssClazz)
{
    var newWin = null;

    var windowWidth = wWidth;
    var windowHeight = wHeight;

    //Check is a css class is passed in.
    if (cssClazz)
    {
        var dimension = getCssDefinedWindowSize (cssClazz);

        if (dimension != null)
        {
            windowWidth = dimension.width;
            windowHeight = dimension.height;
        }
    }

    if (window.showModalDialog)
    {
        newWin = window.showModalDialog(filename, windowElement,
                    "resizable:0;scroll:1;status:0;dialogWidth:"+
                    windowWidth +"px;dialogHeight:"+ windowHeight +
                    "px;dialogLeft:" + leftPos + "px;dialogTop:" + topPos +
                    "px;");
                    window.document.location.reload();
    }
    else
    {
        newWin = window.open(filename,winName,
                "resizable=0,status=0,menubar=0,scrollbars=1,width=" +
                windowWidth + "px,height=" + windowHeight + "px,left=" +
                leftPos + "px,top=" + topPos + "px");

        newWin.creator = self;
        newWin.focus();
        window.document.location.reload();
    }
}

/**
* This function is used to read window dimensions from css javascript class.
*/
function getCssDefinedWindowSize (cssClazz)
{
    var cssRules;
	if (isIE ())
    {
	  cssRules = 'rules';
	}
	else if (document.getElementById)
    {
	    cssRules = 'cssRules';
	}

    var dimension = null;

    //Foreach style sheet..
    for (var i = 0; i < document.styleSheets.length; i++)
    {
        var styleSheet = document.styleSheets[i];
        try
        {
	        var rules = styleSheet [cssRules];
	        //foreach rule/class name
	        for (var j = 0; j < styleSheet [cssRules].length; j++)
	        {
	            var rule = styleSheet [cssRules][j];
	
	            //if the rule/class name equals the passed in css class name
	            //Then extract the height an width.
	            if (rule != null && rule.selectorText == cssClazz)
	            {
	                dimension = new Dimension (
	                        rule.style.width,
	                        rule.style.height);
	                break;
	
	            }
	        }
        }
        catch (err)
        {
            // TODO:
        }
    }
    return dimension;
}

var dynamicResizing = false;

/**function resizeWindow (newWindow)
{
    if (dynamicResizing)
    {
        var newDocument= newWindow.document;
        var growHeight = newDocument.body.scrollHeight - newDocument.body.clientHeight;
        if (growHeight > 0)
        {
            growHeight = Math.min (screen.availHeight,Math.max (
                    newDocument.body.offsetHeight,document.body.scrollHeight) + 60);
        }
        else
        {
            growHeight = newDocument.body.offsetHeight;
        }

        growWidth = newDocument.body.scrollWidth - newDocument.body.clientWidth;
        if (growWidth > 0)
        {
            growWidth = Math.min (screen.availWidth,Math.max (
                    newDocument.body.offsetWidth,document.body.scrollWidth) + 30);
        }
        else
        {
            growWidth = newDocument.body.offsetWidth;
        }

        if (newWindow.dialogArguments)
        {
            //alert (newWindow.dialogArguments.getAttribute("resizable"));
        }

        resizeDialog (growWidth,growHeight);
    }
}*/

/**Struct for holding dimension values*/
function Dimension (width, height)
{
    this.width = width;
    this.height = height;
}

function positionVisitorMenus()
{
    var padding = 5;

    var visitorTitle = document.getElementById("vt_title");
    var visitorMenu = document.getElementById("vt_menu");

    var communitiesTitle = document.getElementById("comm_title");
    var communitiesMenu = document.getElementById("comm_menu");

    if (visitorTitle != null && visitorMenu != null)
    {
        visitorMenu.style.left = visitorToolsFindPosX(visitorTitle) + "px";
        visitorMenu.style.top =
            (visitorToolsFindPosY(visitorTitle) + visitorTitle.offsetHeight + 5) + "px";
    }

    if (communitiesTitle && communitiesMenu)
    {
        communitiesMenu.style.left = visitorToolsFindPosX(communitiesTitle) + "px";
        communitiesMenu.style.top =
            (visitorToolsFindPosY(communitiesTitle) + communitiesTitle.offsetHeight + 5) + "px";
    }
}

function isIE ()
{
    var ie = false;
    if (document.all)
    {
        ie = true;
    }
    return ie;
}

function initVisitorTools()
{
    window.onresize = positionVisitorMenus;
    positionVisitorMenus();
    resizeButtons();
}

function visitorToolsFindPosX (obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
    {
        curleft += obj.x;
    }
    return curleft;
}

function visitorToolsFindPosY (obj)
{
    var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
    {
        curtop += obj.y;
    }

    /**
    5.5+ IE bug:
    The elements offset is relattive to the entire page it's offset parent is
    also relative to the entire page. Therefore we must divide curtop by 2.
    */

    if (isIE ())
    {
        curtop = curtop / 2;
    }

    return curtop;
}

function showUrlFromCreateWizard (url, refreshUrl)
{
    window.location = url;
}

// each element in the boxList array is an array.  The first element of that nested array
// is the name of the group of checkboxes.  All elements after that are
// individual checked checkboxes in the group.
var boxList = new Array();
function recordCheck(checkbox)
{
    if (checkbox.checked)
    {
        // Find the array in boxList which corresponds to our group of checkboxes
        var foundGroup = false;
        for (i=0;i<boxList.length;i++)
        {
            // The first element of each nested array in boxList is the name of the group of checkboxes
            if (boxList[i][0] == checkbox.name)
            {
                // Add the checkbox to the end of the nested array
                foundGroup = true;
                boxList[i][boxList[i].length] = checkbox
                break;
            }
        }
        if (!foundGroup)
        {
            // create a nested array to hold this group of checkboxes
            boxList[boxList.length] = new Array(2);

            // first element of the new nested array is the name of the group of checkboxes
            boxList[boxList.length - 1][0] = checkbox.name;

            // the second element (and the rest) is a checkbox
            boxList[boxList.length - 1][1] = checkbox;
        }
    }
    else
    {
        var foundIndex = 0;
        for (i=0;i<boxList.length;i++)
        {
            // first element of the nested array is the name of the group of checkboxes
            if (boxList[i][0] == checkbox.name)
            {
                foundIndex = i;
                break;
            }
        }

        var tmpList = new Array (boxList[foundIndex].length-1);

        // the first position (0) is reserved for the name of the group of checkboxes.
        tmpList[0] = boxList[foundIndex][0];

        // start counting at the second position (1) to transfer every value except the
        // one we are deleting
        var newPos = 1;
        for (i=1;i<boxList[foundIndex].length;i++)
        {
            if (checkbox.value != boxList[foundIndex][i].value)
            {
                tmpList[newPos] = boxList[foundIndex][i];
                newPos++;
            }
        }
        boxList[foundIndex] = tmpList;

    }
}

// Submit the form that is associated with a group of checkboxes.
//
// The formId is the "non-fixed-up" id.  It is fixed up in this method by
// using getNetuiTagName()
//
// The fieldName arg is the name of the group of checkboxes.  The form
// is populated by creating a hidden input for each element in the group
// that is included in the boxList array.  
function confirmAndSubmitCheckboxes( formId, groupName, formScope,
                             doConfirm, 
                             checkboxTitleMessage,
                             checkboxValueMessage,
                             operationType, 
                             confirmQuestionMultipleResources )
{
    if (boxList != null && boxList.length > 0)
    {
        var frm = document.getElementById( lookupIdByTagId( formId, formScope ) );
        for (i=0;i<boxList.length;i++)
        {
            // The first element of each nested array in boxList is the name of the group of checkboxes
            if (boxList[i][0] == groupName)
            {
                // found our group, now make a hidden input for each checkbox in the list
                // we start at index 1, not 0.  index 0 contains the name of the group.  The values for
                // the group members are in index 1, 2, etc.
                
                // confirm if they really want to do this
                var confirmed = true;
                if ( doConfirm )
                {
                    var confirmQuestion;
                    if ( boxList[i].length > 2 )
                    {
                    	// we are submitting multiple resources 
                    	confirmQuestion = confirmQuestionMultipleResources;
                    }
                    else
                    {
                        var useTitle = boxList[i][1].title;
                        // we are submitting a single resource so build a confirm question
                        if (useTitle)
                        {

                           // "Are you sure you want to delete #jsVal#?"
                            confirmQuestion =
                                checkboxTitleMessage.replace ("*(jsVal0)*", useTitle);
                        }
                        else
                        {
                            // we have to use the checkbox value in the message
                            // "Are you sure you want to" + " " + "delete" + " " + checkbox.value + " " + "?"
                            var val = boxList[i][1].value;
                            confirmQuestion =
                                checkboxValueMessage.replace ("*(jsVal0)*", val);
                        }
                    }
                    confirmed = confirm( confirmQuestion );
                }
                
                if ( confirmed )
                {
	                for(var boxIndex=1; boxIndex<boxList[i].length; boxIndex++)
	                {
	                    var hiddenInput = document.createElement("input");
	                    hiddenInput.setAttribute("type", "hidden");
	                    hiddenInput.setAttribute("name", groupName);
	                    hiddenInput.setAttribute("value", boxList[i][boxIndex].value);
	                    frm.insertBefore(hiddenInput, null);                      
	                }	                
				}	
                
                // whether or not they confirmed, uncheck all checkboxes in the group and clear out the boxList[i] .  
                for(var boxIndex=1; boxIndex<boxList[i].length; boxIndex++)
                {
                    boxList[i][boxIndex].checked = false;                     
                }       
                // clear out the boxList[i] by setting boxList[i] equal to an array with a single 
                // element: the name of the checkbox group    
                boxList[i] = [groupName];
                			
                break;
            }
        }
        if ( confirmed )
        {
        	frm.submit();
        }
    }
}


function updateUrl() {
		var data = document.forms[0].wlp_tools_pm_communityWizard_partialUrlTextbox.value;
		var urlSpan = document.getElementById('wlp-tools-pm-communityWizard-partialUrlSpan');
		urlSpan.innerHTML = data;
}

function helpWindowOpen(destination)
{
    window.open(destination, "", "height=400,width=500,scrollbars");
}








}catch(e){console.log("Module 'acssptheme': ",e);}
try{
/*
 * B E A    S Y S T E M S
 *
 * Copyright (c) 2006  BEA Systems, Inc.
 *
 * All Rights Reserved. Unpublished rights reserved under the copyright laws
 * of the United States. The software contained on this media is proprietary
 * to and embodies the confidential technology of BEA Systems, Inc. The
 * possession or receipt of this information does not convey any right to
 * disclose its contents, reproduce it, or use,  or license the use, for
 * manufacture or sale, the information or anything described therein. Any
 * use, disclosure, or reproduction without BEA System's prior written
 * permission is strictly prohibited.
 */

//@package __BEA.com.bea.portal.tools.js

if (window['__BEA'] == undefined) {
    window.__BEA = new function() { }
}

if (__BEA['com'] == undefined) {
    __BEA.com = new function() { }
}

if (__BEA.com['bea'] == undefined) {
    __BEA.com.bea = new function() { }
}

if (__BEA.com.bea['portal'] == undefined) {
    __BEA.com.bea.portal = new function() { }
}

if (__BEA.com.bea.portal['tools'] == undefined) {
    __BEA.com.bea.portal.tools = new function() { }
}

if (__BEA.com.bea.portal.tools['js'] == undefined) {
    __BEA.com.bea.portal.tools.js = new function() { }
}

__BEA.com.bea.portal.tools.js.Core = new function() {

	/**
	 * Update the value of the specified composite name.
	 *
	 * <p>
	 * A composite name is a name consisting of one (1) or more
	 * name parts, separated by dot (<code>.</code>), that
	 * identify a nested reference,
	 * such as <code>__BEA.com.bea.portal.tools.js.Core</code>.</p>
	 *
	 * @param namespace (optional) the root namespace object
	 * @param name... the composite name
	 * @param value the value
	 **/

	this.set = function() {
		var namespace = window
		var length = arguments.length
		var value = arguments[length - 1]
		for (var at = 0; at < length - 1; at += 1) {
			namespace = this.setOnInternal(namespace, arguments[at], (at == (length - 2)), value)
		}
		
		return namespace
	}

	/**
	 * Update the value of the specified composite name.
	 *
	 * <p>
	 * A composite name is a name consisting of one (1) or more
	 * name parts, separated by dot (<code>.</code>), that
	 * identify a nested reference,
	 * such as <code>__BEA.com.bea.portal.tools.js.Core</code>.</p>
	 *
	 * @param namespace the root namespace object
	 * @param name... the composite name
	 * @param value the value
	 **/

	this.setOn = function() {
		var namespace = arguments[0]
		var length = arguments.length
		var value = arguments[length - 1]
		for (var at = 1; at < length - 1; at += 1) {
			namespace = this.setOnInternal(namespace, arguments[at], (at == (length - 2)), value)
		}
		
		return namespace
	}

	/**
	 * Update the value of the specified composite name.
	 *
	 * <p>
	 * A composite name is a name consisting of one (1) or more
	 * name parts, separated by dot (<code>.</code>), that
	 * identify a nested reference,
	 * such as <code>__BEA.com.bea.portal.tools.js.Core</code>.</p>
	 *
	 * @param namespace the root namespace object
	 * @param name the composite name
	 * @param last indicates if this is the last call to <code>setOnInternal</code>
	 * @param value the value
	 **/

	this.setOnInternal = function(namespace, name, last, value) {
		var at
		while ((at = name.indexOf(".")) > 0) {
			var part = name.substring(0, at)
			name = name.substring(at + 1)
			var nnamespace
			if ((nnamespace = namespace[part]) == undefined) {
				namespace[part] = nnamespace = new Object()
			}
			namespace = nnamespace
		}
		
		namespace[name] = (!last)? new Object(): value
		
		return namespace[name]
	}
	
	this.load = function(href) {
		document.write("<scr" + "ipt type=\"text/javascript\" src=\"" + href + "\"></script>")
	}
}

// using browser detect since there is no other option
if(document.all != null && document.getElementById != null) { // is browser IE?
    var oldWindowOpen = window.open;
    window.open = function(url, name, features, replace) {
        if(name) {
            // remove white spaces and non-ascii characters from (window)name-
            // ie doesn't like them 
            name = name.replace(/(\s|\W)/g,'');
        }
        oldWindowOpen(url, name, features, replace);
    };
}
}catch(e){console.log("Module 'acssptheme': ",e);}
try{__BEA.com.bea.portal.tools.js.Core.set('__BEA.request.contextPath', '/apspssp')

}catch(e){console.log("Module 'acssptheme': ",e);}
try{
__BEA.com.bea.portal.tools.js.Core.set("__BEA.com.bea.portal.tools.js.Constants", new Object())

<!-- value of request.getContextPath() -->
__BEA.com.bea.portal.tools.js.Constants.CONTEXT_PATH = '/apspssp'
__BEA.com.bea.portal.tools.js.Constants.TREE_MODE = 'TREE_MODE'
__BEA.com.bea.portal.tools.js.Constants.DEEP_SEARCH_TAXONOMY = 'deepSrchTax'
__BEA.com.bea.portal.tools.js.Constants.LABEL = 'label'
__BEA.com.bea.portal.tools.js.Constants.WEB_APP_SCOPE = '1'
__BEA.com.bea.portal.tools.js.Constants.XMLHTTP_SERVLET_PATH = '/xHttpReq'
__BEA.com.bea.portal.tools.js.Constants.APP_SCOPE = '2'
__BEA.com.bea.portal.tools.js.Constants.PAGE_LABEL = '_pageLabel'
__BEA.com.bea.portal.tools.js.Constants.NODE_ID = 'nodeId'
__BEA.com.bea.portal.tools.js.Constants.SELECTED_TAXONOMY = 'taxId'
__BEA.com.bea.portal.tools.js.Constants.SEARCH_PAGED_RESULT = 'searchPagedResult'
__BEA.com.bea.portal.tools.js.Constants.CMD_PREV = 'prev'
__BEA.com.bea.portal.tools.js.Constants.CMD_FINISH = 'finish'
__BEA.com.bea.portal.tools.js.Constants.CMD_CANCEL = 'cancel'
__BEA.com.bea.portal.tools.js.Constants.WIZARD_CMD_KEY = 'wzdCmdKey'
__BEA.com.bea.portal.tools.js.Constants.CMD_NEXT = 'next'

}catch(e){console.log("Module 'acssptheme': ",e);}
try{
/*
 * B E A    S Y S T E M S
 *
 * Copyright (c) 2006  BEA Systems, Inc.
 *
 * All Rights Reserved. Unpublished rights reserved under the copyright laws
 * of the United States. The software contained on this media is proprietary
 * to and embodies the confidential technology of BEA Systems, Inc. The
 * possession or receipt of this information does not convey any right to
 * disclose its contents, reproduce it, or use,  or license the use, for
 * manufacture or sale, the information or anything described therein. Any
 * use, disclosure, or reproduction without BEA System's prior written
 * permission is strictly prohibited.
 */

//@package __BEA.com.bea.portal.tools.js

__BEA.com.bea.portal.tools.js.Core.set("__BEA.com.bea.portal.tools.js.Math", new function() {

	this.max = function() {
	    var max = undefined
	    var length = arguments.length
	    if (length > 0) {
	   		max = arguments[0]
	   		for (var iargument = 1; iargument < length; iargument += 1) {
	   			var argument = arguments[iargument]
	   			if (argument > max) {
	   				max = argument
	   			}
	   		}
	   	}
		return max
	}
	
})

}catch(e){console.log("Module 'acssptheme': ",e);}
try{
/*
 * B E A    S Y S T E M S
 *
 * Copyright (c) 2006  BEA Systems, Inc.
 *
 * All Rights Reserved. Unpublished rights reserved under the copyright laws
 * of the United States. The software contained on this media is proprietary
 * to and embodies the confidential technology of BEA Systems, Inc. The
 * possession or receipt of this information does not convey any right to
 * disclose its contents, reproduce it, or use,  or license the use, for
 * manufacture or sale, the information or anything described therein. Any
 * use, disclosure, or reproduction without BEA System's prior written
 * permission is strictly prohibited.
 */

//@package __BEA.com.bea.portal.tools.js.skin

/**
 * A service to manage optional skin feature providers.
 **/

__BEA.com.bea.portal.tools.js.Core.set('__BEA.com.bea.portal.tools.js.skin.FeatureProviderManager', new function() {

	/**
	 * The map from feature name to skin feature provider.
	 **/
	
	this.featureProviderByFeature = new Object()
	
	/**
	 * Register the specified skin feature provider.
	 *
	 * @param feature the name of the skin feature
	 * @param featureProvider the skin feature provider
	 **/

	this.register = function(feature, featureProvider) {
		this.featureProviderByFeature[feature] = featureProvider
	}

	/**
	 * Get the specified skin feature provider.
	 *
	 * @param feature the name of the skin feature
	 *
	 * @return the skin feature provider
	 * or <code>undefined</code> if there is no such registered
	 * skin feature provider
	 **/

	this.get = function(feature) {
		return this.featureProviderByFeature[feature]
	}

})

}catch(e){console.log("Module 'acssptheme': ",e);}
try{
/*
 * B E A    S Y S T E M S
 *
 * Copyright (c) 2006  BEA Systems, Inc.
 *
 * All Rights Reserved. Unpublished rights reserved under the copyright laws
 * of the United States. The software contained on this media is proprietary
 * to and embodies the confidential technology of BEA Systems, Inc. The
 * possession or receipt of this information does not convey any right to
 * disclose its contents, reproduce it, or use,  or license the use, for
 * manufacture or sale, the information or anything described therein. Any
 * use, disclosure, or reproduction without BEA System's prior written
 * permission is strictly prohibited.
 */

//@package __BEA.com.bea.portal.tools.js.skin

/**
 * A service to show that a long-running user gesture is being processed.
 *
 * <h3>Skin Feature Providers</h3>
 * <p>
 * The <code>__BEA.com.bea.portal.tools.js.skin.ProgressManager</code> should
 * be backed by a skin feature provider to provide the skin-specific
 * implementation of the this service.</p>
 **/

__BEA.com.bea.portal.tools.js.Core.set('__BEA.com.bea.portal.tools.js.skin.ProgressManager', new function() {

	/**
	 * The current task (<code>__BEA.com.bea.portal.tools.js.skin.ProgressManager.Task</code>).
	 **/
	
	this.current = undefined
	
	/**
	 * The <code>__BEA.com.bea.portal.tools.js.skin.ProgressManager.FeatureProvider</code> (cached).
	 **/

	this.featureProvider = undefined
	this.featureProviderCached = false

	/**
	 * Mark the beginning of a task.
	 *
	 * @param name the name of the task
	 *
	 * @return a <code>__BEA.com.bea.portal.tools.js.skin.ProgressManager.Task</code>
	 * that can be used to mark the end of the task
	 **/

	this.start = function(name, steps) {
		this.current = new __BEA.com.bea.portal.tools.js.skin.ProgressManager.Task(name, steps, this.current)
		
		// Call the skin feature provider to handle the skin-specific
		// implementation of startTask.
		
		try {
			var featureProvider = this.getFeatureProvider()
			if (featureProvider != undefined) {
				featureProvider.start(this.current)
			}
		}
		catch (ignored) {
		}
		
		return this.current
	}

	this.step = function(step, steps) {
		
		// Call the skin feature provider to handle the skin-specific
		// implementation of startTask.
		
		try {
			var featureProvider = this.getFeatureProvider()
			if (featureProvider != undefined) {
				featureProvider.step(this.current, step, steps)
			}
		}
		catch (ignored) {
		}
	}

	/**
	 * Mark the end of the current task.
	 **/

	this.end = function() {
		
		// Call the skin feature provider to handle the skin-specific
		// implementation of endTask.
		
		var current = this.current
		if (current == undefined) {
			return
		}
		
		try {
			var featureProvider = this.getFeatureProvider()
			if (featureProvider != undefined) {
				featureProvider.end(current)
			}
		}
		catch (ignored) {
		}
		
		this.current = current.previous
		
		current.previous = undefined
	}

	/**
	 * Get or get and cache
	 * the <code>__BEA.com.bea.portal.tools.js.skin.ProgressManager.FeatureProvider</code>.
	 *
	 * @return a <code>__BEA.com.bea.portal.tools.js.skin.ProgressManager.FeatureProvider</code>
	 **/

	this.getFeatureProvider = function() {
		if (!this.featureProviderCached) {
			this.featureProviderCached = true
			this.featureProvider = __BEA.com.bea.portal.tools.js.skin.FeatureProviderManager.get('__BEA.com.bea.portal.tools.js.skin.ProgressManager.FeatureProvider')
		}
		
		return this.featureProvider
	}

})

__BEA.com.bea.portal.tools.js.Core.set('__BEA.com.bea.portal.tools.js.skin.ProgressManager.Task', function(name, steps, previous) {

	this.name = name
	this.steps = steps
	this.previous = previous

})

}catch(e){console.log("Module 'acssptheme': ",e);}
try{
/*
 * B E A    S Y S T E M S
 *
 * Copyright (c) 2006  BEA Systems, Inc.
 *
 * All Rights Reserved. Unpublished rights reserved under the copyright laws
 * of the United States. The software contained on this media is proprietary
 * to and embodies the confidential technology of BEA Systems, Inc. The
 * possession or receipt of this information does not convey any right to
 * disclose its contents, reproduce it, or use,  or license the use, for
 * manufacture or sale, the information or anything described therein. Any
 * use, disclosure, or reproduction without BEA System's prior written
 * permission is strictly prohibited.
 */

/**
 * This function overides the netui implementation of raise command
 * and is intended to perform a check to ensure the user is logged in.
 * @param url The url to redirect to. Typically this url is the post
 * back url.
 */

function containsLoginPageResponse (xmlhttp)
{
    var hasLoginPageResponse = false;
    if (xmlhttp && xmlhttp.responseText)
    {
        var loginUUID =
            '<!-- cee5ffd8-4de5-4ca4-af92-59cd3b773113 -->';

        var searchOffset = loginUUID.length + 1;
        //Assumption: The login page content has to be at least
        //1 charater larger than the login UUID or it's not going
        //to do the user much good.
        if (xmlhttp.responseText.length > searchOffset)
        {
            //So the response text length minus the length of
            //the login UUID should be a good place to start
            //searching the responseText for the loginUUID.
            var searchIndex =
                xmlhttp.responseText.length - searchOffset;

            var foundInt =
                xmlhttp.responseText.indexOf (loginUUID,
                      searchIndex);
            if (foundInt > -1)
            {
                hasLoginPageResponse = true;
            }
        }
    }
    return hasLoginPageResponse;
}

__BEA.com.bea.portal.tools.js.Core.set("__BEA.com.bea.portal.tools.js.ajax.Ajax", new function() {

    this.requestId = 0
    this.requests = new Object()

    this.sendAsyncCommand = function(params, async, callback, waitMethod)
    {
        var location = __BEA.request.contextPath + __BEA.com.bea.portal.tools.js.Constants['XMLHTTP_SERVLET_PATH']
        return this.sendAsyncRequest(
          params,
          async,
          location,
          callback,
          waitMethod)
    }

    /**
     * This is the main function - all functions above call into this one.
     * Params = query parameters to send to the XMLHttpRequestServlet (or some other location).
     * async = whether the request is asynchronous or not.  This is almost always (if not always) 'true'.
     * location = where to send the request.  This is almost always (if not always) 'XMLHttpRequestServlet'
     * callback = after sending the request, this function will be executed.
     * waitMethod = what to do if the request is not ready to be submitted???
     * If it has timed out?  I haven't seen this in use anywhere yet.
     **/

    this.sendAsyncRequest = function(params, async, location, callback, waitMethod)
	{
		var succeeded = false

        // Start the progress manager if one has been implimented.  PAT impliments
        // a progress manager in the skin, but it's possible that the PAT skin is 
        // not being used with PAT portlets.
        if (__BEA.com.bea.portal.tools.js.skin.ProgressManager != null)
        {
		    __BEA.com.bea.portal.tools.js.skin.ProgressManager.start()
        }

		try
		{
            var xmlhttp
		    if(window.XMLHttpRequest) // Conforms to W3C specification
		    {
		        xmlhttp = new XMLHttpRequest();
		    }
		    else // Microsoft Internet Explorer
		    {
		        try
		        {
		            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		        }
		        catch (e)
		        {
		            try
		            {
		                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		            }
		            catch (e)
		            {
		                return false;
		            }
		        }
		    }

		    // setup for an asynchronous post request to the specified location (typically XMLHttpRequestServlet)
		    xmlhttp.open('POST', location, async);
		    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8')
		
		    // if there is a callback passed in, set the function defined below to execute
		    // after the xmlhttp request has returned.  This will execute the callback with
		    // a successful server response.
		    if (callback != undefined && callback != null)
		    {
                var requestId = this.requestId ++
                this.requests[requestId] = new Object()
                this.requests[requestId].xmlhttp = xmlhttp
                this.requests[requestId].callback = callback
                this.requests[requestId].waitMethod = waitMethod
                this.requests[requestId].location = location;

                var tmpcallback = eval("f = function() { return __BEA.com.bea.portal.tools.js.ajax.Ajax.callback(" + requestId + "); }; f")

                xmlhttp.onreadystatechange = tmpcallback
		    }
		
		    // build the query string for the request based on the HttpParams (params object)
		    // passed in.
		    var queryStr = "";
		    if (params != null && params.length > 0)
		    {
		        for (k=0; k<params.length; k++)
		        {
// TODO:
//		            queryStr += params[k].name + "=" + params[k].value;
		            queryStr += params[k].name + "=" + params[k].value;
		            if (k < params.length-1)
		            {
		                queryStr += "&";
		            }
		        }
		    }
		
		    // send the request to the specified location.  The callback will be executed
		    // after this send.
		    xmlhttp.send (queryStr);
		    
		    if (!async)
		    {
                if (__BEA.com.bea.portal.tools.js.skin.ProgressManager != null)
                {
		            __BEA.com.bea.portal.tools.js.skin.ProgressManager.end()
                }
		    }
		
		    // return the response from the server (XMLHttpRequestServlet).
		    return xmlhttp;
		}
		catch (err)
		{
			if (!succeeded)
			{
				if (__BEA.com.bea.portal.tools.js.skin.ProgressManager != null)
                {
		            __BEA.com.bea.portal.tools.js.skin.ProgressManager.end()
                }
			}
		}
	}


})

/**
 * This object is used to build query strings within the sendAsyncRequest function.
 **/

__BEA.com.bea.portal.tools.js.Core.set("__BEA.com.bea.portal.tools.js.ajax.Ajax.Parameter", function(name, value) {

    this.name = name;
    this.value = value;

})

__BEA.com.bea.portal.tools.js.Core.set("__BEA.com.bea.portal.tools.js.ajax.Ajax.callback", function(requestId) {
    var request = __BEA.com.bea.portal.tools.js.ajax.Ajax.requests[requestId]
    var xmlhttp = request.xmlhttp
    var callback = request.callback
    var waitMethod = request.waitMethod

    if ((xmlhttp.readyState==2 || xmlhttp.readyState==3) && waitMethod != undefined && waitMethod != null)
    {
        waitMethod(xmlhttp);
    }
		            
    if (xmlhttp.readyState==4)
    {
        if (__BEA.com.bea.portal.tools.js.skin.ProgressManager != null)
        {
		    __BEA.com.bea.portal.tools.js.skin.ProgressManager.end()
        }

        try
        {
            if (xmlhttp.status == 200)
            {
                if (containsLoginPageResponse (xmlhttp))
                {
                    if (request.location)
                    {
                        window.location.href = request.location;
                    }
                    else
                    {
                        throw 'Error getting the request location';
                    }
                }
                else
                {
                    callback(xmlhttp);
                }
            }
        }
        catch (e)
        {
            //An exception can happen accessing the status attribute in the
            //event of a network error.  see
            //https://bugzilla.mozilla.org/show_bug.cgi?id=238559.. I ran into
            //this.
            if (console && console.log)
            {
                console.log (e.toString ());   
            }
        }

        __BEA.com.bea.portal.tools.js.ajax.Ajax.requests[requestId] = undefined
    }
})


}catch(e){console.log("Module 'acssptheme': ",e);}
try{function setHiddenAndSubmitParentForm (hiddenId, hiddenValue)
{
    if (hiddenId != null)
    {
        var hiddenField =
                document.getElementById (hiddenId);

        if (hiddenField == null)
        {
            throw "Failed to find " + hiddenId + " in document.";
        }


        hiddenField.value = hiddenValue;

        var form = hiddenField.parentNode;

        form.submit ();
    }
}
}catch(e){console.log("Module 'acssptheme': ",e);}