if(!this.ariba){this.ariba={awCurrWindow:null}
}ariba.Debug={log:function(){},logEvent:function(){}};
ariba.Util=function(){var AWAlertException=false;
var Util={extend:function(dest,source){for(var p in source){dest[p]=source[p]
}return dest
},_arrayAdd:function(dest,src,pred,childFn){for(var i=0;
i<src.length;
i++){var o=src[i],children;
if(!pred||pred(o)){dest.push(o)
}if(childFn&&(children=childFn(o))){this._arrayAdd(dest,children,pred,childFn)
}}return dest
},concatArr:function(a,b){if(!a||!a.length){return b
}if(!b||!b.length){return a
}var r=new Array(a.length+b.length);
var i=a.length;
while(i--){r[i]=a[i]
}i=b.length;
while(i--){r[i+a.length]=b[i]
}return r
},toArray:function(arr){var i=(arr)?arr.length:0,r=new Array(i);
while(i--){r[i]=arr[i]
}return r
},arrayRemoveMatching:function(arr,target,getter){if(!arr){return 
}for(var i=0,c=arr.length;
i<c;
i++){var e=(getter)?getter(arr[i]):arr[i];
if(e==target){arr.splice(i,1);
break
}}},isArray:function(obj){return obj!=null&&typeof obj=="object"&&"splice" in obj&&"join" in obj
},itemOrArrAdd:function(orig,obj){return !orig?obj:(this.isArray(orig)?orig.push(obj):[orig].push(obj))
},isUndefined:function(value){return(typeof value=="undefined")
},isNullOrUndefined:function(value){return(value==null||(typeof value=="undefined"))
},isNullOrBlank:function(value){return(value==null||(typeof value=="undefined")||(value==""))
},stringEndsWith:function(sourceString,searchString){return(sourceString.lastIndexOf(searchString)==(sourceString.length-searchString.length))
},takeValue:function(obj,keypath,value){function set(obj,keyArr,value){if(keyArr.length==1){obj[keyArr[0]]=value
}else{set(obj[keyArr.shift()],keyArr,value)
}}set(obj,keypath.split("."),value)
},takeValues:function(obj,keys,values){for(var i=0;
i<values.length;
i++){this.takeValue(obj,keys[i],values[i])
}},printStack:function(){var sMsg="";
var oFunc;
if(arguments.length!=0){oFunc=arguments[0]
}else{oFunc=this.printStack.caller
}while(oFunc!=null){var sFunc=oFunc.toString();
sMsg+="<li>"+sFunc.substring(0,sFunc.search(/\n/))+"<br/>";
oFunc=oFunc.caller
}return sMsg
},getExceptionMsg:function(e,sMsg){if(AWAlertException){alert(sMsg)
}var str="****************************<br/>"+sMsg+"<br/>Exception: "+e.message+"<br/>"+this.printStack(getExceptionMsg.caller)+"<br/>****************************<br/>";
return str
},htmlEscapeValue:function(sValue){if(sValue==null){return 
}if(sValue.search(/</)!=-1){sValue=sValue.replace(/&/g,"&amp;");
sValue=sValue.replace(/</g,"&lt;");
sValue=sValue.replace(/>/g,"&gt;");
sValue="<pre>"+sValue+"</pre>"
}else{if(sValue.search(/function/)!=-1){sValue="<pre>"+sValue+"</pre>"
}}return sValue
},uriEncode:function(s){return escape(s).replace("+","%2B").replace("/","%2F")
},strTrim:function(str){return str.replace(/^\s+/,"").replace(/\s+$/,"")
},max:function(value1,value2){return value1>value2?value1:value2
},indexOf:function(list,item){var length=list.length;
for(var index=0;
index<length;
index++){if(list[index]==item){return index
}}return -1
},indexOfCharInSet:function(targetString,startIndex,charSet){var length=targetString.length;
for(var index=startIndex;
index<length;
index++){if(charSet.indexOf(targetString.charAt(index))!=-1){return index
}}return -1
},indexOfCharNotInSet:function(targetString,startIndex,charSet){var length=targetString.length;
for(var index=startIndex;
index<length;
index++){if(charSet.indexOf(targetString.charAt(index))==-1){return index
}}return -1
},indexOfNotChar:function(targetString,startIndex,ch){var length=targetString.length;
for(var index=startIndex;
index<length;
index++){if(targetString.charAt(index)!=ch){return index
}}return -1
},parseInt:function(intString){if(intString&&typeof intString=="number"){return intString
}if(intString&&typeof intString=="string"&&intString.charAt(0)=="0"){var index=this.indexOfNotChar(intString,1,"0");
intString=intString.substring(index,intString.length)
}return parseInt(intString)
},incrementAttribute:function(object,attributeName){if(!object||!attributeName){return 
}var attributeValue=object.getAttribute(attributeName);
if(attributeValue){attributeValue=this.parseInt(attributeValue)+1
}else{attributeValue=1
}object.setAttribute(attributeName,attributeValue)
},getIntAttribute:function(object,attributeName){if(!object||!attributeName){return 0
}var attributeValue=object.getAttribute(attributeName);
if(attributeValue){return this.parseInt(attributeValue)
}return 0
},valueForBinding:function(target,key){var keyValue=target[key];
if(typeof keyValue=="function"){keyValue=eval("target."+key+"()")
}else{keyValue=target["_"+key]
}return keyValue
},setValueForBinding:function(target,key,value){var uppercaseKey=key.charAt(0).toUpperCase()+key.substr(1);
var setterKey="set"+uppercaseKey;
var keyValue=target[setterKey];
if(typeof keyValue=="function"){eval("target."+setterKey+"(value)")
}else{eval("target._"+key+" = value")
}},EOF:0};
Function.prototype.bind=function(){var __method=this,a=Util.toArray(arguments),obj=a.shift();
return function(){return __method.apply(obj,Util.concatArr(a,arguments))
}
};
return Util
}();
ariba.Dom=function(){var N=ariba.Util;
var L="MSIE 5.0";
var G="Netscape";
var H=1;
var E=new Array();
var K=navigator.appVersion;
var J=(window.attachEvent&&!window.opera)?true:false;
var A=K.indexOf("MSIE 9")!=-1;
var B=K.indexOf("MSIE 8")!=-1;
var C=K.indexOf("MSIE 7")!=-1;
var D=K.indexOf("MSIE 6")!=-1;
var F=B||A;
var O=C||F;
var M=D||O;
var I={IsIE:J,IsIE9:A,IsIE8:B,IsIE7:O,IsIE6Only:D,IsIE6:M,IsIEonMac:(J&&(navigator.platform!="Win32")&&(navigator.platform!="Win64"))?true:false,IsNS6:(!document.all&&document.getElementById)?true:false,IsMoz:(!document.all&&document.getElementById)?true:false,isSafari:navigator.appVersion.indexOf("Safari")!=-1,AWEmptyDocScriptlet:D?"javascript:false":"javascript:void(0);",AWOpenWindowErrorMsg:null,getElementById:function(R){var P=null;
try{if(R&&R!=null&&R!=""){P=document.getElementById?document.getElementById(R):document.all[R]
}}catch(Q){}return P
},getDocumentElementById:function(P,Q){if(!P){return null
}return P.getElementById?P.getElementById(Q):P.all[Q]
},findParent:function(P,S,R){var Q=R?P:P.parentNode;
while(Q!=null&&Q.nodeName!=S){Q=Q.parentNode
}return Q
},findChild:function(P,U,S){var R=null;
if(!P){return P
}else{if(S&&(P.nodeName==U)){return P
}else{if(P.childNodes){var T=P.childNodes;
for(var Q=0;
Q<T.length&&R==null;
Q++){R=this.findChild(T[Q],U,true)
}}}}return R
},findParentUsingPredicate:function(P,S,R){var Q=R?P:P.parentNode;
while(Q!=null&&!S(Q)){Q=Q.parentNode
}return Q
},findChildUsingPredicate:function(P,U,S){var R=null;
if(!P){return P
}else{if(S&&U(P)){return P
}else{if(P.childNodes){var T=P.childNodes;
for(var Q=0;
Q<T.length&&R==null;
Q++){R=this.findChildUsingPredicate(T[Q],U,true)
}}}}return R
},find:function(Q,P){return this.findChildrenUsingPredicate(Q,function(R){return R.className&&R.className.indexOf(P)>=0
})
},findChildrenUsingPredicate:function(Q,V,T){var P=new Array();
if(!Q){return Q
}else{if(T&&V(Q)){return new Array(Q)
}else{if(Q.childNodes){var U=Q.childNodes;
for(var R=0;
R<U.length;
R++){var S=this.findChildrenUsingPredicate(U[R],V,true);
P=P.concat(S)
}}}}return P
},_appendChildren:function(R,P){for(var Q=0;
Q<P.length;
Q++){R.appendChild(P[Q])
}},elementInDom:function(P){var Q=this.documentElement();
while(P&&P!=Q){P=P.parentNode
}return P==Q
},getInnerText:function(P){var Q;
if(P){if(P.innerText){Q=P.innerText
}else{if(P.textContent){Q=P.textContent
}else{Q=P.innerHTML.replace(/<[^>]+>/g,"");
Q=Q.replace(/&amp;/g,"&");
Q=Q.replace(/&lt;/g,"<");
Q=Q.replace(/&gt;/g,">")
}}}return Q
},setInnerText:function(Q,P){if(Q){if(Q.innerText||Q.innerText==""){Q.innerText=P
}else{Q.innerHTML=P
}}},copyInnerText:function(Q,P){if(Q&&P){this.setInnerText(P,this.getInnerText(Q))
}},isNetscape:function(){return(navigator.appName.indexOf(G)!=-1)
},openWindow:function(S,P,R){var Q=null;
try{Q=E[P];
if(Q==null||Q.closed){if(R!=null){Q=window.open(S,P,R)
}else{Q=window.open(S,P)
}E[P]=Q;
if(navigator.appVersion.indexOf(L)!=-1||navigator.appName.indexOf(G)!=-1){Q.focus()
}else{if(this.IsIE6){function V(){Q.focus()
}setTimeout(V)
}}}else{if(navigator.appVersion.indexOf(L)!=-1||navigator.appName.indexOf(G)!=-1){Q.focus();
Q.location.href=S
}else{Q.close();
if(R!=null){Q=window.open(S,P,R)
}else{Q=window.open(S,P)
}}}}catch(T){function U(){alert(I.AWOpenWindowErrorMsg)
}setTimeout(U)
}return Q
},formForName:function(P){return document.forms[P]
},addFormField:function(Q,R,P){return this.addFormFieldWithId(Q,R,R,P)
},addFormFieldWithId:function(S,P,T,Q){if(document.getElementById){var R=S[P];
if(R==null){R=document.createElement("input");
R.type="hidden";
R.id=P;
R.name=T
}if(R.parentNode!=S){S.appendChild(R)
}R.value=Q;
return R
}},removeFormField:function(P,R){var Q=P[R];
if(Q&&Q.parentNode){Q.parentNode.removeChild(Q);
P[R]=null
}},lookupFormId:function(Q){var R=this.findParentUsingPredicate(Q,function(T){return T.tagName=="FORM"||I.hasClass(T,"formProxy")
});
var S=null;
if(R){var P=R.getAttribute("_fn");
if(P!=null){R=this.formForName(P)
}S=R.id
}return S
},limitTextLength:function(U,R){if(R<1){return 
}var Q=U.value;
if(this.IsMoz){Q=Q.replace(/([^\r])\n/g,"$1\r\n");
Q=Q.replace(/^\n/g,"\r\n")
}var V=Q.length;
if(V>R){U.value=Q.substring(0,R)
}else{var P=this.getElementById(U.id+"MLI");
if(!P){return 
}var S=P.clientWidth;
P.style.width="";
P.innerHTML=R-V;
var T=P.clientWidth;
P.style.width=Math.max(S,T)+"px"
}},addClass:function(Q,P){if(Q.nodeType==H){if(Q.className!=""&&P&&P.charAt(P.length-1)!=" "){P=P+" "
}if(Q.className&&Q.className.indexOf(P)==-1){Q.className=P+Q.className
}else{if(!Q.className){Q.className=P
}}}},removeClass:function(T,S){var P=T.className;
if(!S||!P){return 
}var Q=P.indexOf(S);
if(Q!=-1){var R=Q+S.length;
if(R<P.length&&P.charAt(R)==" "){R++
}T.className=P.substring(0,Q)+P.substring(R,P.length)
}},hasClass:function(Q,P){return Q.className&&(Q.className.match(new RegExp("(^|\\s)"+P+"(\\s|$)"))!=null)
},positionDialogBox:function(S){var P=this.positioningParent(S.parentNode);
var R=(P==this.documentElement())?this.documentClientHeight():P.clientHeight;
var Q=(P==this.documentElement())?this.documentClientWidth():P.clientWidth;
S.style.left=Q/2-S.offsetWidth/2+this.getScrollLeft(P)+"px";
S.style.top=R/2-S.offsetHeight/2+this.getScrollTop(P)+"px";
if(S.onresize){S.onresize.call(S)
}},getDocumentElement:function(){return document.documentElement
},documentClientHeight:function(){if(window.innerHeight){return window.innerHeight
}else{return document.documentElement.clientHeight
}},documentClientWidth:function(){if(window.innerWidth){return window.innerWidth
}else{return document.documentElement.clientWidth
}},setOpacity:function(Q,P){var R=Q.style;
if(J){R.filter="alpha(opacity="+P+")"
}else{R.opacity=(parseInt(P)/100)
}},absoluteTop:function(R){var Q=R.offsetTop;
var P=R.parentNode;
var S=R.offsetParent;
while(P!=null&&S!=null&&P!=this.getPageScrollElement()){if(P==S){Q+=P.offsetTop;
S=P.offsetParent
}Q-=P.scrollTop;
P=P.parentNode
}return Q
},clientHeight:function(Q,R){var P=Q.clientHeight;
if(!R){R=Q
}P+=R.scrollTop;
return P
},visibleInScrollArea:function(W){var T=this.documentElement();
var V=this.getPageScrollElement();
var R=V.scrollTop;
var P=this.clientHeight(T,V);
var S=this.absoluteTop(W);
var X=S+W.clientHeight;
var Q=(S>R)&&(P>S);
var U=(X>R)&&(P>X);
return Q||U
},clientWidth:function(P,Q){var R=P.clientWidth;
if(!Q){Q=P
}R+=Q.scrollLeft;
return R
},correctForRightEdge:function(P,S){var R=this.clientWidth(document.documentElement,this.getPageScrollElement());
var Q=R-S.offsetWidth;
if(P>Q){P=Q
}return P
},correctForBottomEdge:function(R,S){var P=this.clientHeight(document.documentElement,this.getPageScrollElement());
var Q=P-S.offsetHeight;
if(R>Q){R=Q
}return R
},repositionDivToWindow:function(T){if(T.className.indexOf("noReposition")==-1){var S=this.absoluteTop(T);
var Q=this.absoluteLeft(T);
var R=this.correctForBottomEdge(S,T);
var P=this.correctForRightEdge(Q,T);
this.setAbsolutePosition(T,P,R)
}},absoluteLeft:function(R){var Q=R.offsetLeft;
var P=R.parentNode;
var S=R.offsetParent;
while(P!=null&&S!=null&&P!=this.getPageScrollElement()){if(P==S){Q+=P.offsetLeft;
S=P.offsetParent
}Q-=P.scrollLeft;
P=P.parentNode
}return Q
},minInsetWidth:function(S,R){var Q=this.absoluteLeft(S);
var P=Q+S.offsetWidth;
var U=this.absoluteLeft(R);
var T=U+R.offsetWidth;
return Math.min((U-Q),(P-T))
},cssToJSName:function(U){if(U.indexOf("-")<0){return U
}var S=U.split("-");
var P=S[0];
for(var Q=1,R=S.length;
Q<R;
Q++){var T=S[Q];
P+=T.charAt(0).toUpperCase()+T.substring(1)
}return P
},effectiveStyle:function(Q,T){if(!Q.style){return 
}var P=this.cssToJSName(T);
var S=Q.style[P];
if(!S){if(document.defaultView&&document.defaultView.getComputedStyle){var R=document.defaultView.getComputedStyle(Q,null);
S=R?R.getPropertyValue(T):null
}else{if(Q.currentStyle){S=Q.currentStyle[P]
}}}return S=="auto"?null:S
},offsetParent:function(P){if(P.offsetParent){return P.offsetParent
}if(P==document.body){return P
}while((P=P.parentNode)&&P!=document.body){if(this.effectiveStyle(P,"position")!="static"){return P
}}return document.body
},positioningParent:function(P){while(P&&(P=P.parentNode)&&P!=document.documentElement){var Q=this.effectiveStyle(P,"position");
if(Q=="absolute"||Q=="relative"||Q=="fixed"){break
}}return P||document.documentElement
},contentParent:function(P){var Q=this.positioningParent(P);
return Q==document.documentElement?document.body:Q
},containerParent:function(Q){var P=this.findParentUsingPredicate(Q,function(R){return I.hasClass(R,"panelContainer")
});
return P!=null?P:document.body
},setAbsolutePosition:function(P,S,R){var Q=this.offsetParent(P);
if(Q){S-=this.absoluteLeft(Q);
R-=this.absoluteTop(Q);
if(Q!=this.getPageScrollElement()){S+=Q.scrollLeft;
R+=Q.scrollTop
}}P.style.left=S+"px";
P.style.top=R+"px"
},relativeOffset:function(Q){var S,R=0;
var P=false;
do{S+=Q.offsetTop||0;
R+=Q.offsetLeft||0;
Q=Q.offsetParent;
if(Q){var T=this.effectiveStyle(Q,"position");
P=(T=="absolute"||T=="relative")
}}while(Q&&!P);
return[R,S]
},isVisible:function(P){var Q=this.documentElement();
while(P!=Q){if(P.style.display=="none"){return false
}P=P.parentNode
}return true
},containerOffsetSize:function(S){var R;
var Q=S.offsetWidth,P=S.offsetHeight;
if(!Q){R=S.style.display;
S.style.display="BLOCK";
Q=S.offsetWidth;
P=S.offsetHeight;
S.style.display=R
}return[Q,P]
},getWindowSize:function(){var Q=0,P=0,R=0;
if(typeof (window.innerWidth)=="number"){Q=window.innerWidth;
P=window.innerHeight
}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){Q=document.documentElement.clientWidth;
P=document.documentElement.clientHeight;
R=document.documentElement.scrollHeight
}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){Q=document.body.clientWidth;
P=document.body.clientHeight;
R=document.body.scrollHeight
}}}return new Array(Q,P,R)
},isWindowNarrow:function(){var P=this.getWindowSize();
return(P[0]<300)
},fadeInElement:function(P){this.fadeElement(P,"hidden","visible")
},fadeOutElement:function(P){this.fadeElement(P,"visible","hidden")
},fadeElement:function(Q,P,S){try{if(Q.filters){if(!Q.filters.blendTrans){Q.style.filter="blendTrans(duration=.2)"
}Q.style.visibility=P;
if(Q.filters.blendTrans){if(Q.filters.blendTrans.status!=2){Q.filters.blendTrans.apply();
Q.style.visibility=S;
Q.filters.blendTrans.play()
}}}}catch(R){Q.style.visibility=S
}},setBodyClass:function(P){if(this.IsIE){P+=" IsIE";
P+=this.IsIE7?" IsIE7":" IsIE6"
}else{if(this.isSafari){P+="IsSaf"
}else{P+="IsMoz"
}}this.addClass(document.body,P)
},findRow:function(S,P){var T;
var R=S.childNodes;
for(var Q=0;
Q<R.length;
Q++){if(R[Q].id==P){T=R[Q];
break
}}return T
},findRowIndex:function(Q,T){var P=-1;
var S=T.rows;
for(var R=0;
R<S.length;
R++){if(S[R].id==Q){P=R;
break
}}return P
},findElement:function(P,R){if(!P){return null
}for(var Q=0;
Q<P.length;
Q++){if(P[Q].id==R){return P[Q]
}}return null
},getHashLocation:function(){var P=window.location.hash;
if(!P||P==""||P=="#"){return null
}else{if(P.charAt(0)=="#"){return P.substring(1)
}else{return P
}}},boolAttr:function(S,P,R){var Q=S.getAttribute(P);
return(Q)?(Q=="true"):R
},relocateDiv:function(S){if(S.getAttribute("_reloc")=="1"){var R=S.id;
this.removeRelocatedCopy(R);
var P=this.findParentUsingPredicate(S,function(T){return T.className&&T.className.indexOf("relocdest")!=-1
},true);
if(P){var Q=document.createElement("div");
Q.id=R+"_MovedCopy";
S.parentNode.removeChild(S);
P.appendChild(Q);
Q.appendChild(S);
S.setAttribute("_reloc",0)
}}},removeRelocatedCopy:function(R){var Q=R+"_MovedCopy";
var P=this.getElementById(Q);
if(P){P.parentNode.removeChild(P)
}},elementValue:function(P){var Q=this.getElementById(P);
return Q?Q.value:null
},elementIntValue:function(P){var Q=this.getElementById(P);
return Q?parseInt(Q.value):0
},setElementValue:function(P,Q){if(P){var R=this.getElementById(P);
if(R){R.value=Q
}}},elmBottom:function(Q){var P=Q;
while(P=P.nextSibling){if(P.offsetTop){return P.offsetTop
}}return Q.offsetTop+Q.offsetHeight
},getRowCells:function(P){var Q=P.children;
if(Q==null){Q=P.cells
}return Q
},overlay:function(P){},unoverlay:function(P){},getActiveElementId:function(){var P=document.activeElement;
if(P){return P.id
}return null
},getScrollTop:function(P){return P.scrollTop
},getScrollLeft:function(P){return P.scrollLeft
},getPageScrollElement:function(){return document.documentElement
},EOF:0};
if(I.isSafari){N.extend(I,function(){return{getScrollTop:function(P){var Q=P.scrollTop;
if(P=document.documentElement){Q=document.body.scrollTop
}return Q
},getScrollLeft:function(P){var Q=P.scrollLeft;
if(P=document.documentElement){Q=document.body.scrollLeft
}return Q
},getPageScrollElement:function(){return document.body
},EOF:0}
}())
}if(I.IsIE){N.extend(I,function(){var P;
var Q=function(){ariba.Dom.overlay(this)
};
return{setPageScroll:function(S,R){this.setPageScrollLeft(S);
this.setPageScrollTop(R)
},setPageScrollTop:function(R){this.documentElement().scrollTop=R
},getPageScrollTop:function(){return this.documentElement().scrollTop
},setPageScrollLeft:function(R){this.documentElement().scrollLeft=R
},getPageScrollLeft:function(){return this.documentElement().scrollLeft
},documentElement:function(){return ariba.Dom.IsIE6?document.documentElement:document.body
},getChildren:function(R){return R.children
},getParentElement:function(R){return R.parentElement
},styleSheetRules:function(R){return R.rules
},getOuterHTML:function(R){return R.outerHTML
},setOuterHTML:function(R,S){R.outerHTML=S
},registerOverlayIframe:function(R){if(!P){P=new Object()
}P[R.id]=R
},deregisterOverlayIframe:function(R){if(P&&P[R.id]){P[R.id]=null
}},updateOverlayIframes:function(){if(this.IsIE6Only&&P){var U=P;
P=null;
for(var S in U){var V=U[S];
if(V){var R=true;
var T=this.getElementById(V.divObjectId);
if(this.elementInDom(T)&&this.effectiveStyle(T,"display")!="none"&&T.overlayIframe==V){R=false
}if(R){V.style.display="none"
}else{if(T.awOnOverlayUpdate){T.awOnOverlayUpdate(T,V)
}}}}}},overlay:function(V,U){var T;
var R;
var W;
if(this.IsIE6Only&&V){if(V.style.display=="none"||!V.currentStyle){return 
}if(V.currentStyle.zIndex==0){V.style.zIndex=100
}W=V.id+"IFrame";
T=V.overlayIframe;
if(!T){T=this.getElementById(W)
}if(!T){W=V.id+"IFrame";
R=document.createElement("span");
var S=this.containerParent(V);
S.appendChild(R);
R.innerHTML="<iframe src='"+this.AWEmptyDocScriptlet+"' id='"+W+"' style='position:absolute;top:0px;left:0px;display:none;filter:alpha(opacity=000);background-color:#FFFFFF'></iframe>";
T=this.getElementById(W)
}V.overlayIframe=T;
if(typeof (U)=="undefined"||U){T.divObjectId=V.id;
this.registerOverlayIframe(T)
}T.style.width=V.offsetWidth;
T.style.height=V.offsetHeight;
if(V.style.top){T.style.top=V.style.top
}else{T.style.top=this.absoluteTop(V)
}if(V.style.left){T.style.left=V.style.left
}else{T.style.left=this.absoluteLeft(V)
}T.style.zIndex=V.currentStyle.zIndex-1;
T.style.display="block";
if(!V.onresize){V.onresize=Q
}}},unoverlay:function(S){var R;
if(this.IsIE6Only&&S){R=S.overlayIframe;
if(S.overlayIframe){R.style.display="none";
this.deregisterOverlayIframe(R);
S.onresize=null
}}},EOF:0}
}())
}if(!I.IsIE){N.extend(I,function(){var P={IMG:true,BR:true,INPUT:true,META:true,LINK:true,PARAM:true,HR:true};
return{setPageScroll:function(R,Q){window.scroll(R,Q)
},setPageScrollTop:function(Q){window.scroll(this.getPageScrollLeft(),Q)
},getPageScrollTop:function(){return window.pageYOffset
},setPageScrollLeft:function(Q){window.scroll(Q,this.getPageScrollTop())
},getPageScrollLeft:function(){return window.pageXOffset
},documentElement:function(){return document.documentElement
},getChildren:function(Q){return Q.childNodes
},getParentElement:function(Q){return Q.parentNode
},styleSheetRules:function(Q){return null
},getOuterHTML:function(S){var Q=S.attributes;
var T="<"+S.tagName;
for(var R=0;
R<Q.length;
R++){T+=" "+Q[R].name+'="'+Q[R].value+'"'
}if(P[this.tagName]){return T+">"
}return T+">"+S.innerHTML+"</"+S.tagName+">"
},setOuterHTML:function(Q,S){var R=Q.ownerDocument.createRange();
R.setStartBefore(Q);
var T=R.createContextualFragment(S);
Q.parentNode.replaceChild(T,Q)
},EOF:0}
}())
}return I
}();
ariba.Event=function(){var Util=ariba.Util;
var Debug=ariba.Debug;
var Dom=ariba.Dom;
var AWDomCompleteCallbackList;
var AWDomCompleteCallbackListArgs;
var AWOnRefreshCallbacks;
var AWVBScriptOnLoad;
var _ScriptLockCount=0;
var _IdsByEvent=new Object();
var _FE=false;
var EventsEnabled=true;
var AWDocHandler=new Object();
var AWPrintWindowName="AWPrintPage";
var AWMouseDown="AWMouseDown";
var AWMouseUp="AWMouseUp";
var _LastFunc=null;
var _FakeEvent=function(){this.stopPropagation=function(){};
this.preventDefault=function(){}
};
var _awEventsPending=null,_awEventsPhase2Pending=null;
var _awPendingLockCount=0;
var AWWindowResizeCallbackList;
var _awPrevWS,_awProcessedWS,_awWSId,_awWSTime;
var AWWindowFixedCallbackList;
var AWWindowScrollCallback=null;
var AWWindowOnScrollTimeout=null;
var AWOrigDocumentOnMouseDown=window.document.onmousedown;
var _docReadyLockCount=0;
var Event={behaviors:{},registerBehaviors:function(map){Util.extend(this.behaviors,map)
},registerRefreshCallback:function(f){if(!AWOnRefreshCallbacks){AWOnRefreshCallbacks=new Array(f)
}else{AWOnRefreshCallbacks[AWOnRefreshCallbacks.length]=f
}},unregisterRefreshCallback:function(f){Util.arrayRemoveMatching(AWOnRefreshCallbacks,f)
},registerVBScriptRefreshCallback:function(name){if(Dom.IsIE){this.registerRefreshCallback(function(){Event.GlobalEvalVBScript(name)
})
}},registerVBScriptOnLoad:function(name){Debug.log("awDomRegisterVBScriptOnLoad -- registering: "+name);
AWVBScriptOnLoad=name
},refreshIncrementNesting:function(){_ScriptLockCount++
},docReadyIncrementNesting:function(){_docReadyLockCount++
},notifyRefreshComplete:function(){this.eventLock();
if(_ScriptLockCount>0){Debug.log("refreshComplete() -- deferred ("+_ScriptLockCount+")");
_ScriptLockCount--;
this.registerUpdateCompleteCallback(this.eventUnlock.bind(this));
return false
}Debug.log("refreshComplete() -- executing...");
var i;
if(AWDomCompleteCallbackList){for(i=0;
i<AWDomCompleteCallbackList.length;
i++){try{if(AWDomCompleteCallbackListArgs[i]){AWDomCompleteCallbackList[i].apply(this,AWDomCompleteCallbackListArgs[i])
}else{AWDomCompleteCallbackList[i]()
}}catch(e){var msg="refreshComplete: Exception evaluating: "+AWDomCompleteCallbackList[i].toString()+"\n\n: "+e;
Debug.log(msg);
if(ariba.Request.AWDebugEnabled){alert(msg)
}}if(_ScriptLockCount){Debug.log("refreshComplete() -- Script block ("+_ScriptLockCount+") while executing "+(i+1)+" of "+AWDomCompleteCallbackList.length);
while(i-->=0){AWDomCompleteCallbackList.shift()
}_ScriptLockCount--;
this.registerUpdateCompleteCallback(this.eventUnlock.bind(this));
return false
}}Debug.log("refreshComplete() -- done...");
AWDomCompleteCallbackList=null
}if(ariba.Request.clearCancelRequestDelayHandle){ariba.Request.clearCancelRequestDelayHandle()
}if(AWOnRefreshCallbacks){for(i=0;
i<AWOnRefreshCallbacks.length;
i++){AWOnRefreshCallbacks[i]()
}}if(AWVBScriptOnLoad&&Dom.IsIE){try{this.GlobalEvalVBScript(AWVBScriptOnLoad)
}catch(e){alert("Exception in VBScript OnLoad Callback: "+e.message+AWVBScriptOnLoad)
}}this.eventUnlock();
return this.notifyDocReady()
},notifyDocReady:function(){if(_docReadyLockCount>0){Debug.log("waitForDocReady() -- deferred ("+_docReadyLockCount+")");
_docReadyLockCount--;
return false
}Debug.log("waitForDocReady() -- executing...");
this.invokeRegisteredHandlers("onDocReady");
Debug.log("waitForDocReady() -- done...");
return true
},evalJSSpan:function(id){var elm=Dom.getElementById(id);
if(elm){var script=Dom.getInnerText(elm);
eval(script)
}},registerHandler:function(id,eventNames,func){var list=eventNames.split(/\s+/);
for(var i=0;
i<list.length;
i++){var eventName=list[i];
Debug.log("Registering handler for: "+eventName+" -- "+id);
var map=_IdsByEvent[eventName];
if(!map){map=new Object();
_IdsByEvent[eventName]=map
}map[id]=func||id
}},invokeRegisteredHandlers:function(eventName){var map=_IdsByEvent[eventName];
if(map){for(var id in map){var func=map[id];
try{if(typeof (func)=="function"){func.call(this)
}else{this.evalJSSpan(id)
}}catch(exp){try{if(ariba.Request.AWDebugEnabled){var event=document.createEvent("UIEvents");
event.initUIEvent(eventName,true,true,window,1);
window.dispatchEvent(event)
}}catch(exp2){}}}}},registerUpdateCompleteCallback:function(method,args){if(!AWDomCompleteCallbackList){AWDomCompleteCallbackList=new Array();
AWDomCompleteCallbackListArgs=new Array()
}AWDomCompleteCallbackList[AWDomCompleteCallbackList.length]=method;
AWDomCompleteCallbackListArgs[AWDomCompleteCallbackListArgs.length]=args
},addEvent:function(node,event,handler){if(node.addEventListener){node.addEventListener(event.substring(2),handler,false)
}else{if(node.attachEvent){node.attachEvent(event,handler)
}}},removeEvent:function(node,event,handler){if(node.removeEventListener){node.removeEventListener(event.substring(2),handler,false)
}else{if(node.detachEvent){node.detachEvent(event,handler)
}}},shouldBubble:function(evt){return !evt.awCancelBubble
},modallyDisabled:function(target){return false
},selectFirstText:function(){},enableEvents:function(){EventsEnabled=true
},disableEvents:function(){EventsEnabled=false
},updateDocHandler:function(eventType,docHandler){var origDocHandler=AWDocHandler[eventType];
AWDocHandler[eventType]=docHandler;
return origDocHandler
},getDocHandler:function(eventType){return AWDocHandler[eventType]
},gl_handler:function(e){if(_FE){return true
}if(document.readyState&&document.readyState!="complete"){return true
}if(!Dom.IsIE&&!e){return true
}if(!EventsEnabled){return false
}if(window.name==AWPrintWindowName){return true
}var evt=(e)?e:event;
var target=(evt.srcElement)?evt.srcElement:evt.target;
if(ariba.Request.AWDebugEnabled&&Debug.checkDebugClick(evt)){Event.cancelBubble(evt);
return true
}if(this.modallyDisabled(target)){if((evt.type=="activate"||evt.type=="focus"||evt.type=="mousedown"||evt.type=="click"||evt.type=="keydown")&&target!=window){this.selectFirstText()
}return true
}_FE=true;
try{if(this.handleMouseEvent(target,evt)){var ret=this.fireBehaviors(target,evt,("on"+evt.type),("x"+evt.type))
}}catch(ex){ret=true
}finally{_FE=false
}return ret
},handleMouseEvent:function(target,evt){var shouldFireEvent=true;
if(target&&target.setAttribute){var evtType=evt.type;
if(evtType=="mousedown"){target.setAttribute(AWMouseDown,"true");
target.removeAttribute(AWMouseUp)
}else{if(evtType=="mouseup"){target.setAttribute(AWMouseUp,"true")
}else{if(evtType=="mouseout"){target.removeAttribute(AWMouseDown);
target.removeAttribute(AWMouseUp)
}else{if(evtType=="click"){shouldFireEvent=target.getAttribute(AWMouseDown)&&target.getAttribute(AWMouseUp);
target.removeAttribute(AWMouseDown);
target.removeAttribute(AWMouseUp)
}}}}}return shouldFireEvent
},_elementInvoke:function(elm,evt,onName,xName){var ret=true;
var func;
var evtType=evt.type;
if(elm==window.document){var docHandler=AWDocHandler[evtType];
if(docHandler){return docHandler(evt)
}}var handler=elm[onName];
if(handler&&(handler.call!=null)){ret=handler.call(elm,evt)
}else{if(elm.tagName){handler=elm.getAttribute(xName);
if(handler){ret=this.handleInline(handler,evt,elm)
}else{if(func=this.bhHandler(elm,evt.type)){ret=func(elm,evt)
}else{if(evt.type=="click"){var sourceElm=this.eventSourceElement(evt);
if(elm.tagName=="LABEL"&&sourceElm.type!="checkbox"&&sourceElm.type!="radio"&&sourceElm.tagName!="SELECT"&&sourceElm.tagName!="A"){var forId=elm.htmlFor;
if(forId){var target=Dom.getElementById(forId);
if(target&&!target.disabled){if(target.type=="radio"){target.checked=true;
ret=false;
this.preventDefault(evt)
}else{if(target.type=="checkbox"){target.checked=!target.checked;
ret=false;
this.preventDefault(evt)
}else{if(target.tagName=="SELECT"){target.focus();
ret=false;
this.preventDefault(evt)
}}}handler=target.getAttribute("xclick");
if(handler){this.handleInline(handler,evt,target);
ret=false;
this.preventDefault(evt)
}}}}}}}}}return ret
},fireBehaviors:function(elm,evt,onName,xName){if(!elm){return true
}var ret=this._elementInvoke(elm,evt,onName,xName);
return(this.shouldBubble(evt)&&(elm!=window.document))?(this.fireBehaviors(elm.parentNode,evt,onName,xName)&&ret):ret
},handleInline:function(handler,evt,elm){var ret=true;
eval("_LastFunc = function(event) {"+handler+"}");
ret=_LastFunc.call(elm,evt);
_LastFunc=null;
return ret
},elementInvoke:function(elm,evtName){var evt=new _FakeEvent();
evt.type=evtName;
evt.srcElement=evt.target=elm;
return this._elementInvoke(elm,evt,("on"+evtName),("x"+evtName))
},bhHandler:function(elm,type){var bhName=elm.getAttribute("bh");
if(bhName){var handler=this.behaviors[bhName];
if(handler){if(!handler.didInit){this.behaviorInit(handler)
}return handler[type]
}}return null
},hasHandler:function(elm,type){return elm["on"+type]||elm.getAttribute("x"+type)||this.bhHandler(elm,type)
},behaviorInit:function(handler){handler.didInit=true;
var proto=handler.prototype;
for(var p in proto){if(!handler[p]){handler[p]=proto[p]
}}if(Dom.IsIE){var f;
if(f=handler.focus){handler.activate=f
}if(f=handler.blur){handler.deactivate=f
}}},eh_stop:function(eml,evt){this.cancelBubble(evt);
return false
},eventEnqueue:function(target,event,isP2){if(!_awEventsPending){_awEventsPending=[]
}if(!_awEventsPhase2Pending){_awEventsPhase2Pending=[]
}var q=isP2?_awEventsPhase2Pending:_awEventsPending;
Util.arrayRemoveMatching(q,target,function(e){return e[0]
});
q.push([target,event]);
if(_awPendingLockCount==0){this.eventsFire()
}},eventLock:function(){_awPendingLockCount++
},eventUnlock:function(){_awPendingLockCount--;
if(_awPendingLockCount==0){this.eventsFire()
}},eventsFire:function(){_awPendingLockCount++;
var didFire;
do{didFire=false;
var q=(_awEventsPending&&_awEventsPending.length)?_awEventsPending:_awEventsPhase2Pending;
if(q&&q.length){didFire=true;
var entry=q[0];
entry[0](entry[1]);
this._arrayShift(q)
}}while(didFire);
_awPendingLockCount--;
if(_awPendingLockCount!=0){alert("Unbalanced lock count!")
}},_arrayShift:function(a){return(a&&a.length)?a.splice(0,1)[0]:null
},_onWindowResize:function(event,delay){var ws=Dom.getWindowSize();
if(!_awWSId&&(!_awPrevWS||(_awPrevWS[0]!=ws[0])||(_awPrevWS[1]!=ws[1]))){delay=delay||100;
if(!_awPrevWS){_awPrevWS=[-1,-1]
}Debug.log("_awOnWindowResize -- delay:"+delay+" -- _awPendingLockCount: "+_awPendingLockCount+" -- size: "+ws[0]+", "+ws[1]+"// "+_awPrevWS[0]+", "+_awPrevWS[1]);
_awPrevWS=ws;
if(_awPendingLockCount){this.eventEnqueue(this.onWindowResize.bind(this))
}else{if(_awWSId){clearTimeout(_awWSId)
}_awWSId=setTimeout(this.onWindowResize.bind(this),delay);
_awWSTime=(new Date()).getTime()+delay
}}},onWindowResize:function(force){var ws=Dom.getWindowSize();
var delay=_awWSTime-(new Date()).getTime();
Debug.log("Resize invoked: "+delay+(force?" -- FORCE":""));
if(force){_awPrevWS=ws
}if((_awPrevWS&&((_awPrevWS[0]!=ws[0])||(_awPrevWS[1]!=ws[1])))||(!force&&delay>0)){_awWSId=null;
Debug.log("Bailing out / rescheduling!");
this._onWindowResize(null,delay>0?delay:0);
return 
}Debug.log("Enqueuing resize: "+_awPendingLockCount+" / "+(AWDomCompleteCallbackList?AWDomCompleteCallbackList.length:0));
if(!_awProcessedWS||force){_awProcessedWS=[-1,-1]
}if((_awProcessedWS[0]!=ws[0])||(_awProcessedWS[1]!=ws[1])){_awProcessedWS=ws;
this.wSFlush()
}_awWSId=null
},forceOnWindowResize:function(){this.onWindowResize(true)
},wSFlush:function(){var ws=Dom.getWindowSize();
Debug.log("^^^^^ Resize!!! -- "+ws[0]+", "+ws[1]+" // "+_awPrevWS[0]+", "+_awPrevWS[1]+" ^^^^^");
if(AWWindowResizeCallbackList){for(var i=0;
i<AWWindowResizeCallbackList.length;
i++){this.eventEnqueue(AWWindowResizeCallbackList[i])
}}this.fireWindowFixedCallback()
},registerOnWindowFixed:function(callback){if(!AWWindowFixedCallbackList){AWWindowFixedCallbackList=[]
}for(var i=0;
i<AWWindowFixedCallbackList.length;
i++){if(AWWindowFixedCallbackList[i]==callback){return 
}}AWWindowFixedCallbackList.push(callback)
},fireWindowFixedCallback:function(){if(AWWindowFixedCallbackList){for(var i=0;
i<AWWindowFixedCallbackList.length;
i++){this.eventEnqueue(AWWindowFixedCallbackList[i],null,true)
}}},unregisterOnWindowFixed:function(method){Util.arrayRemoveMatching(AWWindowFixedCallbackList,method)
},_fireWindowCallback:function(){if(AWWindowFixedCallbackList){for(var i=0;
i<AWWindowFixedCallbackList.length;
i++){AWWindowFixedCallbackList[i]()
}}},registerOnWindowResize:function(method){if(!AWWindowResizeCallbackList){AWWindowResizeCallbackList=new Array()
}AWWindowResizeCallbackList[AWWindowResizeCallbackList.length]=method;
return method
},unregisterOnWindowResize:function(method){Util.arrayRemoveMatching(AWWindowResizeCallbackList,method)
},registerWindowOnScroll:function(callback){if(!AWWindowScrollCallback){AWWindowScrollCallback=[]
}for(var i=0;
i<AWWindowScrollCallback.length;
i++){if(AWWindowScrollCallback[i]==callback){return 
}}AWWindowScrollCallback.push(callback)
},windowOnScroll:function(){this.fireWindowOnScroll()
},windowOnMouseWheel:function(){this.fireWindowOnScroll()
},fireWindowOnScroll:function(){if(AWWindowOnScrollTimeout){clearTimeout(AWWindowOnScrollTimeout)
}AWWindowOnScrollTimeout=setTimeout(this._fireWindowOnScroll.bind(this),0)
},_fireWindowOnScroll:function(){if(AWWindowScrollCallback){for(var i=0;
i<AWWindowScrollCallback.length;
i++){AWWindowScrollCallback[i]()
}}},enableDocumentClick:function(func){AWOrigDocumentOnMouseDown=this.updateDocHandler("mousedown",func.bindEventHandler(this))
},disableDocumentClick:function(){if(AWOrigDocumentOnMouseDown){this.updateDocHandler("mousedown",AWOrigDocumentOnMouseDown);
AWOrigDocumentOnMouseDown=null
}},notifyParents:function(src,handlerName){var node=src;
while(node&&node.nodeType==1){try{var handler=node[handlerName];
if(handler){handler(node,src)
}node=node.parentNode
}catch(ex){}}},GlobalEvalVBScript:function(str){alert("GlobalEvalVBScript is IE only...")
},EOF:0};
if(Dom.IsIE){Util.extend(Event,function(){return{keyCode:function(mevent){return mevent.keyCode
},cancelBubble:function(mevent){if(!Util.isNullOrUndefined(mevent)){mevent.cancelBubble=true;
mevent.awCancelBubble=true
}},eventSourceElement:function(mevent){return mevent.srcElement
},preventDefault:function(mevent){mevent.returnValue=false
},GlobalEvalVBScript:function(str){window.GlobalEvalVBScript(str)
},EOF:0}
}())
}if(!Dom.IsIE){Util.extend(Event,function(){return{keyCode:function(mevent){return mevent.which
},cancelBubble:function(mevent,allowDefault){if(mevent){mevent.stopPropagation();
if(!allowDefault){mevent.preventDefault()
}mevent.awCancelBubble=true
}},eventSourceElement:function(mevent){return mevent.target
},preventDefault:function(mevent){mevent.preventDefault()
},EOF:0}
}())
}var bh=Event.eh_stop.bind(Event);
Util.extend(Event.behaviors,{StopPropagation:{click:bh,keydown:bh,keyup:bh,keypress:bh,mousedown:bh,mouseup:bh,mousein:bh,mouseover:bh,mousemove:bh,mouseout:bh,focus:bh,blur:bh}});
Function.prototype.bindEventHandler=function(){var __method=this,a=Util.toArray(arguments),obj=a.shift();
return function(evt){return(_FE)?__method.apply(obj,Util.concatArr([evt||window.event],a)):true
}
};
if(window==ariba.awCurrWindow){var bHandler=function(evt){return Event.gl_handler(evt)
};
var d=window.document;
if(Dom.IsIE){d.onmousein=bHandler;
d.onmouseover=bHandler;
d.onmouseout=bHandler;
d.onmousedown=bHandler;
d.onmouseup=bHandler;
d.onmousemove=bHandler;
d.onclick=bHandler;
d.onkeydown=bHandler;
d.onkeyup=bHandler;
d.onkeypress=bHandler;
d.ondeactivate=bHandler;
window.onfocus=function(e){Event.invokeRegisteredHandlers("onfocusin")
};
window.onblur=function(e){Event.invokeRegisteredHandlers("onblur")
}
}else{d.addEventListener("mousein",bHandler,false);
d.addEventListener("mouseover",bHandler,false);
d.addEventListener("mouseout",bHandler,false);
d.addEventListener("mousedown",bHandler,false);
d.addEventListener("mouseup",bHandler,false);
d.addEventListener("mousemove",bHandler,false);
d.addEventListener("click",bHandler,false);
d.addEventListener("keydown",bHandler,false);
d.addEventListener("keyup",bHandler,false);
d.addEventListener("keypress",bHandler,false);
d.addEventListener("blur",bHandler,false);
d.addEventListener("focus",bHandler,false);
window.addEventListener("focus",function(e){Event.invokeRegisteredHandlers("onfocusin")
},false);
window.addEventListener("blur",function(e){Event.invokeRegisteredHandlers("onblur")
},false)
}function _bindEv(func,obj){return function(evt){return func.apply(obj,[evt||window.event])
}
}window.onscroll=_bindEv(Event.windowOnScroll,Event);
window.onmousewheel=_bindEv(Event.windowOnMouseWheel,Event);
window.onresize=_bindEv(Event._onWindowResize,Event);
Event.registerRefreshCallback(function(){Event.invokeRegisteredHandlers("onupdate")
})
}return Event
}();
ariba.Input=function(){var G=ariba.Util;
var U=ariba.Event;
var P=ariba.Debug;
var B=ariba.Dom;
var D;
var Q=null;
var S=null;
var E=null;
var A=null;
var I=false;
var F=false;
var T=false;
var R=null,K=null;
var M=null;
var O=null;
var C=null;
var H=false;
var L=null;
var N=0;
var J={AWWaitAlertMillis:2000,AWWaitMillis:20000,AWAutomationTestModeEnabled:false,KeyCodeBackspace:8,KeyCodeTab:9,KeyCodeEnter:13,KeyCodeShift:16,KeyCodeCapsLock:20,KeyCodeEscape:27,KeyCodeArrowUp:38,KeyCodeArrowDown:40,KeyCodeDelete:46,isCharChange:function(V){var X=V.keyCode;
if(X==this.KeyCodeBackspace||X==this.KeyCodeDelete){return true
}var W=null;
if(V.which==null){W=String.fromCharCode(V.keyCode)
}else{if(V.which!=0&&V.charCode!=0){W=String.fromCharCode(V.which)
}}return W!=null
},focus:function(W){try{W.focus()
}catch(V){}},keyDownEvtHandler:function(W){var V=U.eventSourceElement(W);
var X=J.modallyDisabled(V);
if(X){U.cancelBubble(W);
window.focus()
}return !X
},setShowWaitCursorDisabled:function(V){I=V
},showWaitCursor:function(){if(this.AWAutomationTestModeEnabled){window.status="Processing request ..."
}if(I){return 
}Q=document.getElementById("awwaitAlertDiv");
if(Q!=null){Q.style.display="none";
Q.style.visibility=""
}N=(new Date()).getTime()+500;
this.disableInput(true);
if(!F){clearTimeout(S);
clearTimeout(D);
S=setTimeout(this.showWaitAlert.bind(this),this.AWWaitAlertMillis);
D=setTimeout(this.hideWaitCursor.bind(this),this.AWWaitAlertMillis+this.AWWaitMillis)
}},updateWaitMessage:function(W){if(!T){this.showWaitAlert()
}var V=B.getElementById("awwaitMessage");
if(V){V.innerHTML=W
}},hideWaitCursor:function(){if(I){return 
}clearTimeout(D);
clearTimeout(S);
this.enableInput();
this.hideWaitAlert()
},showWaitAlert:function(){if(I){return 
}if((new Date()).getTime()<N){return 
}clearTimeout(S);
if(!T&&!F){T=true;
if(Q!=null){Q.style.display="";
E=window.onscroll;
A=window.onresize;
window.onscroll=function(){B.positionDialogBox(Q)
};
window.onresize=window.onscroll;
B.positionDialogBox(Q);
B.overlay(Q)
}}},hideWaitAlert:function(){if(T){T=false;
window.onscroll=E;
window.onresize=A;
E=null;
A=null;
if(Q!=null){Q.style.display="none";
var V=B.getElementById("awwaitMessage");
if(V){V.innerHTML=""
}B.unoverlay(Q)
}}},showWaitAlertInWindow:function(W){if(W!=null){W.document.writeln("<html><head><title>");
W.document.writeln(document.title);
W.document.writeln("</title></head><body>");
if(!B.IsIE){var V=B.getElementById("awwaitAlertDiv");
if(V!=null){var Y=V.cloneNode(true);
Y.style.visibility="";
Y.style.display="";
Y.style.left="50%";
Y.style.top="50%";
Y.style.marginLeft="-"+V.offsetWidth/2+"px";
Y.style.marginTop="-"+V.offsetHeight/2+"px";
var X=document.createElement("span");
X.appendChild(Y);
W.document.writeln(X.innerHTML)
}}W.document.writeln("</body></html>");
W.document.close();
if(this.AWAutomationTestModeEnabled){W.status="Processing request ..."
}}},hideSelects:function(){},showSelects:function(){},coverDocument:function(Z,X){var V=null;
var W=null;
if(B.IsIE){document.createStyleSheet().addRule("v\\: *","behavior:url(#default#VML)");
!document.namespaces.rvml&&document.namespaces.add("v","urn:schemas-microsoft-com:vml");
V=document.createElement('<v:rect stroked="False">');
V.appendChild(document.createElement('<v:fill opacity="50%" color="black">'));
document.body.appendChild(V,document.body.firstChild);
W=V.style
}else{V=document.createElement("div");
W=V.style;
W.backgroundColor="#000000";
B.setOpacity(V,X)
}W.position="absolute";
W.zIndex=Z;
var Y=document.body;
this.updateCoverSize(V);
Y.appendChild(V,document.body.firstChild);
V.style.display="";
this.registerCoverDiv(V);
this.hideSelects();
return V
},updateCoverSize:function(W){var X=W.style;
var Z=B.getDocumentElement();
var Y=G.max(Z.scrollWidth,Z.clientWidth);
var V=G.max(Z.scrollHeight,Z.clientHeight);
X.top="0px";
X.left="0px";
X.width=Y-1+"px";
X.height=V-1+"px"
},uncoverDocument:function(V){V=V||R;
this.showSelects();
if(V){this.unregisterCoverDiv(V);
document.body.removeChild(V)
}},registerCoverDiv:function(W){R=W;
if(M){P.log("reg cover div "+M);
K=M;
var V=B.getElementById(K);
if(V&&V.blur){V.blur()
}}},unregisterCoverDiv:function(V){if(K){P.log("unreg cover div "+K);
this.registerActiveElementId(K)
}R=K=null
},registerModalDiv:function(V){this.registerCoverDiv(V)
},unregisterModalDiv:function(V){this.unregisterCoverDiv(V)
},modallyDisabled:function(W){if(!B.elementInDom(R)){return false
}if(!R){return false
}var V=W;
while(V){if(V==R){return false
}V=V.parentNode
}return this.modallyDisabled_zindex(W)
},modallyDisabled_zindex:function(Y){if(!R){return false
}var V=Y;
while((V=B.positioningParent(V))&&V!=B.documentElement()){var X=B.effectiveStyle(V,"z-index");
if(X){var W=B.effectiveStyle(B.positioningParent(R),"z-index");
P.log("awModallyDisabled: "+W+", "+X);
if(!W){return false
}if(parseInt(X)>parseInt(W)){return false
}}}return true
},registerActiveElementId:function(V){M=V?V:B.getActiveElementId();
P.log("registerActiveElementId: "+M)
},setFocusRegion:function(V){C=V
},postLoadFocusOnActiveElement:function(){U.eventEnqueue(function(){U.eventEnqueue(J.focusOnActiveElement.bind(J))
},null,true)
},focusOnActiveElement:function(){if(C){var W=B.getElementById(C);
C=null;
if(W){var V=this.findFirstText(W);
if(V){M=V.id
}}}if(M){try{var X=B.getElementById(M);
if(B.elementInDom(X)&&!this.modallyDisabled(X)){P.log("Focusing on element id: "+M);
var Z=M;
function a(){try{if(!B.getActiveElementId()){P.log("Refocusing on element id: "+Z);
if(X.focus){X.focus();
X.focus();
if(X.select){X.select()
}}}}catch(b){}}setTimeout(a,1000);
if(X.focus){X.focus();
X.focus();
if(X.select){X.select()
}}}}catch(Y){P.log("Focusing exception: "+Y)
}finally{M=null
}}if(!B.getActiveElementId()&&H){H=false;
P.log("Focusing on first text: ");
this.selectFirstText()
}},selectFirstText:function(){var Z=null;
if(O){Z=B.getElementById(O);
O=null
}if(!Z){var V=document.forms;
var X=V.length;
for(var W=0;
W<X;
W++){Z=this.findFirstText(V[W]);
if(Z!=null){break
}}}if(Z){if(Z.value==null){Z.value=" "
}try{Z.focus();
Z.select()
}catch(Y){}}},findFirstText:function(Z){if(Z==null){return null
}var Y=B.boolAttr(Z,"_aa",false);
var V=B.findChildrenUsingPredicate(Z,function(b){return b.tagName=="INPUT"||b.tagName=="TEXTAREA"||(Y&&b.tagName=="A")
});
for(var X=0,a=V.length;
X<a;
X++){var W=V[X];
if((((W.type=="text"||W.type=="password")&&W.getAttribute("awautoselect")!="0")||W.nodeName=="TEXTAREA"||W.nodeName=="A")&&B.visibleInScrollArea(W)&&!W.getAttribute("disabled")&&!this.modallyDisabled(W)&&B.effectiveStyle(W,"display")!="none"){return W
}}return null
},setTextFocus:function(V){O=V
},allowSelectFirstText:function(){H=true
},EOF:0};
if(B.IsIE6Only){G.extend(J,function(){var V=new Array();
return{hideSelects:function(b){var e;
var d;
var c=document.getElementsByTagName("select");
if(!b){this.disposeDummySelects()
}for(var a=0;
a<c.length;
a++){d=c[a];
if(!b&&d.offsetWidth>0){if(d.size>1){continue
}var Y;
for(Y=0;
Y<d.options.length;
Y++){if(d.options[Y].selected){e=d.options[Y].text
}}var X=document.getElementById("AWDummySelect");
var W=X.cloneNode(true);
document.body.appendChild(W);
var Z=W.getElementsByTagName("td");
for(Y=0;
Y<Z.length;
Y++){if(Z[Y].className=="dummySelect"){Z[Y].innerText=e
}}W.style.width=d.offsetWidth-1;
W.style.zIndex="-100";
W.style.position="absolute";
W.style.display="";
W.style.top=B.absoluteTop(d);
W.style.left=B.absoluteLeft(d);
V[V.length]=W
}if(this.modallyDisabled(d)){d.style.visibility="hidden"
}}},showSelects:function(){var Y=document.getElementsByTagName("select");
for(var X=0;
X<Y.length;
X++){var W=Y[X];
W.style.visibility="visible"
}this.disposeDummySelects()
},disposeDummySelects:function(){for(var W=0;
W<V.length;
W++){V[W].removeNode(true)
}V=new Array()
},EOF:0}
}())
}if(B.IsIE){G.extend(J,function(){var V=null;
return{disableInput:function(W){U.disableEvents();
if(V==null){V=document.createElement("div");
document.body.appendChild(V)
}V.setCapture(false);
V.style.cursor="wait";
if(W){V.onmousedown=this.showWaitAlert.bindEventHandler(this);
V.onkeydown=this.showWaitAlert.bindEventHandler(this)
}},enableInput:function(){U.enableEvents();
if(V==null){return 
}V.onmousedown=null;
V.onkeydown=null;
V.releaseCapture();
V.style.cursor="pointer"
},EOF:0}
}())
}if(!B.IsIE){G.extend(J,function(){function V(W){J.showWaitAlert();
U.cancelBubble(W)
}return{disableInput:function(W){if(B.isSafari){return 
}var X=document.body;
if(W){X.addEventListener("mousedown",V,true);
X.addEventListener("keydown",V,true);
X.addEventListener("click",V,true)
}X.addEventListener("mouseover",U.cancelBubble,true);
X.style.cursor="wait"
},enableInput:function(){var W=document.body;
W.removeEventListener("mousedown",V,true);
W.removeEventListener("mouseover",U.cancelBubble,true);
W.removeEventListener("click",V,true);
W.removeEventListener("keydown",V,true);
W.style.cursor=""
},EOF:0}
}())
}G.extend(U,{modallyDisabled:function(V){return J.modallyDisabled(V)
},selectFirstText:function(){return J.selectFirstText()
}});
return J
}();
ariba.Request=function(){var J=ariba.Util;
var Z=ariba.Event;
var Q=ariba.Debug;
var O=ariba.Input;
var B=ariba.Dom;
var S=true;
var U=null;
var V=true;
var P=false;
var A,K,R,H;
var I;
var X;
var D;
var M=0;
var F=false;
var W;
var T=0;
var Y;
var L=0;
var G;
var E=0;
var C=[];
var N={AWSenderIdKey:"awsn",AWResponseId:"",AWRefreshUrl:"",AWPingUrl:"",AWProgressUrl:"",AWFrameName:null,AWReqUrl:null,AWSessionIdKey:null,AWSessionId:null,AWDebugEnabled:false,AWJSDebugEnabled:false,AWShowRequestFrame:false,AWUpdateCompleteTime:0,AWSessionSecureId:"",UseXmlHttpRequests:false,AWPollCallback:null,AWPollErrorState:"pollError",AWPollState:"poll",initParams:function(){J.takeValues(ariba,["Request.AWResponseId","Request.AWSessionSecureId","Request.AWRefreshUrl","Request.AWPingUrl","Request.AWProgressUrl","Request.AWReqUrl","Request.UseXmlHttpRequests","Request.AWSessionIdKey","Request.AWSessionId","Request.AWFrameName","Refresh.AWBackTrackUrl","Refresh.AWForwardTrackUrl","Input.AWWaitAlertMillis","Dom.AWOpenWindowErrorMsg"],arguments)
},setDocumentLocation:function(b,a,c){if(J.isNullOrUndefined(a)){this.getContent(b)
}else{if(J.isNullOrUndefined(c)){c=""
}window.open(b,a,c)
}return false
},openWaitWindow:function(a,c){var b=B.openWindow("",a,c);
b.focus();
O.showWaitAlertInWindow(b);
return b
},submitFormAtIndexWithHiddenField:function(b,d,c){var e=document.forms[b];
var a=e[d];
a.value=c;
this.submitForm(e);
return false
},submitFormForElementName:function(b,a,e,c){var d=B.formForName(b);
if(a){B.addFormField(d,this.AWSenderIdKey,a)
}this.submitForm(d,c);
Z.cancelBubble(e);
return false
},invoke:function(b,h,d,f,i,e,a,c){var g=null;
if(!h){h=b.id
}if(b&&!f){g=B.lookupFormId(b)
}return this.senderClicked(h,g,i,e,d,a,c)
},senderClicked:function(h,i,j,g,e,a,c,f){var l=null;
if(i!=null){l=B.getElementById(i)
}if(l!=null){Z.cancelBubble(e);
var d;
if(a){d=document.createElement("input");
d.type="hidden";
d.id=h;
d.name=h;
l.appendChild(d);
d.value=c?c:h
}var k=l.wzrd_action;
if((k!=null)&&(g!=null)){k.value=g
}B.addFormField(l,this.AWSenderIdKey,h);
this.invokeSenderClickedCallbacks(h,i);
if(j!=null&&j!="_self"){this.submitForm(l,j,f)
}else{this.submitForm(l)
}if(a){l.removeChild(d)
}}else{var b=this.formatUrl(h);
this.invokeSenderClickedCallbacks(h,null);
this.setDocumentLocation(b,j,f)
}if(e){Z.cancelBubble(e)
}return false
},registerSenderClickedCallback:function(a){if(!U){U=new Array()
}U[U.length]=a
},invokeSenderClickedCallbacks:function(c,b){if(U){for(var a=0;
a<U.length;
a++){U[a](c,b)
}}},formatUrl:function(b){var a=this.formatSenderUrl(b);
return this.appendScrollValues(a)
},formatSenderUrl:function(a){return this.partialUrl()+this.AWSenderIdKey+"="+a
},appendScrollValues:function(a){if(a.indexOf("#")==-1){a=a+"&awst="+B.getPageScrollTop()+"&awsl="+B.getPageScrollLeft()
}return a
},gotoLink:function(e,b,c,d){var a=this.formatUrl(e);
this.setDocumentLocation(a,b,c);
Z.cancelBubble(d);
return false
},setResponseId:function(a){this.AWResponseId=a
},appendQueryValue:function(a,b,d){var c=a.toString();
var e=null;
if(c.match(/\?/)==null){e="?"
}else{e="&"
}c=c+e+b+"="+encodeURIComponent(d);
return c
},setupPoll:function(e,c,h,j,g){V=e;
var a=c*1000;
if(H!=a){H=a;
clearTimeout(A);
A=null
}K=h;
R=j;
P=g;
b();
function b(){if(V&&A==null){A=setTimeout(f.bind(N),H)
}}function d(){if(V){clearTimeout(A);
A=setTimeout(f.bind(N),0)
}}this.pollNow=d;
function i(n){clearTimeout(A);
A=null;
var l=n.responseText;
var k=n.status;
Q.log("poll response: "+J.htmlEscapeValue(l));
Q.log("poll status: "+k);
var m=P;
if(l=="<AWPoll state='update'/>"){Q.log("page changed -- go get content");
if(!S){this.getContent(this.formatSenderUrl(R))
}m=true
}else{if(l=="<AWPoll state='nochange'/>"){m=true
}else{if(this.AWPollCallback){this.AWPollCallback(this.AWPollErrorState)
}}}if(m){b()
}}function f(){Q.log("AWRequestInProgress: "+S+", AWPollEnabled="+V);
if(!S&&V){if(this.AWPollCallback){this.AWPollCallback(this.AWPollState)
}var k=this.formatSenderUrl(K);
this.initiateXMLHttpRequest(k,i.bind(this))
}else{clearTimeout(A);
A=null;
b()
}}},submitFormObjectNamed:function(a){var b=document.forms(a);
this.submitForm(b);
return false
},submitForm:function(k,i,f,c){var g=true;
if(k.onsubmit){g=k.onsubmit();
if(typeof (g)=="undefined"){g=true
}}if(g){Z.invokeRegisteredHandlers("onsubmit");
this.addAWFormFields(k);
if(i&&i!="_self"){B.removeFormField(k,"awii");
if(i=="_blank"){i="AWWindow_"+new Date().getTime()
}k.target=i;
k.submit()
}else{this.prepareForRequest(c);
try{var j=this.hasPopulatedFileInputContol(k,true);
var b=null;
if(j){b=k.enctype;
if(!b||(b.indexOf("multipart")!=0)){k.enctype="multipart/form-data";
k.encoding="multipart/form-data"
}else{b=null
}}if(this.UseXmlHttpRequests&&!j){Q.log("<--- Incremental post: XMLHTTP");
B.addFormField(k,"awii","xmlhttp");
var a=this.encodedFormValueString(k);
N.initiateXMLHttpRequest(this.partialUrl(),function(l){var e=l.responseText;
ariba.Refresh.processXMLHttpResponse(e)
},a)
}else{Q.log("<--- Incremental post: IFRAME");
var d=this.createRefreshIFrame();
k.target=d.name;
B.addFormField(k,"awii",d.name);
k.submit();
if(b){k.enctype=b
}}}catch(h){this.requestComplete();
this.handleFileUploadError(h);
throw (h)
}}}this.removeAWFormFields(k);
k.target=null
},formValueAccessors:{input:function(a){switch(a.type.toLowerCase()){case"checkbox":case"radio":return a.checked?a.value:null;
default:return a.value
}},textarea:function(a){return a.value
},select:function(g){function f(h){return h.value||h.text
}if(g.type.toLowerCase()=="select-one"){var b=g.selectedIndex;
return b>=0?f(g.options[b]):null
}else{var a,e=g.length;
if(!e){return null
}for(var c=0,a=[];
c<e;
c++){var d=g.options[c];
if(d.selected){a.push(f(d))
}}return a
}}},serialize:function(c){var b=c.tagName.toLowerCase();
var a=this.formValueAccessors[b];
return(a)?a(c):null
},formValueMap:function(h){var c=h.getElementsByTagName("*");
var d={};
for(var b=0;
b<c.length;
b++){var f=c[b];
if(!f.disabled&&f.name){var g=this.serialize(f);
if(g){var a=f.name;
d[a]=J.itemOrArrAdd(d[a],g)
}}}return d
},encodedFormValueString:function(g){var e=this.formValueMap(g);
var b=[];
for(var d in e){var a=encodeURIComponent(d);
var f=e[d];
if(J.isArray(f)){for(var c=0;
c<f.length;
c++){b.push(a+"="+encodeURIComponent(f[c]||""))
}}else{b.push(a+"="+encodeURIComponent(f||""))
}}return b.join("&")
},addRequestValue:function(a,b){if(!I){I=new Object()
}I[a]=b
},addAWFormFields:function(b){B.addFormField(b,"awr",this.AWResponseId);
B.addFormField(b,"awst",B.getPageScrollTop());
B.addFormField(b,"awsl",B.getPageScrollLeft());
B.addFormField(b,"awssk",this.AWSessionSecureId);
if(I){for(var a in I){B.addFormField(b,a,I[a])
}}},removeAWFormFields:function(b){B.removeFormField(b,this.AWSenderIdKey);
B.removeFormField(b,"awr");
B.removeFormField(b,"awst");
B.removeFormField(b,"awsl");
B.removeFormField(b,"awssk");
if(I){for(var a in I){B.removeFormField(b,a)
}}},handleFileUploadError:function(b){var a=B.getElementById("AWFileUploadErrorMessage");
if(a){alert(a.innerText)
}},partialUrl:function(){var a=this.AWReqUrl+"?awr="+this.AWResponseId;
if(this.AWSessionIdKey){a+="&"+this.AWSessionIdKey+"="+this.AWSessionId
}if(this.AWFrameName){a+="&awf="+this.AWFrameName
}if(this.AWSessionSecureId){a+="&awssk="+this.AWSessionSecureId
}return a+"&"
},simpleXMLHTTP:function(a,b){this._asyncGet(function(c){if(c){c.onreadystatechange=function(){if(c.readyState==4){if(c.status==200){b(c)
}else{if(N.AWDebugEnabled){alert('Got "'+c.status+" "+c.statusText+'" for '+a)
}}N._asyncDone(c)
}};
try{c.open("GET",a,true);
c.send(null)
}catch(d){alert("XMLHTTP Error in send: "+d.message);
N._asyncDone(c)
}}})
},appendFrameName:function(a){if(!J.isNullOrUndefined(this.AWFrameName)&&a.match(/awf=/)==null){return this.appendQueryValue(a,"awf",this.AWFrameName)
}return a
},redirectRefresh:function(){var a=this.appendFrameName(this.AWRefreshUrl);
this.redirect(a)
},redirect:function(c){this.prepareRedirectRequest();
var b=window.location;
if(B.isSafari){if(c.indexOf("/")==0){if(b.href.indexOf("awrdt=1")<0){c=c+"&awrdt=1"
}else{c=c.replace(/\&awrdt=1/,"")
}}}b.href=c;
if(B.IsIE6Only){function a(){if(document.readyState!="loading"){window.location.href=c;
setTimeout(a,500)
}}setTimeout(a,500)
}},invokeAction:function(a){this.getContent(this.formatUrl(a))
},addAWQueryValues:function(a){var c=a;
if(I){for(var b in I){c=this.appendQueryValue(c,b,I[b])
}}return c
},getContent:function(a,b){this.prepareForRequest();
a=this.addAWQueryValues(a);
if(this.UseXmlHttpRequests&&!b){Q.log("<--- Incremental get: XMLHTTP");
a=this.appendQueryValue(a,"awii","xmlhttp");
N.initiateXMLHttpRequest(a,function(e){var d=e.responseText;
ariba.Refresh.processXMLHttpResponse(d)
})
}else{Q.log("<--- Incremental get: IFRAME");
var c=this.createRefreshIFrame();
a=this.appendQueryValue(a,"awii",c.name);
c.src=this.appendFrameName(a)
}},__retryRequest:function(a){Q.log("Server responded with retry request ("+a+") -- doing IFrame retry ");
this.getContent(this.formatUrl(a),true)
},prepareForRequest:function(a){this.requestComplete();
S=true;
ariba.Refresh.enableRefreshScript();
Z.invokeRegisteredHandlers("onRefreshRequestBegin");
if(!a){O.showWaitCursor()
}setTimeout(this.startRefreshTimer.bind(this),1);
O.AWWaitMillis=20*60*1000;
if(this.AWProgressUrl){this.initProgressCheck(this.AWProgressUrl,O.AWWaitAlertMillis+2000,O.AWWaitAlertMillis)
}},isRequestInProgress:function(){return S
},requestNotInProgress:function(){S=false
},requestComplete:function(){this.requestNotInProgress();
O.hideWaitCursor()
},prepareRedirectRequest:function(){this.refreshRequestComplete();
V=false
},isRequestInProgress:function(){return S
},displayErrorDiv:function(a){var b=document.createElement("div");
b.className="debugFloat";
b.innerHTML=a;
document.body.appendChild(b)
},createRequestIFrame:function(b,e){var d=b+"Div";
var a=B.getElementById(d);
if(!a){a=document.createElement("div");
if(!e){a.style.display="none"
}a.id=d;
document.body.appendChild(a)
}var c=e?" style='border:2px solid blue;' height='300px' width='400px'":" style='border:0px;display:none' height='0px' width='0px'";
a.innerHTML="<iframe src='"+B.AWEmptyDocScriptlet+"' id='"+b+"' name='"+b+"'"+c+"></iframe>";
return B.getElementById(b)
},destroyRequestIFrame:function(a){var c=B.getElementById(a);
if(c){function b(){Z.removeEvent(c,"onload",b);
setTimeout(function(){if(!B.elementInDom(c)){Q.log("Skipped destroying Iframe: "+a+": no longer in DOM");
return 
}var d=B.getElementById(a+"Div");
if(d){d.innerHTML="";
Q.log("Destroyed Iframe: "+a)
}},1)
}Z.addEvent(c,"onload",b);
c.src=B.AWEmptyDocScriptlet
}},createRefreshIFrame:function(){if(this.AWJSDebugEnabled){var a=new Date();
Q.setRequestStartTime(a.getTime())
}return this.createRequestIFrame("AWRefreshFrame",this.AWShowRequestFrame)
},startRefreshTimer:function(){if(!B.IsMoz){X=setTimeout(this.checkRequestComplete.bind(this),500)
}},setWindowLocation:function(a){window.location=a
},checkRequestComplete:function(){Q.log("awCheckRequestComplete");
var a=B.getElementById("AWRefreshFrame");
if(!a){return 
}var d=false;
try{if(a.contentWindow&&a.contentWindow.document&&a.contentWindow.document.URL.indexOf(B.AWEmptyDocScriptlet)==-1){var c=a.contentWindow.document;
if(c.readyState){if(c.readyState!="complete"){D=setTimeout(this.checkDocumentLoad.bind(this),500)
}this.checkDocumentLoad()
}d=true
}}catch(b){d=true;
O.hideWaitCursor();
this.pingServer()
}if(!d){Q.log("continuing "+M);
M++;
if(M<30){X=setTimeout(this.checkRequestComplete.bind(this),10000)
}else{Q.log("request not initiated ...")
}}},checkDocumentLoad:function(){var b=B.getElementById("AWRefreshFrame");
if(!b){return 
}var a;
try{var d=b.contentWindow.document;
if(d.readyState){Q.log("readyState: "+d.readyState);
if(d.readyState!="complete"){D=setTimeout(this.checkDocumentLoad.bind(this),200);
return 
}}a=B.getDocumentElementById(d,"AWRefreshComplete")
}catch(c){}if(!a){this.handleRequestError()
}},refreshRequestComplete:function(){M=0;
clearTimeout(X);
clearTimeout(D);
ariba.Refresh.clearPendingCompleteRequestRun()
},handleRequestError:function(){O.hideWaitCursor();
var e=B.getElementById("AWRefreshFrame");
e.style.left=0;
e.style.top=0;
var b=B.getElementById("AWRefreshFrameDiv");
if(b){Q.log("setting location of iframediv");
b.style.position="absolute";
b.style.left=0;
b.style.top=0
}else{Q.log("just setting iframe")
}var c;
if(window.innerHeight){c=document.body;
window.scroll(0,0)
}else{c=document.documentElement;
c.scrollTop=0;
c.scrollLeft=0
}var a=c.scrollHeight>screen.availHeight?c.scrollHeight:screen.availHeight;
var d=c.scrollWidth>(screen.availWidth)?c.scrollWidth:(screen.availWidth);
b.style.width=d+"px";
b.style.height=a+"px";
e.style.width=d+"px";
e.style.height=a+"px"
},pingServer:function(){var a=this.createRequestIFrame("AWPingFrame",F);
a.src=this.AWPingUrl;
W=setTimeout(this.checkPingRequestComplete.bind(this),1000)
},checkPingRequestComplete:function(){var b=B.getElementById("AWPingFrame");
if(!b){return 
}var f=false;
try{if(b.contentWindow&&b.contentWindow.document&&b.contentWindow.document.URL.indexOf(B.AWEmptyDocScriptlet)==-1){var d=b.contentWindow.document;
f=true
}}catch(c){f=true;
this.handleRequestError()
}if(!f){T++;
if(T<30){X=setTimeout(this.checkPingRequestComplete.bind(this),10000)
}else{this.handleRequestError()
}}else{if(!F){var a=B.getElementById("AWPingFrameDiv");
if(a){document.body.removeChild(a)
}}}},initProgressCheck:function(c,e,b){function d(g){if(!S){return 
}var h=g.responseText;
Q.log("Progress check.  Message:"+h);
if(h=="--NO_REQUEST--"){var i=function(){Z.notifyRefreshComplete();
N.requestComplete()
};
if(L<=0){i()
}else{Q.log("setTimeout: AWCancelRequestDelayHandle, delay = "+L);
G=setTimeout(i,L)
}}else{O.updateWaitMessage(g.responseText);
f(b);
if(window.awStartInactivityTimer){awStartInactivityTimer()
}}}function a(){Y=null;
if(!S){return 
}N.initiateXMLHttpRequest(c,d.bind(N))
}function f(g){if(Y){clearTimeout(Y)
}Y=setTimeout(a.bind(N),g)
}f(e)
},setCancelRequestDelay:function(a){L=a
},getCancelRequestDelay:function(){return L
},clearCancelRequestDelayHandle:function(){if(G){Q.log("clearTimeout: AWCancelRequestDelayHandle");
clearTimeout(G);
G=null
}},setStatusDone:function(){window.status="Done"
},hasPopulatedFileInputContol:function(c,a){var d=c.getElementsByTagName("input");
for(var b=0;
b<d.length;
b++){var f=d.item(b);
if(f.type=="file"){if(a||f.value.length>0){return true
}}}return false
},getXMLHttp:function(){var a=null;
try{a=new XMLHttpRequest()
}catch(d){try{a=new ActiveXObject("Msxml2.XMLHTTP")
}catch(c){try{}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")
}}}return a
},_asyncGet:function(a){C.push(a);
this._notifyGet()
},nullFunc:function(){},_asyncDone:function(a){E--;
if(a){a.onreadystatechange=this.nullFunc
}this._notifyGet()
},_notifyGet:function(){if(E>2||(C.length==0)){return 
}var b=C.shift();
E++;
var a=this.getXMLHttp();
setTimeout(function(){b(a)
},0)
},initiateXMLHttpRequest:function(b,e,c){function a(f){f.open("GET",b,true);
f.setRequestHeader("Content-type","text/html");
var h=this;
f.onreadystatechange=function(){h.manageStateChange(f,e)
};
try{f.send(null)
}catch(g){alert("Error initiating request")
}}function d(f){f.open("POST",b,true);
f.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
var h=this;
f.onreadystatechange=function(){h.manageStateChange(f,e)
};
try{f.send(c)
}catch(g){alert("Error initiating request")
}}if(c){this._asyncGet(d.bind(this))
}else{this._asyncGet(a.bind(this))
}},manageStateChange:function(b,c){switch(b.readyState){case 2,3:break;
case 4:var a=function(){c(b);
this._asyncDone(b)
};
setTimeout(a.bind(this),0);
break
}},downloadContent:function(b){var a=N.createRequestIFrame("AWDownload");
a.src=this.addAWQueryValues(b)
},fileDownloadCompleteCheck:function(f,b,c){function d(h){var g=h.responseText;
if(g=="completed"){e()
}else{if(g=="started"){setTimeout(a.bind(this),c)
}else{Q.log("Error running fileDownloadCompleteCheck -- received: "+g)
}}}function e(){N.getContent(b)
}function a(){N.initiateXMLHttpRequest(f,d)
}if(f!=null&&f.length>0){setTimeout(a.bind(this),c)
}else{setTimeout(e.bind(this),c)
}},progressBarSetWidth:function(){if(B.isWindowNarrow()){var a=B.getElementById("awProgressBar");
if(a){a.width="150px"
}}},EOF:0};
Z.registerRefreshCallback(N.progressBarSetWidth.bind(N));
return N
}();
window.ariba_IR=false;
ariba.Refresh=function(){var Util=ariba.Util;
var Event=ariba.Event;
var Input=ariba.Input;
var Debug=ariba.Debug;
var Request=ariba.Request;
var Dom=ariba.Dom;
var AWDELETE="d";
var AWINSERT="i";
var AWDomSyncData=new Object();
var AWDomScopeUpdateList=new Object();
var AWRefreshStartTime;
var AWRefreshTrace;
var AWMaxRefreshTraceLength=10;
var AWWindowLoadStartTime;
var AWWindowOnLoad=false;
var _RunningIncrementalAction=false;
var _LoadedJSStrs=[];
var VBSEnqueue=false;
var VBSArray=null;
var _LoadedJS=new Array();
var AWHandlingNewRequest=false;
var AWHandlingTrackRequest=false;
var AWHistoryDebugString;
var AWHistoryBack=0;
var AWHistoryForward=0;
var AWHistoryLimit=2;
var _CheckLocInterval=null;
var _LocationCheckActive=false;
var _currentUpdateSource=null;
var _isXMLHttpResponse=false;
var _IDPat=/\s+id=(.+?)[\s>]/;
var _IDPatQuote=/\s+id=["\'](.+?)["\']/;
var _ScriptAllPat=/<script[^>]*>([\s\S]*?)<\/script>/ig;
var _ScriptOnePat=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _currScript=null;
var _pendingCompleteRequestRun=false;
var AWRefreshScriptEnabled=true;
var _ignoreRefreshComplete=false;
var _historyHandler=function(){};
var _MarkedRRs;
var _historyCurrent;
var _historyLength;
var _runCompleteRefreshOnLoad=false;
var Refresh={AWShowHistoryFrame:false,AWBackTrackUrl:"",AWForwardTrackUrl:"",AWMarkRefreshRegions:false,AWAllowParentFrame:false,_refreshTable:function(sourceHandle,poTarget){var tmpDiv=document.createElement("div");
tmpDiv.innerHTML=_currentUpdateSource.getOuterHtml(sourceHandle);
var tmpTable=tmpDiv.firstChild;
this.replaceRows(tmpTable,poTarget)
},_scopeUpdate:function(sourceHandle){var id=_currentUpdateSource.getId(sourceHandle);
var target=Dom.getElementById(id);
if(target){Dom.setOuterHTML(target,_currentUpdateSource.getOuterHtml(sourceHandle));
this._markRR(Dom.getElementById(id))
}else{alert("scopeUpdate target not found: "+id)
}},replaceRows:function(poSourceTable,poTargetTable){var targetTBody=Dom.findChild(poTargetTable,"TBODY");
var sourceRows=Dom.findChild(poSourceTable,"TBODY").childNodes;
var elementDomSyncData=this.findDomSyncElementData(poSourceTable.id);
var i,target;
Debug.log("replaceRows -- table: "+poSourceTable.id+", count: "+sourceRows.length);
var insertArray=elementDomSyncData[AWINSERT];
for(i=0;
insertArray&&i<insertArray.length;
i+=2){var element=Dom.findElement(sourceRows,insertArray[i+1]);
target=null;
if(insertArray[i]=="null"){var rows=targetTBody.childNodes;
var rowNum=0;
while(rowNum<rows.length){var row=rows[rowNum++];
if(row.id!=""){target=row;
break
}}}else{target=Dom.getElementById(insertArray[i]);
target=target.nextSibling;
while(target&&!target.tagName){target=target.nextSibling
}}if(target){targetTBody.insertBefore(element,target)
}else{targetTBody.appendChild(element)
}this._markRR(element)
}i=0;
while(i<sourceRows.length){var sourceRow=sourceRows[i];
if(sourceRow.nodeName=="TR"&&sourceRow.id){var targetRow=Dom.findRow(targetTBody,sourceRow.id);
if(targetRow==null){i++
}else{targetTBody.replaceChild(sourceRow,targetRow);
this._markRR(sourceRow)
}}else{i++
}}},handleUpdateError:function(message){var shouldDebug=false;
if(Request.AWDebugEnabled){shouldDebug=confirm(message+".\n\nShow details?")
}if(shouldDebug){var msg=['<h1>Refresh Trace</h1><textarea cols="150" rows="46">'];
if(AWRefreshTrace!=null){for(var i=0;
i<AWRefreshTrace.length;
i=i+2){msg.push("\n=============== Main content ("+i/2+") ====================");
msg.push(AWRefreshTrace[i]);
msg.push("\n=============== Incremental update ("+i/2+") ====================");
msg.push(AWRefreshTrace[i+1])
}}msg.push("</textarea>");
Request.displayErrorDiv(msg.join("\n"))
}else{top.location.href=top.ariba.Request.appendFrameName(top.ariba.Request.AWRefreshUrl)
}return false
},_updateRefreshTrace:function(){var refreshFrame=Dom.getElementById("AWRefreshFrame");
if(false&&Request.AWDebugEnabled){if(AWRefreshTrace==null){AWRefreshTrace=new Array()
}var refreshBody=refreshFrame.contentWindow.document.body;
if(refreshBody){if(AWRefreshTrace.length==AWMaxRefreshTraceLength){for(var traceIndex=0;
traceIndex<AWRefreshTrace.length-2;
traceIndex++){AWRefreshTrace[traceIndex]=AWRefreshTrace[traceIndex+1]
}AWRefreshTrace.length=AWMaxRefreshTraceLength-2
}AWRefreshTrace[AWRefreshTrace.length]=Dom.getOuterHTML(document.body);
AWRefreshTrace[AWRefreshTrace.length]=Dom.getOuterHTML(refreshBody)
}}},IFrameUpdateSource:function(){var refreshFrame=Dom.getElementById("AWRefreshFrame");
var body=Dom.findChild(refreshFrame.contentWindow.document,"BODY");
var elements=[];
if(body!=null){var refreshNodes=body.childNodes;
for(var i=0;
i<refreshNodes.length;
i++){var source=refreshNodes[i];
if(source.id&&source.getAttribute("ignore")!="true"){elements.push(source)
}}}return{getHandles:function(){return elements
},getId:function(handle){return handle.id
},getHandleForId:function(id){return refreshFrame.contentWindow.document.getElementById(id)
},getNodeName:function(handle){return handle.nodeName
},getInnerHtml:function(handle){return handle.innerHTML
},getOuterHtml:function(handle){return Dom.getOuterHTML(handle)
}}
},XMLHTTPUpdateSource:function(response){var ids=[];
var info={};
function init(){var start=0;
while(start!=-1){start+=10;
var end=response.indexOf("<!--@&@-->",start);
var body=(end==-1)?response.substring(start):response.substring(start,end);
var tagEnd=body.indexOf(">");
var tag=body.substring(0,tagEnd+1);
var nodeNameEnd=tag.indexOf(" ");
var nodeName=tag.substring(1,nodeNameEnd).toUpperCase();
var m=_IDPatQuote.exec(tag);
if(!m){m=_IDPat.exec(tag)
}if(m){var id=m[1];
ids.push(id);
info[id]={body:body,nodeName:nodeName}
}start=end
}}init();
return{getHandles:function(){return ids
},getId:function(handle){return handle
},getHandleForId:function(id){return id
},getNodeName:function(handle){return info[handle].nodeName
},getInnerHtml:function(handle){var body=info[handle].body;
var start=body.indexOf(">"),end=body.lastIndexOf("<");
return body.substring(start+1,end)
},getOuterHtml:function(handle){return info[handle].body
}}
},evalScriptTags:function(str){var matches=str.match(_ScriptAllPat)||[];
for(var i=0;
i<matches.length;
i++){var outer=matches[i];
var m=_ScriptOnePat.exec(outer);
_currScript=m[2];
if(m[1].indexOf("VBScript")==-1){eval(_currScript)
}else{Event.GlobalEvalVBScript(_currScript)
}_currScript=null
}},processXMLHttpResponse:function(response){window.ariba_IR=_isXMLHttpResponse=true;
try{_pendingCompleteRequestRun=true;
_currentUpdateSource=new this.XMLHTTPUpdateSource(response);
this.evalScriptTags(response)
}catch(e){Request.displayErrorDiv("<h1>Error applying incremental refresh</h1><b>"+e+"</b><br/><br/><b>Script:</b> <pre><code>"+_currScript+"</code></pre><br/><br/><h2>Attaching full response content below...</h2>"+response);
throw (e)
}finally{window.ariba_IR=_isXMLHttpResponse=false
}setTimeout(function(){if(_pendingCompleteRequestRun){Request.displayErrorDiv("<h1>Bad XMLHTTP Incremental Refresh Response</h1><h2>Attaching full response content below...</h2>"+response)
}},1)
},_markRR:function(target){if(this.AWMarkRefreshRegions){Dom.addClass(target,"showRR");
if(!_MarkedRRs){_MarkedRRs=[]
}_MarkedRRs.push(target)
}},clearPendingCompleteRequestRun:function(){_pendingCompleteRequestRun=false
},enableRefreshScript:function(){AWRefreshScriptEnabled=true
},domRefreshContentCallback:function(){if(_MarkedRRs){while(_MarkedRRs.length){var e=_MarkedRRs.pop();
try{Dom.removeClass(e,"showRR")
}catch(e){}}}if(Request.AWJSDebugEnabled){AWRefreshStartTime=(new Date()).getTime()
}var i,target;
if(!Util.isNullOrUndefined(AWDomSyncData)){for(var elementId in AWDomSyncData){var elementDomSyncData=AWDomSyncData[elementId];
var deleteArray=elementDomSyncData[AWDELETE];
if(deleteArray){target=Dom.getElementById(elementId);
var targetTBody=Dom.findChild(target,"TBODY");
for(i=0;
i<deleteArray.length;
i++){var child=Dom.getElementById(deleteArray[i]);
if(Util.isNullOrUndefined(child)){return this.handleUpdateError("AW: Error detected during delete. Unable to find element '"+deleteArray[i]+"'")
}targetTBody.removeChild(child)
}}}}var handles=_currentUpdateSource.getHandles();
for(i=0;
i<handles.length;
i++){var handle=handles[i];
var id=_currentUpdateSource.getId(handle);
var nodeName=_currentUpdateSource.getNodeName(handle);
target=Dom.getElementById(id);
if(Util.isNullOrUndefined(target)){this.handleUpdateError("AW: Error detected during update. Unable to find element '"+id+"'")
}if(AWDomScopeUpdateList&&AWDomScopeUpdateList[id]=="true"){this._scopeUpdate(handle)
}else{if(nodeName=="TABLE"){this._refreshTable(handle,target)
}else{if(nodeName=="DIV"||nodeName=="SPAN"){var scrollTop=target.scrollTop;
target.innerHTML=_currentUpdateSource.getInnerHtml(handle);
if(scrollTop){target.scrollTop=scrollTop
}this._markRR(target)
}else{if(Dom.isNetscape()&&target.nodeName=="PRE"){target.innerHTML=_currentUpdateSource.getInnerHtml(handle);
this._markRR(target)
}else{this.handleUpdateError("AW: Error detected during update. Unknown refresh node type '"+target.nodeName+", element '"+id+"'")
}}}}}AWDomSyncData=null;
AWDomScopeUpdateList=null
},windowOnLoad:function(){AWWindowOnLoad=true;
AWWindowLoadStartTime=(new Date()).getTime();
this.refreshComplete();
AWWindowOnLoad=false
},checkParentFrame:function(allowParentFrame){var enablePage=allowParentFrame||top==self;
if(!enablePage){var pop=true;
try{if(top.location.hostname==document.location.hostname){pop=false;
enablePage=true
}}catch(e){}if(pop){top.location=self.location
}}if(enablePage){document.body.style.visibility="visible";
document.body.style.display=""
}},refreshComplete:function(){Debug.log("Refresh complete called...");
if(this.AWMarkRefreshRegions){Dom.addClass(document.body,"rrVis")
}else{Dom.removeClass(document.body,"rrVis")
}Event.notifyRefreshComplete()
},findDomSyncElementData:function(parentBufferName){if(AWDomSyncData==null){AWDomSyncData=new Object()
}if(!AWDomSyncData[parentBufferName]){AWDomSyncData[parentBufferName]=new Object()
}return AWDomSyncData[parentBufferName]
},registerScopeChanges:function(parentBufferName,inserts,deletes){var elementDomSyncData=this.findDomSyncElementData(parentBufferName);
elementDomSyncData[AWINSERT]=inserts;
elementDomSyncData[AWDELETE]=deletes
},registerScopeUpdate:function(elementName){if(AWDomScopeUpdateList==null){AWDomScopeUpdateList=new Object()
}AWDomScopeUpdateList[elementName]="true"
},registerGlobalJS:function(str){if(_LoadedJSStrs[str]=="true"){Debug.log("awRegisterGlobalJS: Skipping reload of already registered JS: "+str)
}else{_LoadedJSStrs[str]="true";
this.insertGlobalJS(str)
}},RSS:function(sync,isGlobalScope,funcString){_RunningIncrementalAction=true;
var func=function(){try{if(isGlobalScope){var bodyString=Refresh.extractFuncBody(funcString);
ariba.Debug.log("Executing AWClientSideScript ["+bodyString+"]");
Refresh.registerGlobalJS(bodyString)
}else{eval("var f="+funcString+"; f.call();")
}}catch(e){e.message="Exception evaluating script: \n\n"+funcString+"\n -- \n"+e.message;
throw e
}};
Refresh.RSF(sync,false,func)
},RSF:function(sync,isGlobalScope,func){if(!AWRefreshScriptEnabled){return 
}if(sync){func.call(null)
}else{if(isGlobalScope){var funcStr=this.extractFuncBody(func.toString());
func=function(){Refresh.registerGlobalJS(funcStr)
}
}Event.registerUpdateCompleteCallback(func)
}},RVBS:function(id,isGlobalScope){Event.registerUpdateCompleteCallback(function(){Refresh.execVBS(id,isGlobalScope)
})
},execVBS:function(id,isGlobalScope){if(VBSEnqueue){if(!VBSArray){VBSArray=[]
}VBSArray[VBSArray.length]=[id,isGlobalScope];
return 
}var pre=Dom.getElementById(id);
var preInnerText=Dom.getInnerText(pre);
if(Dom.IsIE){try{Event.GlobalEvalVBScript(preInnerText)
}catch(e){var msg="execVBS: exception evaluting script at id: "+id+"\n"+e.description;
if(pre&&preInnerText){msg+="\n\n"+preInnerText
}alert(msg)
}}},flushVBSQueue:function(){VBSEnqueue=false;
if(VBSArray!=null){for(var i=0;
i<VBSArray.length;
i++){this.execVBS(VBSArray[i][0],VBSArray[i][1])
}}},extractFuncBody:function(str){var re=/function\s*\(\)\s*\{((.|\s)*)\}$\s*/m;
var m=re.exec(str);
var bodyString="";
if(m){bodyString=m[1]
}else{alert("No Match: !  -- "+str)
}return bodyString
},insertGlobalJS:function(str){var head=document.getElementsByTagName("head")[0];
var scriptElem=document.createElement("script");
scriptElem.setAttribute("type","text/javascript");
head.appendChild(scriptElem);
scriptElem.text=str
},loadJSFile:function(url,noRetry){if(_LoadedJS[url]==1){return 
}_LoadedJS[url]=1;
Debug.log("JS Load initiated ("+_RunningIncrementalAction+"): "+url);
var scriptHolder=[];
function applyJS(){if(scriptHolder.length>0){Debug.log("Applying JS: "+url);
this.insertGlobalJS(scriptHolder[0]);
if(!Dom.IsIE){Event.refreshIncrementNesting();
setTimeout(Event.notifyRefreshComplete.bind(Event),0)
}}else{if(noRetry){alert("Failed to load JS: "+url)
}else{_LoadedJS[url]=0;
this.loadJSFile(url,true)
}}}function httpSuccess(http){scriptHolder[0]=http.responseText;
Debug.log("JS Load complete: "+url);
Event.notifyRefreshComplete()
}Event.refreshIncrementNesting();
Event.registerUpdateCompleteCallback(applyJS.bind(this));
Request.simpleXMLHTTP(url,httpSuccess.bind(this))
},iFrameFormSubmit:function(iframeFormName){ariba.Request.prepareRedirectRequest();
var us=_currentUpdateSource||new this.IFrameUpdateSource();
var handle=us.getHandleForId(iframeFormName);
var formHtml=us.getOuterHtml(handle);
var div=document.createElement("div");
document.body.appendChild(div);
div.innerHTML=formHtml;
var realForm=div.firstChild;
realForm.submit()
},completeRequest:function(current,length,isRefreshRequest,ignoreRefreshComplete){_ignoreRefreshComplete=ignoreRefreshComplete;
if(!_isXMLHttpResponse&&Dom.isSafari&&isRefreshRequest){_historyCurrent=current;
_historyLength=length;
_runCompleteRefreshOnLoad=true
}else{this._completeRequest(current,length,isRefreshRequest)
}},ignoreRefreshComplete:function(){return _ignoreRefreshComplete
},completeRefreshOnLoad:function(){if(_runCompleteRefreshOnLoad){_runCompleteRefreshOnLoad=false;
ariba.Debug.log("completeRefreshOnLoad");
this._completeRequest(_historyCurrent,_historyLength,true)
}},_completeRequest:function(current,length,isRefreshRequest){_pendingCompleteRequestRun=false;
AWRefreshScriptEnabled=false;
Event.eventLock();
if(_isXMLHttpResponse){isRefreshRequest=true
}if(isRefreshRequest){Debug.log("*** refresh");
Event.invokeRegisteredHandlers("onRefreshRequestComplete");
Request.refreshRequestComplete();
if(_isXMLHttpResponse){this.domRefreshContentCallback()
}else{_currentUpdateSource=new this.IFrameUpdateSource();
this.domRefreshContentCallback();
if(!Request.AWShowRequestFrame){Request.destroyRequestIFrame("AWRefreshFrame")
}}_currentUpdateSource=null;
if(current!=null&&length!=null){Event.registerUpdateCompleteCallback(function(){Refresh.updateHistory(current,length)
})
}if(Input.AWAutomationTestModeEnabled){Event.registerUpdateCompleteCallback(function(){setTimeout(Request.setStatusDone.bind(Request),0)
})
}this.refreshComplete()
}else{Debug.log("*** full page update");
if(current!=null&&length!=null){Event.registerUpdateCompleteCallback(this.updateHistory.bind(this),[current,length])
}Event.registerRefreshCallback(Request.requestComplete.bind(Request))
}var e=Dom.getElementById("FPR_Warning");
if(e){if(isRefreshRequest){if(e.tagName=="DIV"){Dom.getElementById("debugBar").className="debugBar"
}e.className="";
e.innerHTML=""
}else{Dom.getElementById("debugBar").className="debugBarVis";
var msg=e.innerHTML;
if(msg&&msg.indexOf("(OK)")>=0){e.className="debugWarning";
e.innerHTML="Full Page Refresh: <br/>"+e.innerHTML
}else{e.className="debugError";
e.innerHTML="FULL PAGE REFRESH!: <br/>"+e.innerHTML
}}}if(Request.AWJSDebugEnabled){Request.AWUpdateCompleteTime=(new Date()).getTime();
setTimeout(this.debugRequestComplete.bind(this),0)
}Event.eventUnlock()
},debugRequestComplete:function(){if(this.AWJSDebugEnabled){var currTime=(new Date()).getTime();
var total="n/a";
var refreshTime="n/a";
var postRefreshTime="n/a";
var onloadTime="n/a";
var requestStartTime=Debug.getRequestStartTime();
if(!Util.isNullOrUndefined(requestStartTime)){total=currTime-requestStartTime
}else{Debug.log("Null start time. Request not initiated through iframe.")
}if(!Util.isNullOrUndefined(AWRefreshStartTime)){refreshTime=currTime-AWRefreshStartTime
}if(!Util.isNullOrUndefined(this.AWUpdateCompleteTime)){postRefreshTime=currTime-this.AWUpdateCompleteTime
}if(!Util.isNullOrUndefined(AWWindowLoadStartTime)){onloadTime=currTime-AWWindowLoadStartTime
}Debug.log("--> request complete - total:"+total+" onload: "+onloadTime+" refresh:"+refreshTime+" postRefresh:"+postRefreshTime)
}},loadLazyChildren:function(divObject,postLoadCallback){var childrenArray=Dom.getChildren(divObject);
var arrayLength=childrenArray.length;
var index=0;
var val=false,loaded;
for(index=0;
index<arrayLength;
index++){var childObject=childrenArray[index];
if(childObject.tagName=="DIV"){loaded=this.loadLazyDiv(childObject,postLoadCallback);
val=val||loaded
}else{if(childObject.tagName=="SPAN"){loaded=this.loadLazyChildren(childObject,postLoadCallback);
val=val||loaded
}}}return val
},loadLazyDivCallback:function(divObject,xmlhttp){var parent=divObject.parentNode;
this.evalScriptTags(xmlhttp.responseText);
AWRefreshScriptEnabled=false;
Dom.setOuterHTML(divObject,xmlhttp.responseText);
Refresh.refreshComplete();
this.markDivLoadingDone(divObject);
Input.hideWaitCursor();
Event.notifyParents(parent,"lazyCallback");
this.postLoadLazyDiv();
if(Input.AWAutomationTestModeEnabled){setTimeout(Request.setStatusDone.bind(Request),0)
}},loadLazyDiv:function(divObject,postLoadCallback){if(this.divNeedsLoading(divObject)){this.markDivLoadingInProgress(divObject);
Request.prepareForRequest();
var divId=divObject.id;
var url=Request.formatSenderUrl(divId);
Request.initiateXMLHttpRequest(url,function(xmlhttp){var div=Dom.getElementById(divId);
if(div){if(postLoadCallback){postLoadCallback(div,xmlhttp)
}else{Refresh.loadLazyDivCallback(div,xmlhttp)
}}});
return true
}else{if(this.loadLazyChildren(divObject,postLoadCallback)){return true
}}return false
},markDivLoadingInProgress:function(divObject){divObject.setAttribute("awneedsLoading","inProgress")
},markDivLoadingDone:function(divObject){divObject.setAttribute("awneedsLoading","false")
},divNeedsLoading:function(divObject){return divObject.getAttribute("awneedsLoading")=="true"
},childrenNeedLoading:function(divObject){var childrenArray=Dom.getChildren(divObject);
var arrayLength=childrenArray.length;
var index=0;
for(index=0;
index<arrayLength;
index++){var childDiv=childrenArray[index];
if(childDiv.tagName=="DIV"||childDiv.tagName=="SPAN"){if(this.divNeedsLoading(childDiv)){return true
}else{return this.childrenNeedLoading(childDiv)
}}}return false
},evalOnVisibleScript:function(element){var children=element.childNodes;
for(var index=children.length-1;
index>-1;
index--){var child=children[index];
if(child.id=="_awonVisible"){var onVisibleScript=child.innerHTML;
eval(onVisibleScript);
return 
}}},undisplayDiv:function(divObject){if(divObject!=null){divObject.style.display="none";
Dom.unoverlay(divObject)
}},getHistoryIFrame:function(){return Dom.getElementById("AWHistoryControl")
},createHistoryIFrame:function(){var iframeDiv=Dom.getElementById("AWHistoryFrameDiv");
if(!iframeDiv){alert("AWHistoryFrameDiv not found")
}var height=this.AWShowHistoryFrame?"height='55px'":" height='0px' width='0px'";
iframeDiv.innerHTML="<iframe src='"+Dom.AWEmptyDocScriptlet+"' id='AWHistoryControl' name='AWHistoryControl' style='border:0px'"+height+"></iframe>";
return this.getHistoryIFrame()
},updateHistory:function(current,length){var backCount=current;
if(backCount>AWHistoryLimit){backCount=AWHistoryLimit
}var forwardCount=0;
if(length-1-current>=1){forwardCount=1
}var iframe=this.getHistoryIFrame();
if(iframe){if(AWHistoryBack==backCount&&AWHistoryForward==forwardCount){return 
}}else{}AWHandlingNewRequest=true;
AWHistoryDebugString="back: "+(backCount+1)+" forward: "+forwardCount;
AWHistoryBack=backCount;
AWHistoryForward=forwardCount;
setTimeout(this.startBacktrackHistoryCreate.bind(this),10)
},historyRequest:function(distance){if(AWHandlingNewRequest){AWHandlingNewRequest=false;
return 
}if(_CheckLocInterval){clearInterval(_CheckLocInterval);
_CheckLocInterval=null
}if(distance==-1){AWHandlingTrackRequest=true;
Request.getContent(this.AWBackTrackUrl)
}else{if(distance==1){AWHandlingTrackRequest=true;
Request.getContent(this.AWForwardTrackUrl)
}else{alert("refresh?")
}}},startBacktrackHistoryCreate:function(){if(Dom.IsIE){var iframe=this.createHistoryIFrame()
}else{if(!_CheckLocInterval){_CheckLocInterval=setInterval(this.checkForLocationChange.bind(this),100)
}}_LocationCheckActive=false;
this.createBacktrackHistory(AWHistoryBack+1,AWHistoryForward)
},checkForLocationChange:function(){if(!_LocationCheckActive){return 
}var loc=Dom.getHashLocation();
this.processLocationChange(loc)
},processLocationChange:function(loc){if(loc&&loc!="b0"){var dir=loc.charAt(0);
if(dir=="b"){this.historyRequest(-1)
}else{if(dir=="f"){this.historyRequest(1)
}}}},createBacktrackHistory:function(backCount,forwardCount){if(backCount>0){AWHandlingNewRequest=true;
this.backtrackHistory(backCount-1,forwardCount)
}else{this.createForwardtrackHistory(forwardCount,forwardCount)
}},createForwardtrackHistory:function(forwardCount,currentCount){if(forwardCount>0){AWHandlingNewRequest=true;
this.forwardtrackHistory(forwardCount-1,currentCount)
}else{if(currentCount!=0){AWHandlingNewRequest=true;
_historyHandler=function(){_historyHandler=Refresh.processLocationChange.bind(Refresh)
};
history.go(-currentCount)
}else{_historyHandler=Refresh.processLocationChange.bind(Refresh)
}AWHandlingNewRequest=false;
_LocationCheckActive=true
}},historyKey:function(url){var m=url.toString().match(/(&|\?)k=(\w+)/);
return m?m[2]:null
},historyEvent:function(url){_historyHandler(this.historyKey(url))
},addHistory:function(key,postAddHandler){var iframe=this.getHistoryIFrame();
if(this.historyKey(iframe.src)==key){key+="1"
}iframe.src=Request.AWReqUrl+"?awh=s&k="+key;
_historyHandler=postAddHandler
},backtrackHistory:function(backCount,forwardCount){if(Dom.IsIE){this.addHistory("b",function(key){Refresh.createBacktrackHistory(backCount,forwardCount)
})
}else{function bt(){window.location.hash="b"+backCount;
Refresh.createBacktrackHistory(backCount,forwardCount)
}setTimeout(bt,50)
}},forwardtrackHistory:function(forwardCount,currentCount){Debug.log("Add Forwardtrack: "+forwardCount);
if(Dom.IsIE){this.addHistory("f",function(key){Refresh.createForwardtrackHistory(forwardCount,currentCount)
})
}else{function ft(){window.location.hash="f"+forwardCount;
Refresh.createForwardtrackHistory(forwardCount,currentCount)
}setTimeout(ft,50)
}},EOF:0};
if(Dom.IsIE){Util.extend(Refresh,function(){var AWCurrDiv_IE;
return{postLoadLazyDiv:function(){if(AWCurrDiv_IE&&Dom.elementInDom(AWCurrDiv_IE)){Dom.repositionDivToWindow(AWCurrDiv_IE);
Dom.overlay(AWCurrDiv_IE,true)
}AWCurrDiv_IE=null
},preDisplayDiv:function(divObject){},displayDiv:function(divObject,mode,needsUpdate,skipOverlay){if(divObject!=null){divObject.style.display=(mode?mode:"");
AWCurrDiv_IE=divObject;
this.loadLazyDiv(divObject);
if(!skipOverlay){this.preDisplayDiv(divObject);
Dom.overlay(divObject,needsUpdate)
}this.evalOnVisibleScript(divObject)
}},EOF:0}
}())
}if(!Dom.IsIE){Util.extend(Refresh,function(){var AWCurrDiv_NS;
return{postLoadLazyDiv:function(mode){if(AWCurrDiv_NS){mode=mode?mode:"";
AWCurrDiv_NS.style.display=mode;
Dom.repositionDivToWindow(AWCurrDiv_NS);
AWCurrDiv_NS=null
}},displayDiv:function(divObject,mode,needsUpdate){if(divObject!=null){mode=mode?mode:"";
divObject.style.display=mode;
AWCurrDiv_NS=divObject;
if(!Refresh.loadLazyDiv(divObject)){this.postLoadLazyDiv(mode)
}this.evalOnVisibleScript(divObject)
}},EOF:0}
}())
}window.onload=Refresh.windowOnLoad.bind(Refresh);
return Refresh
}();
function RJS(C,A,D,B){if(ariba.Refresh._isXMLHttpResponse){if(C){ariba.Refresh.RSS(A,D,B.toString())
}}else{ariba.Refresh.RSF(A,D,B)
}}ariba.Handlers=function(){var K=ariba.Event;
var I=ariba.Input;
var B=ariba.Request;
var G=ariba.Dom;
var A="awfa";
var H="awdidchg";
var D="AWPopupSelectedCaptured";
var F=null;
var E;
var J=false;
function L(N){var P=N.getAttribute("_pl");
if(P){var O=N.value;
if(P==O){N.value="";
G.removeClass(N,"ph")
}}}var M={AWActionPopupEnabled:true,mouseWheelOnPopup:function(N,O){K.cancelBubble(O);
return false
},actionPopupChanged:function(N,Q){if(this.AWActionPopupEnabled){N.setAttribute(H,"0");
var O=N.options[N.selectedIndex];
var R=O.value;
if(R=="awnop"){N.selectedIndex=N.selectedIndex-1;
return false
}this.AWActionPopupEnabled=false;
var P;
if(R=="awaction"){P=N.form;
G.addFormField(P,B.AWSenderIdKey,O.id);
B.submitForm(P,null,null,true)
}else{P=N.form;
G.addFormField(P,B.AWSenderIdKey,N.name);
B.submitForm(P,null,null,true)
}return true
}this.AWActionPopupEnabled=true;
return true
},actionPopupKeyDown:function(N,Q){var O=K.keyCode(Q);
if(O==I.KeyCodeEnter||O==I.KeyCodeTab){var P=N.getAttribute(D);
if(N.getAttribute(H)=="1"||(!Util.isNullOrUndefined(P)&&(N.selectedIndex!=P))){this.AWActionPopupEnabled=true;
return this.actionPopupChanged(N,Q)
}}else{if(O==I.KeyCodeArrowUp||O==I.KeyCodeArrowDown){N.setAttribute(H,"1");
N.setAttribute(D,null);
this.AWActionPopupEnabled=false
}else{this.AWActionPopupEnabled=false;
N.setAttribute(D,N.selectedIndex)
}}return true
},textFieldRefresh:function(P,O){var N=G.getElementById(P);
G.addFormField(N,B.AWSenderIdKey,O);
B.submitForm(N,null);
return true
},resetTextFieldChanged:function(){if(F!=null){F=null;
K.updateDocHandler("click",null)
}},textRefresh:function(Q,N){var O=K.keyCode(Q);
if(O==I.KeyCodeShift){return true
}if((O==I.KeyCodeEnter&&N.nodeName!="TEXTAREA")||O==I.KeyCodeTab){if(N.getAttribute(H)=="1"){N.setAttribute(H,"0");
return this.textFieldRefresh(N.form.id,N.name)
}}else{N.setAttribute(H,"1");
if(K.getDocHandler("click")==null){K.registerUpdateCompleteCallback(this.resetTextFieldChanged.bind(this));
F=N.id;
var P=function(T){if(F!=null){T=T?T:event;
var R=G.getElementById(F);
if(R!=null){var S=R.form;
return M.textFieldRefresh(S.id,R.name)
}}}.bindEventHandler(this);
K.updateDocHandler("click",P)
}}return true
},checkCapsLockErrorTxtRfrsh:function(O,N){this.checkCapsLockError(O);
return this.textRefresh(O,N)
},checkCapsLockError:function(N){if(E){if(K.keyCode(N)==I.KeyCodeCapsLock||K.keyCode(N)==I.KeyCodeBackspace){this.hideCapsLockError()
}}},hideCapsLockError:function(){if(E&&E.style.display!="none"){G.fadeOutElement(E);
E.style.display="none";
E=null
}},noCapsLockTxt:function(T,O,N){var S=0;
var Q=false;
if(document.all){S=T.keyCode;
Q=T.shiftKey
}else{if(document.getElementById){S=T.which;
Q=T.shiftKey
}else{return true
}}if(((S>=65&&S<=90)&&!Q)||((S>=97&&S<=122)&&Q)){var U=G.getElementById(N);
if(U&&U.style.display!="block"){U.style.display="block";
var P=G.absoluteTop(O);
var R=G.absoluteLeft(O)+O.offsetWidth+2;
U.style.top=G.correctForBottomEdge(P,U)+"px";
U.style.left=G.correctForRightEdge(R,U)+"px";
G.fadeInElement(U);
E=U
}}else{this.hideCapsLockError()
}return true
},hPassFocus:function(O,N){G.removeClass(O.parentNode,"pfc");
I.focus(O)
},hPassBlur:function(O,N){if(!O.value){G.addClass(O.parentNode,"pfc")
}},hTextKeyPress:function(N,O){if(I.isCharChange(O)){L(N)
}},hTextClick:function(N,O){L(N)
},hTextBlur:function(N,Q){var P=N.getAttribute("_pl");
if(P){var O=N.value;
if(!O){N.value=P;
G.addClass(N,"ph")
}}},textNoSubmit:function(O,N){if(K.keyCode(O)==I.KeyCodeEnter){K.cancelBubble(O);
return false
}},virtualFormKeyPress:function(N,R){R=R?R:event;
var O=K.keyCode(R);
if(O==I.KeyCodeEnter){var Q=N.id;
var P=G.findParent(N,"FORM",false);
G.addFormField(P,B.AWSenderIdKey,Q);
B.submitForm(P,null);
K.cancelBubble(R)
}return false
},hSubmit:function(O,N){B.submitForm(O,N)
},hKeyDown:function(O,N,P){if((P.type=="keypress")&&(K.keyCode(P)!=I.KeyCodeEnter)){return true
}return B.submitFormForElementName(O,N,P)
},hPopupChanged:function(N,O){return this.actionPopupChanged(N,O)
},hLinkClick:function(Q,N,O,P){if(J){J=false;
return false
}if((P.type=="keypress")&&(K.keyCode(P)!=I.KeyCodeEnter)){return true
}B.gotoLink(Q,N,O,P);
return false
},hTagClick:function(N,T,P,O,S,R,Q){return this.tagOnClick(N,T,P,O,S,R,Q)
},hTagKeyDown:function(N,S,P,O,R,Q){return this.tagOnKeyPress(N,S,P,O,R,Q)
},hTagRefreshKeyDown:function(N,S,P,O,R,Q){if(this.tagOnKeyPress(N,S,P,O,R,Q)){return this.textRefresh(R,N)
}return false
},hPopupAction:function(N,P){var O=N.options[N.selectedIndex];
if(O.value.match(/^aw/)==null){this.AWActionPopupEnabled=false
}return this.actionPopupChanged(N,P)
},hSubmitAtIndex:function(N,P,O){return B.submitFormAtIndexWithHiddenField(N,P,O)
},hOpenWindow:function(P,N,O){return G.openWindow(P,N,O)
},hActionPopupKeyDown:function(N,O){return this.actionPopupKeyDown(N,O)
},hMouseWheelOnPopup:function(N,O){return this.mouseWheelOnPopup(N,O)
},hVirtualFormKeyPress:function(N,O){return this.virtualFormKeyPress(N,O)
},tagOnClick:function(N,T,P,O,S,R,Q){return B.senderClicked(N.id,T,P,O,S,R,N.value,Q)
},tagOnKeyPress:function(N,S,P,O,R,Q){if(K.keyCode(R)==I.KeyCodeEnter){this.tagOnClick(N,S,P,O,R,Q);
ariba.Event.cancelBubble(R);
return false
}return true
},fireActionInScope:function(S,R){if(K.keyCode(R)==I.KeyCodeEnter){var N=K.eventSourceElement(R);
var Q=false;
if(N&&N.nodeName=="INPUT"){Q=N.type=="text"||N.type=="password"
}if(Q){var P=ariba.Handlers.fireDefaultActionButton(S,R);
if(G.boolAttr(S,"_hfa",false)&&K.shouldBubble(R)){var O=S[A];
K.cancelBubble(R);
G.addFormField(S,B.AWSenderIdKey,O.value);
B.submitForm(S);
P=false
}return P
}}return true
},fakeClick:function(Q,P){if(Q){K.elementInvoke(Q,"mousein");
K.elementInvoke(Q,"mousedown");
var O=K.elementInvoke(Q,"click");
K.cancelBubble(P);
var N=function(){if(G.elementInDom(Q)){K.elementInvoke(Q,"mouseout")
}}.bind(this);
if(B.isRequestInProgress()){K.registerUpdateCompleteCallback(N)
}else{setTimeout(N,1000)
}return O
}return true
},fireDefaultActionButton:function(P,N){var O=G.findChildUsingPredicate(P,function(Q){return Q.tagName&&G.boolAttr(Q,"_isdef",false)
});
return this.fakeClick(O,N)
},ignoreKey:function(N){N=N?N:event;
K.preventDefault(N);
K.cancelBubble(N);
return false
},ignoreKeyDown:function(N){I.showWaitAlert();
this.ignoreKey(N);
return false
},_awHandlers_MARKER:function(){},EOF:0};
var C={click:function(P,N){if(P.getAttribute("_sL")){B.redirect(P.getAttribute("_sL"));
return true
}if(G.boolAttr(P,"_dC",false)){return true
}var O=G.boolAttr(P,"_sf",true)?G.lookupFormId(P):null;
return ariba.Handlers.tagOnClick(P,O,P.getAttribute("_t"),P.getAttribute("_a"),N,G.boolAttr(P,"_av"),P.getAttribute("_w"))
},keypress:function(O,N){if(G.boolAttr(O,"_dC",false)){return true
}return(K.keyCode(N)==I.KeyCodeEnter)?C.click(O,N):true
}};
K.registerBehaviors({GAT:C,HL:{prototype:C},TF:{keypress:function(O,N){ariba.Handlers.hTextKeyPress(O,N);
return ariba.Handlers.textNoSubmit(N,O)
},keydown:function(Q,N){var O=Q.getAttribute("_tf");
if(!O){return true
}var P=G.lookupFormId(Q);
return(O=="AC")?ariba.Handlers.hTagKeyDown(Q,P,null,null,N,false,null):(O=="ROKP")?ariba.Handlers.hTagRefreshKeyDown(Q,P,null,null,N,false,null):ariba.Handlers.textRefresh(N,Q)
},click:function(O,N){ariba.Handlers.hTextClick(O,N);
return true
}},PF:{click:function(P,N){var O=G.findChild(P,"INPUT");
ariba.Handlers.hPassFocus(O);
return true
}},TA:{keyup:function(O,N){ariba.Dom.limitTextLength(O,O.getAttribute("_mL"))
},keydown:function(O,N){return G.boolAttr(O,"_isRF",false)?ariba.Handlers.textRefresh(N,O):true
}},AS:{keydown:function(O,N){M.fireActionInScope(O,N)
}},ROV:{mouseover:function(P,N){var O=P.getAttribute("roClass")||"hov";
P.setAttribute("origClass",P.className);
P.className=O;
return true
},mouseout:function(O,N){O.className=O.getAttribute("origClass");
return true
}}});
if(window==ariba.awCurrWindow){if(G.IsIE6Only){K.registerRefreshCallback(G.updateOverlayIframes.bind(G))
}}return M
}();
