
var __aspxInvalidDimension=-10000;var __aspxInvalidPosition=-10000;var __aspxAbsoluteLeftPosition=-10000;var __aspxAbsoluteRightPosition=10000;var __aspxMenuZIndex=21998;var __aspxPopupControlZIndex=11998;var __aspxCheckSizeCorrectedFlag=true;var __aspxCallbackSeparator=":";var __aspxItemIndexSeparator="i";var __aspxCallbackResultPrefix="";var __aspxItemClassName="dxi";var __aspxHTMLLoaded=false;var __aspxEmptyAttributeValue=new Object();var __aspxEmptyCachedValue=new Object();var __aspxCachedRules=new Object();var __aspxDateFormatInfo={twoDigitYearMax:2029,ts:":",ds:"/",am:"AM",pm:"PM"};var ASPxKeyConsts={KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_CTRL:17,KEY_SHIFT:16,KEY_ALT:18,KEY_ENTER:13,KEY_HOME:36,KEY_END:35,KEY_LEFT:37,KEY_RIGHT:39,KEY_UP:38,KEY_DOWN:40,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_ESC:27,KEY_SPACE:32,KEY_TAB:9,KEY_ENTER:13,KEY_BACK:8,KEY_DELETE:46,KEY_INSERT:45,KEY_CONTEXT_MENU:93};function _aspxGetActiveElement(){try{return document.activeElement;}
catch(e){}
return null;}
var __aspxAgent=navigator.userAgent.toLowerCase();var __aspxOpera=(__aspxAgent.indexOf("opera")>-1);var __aspxOpera9=(__aspxAgent.indexOf("opera/9")>-1||__aspxAgent.indexOf("opera 9")>-1);var __aspxSafari=__aspxAgent.indexOf("safari")>-1;var __aspxSafari3=__aspxSafari&&__aspxAgent.indexOf("version/3")>-1;var __aspxSafariMacOS=__aspxSafari&&__aspxAgent.indexOf("macintosh")>-1;var __aspxIE=(__aspxAgent.indexOf("msie")>-1&&!__aspxOpera);var __aspxIE55=(__aspxAgent.indexOf("5.5")>-1&&__aspxIE);var __aspxIE7=(__aspxAgent.indexOf("7.")>-1&&__aspxIE);var __aspxNotIEOperaSafari=!__aspxSafari&&!__aspxIE&&!__aspxOpera;var __aspxFirefox=(__aspxAgent.indexOf("firefox")>-1)&&__aspxNotIEOperaSafari;var __aspxFirefox3=(__aspxAgent.indexOf("firefox/3.")>-1)&&__aspxNotIEOperaSafari;var __aspxMozilla=(__aspxAgent.indexOf("mozilla")>-1)&&__aspxNotIEOperaSafari;var __aspxNetscape=(__aspxAgent.indexOf("netscape")>-1)&&__aspxNotIEOperaSafari;var __aspxNS=__aspxFirefox||__aspxMozilla||__aspxNetscape;function _aspxArrayPush(array,element){if(_aspxIsExists(array.push))
array.push(element);else array[array.length]=element;}
function _aspxArrayInsert(array,element,position){if(0<=position&&position<array.length){for(var i=array.length;i>position;i--)
array[i]=array[i-1];array[position]=element;}
else _aspxArrayPush(array,element);}
function _aspxArrayRemove(array,element){var index=_aspxArrayIndexOf(array,element);if(index>-1)_aspxArrayRemoveAt(array,index);}
function _aspxArrayRemoveAt(array,index){if(index>=0&&index<array.length){for(var i=index;i<array.length-1;i++)
array[i]=array[i+1];array.pop();}}
function _aspxArrayClear(array){while(array.length>0)
array.pop();}
function _aspxArrayIndexOf(array,element){for(var i=0;i<array.length;i++){if(array[i]==element)
return i;}
return-1;}
function _aspxCreateHashTableFromArray(array){var hash=[];for(var i=0;i<array.length;i++)
hash[array[i]]=1;return hash;}
var __aspxDefaultBinarySearchComparer=function(arrayElement,value){if(arrayElement==value)return 0;else return arrayElement<value?-1:1;};function _aspxArrayBinarySearch(array,value,binarySearchComparer,startIndex,length){if(!_aspxIsExists(binarySearchComparer))
binarySearchComparer=__aspxDefaultBinarySearchComparer;if(!_aspxIsExists(startIndex))
startIndex=0;if(!_aspxIsExists(length))
length=array.length-startIndex;var endIndex=(startIndex+length)-1;while(startIndex<=endIndex){var middle=(startIndex+((endIndex-startIndex)>>1));var compareResult=binarySearchComparer(array[middle],value);if(compareResult==0)
return middle;if(compareResult<0)
startIndex=middle+1;else endIndex=middle-1;}
return-(startIndex+1);}
function _aspxApplyReplacement(text,replecementTable){for(var i=0;i<replecementTable.length;i++){var replacement=replecementTable[i];text=text.replace(replacement[0],replacement[1]);}
return text;}
function _aspxParseShortcutString(shortcutString){var isCtrlKey=false;var isShiftKey=false;var isAltKey=false;var keyCode=null;var shcKeys=shortcutString.toString().split("+");if(shcKeys.length>0){for(var i=0;i<shcKeys.length;i++){var key=_aspxTrim(shcKeys[i].toUpperCase());switch(key){case"CTRL":isCtrlKey=true;break;case"SHIFT":isShiftKey=true;break;case"ALT":isAltKey=true;break;case"F1":keyCode=ASPxKeyConsts.KEY_F1;break;case"F2":keyCode=ASPxKeyConsts.KEY_F2;break;case"F3":keyCode=ASPxKeyConsts.KEY_F3;break;case"F4":keyCode=ASPxKeyConsts.KEY_F4;break;case"F5":keyCode=ASPxKeyConsts.KEY_F5;break;case"F6":keyCode=ASPxKeyConsts.KEY_F6;break;case"F7":keyCode=ASPxKeyConsts.KEY_F7;break;case"F8":keyCode=ASPxKeyConsts.KEY_F8;break;case"F9":keyCode=ASPxKeyConsts.KEY_F9;break;case"F10":keyCode=ASPxKeyConsts.KEY_F10;break;case"F11":keyCode=ASPxKeyConsts.KEY_F11;break;case"F12":keyCode=ASPxKeyConsts.KEY_F12;break;case"ENTER":keyCode=ASPxKeyConsts.KEY_ENTER;break;case"HOME":keyCode=ASPxKeyConsts.KEY_HOME;break;case"END":keyCode=ASPxKeyConsts.KEY_END;break;case"LEFT":keyCode=ASPxKeyConsts.KEY_LEFT;break;case"RIGHT":keyCode=ASPxKeyConsts.KEY_RIGHT;break;case"UP":keyCode=ASPxKeyConsts.KEY_UP;break;case"DOWN":keyCode=ASPxKeyConsts.KEY_DOWN;break;case"PAGEUP":keyCode=ASPxKeyConsts.KEY_PAGEUP;break;case"PAGEDOWN":keyCode=ASPxKeyConsts.KEY_PAGEDOWN;break;case"SPACE":keyCode=ASPxKeyConsts.KEY_SPACE;break;case"TAB":keyCode=ASPxKeyConsts.KEY_TAB;break;case"BACK":keyCode=ASPxKeyConsts.KEY_BACK;break;case"CONTEXT":keyCode=ASPxKeyConsts.KEY_CONTEXT_MENU;break;case"ESCAPE":case"ESC":keyCode=ASPxKeyConsts.KEY_ESC;break;case"DELETE":case"DEL":keyCode=ASPxKeyConsts.KEY_DELETE;break;case"INSERT":case"INS":keyCode=ASPxKeyConsts.KEY_INSERT;break;case"PLUS":keyCode="+".charCodeAt(0);break;default:keyCode=key.charCodeAt(0);break;}}}
else alert("Shortcut is incorrect");return _aspxGetShortcutCode(keyCode,isCtrlKey,isShiftKey,isAltKey);}
function _aspxGetShortcutCode(keyCode,isCtrlKey,isShiftKey,isAltKey){var value=keyCode&0xFFFF;var flags=0;flags|=(isCtrlKey?1<<0:0);flags|=(isShiftKey?1<<2:0);flags|=(isAltKey?1<<4:0);value|=(flags<<16);return value;}
ASPxStringBuilder=_aspxCreateClass(null,{constructor:function(str){this.Initialize();if(str!=null)
this.Append(str);},Append:function(str){this.value=null;this.length+=(this.parts[this.partsCount++]=String(str)).length;return this;},Clear:function(){this.Initialize();},Initialize:function(){this.parts=[];this.partsCount=0;this.length=0;this.value=null;},ToString:function(){if(this.value!=null)
return this.value;var aggregate=this.parts.join('');this.partsCount=(this.parts=[aggregate]).length;this.length=aggregate.length;return(this.value=aggregate);}});function _aspxSetTimeout(callString,timeout){return window.setTimeout(callString,timeout);}
function _aspxClearTimer(timerID){if(timerID>-1)
window.clearTimeout(timerID);return-1;}
function _aspxSetInterval(callString,interval){return window.setInterval(callString,interval);}
function _aspxClearInterval(timerID){if(timerID>-1)
window.clearInterval(timerID);return-1;}
function _aspxSetInnerHtml(element,html){element.innerHTML="<em>&nbsp;</em>"+html;element.removeChild(element.firstChild);}
function _aspxGetInnerText(container){if(__aspxMozilla)
return container.textContent;else if(__aspxSafari){var filter=_aspxGetHtml2PlainTextFilter();filter.innerHTML=container.innerHTML;_aspxSetElementDisplay(filter,true);var innerText=filter.innerText;_aspxSetElementDisplay(filter,false);return innerText;}else return container.innerText;}
var __aspxHtml2PlainTextFilter=null;function _aspxGetHtml2PlainTextFilter(){if(__aspxHtml2PlainTextFilter==null){__aspxHtml2PlainTextFilter=document.createElement("DIV");__aspxHtml2PlainTextFilter.style.width="0";__aspxHtml2PlainTextFilter.style.height="0";_aspxSetElementDisplay(__aspxHtml2PlainTextFilter,false);document.body.appendChild(__aspxHtml2PlainTextFilter);}
return __aspxHtml2PlainTextFilter;}
function _aspxCloneObject(srcObject){if(typeof(srcObject)!='object')return srcObject;if(srcObject==null)return srcObject;var newObject=new Object();for(var i in srcObject)
newObject[i]=srcObject[i];return newObject;}
function _aspxIsExistsType(type){return(type!="undefined");}
function _aspxIsExists(obj){return(typeof(obj)!="undefined")&&(obj!=null);}
function _aspxIsFunction(obj){return typeof(obj)=="function";}
function _aspxGetDefinedValue(value,defaultValue){return(typeof(value)!="undefined")?value:defaultValue;}
function _aspxGetKeyCode(srcEvt){return __aspxNS?srcEvt.which:srcEvt.keyCode;}
function _aspxSetInputSelection(input,startPos,endPos){startPos=_aspxGetDefinedValue(startPos,0);endPos=_aspxGetDefinedValue(endPos,input.value.length);if(__aspxIE){var range=input.createTextRange();range.collapse(true);range.moveStart("character",startPos);range.moveEnd("character",endPos-startPos);range.select();}else input.setSelectionRange(startPos,endPos);}
function _aspxHasInputSelection(input){var selectionStart=0;var selectionEnd=0;if(__aspxIE){var curRange=document.selection.createRange();var copyRange=curRange.duplicate();curRange.move('character',-input.value.length);curRange.setEndPoint('EndToStart',copyRange);var selectionStart=curRange.text.length;var selectionEnd=selectionStart+copyRange.text.length;}else{selectionStart=input.selectionStart;selectionEnd=input.selectionEnd;}
return(selectionStart==selectionEnd);}
function _aspxPreventElementDragAndSelect(element,isSkipMouseMove){if(__aspxIE){_aspxAttachEventToElement(element,"selectstart",new function(){return false;});if(!isSkipMouseMove)
_aspxAttachEventToElement(element,"mousemove",_aspxClearSelectionOnMouseMove);_aspxAttachEventToElement(element,"dragstart",_aspxPreventDragStart);}}
function _aspxSetElementAsUnselectable(element,isWithChild){if(_aspxIsExists(element)&&(element.nodeType==1)){_aspxSetElementAsUnselectableInternal(element);if(isWithChild===true){for(var j=0;j<element.childNodes.length;j++)
_aspxSetElementAsUnselectable(element.childNodes[j]);}}}
function _aspxSetElementAsUnselectableInternal(element){element.unselectable="on";if(!__aspxIE)
element.onmousedown=new function(){return false;};}
function _aspxClearSelection(){try{if(_aspxIsExists(window.getSelection)){if(__aspxSafari)
window.getSelection().collapse();else window.getSelection().removeAllRanges();}
else if(_aspxIsExists(document.selection)){if(_aspxIsExists(document.selection.empty))
document.selection.empty();else if(_aspxIsExists(document.selection.clear))
document.selection.clear();}}
catch(e){}}
function _aspxClearSelectionOnMouseMove(evt){if(!__aspxIE||(evt.button!=0))
_aspxClearSelection();}
function _aspxPreventDragStart(evt){evt=_aspxGetEvent(evt);var element=_aspxGetEventSource(evt);element.releaseCapture();return false;}
function _aspxGetElementById(id){if(_aspxIsExists(document.getElementById))
return document.getElementById(id);else return document.all[id];}
function _aspxGetParentNode(element){return element.parentNode;}
function _aspxGetIsParent(parentElement,element){while(element!=null){if(element.tagName=="BODY")return false;if(element==parentElement)return true;element=element.parentNode;}
return false;}
function _aspxGetParentById(element,id){element=element.parentNode;while(element!=null){if(element.id==id)return element;element=element.parentNode;}
return null;}
function _aspxGetParentByTagName(element,tagName){tagName=tagName.toUpperCase();while(element!=null){var name="";if(element.tagName)
name=element.tagName.toUpperCase();if(name=="BODY")return null;if(name==tagName)return element;element=element.parentNode;}
return null;}
function _aspxGetParentByClassName(element,className){while(element!=null){if(element.tagName.toUpperCase()=="BODY")return null;if(element.className.indexOf(className)!=-1)return element;element=element.parentNode;}
return null;}
function _aspxGetParentByTagNameAndAttributeValue(element,tagName,attrName,attrValue){tagName=tagName.toUpperCase();while(element!=null){var name="";if(element.tagName)
name=element.tagName.toUpperCase();if(name=="BODY")return null;if((name==tagName)&&_aspxIsExists(element[attrName])&&(element[attrName]==attrValue))return element;element=element.parentNode;}
return null;}
function _aspxGetChildById(element,id){if(!__aspxIE)
return _aspxGetElementById(id);else{var element=element.all[id];if(!_aspxIsExists(element))
return null;else if(!_aspxIsExists(element.length))
return element;else return _aspxGetElementById(id);}}
function _aspxGetElementsByTagName(element,tagName){if(element!=null){tagName=tagName.toUpperCase();if(_aspxIsExists(element.all)&&!__aspxFirefox3)
return __aspxNetscape?element.all.tags[tagName]:element.all.tags(tagName);else return element.getElementsByTagName(tagName);}
return null;}
function _aspxGetChildByTagName(element,tagName,index){if(element!=null){var collection=_aspxGetElementsByTagName(element,tagName);if(collection!=null){if(index<collection.length)
return collection[index];}}
return null;}
function _aspxGetChildTextNode(element,index){if(element!=null){var collection=new Array();_aspxGetChildTextNodeCollection(element,collection);if(index<collection.length)
return collection[index];}
return null;}
function _aspxGetChildTextNodeCollection(element,collection){for(var i=0;i<element.childNodes.length;i++){var childNode=element.childNodes[i];if(_aspxIsExists(childNode.nodeValue))
_aspxArrayPush(collection,childNode);_aspxGetChildTextNodeCollection(childNode,collection);}}
function _aspxGetChildsByClassName(element,className){var collection=_aspxIsExists(element.all)?element.all:element.getElementsByTagName('*');var ret=new Array();if(collection!=null){for(var i=0;i<collection.length;i++){if(collection[i].className.indexOf(className)!=-1)
ret.push(collection[i]);}}
return ret;}
function _aspxGetParentByPartialId(element,idPart){while(element!=null){if(_aspxIsExists(element.id)){if(element.id.indexOf(idPart)>-1)return element;}
element=element.parentNode;}
return null;}
function _aspxGetElementsByPartialId(element,partialName,list){if(!_aspxIsExists(element.id))return;if(element.id.indexOf(partialName)>-1){list.push(element);}
for(var i=0;i<element.childNodes.length;i++){_aspxGetElementsByPartialId(element.childNodes[i],partialName,list);}}
function _aspxIFrameWindow(name){if(__aspxIE)
return window.frames[name].window;else{var frameElement=document.getElementById(name);return(frameElement!=null)?frameElement.contentWindow:null;}}
function _aspxIFrameDocument(name){if(__aspxIE)
return window.frames[name].document;else{var frameElement=document.getElementById(name);return(frameElement!=null)?frameElement.contentDocument:null;}}
function _aspxIFrameDocumentBody(name){var doc=_aspxIFrameDocument(name);return(doc!=null)?doc.body:null;}
function _aspxIFrameElement(name){if(__aspxIE)
return window.frames[name].window.frameElement;else return document.getElementById(name);}
function _aspxRemoveElement(element){if(_aspxIsExists(element)){var parent=element.parentNode;if(_aspxIsExists(parent))
parent.removeChild(element);}
element=null;}
function _aspxReplaceTagName(element,newTagName){if(__aspxIE){element.insertAdjacentHTML('beforeBegin',"<"+newTagName+">"+element.innerHTML+"</"+newTagName+">");_aspxRemoveElement(element);}
else{var docFragment=element.ownerDocument.createDocumentFragment();var newElem=element.ownerDocument.createElement(newTagName);docFragment.appendChild(newElem);for(var i=0;i<element.childNodes.length;i++)
newElem.appendChild(element.childNodes[i].cloneNode(true));element.parentNode.replaceChild(docFragment,element);}}
function _aspxRemoveOuterTags(element){if(__aspxIE){element.insertAdjacentHTML('beforeBegin',element.innerHTML);_aspxRemoveElement(element);}
else{var docFragment=element.ownerDocument.createDocumentFragment();for(var i=0;i<element.childNodes.length;i++)
docFragment.appendChild(element.childNodes[i].cloneNode(true));element.parentNode.replaceChild(docFragment,element);}}
function _aspxWrapElementInNewElement(element,newElementTagName){var wrapElement=null;if(__aspxIE){var id=(new Date()).getTime();element.insertAdjacentHTML('beforeBegin',"<"+newElementTagName+" id='"+id+"'>"+element.outerHTML+"</"+newElementTagName+">");wrapElement=element.ownerDocument.getElementById(id);_aspxRemoveElement(element);_aspxRemoveAttribute(wrapElement,"id");}
else{var docFragment=element.ownerDocument.createDocumentFragment();wrapElement=element.ownerDocument.createElement(newElementTagName);docFragment.appendChild(wrapElement);wrapElement.appendChild(element.cloneNode(true));element.parentNode.replaceChild(docFragment,element);}
return wrapElement;}
function _aspxGetEvent(evt){return(typeof(event)!="undefined"&&event!=null)?event:evt;}
function _aspxPreventEvent(evt){if(__aspxNS)
evt.preventDefault();else evt.returnValue=false;return false;}
function _aspxPreventEventAndBubble(evt){_aspxPreventEvent(evt);if(__aspxNS)
evt.stopPropagation();evt.cancelBubble=true;return false;}
function _aspxCancelBubble(evt){evt.cancelBubble=true;return false;}
function _aspxGetEventSource(evt){evt=_aspxGetEvent(evt);if(!_aspxIsExists(evt))return null;return __aspxIE?evt.srcElement:evt.target;}
function _aspxGetEventX(evt){return evt.clientX-_aspxGetIEDocumentClientOffsetInternal(true)+(__aspxSafari?0:_aspxGetDocumentScrollLeft());}
function _aspxGetEventY(evt){return evt.clientY-_aspxGetIEDocumentClientOffsetInternal(false)+(__aspxSafari?0:_aspxGetDocumentScrollTop());}
function _aspxGetIEDocumentClientOffset(IsX){return 0;}
function _aspxGetIEDocumentClientOffsetInternal(IsX){var clientOffset=0;if(__aspxIE){if(_aspxIsExists(document.documentElement))
clientOffset=IsX?document.documentElement.clientLeft:document.documentElement.clientTop;if(clientOffset==0&&_aspxIsExists(document.body))
var clientOffset=IsX?document.body.clientLeft:document.body.clientTop;}
return clientOffset;}
function _aspxGetIsLeftButtonPressed(evt){evt=_aspxGetEvent(evt);if(!_aspxIsExists(evt))return false;if(__aspxIE)
return evt.button==1;else if(__aspxNS||__aspxSafari)
return evt.which==1;else if(__aspxOpera)
return evt.button==0;return true;}
function _aspxGetWheelDelta(evt){var ret=__aspxNS?-evt.detail:evt.wheelDelta;if(__aspxOpera&&!__aspxOpera9)
ret=-ret;return ret;}
function _aspxDelCookie(name){_aspxSetCookieInternal(name,"",new Date(1970,1,1));}
function _aspxGetCookie(name){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=_aspxTrim(cookies[i]);if(cookie.indexOf(name+"=")==0)
return cookie.substring(name.length+1,cookie.length);}
return null;}
function _aspxSetCookie(name,value){var date=new Date();date.setFullYear(date.getFullYear()+1);_aspxSetCookieInternal(name,value,date);}
function _aspxSetCookieInternal(name,value,date){document.cookie=name+"="+escape(value)+";expires="+date.toGMTString()+";path=/";}
function _aspxGetElementDisplay(element){return element.style.display!="none";}
function _aspxSetElementDisplay(element,value){element.style.display=value?"":"none";}
function _aspxGetElementVisibility(element){return element.style.visibility!="hidden";}
function _aspxSetElementVisibility(element,value){element.style.visibility=value?"":"hidden";}
function _aspxAddStyleSheetLinkToDocument(doc,linkUrl){var newLink=_aspxCreateStyleLink(doc,linkUrl);var head=_aspxGetHeadElementOrCreateIfNotExist(doc);head.appendChild(newLink);}
function _aspxGetHeadElementOrCreateIfNotExist(doc){var elements=_aspxGetElementsByTagName(doc,"head");var head=null;if(elements.length==0){head=doc.createElement("head");head.visibility="hidden";doc.insertBefore(head,doc.body);}else head=elements[0];return head;}
function _aspxCreateStyleLink(doc,url){var newLink=doc.createElement("link");_aspxSetAttribute(newLink,"href",url);_aspxSetAttribute(newLink,"type","text/css");_aspxSetAttribute(newLink,"rel","stylesheet");return newLink;}
function _aspxGetCurrentStyle(element){if(__aspxIE)
return element.currentStyle;else if(__aspxOpera&&!__aspxOpera9)
return window.getComputedStyle(element,null);else return document.defaultView.getComputedStyle(element,null);}
function _aspxIsElementRigthToLeft(element){var style=_aspxGetCurrentStyle(element);if(__aspxIE)
style.writingMode.toUpperCase().indexOf("RL")>-1;return style.direction.toUpperCase().indexOf("RTL")>-1;}
function _aspxCreateStyleSheetInDocument(doc){if(__aspxIE)
return doc.createStyleSheet();else{var styleSheet=doc.createElement("STYLE");_aspxGetChildByTagName(doc,"HEAD",0).appendChild(styleSheet);return doc.styleSheets[doc.styleSheets.length-1];}}
function _aspxCreateStyleSheet(){return _aspxCreateStyleSheetInDocument(document);}
function _aspxGetStyleSheetRules(styleSheet){try{return __aspxIE?styleSheet.rules:styleSheet.cssRules;}
catch(e){return null;}}
function _aspxGetStyleSheetRule(className){if(_aspxIsExists(__aspxCachedRules[className])){if(__aspxCachedRules[className]!=__aspxEmptyCachedValue)
return __aspxCachedRules[className];return null;}
for(var i=0;i<document.styleSheets.length;i++){var styleSheet=document.styleSheets[i];var rules=_aspxGetStyleSheetRules(styleSheet);if(rules!=null){for(var j=0;j<rules.length;j++){if(rules[j].selectorText=="."+className){__aspxCachedRules[className]=rules[j];return rules[j];}}}}
__aspxCachedRules[className]=__aspxEmptyCachedValue;return null;}
function _aspxRemoveStyleSheetRule(styleSheet,index){var rules=_aspxGetStyleSheetRules(styleSheet);if(rules!=null&&rules.length>0&&rules.length>=index){if(__aspxIE)
styleSheet.removeRule(index);else styleSheet.deleteRule(index);}}
function _aspxAddStyleSheetRule(styleSheet,selector,cssText){if(!_aspxIsExists(cssText)||cssText=="")return;if(__aspxIE)
styleSheet.addRule(selector,cssText);else styleSheet.insertRule(selector+"{"+cssText+" }",styleSheet.cssRules.length);}
function _aspxGetPointerCursor(){return __aspxIE?"hand":"pointer";}
function _aspxSetPointerCursor(element){if(element.style.cursor=="")
element.style.cursor=_aspxGetPointerCursor();}
function _aspxGetIsValidPosition(pos){return pos!=__aspxInvalidPosition&&pos!=-__aspxInvalidPosition;}
function _aspxGetAbsoluteX(curEl){return _aspxGetAbsolutePositionX(curEl);}
function _aspxGetAbsoluteY(curEl){return _aspxGetAbsolutePositionY(curEl);}
function _aspxSetAbsoluteX(element,x){element.style.left=_aspxPrepareClientPosForElement(x,element,true)+"px";}
function _aspxSetAbsoluteY(element,y){element.style.top=_aspxPrepareClientPosForElement(y,element,false)+"px";}
function _aspxGetAbsolutePositionX(curEl){if(__aspxIE)
return _aspxGetAbsolutePositionX_IE(curEl);if(__aspxFirefox3)
return _aspxGetAbsolutePositionX_FF3(curEl);if(__aspxOpera)
return _aspxGetAbsolutePositionX_Opera(curEl);if(__aspxNS&&!__aspxFirefox3)
return _aspxGetAbsolutePositionX_NS(curEl);if(__aspxSafari)
return _aspxGetAbsolutePositionX_Safari(curEl);return _aspxGetAbsolutePositionX_Other(curEl);}
function _aspxGetAbsolutePositionX_Opera(curEl){var pos=_aspxGetAbsoluteOffsetX_OperaFFSafari(curEl);while(curEl!=null){pos+=curEl.offsetLeft;pos-=curEl.scrollLeft;curEl=curEl.offsetParent;}
pos+=document.body.scrollLeft;return pos;}
function _aspxGetAbsolutePositionX_IE(curEl){if(curEl==null||__aspxIE&&curEl.parentNode==null)return 0;return curEl.getBoundingClientRect().left+_aspxGetDocumentScrollLeft()-_aspxGetIEDocumentClientOffsetInternal(true);}
function _aspxGetAbsolutePositionX_FF3(curEl){if(curEl==null)return 0;var x=curEl.getBoundingClientRect().left+_aspxGetDocumentScrollLeft()-_aspxGetIEDocumentClientOffsetInternal(true);return Math.round(x)}
function _aspxGetAbsolutePositionX_NS(curEl){var pos=_aspxGetAbsoluteOffsetX_OperaFFSafari(curEl);var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetLeft;if(!isFirstCycle&&curEl.offsetParent!=null)
pos-=curEl.scrollLeft;if(!isFirstCycle&&__aspxFirefox){var tagName=curEl.tagName.toUpperCase();var style=_aspxGetCurrentStyle(curEl);if(tagName=="DIV"&&style.overflow.toUpperCase()!="visible")
pos+=_aspxPxToInt(style.borderLeftWidth);}
isFirstCycle=false;curEl=curEl.offsetParent;}
return pos;}
function _aspxGetAbsolutePositionX_Safari(curEl){var pos=_aspxGetAbsoluteOffsetX_OperaFFSafari(curEl);while(curEl!=null){pos+=curEl.offsetLeft;curEl=curEl.offsetParent;}
return pos;}
function _aspxGetAbsoluteOffsetX_OperaFFSafari(curEl){var pos=0;while(curEl!=null){var tagname=curEl.tagName.toUpperCase();if(tagname=="BODY")break;var style=_aspxGetCurrentStyle(curEl);if(!__aspxSafari&&style.position=="absolute")break;if(tagname=="DIV"&&(__aspxSafari||style.position==""||style.position=="static")){pos-=curEl.scrollLeft;}
curEl=curEl.parentNode;}
return pos;}
function _aspxGetAbsolutePositionX_Other(curEl){var pos=0;var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetLeft;if(!isFirstCycle&&curEl.offsetParent!=null)
pos-=curEl.scrollLeft;isFirstCycle=false;curEl=curEl.offsetParent;}
return pos;}
function _aspxGetAbsolutePositionY(curEl){if(__aspxIE)
return _aspxGetAbsolutePositionY_IE(curEl);if(__aspxFirefox3)
return _aspxGetAbsolutePositionY_FF3(curEl);if(__aspxOpera)
return _aspxGetAbsolutePositionY_Opera(curEl);if(__aspxNS&&!__aspxFirefox3)
return _aspxGetAbsolutePositionY_NS(curEl);if(__aspxSafari)
return _aspxGetAbsolutePositionY_Safari(curEl);return _aspxGetAbsolutePositionY_Other(curEl);}
function _aspxGetAbsolutePositionY_Opera(curEl){if(curEl&&curEl.tagName=="TR"&&curEl.cells.length>0)
curEl=curEl.cells[0];var pos=_aspxGetAbsoluteOffsetY_OperaFFSafari(curEl);while(curEl!=null){pos+=curEl.offsetTop;pos-=curEl.scrollTop;curEl=curEl.offsetParent;}
pos+=document.body.scrollTop;return pos;}
function _aspxGetAbsolutePositionY_IE(curEl){if(curEl==null||__aspxIE&&curEl.parentNode==null)return 0;return curEl.getBoundingClientRect().top+_aspxGetDocumentScrollTop()-_aspxGetIEDocumentClientOffsetInternal(false);}
function _aspxGetAbsolutePositionY_FF3(curEl){if(curEl==null)return 0;var y=curEl.getBoundingClientRect().top+_aspxGetDocumentScrollTop()-_aspxGetIEDocumentClientOffsetInternal(false);return Math.round(y);}
function _aspxGetAbsolutePositionY_NS(curEl){var pos=_aspxGetAbsoluteOffsetY_OperaFFSafari(curEl);var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetTop;if(!isFirstCycle&&curEl.offsetParent!=null)
pos-=curEl.scrollTop;if(!isFirstCycle&&__aspxFirefox){var tagName=curEl.tagName.toUpperCase();var style=_aspxGetCurrentStyle(curEl);if(tagName=="DIV"&&style.overflow.toUpperCase()!="visible")
pos+=_aspxPxToInt(style.borderTopWidth);}
isFirstCycle=false;curEl=curEl.offsetParent;}
return pos;}
function _aspxGetAbsolutePositionY_Safari(curEl){var pos=_aspxGetAbsoluteOffsetY_OperaFFSafari(curEl);while(curEl!=null){pos+=curEl.offsetTop;curEl=curEl.offsetParent;}
return pos;}
function _aspxGetAbsoluteOffsetY_OperaFFSafari(curEl){var pos=0;while(curEl!=null){var tagname=curEl.tagName.toUpperCase();if(tagname=="BODY")break;var style=_aspxGetCurrentStyle(curEl);if(!__aspxSafari&&style.position=="absolute")break;if(tagname=="DIV"&&(__aspxSafari||style.position==""||style.position=="static")){pos-=curEl.scrollTop;}
curEl=curEl.parentNode;}
return pos;}
function _aspxGetAbsolutePositionY_Other(curEl){var pos=0;var isFirstCycle=true;while(curEl!=null){pos+=curEl.offsetTop;if(!isFirstCycle&&curEl.offsetParent!=null)
pos-=curEl.scrollTop;isFirstCycle=false;curEl=curEl.offsetParent;}
return pos;}
function _aspxPrepareClientPosForElement(pos,element,isX){pos-=_aspxGetPositionElementOffset(element,isX);return pos;}
function _aspxGetPositionElementOffset(element,isX){var curEl=element.offsetParent;var offset=0;var scroll=0;var isThereFixedParent=false;var isFixed=false;var position="";while(curEl!=null){var tagName=_aspxIsExists(curEl.tagName)?curEl.tagName.toLowerCase():"";if(tagName=="html"||tagName=="body")break;if(tagName!="td"&&tagName!="tr"){var style=_aspxGetCurrentStyle(curEl);isFixed=style.position=="fixed";if(isFixed)
isThereFixedParent=true;if(style.position=="absolute"||isFixed||style.position=="relative"){offset+=isX?curEl.offsetLeft:curEl.offsetTop;if(__aspxIE||__aspxOpera9||__aspxSafariMacOS)
offset+=_aspxPxToInt(isX?style.borderLeftWidth:style.borderTopWidth);}}
scroll+=isX?curEl.scrollLeft:curEl.scrollTop;curEl=curEl.offsetParent;}
offset-=scroll;if((__aspxIE7||__aspxFirefox3)&&isThereFixedParent)
offset+=isX?_aspxGetDocumentScrollLeft():_aspxGetDocumentScrollTop();return offset;}
function _aspxPxToInt(px){var result=0;if(px!=null&&px!=""){try{var indexOfPx=px.indexOf("px");if(indexOfPx>-1)
result=parseInt(px.substr(0,indexOfPx));}catch(e){}}
return result;}
function _aspxGetClearClientWidth(element){var currentStyle=_aspxGetCurrentStyle(element);return element.offsetWidth-_aspxPxToInt(currentStyle.paddingLeft)-_aspxPxToInt(currentStyle.paddingRight)-
_aspxPxToInt(currentStyle.borderLeftWidth)-_aspxPxToInt(currentStyle.borderRightWidth);}
function _aspxGetClearClientHeight(element){var currentStyle=_aspxGetCurrentStyle(element);return element.offsetHeight-_aspxPxToInt(currentStyle.paddingTop)-_aspxPxToInt(currentStyle.paddingBottom)-
_aspxPxToInt(currentStyle.borderTopWidth)-_aspxPxToInt(currentStyle.borderBottomWidth);}
function _aspxSetOffsetWidth(element,widthValue){var currentStyle=_aspxGetCurrentStyle(element);var value=widthValue-_aspxPxToInt(currentStyle.marginLeft)-_aspxPxToInt(currentStyle.marginRight);if(__aspxIE)
value-=_aspxPxToInt(currentStyle.paddingLeft)+_aspxPxToInt(currentStyle.paddingRight)+
_aspxPxToInt(currentStyle.borderLeftWidth)+_aspxPxToInt(currentStyle.borderRightWidth);if(value>-1)
element.style.width=value+"px";}
function _aspxSetOffsetHeight(element,heightValue){var currentStyle=_aspxGetCurrentStyle(element);var value=heightValue-_aspxPxToInt(currentStyle.marginTop)-_aspxPxToInt(currentStyle.marginBottom);if(__aspxIE)
value-=_aspxPxToInt(currentStyle.paddingTop)+_aspxPxToInt(currentStyle.paddingBottom)+
_aspxPxToInt(currentStyle.borderTopWidth)+_aspxPxToInt(currentStyle.borderBottomWidth);if(value>-1)
element.style.height=value+"px";}
function _aspxFindOffsetParent(element){if(__aspxIE)
return element.offsetParent;var currentElement=element.parentNode;while(_aspxIsExistsElement(currentElement)&&currentElement.tagName.toUpperCase()!="BODY"){if(currentElement.offsetWidth>0&&currentElement.offsetHeight>0)
return currentElement;currentElement=currentElement.parentNode;}
return document.body;}
function _aspxGetDocumentScrollTop(){if(__aspxSafari||__aspxIE55||document.documentElement.scrollTop==0)
return document.body.scrollTop;return document.documentElement.scrollTop;}
function _aspxGetDocumentScrollLeft(){if(__aspxSafari||__aspxIE55||document.documentElement.scrollLeft==0)
return document.body.scrollLeft;return document.documentElement.scrollLeft;}
function _aspxGetDocumentClientWidth(){if(__aspxSafari||__aspxIE55||document.documentElement.clientWidth==0)
return document.body.clientWidth;return document.documentElement.clientWidth;}
function _aspxGetDocumentClientHeight(){if(__aspxSafari)
return window.innerHeight;if(__aspxIE55||__aspxOpera||document.documentElement.clientHeight==0)
return document.body.clientHeight;return document.documentElement.clientHeight;}
function _aspxGetClientLeft(element){return _aspxIsExists(element.clientLeft)?element.clientLeft:(element.offsetWidth-element.clientWidth)/2;}
function _aspxGetClientTop(element){return _aspxIsExists(element.clientTop)?element.clientTop:(element.offsetHeight-element.clientHeight)/2;}
function _aspxRemoveBorders(element){if(!_aspxIsExists(element))return;element.style.borderWidth=0;for(var i=0;i<element.childNodes.length;i++){var child=element.childNodes[i];if(_aspxIsExists(child.style)){child.style.border="0";}}}
function _aspxSetBackground(element,background){if(!_aspxIsExists(element))return;element.style.backgroundColor=background;for(var i=0;i<element.childNodes.length;i++){var child=element.childNodes[i];if(_aspxIsExists(child.style)){child.style.backgroundColor=background;}}}
function _aspxSetFocus(element){try{element.focus();if(__aspxIE&&document.activeElement!=element){element.focus();}}
catch(e){}}
function _aspxIsFocusableCore(element,skipContainerVisibilityCheck){var current=element;while(_aspxIsExists(current)){if(current==element||!skipContainerVisibilityCheck(current)){if(current.tagName.toLowerCase()=="body")
return true;if(current.disabled||!_aspxGetElementDisplay(current)||!_aspxGetElementVisibility(current))
return false;}
current=current.parentNode;}
return true;}
function _aspxIsFocusable(element){return _aspxIsFocusableCore(element,function(o){return false;});}
function _aspxAttachEventToElement(element,eventName,func){if(__aspxNS||__aspxSafari)
element.addEventListener(eventName,func,true);else{if(eventName.toLowerCase().indexOf("on")!=0)
eventName="on"+eventName;element.attachEvent(eventName,func);}}
function _aspxDetachEventFromElement(element,eventName,func){if(__aspxNS||__aspxSafari)
element.removeEventListener(eventName,func,true);else{if(eventName.toLowerCase().indexOf("on")!=0)
eventName="on"+eventName;element.detachEvent(eventName,func);}}
function _aspxAttachEventToDocument(eventName,func){_aspxAttachEventToElement(document,eventName,func);}
function _aspxDetachEventFromDocument(eventName,func){_aspxAttachEventToElement(document,eventName,func);}
function _aspxCreateEventHandlerFunction(funcName,controlName,withHtmlEventArg){return withHtmlEventArg?new Function("event",funcName+"('"+controlName+"',event);"):new Function(funcName+"('"+controlName+"');");}
function _aspxCreateClass(parentClass,properties){var ret=function(){if(ret.preparing)
return delete(ret.preparing);if(ret.constr){this.constructor=ret;ret.constr.apply(this,arguments);}}
ret.prototype={};if(_aspxIsExists(parentClass)){parentClass.preparing=true;ret.prototype=new parentClass;ret.prototype.constructor=parentClass;ret.constr=parentClass;}
if(_aspxIsExists(properties)){var constructorName="constructor";for(var name in properties){if(name!=constructorName)
ret.prototype[name]=properties[name];}
if(properties[constructorName]&&properties[constructorName]!=Object)
ret.constr=properties[constructorName];}
return ret;}
function _aspxGetAttribute(obj,attrName){if(_aspxIsExists(obj.getAttribute))
return obj.getAttribute(attrName);else if(_aspxIsExists(obj.getPropertyValue))
return obj.getPropertyValue(attrName);return null;}
function _aspxSetAttribute(obj,attrName,value){if(_aspxIsExists(obj.setAttribute))
obj.setAttribute(attrName,value);else if(_aspxIsExists(obj.setProperty))
obj.setProperty(attrName,value,"");}
function _aspxRemoveAttribute(obj,attrName){if(_aspxIsExists(obj.removeAttribute))
obj.removeAttribute(attrName);else if(_aspxIsExists(obj.removeProperty))
obj.removeProperty(attrName);}
function _aspxIsExistsAttribute(obj,attrName){var value=_aspxGetAttribute(obj,attrName);return(value!=null)&&(value!="");}
function _aspxSetOrRemoveAttribute(obj,attrName,value){if(!value)
_aspxRemoveAttribute(obj,attrName);else _aspxSetAttribute(obj,attrName,value);}
function _aspxChangeAttributeExtended(obj,attrName,savedObj,savedAttrName,newValue){if(!_aspxIsExistsAttribute(savedObj,savedAttrName)){var oldValue=_aspxIsExistsAttribute(obj,attrName)?_aspxGetAttribute(obj,attrName):__aspxEmptyAttributeValue;_aspxSetAttribute(savedObj,savedAttrName,oldValue);}
_aspxSetAttribute(obj,attrName,newValue);}
function _aspxChangeAttribute(obj,attrName,newValue){_aspxChangeAttributeExtended(obj,attrName,obj,"saved"+attrName,newValue);}
function _aspxChangeStyleAttribute(obj,attrName,newValue){_aspxChangeAttributeExtended(obj.style,attrName,obj,"saved"+attrName,newValue);}
function _aspxResetAttributeExtended(obj,attrName,savedObj,savedAttrName){if(!_aspxIsExistsAttribute(savedObj,savedAttrName)){var oldValue=_aspxIsExistsAttribute(obj,attrName)?_aspxGetAttribute(obj,attrName):__aspxEmptyAttributeValue;_aspxSetAttribute(savedObj,savedAttrName,oldValue);}
_aspxSetAttribute(obj,attrName,"");_aspxRemoveAttribute(obj,attrName);}
function _aspxResetAttribute(obj,attrName){_aspxResetAttributeExtended(obj,attrName,obj,"saved"+attrName);}
function _aspxResetStyleAttribute(obj,attrName){_aspxResetAttributeExtended(obj.style,attrName,obj,"saved"+attrName);}
function _aspxRestoreAttributeExtended(obj,attrName,savedObj,savedAttrName){if(_aspxIsExistsAttribute(savedObj,savedAttrName)){var oldValue=_aspxGetAttribute(savedObj,savedAttrName);if(oldValue!=__aspxEmptyAttributeValue)
_aspxSetAttribute(obj,attrName,oldValue);else _aspxRemoveAttribute(obj,attrName);_aspxRemoveAttribute(savedObj,savedAttrName);}}
function _aspxRestoreAttribute(obj,attrName){_aspxRestoreAttributeExtended(obj,attrName,obj,"saved"+attrName);}
function _aspxRestoreStyleAttribute(obj,attrName){_aspxRestoreAttributeExtended(obj.style,attrName,obj,"saved"+attrName);}
function _aspxRemoveAllAttributes(element,excludedAttributes){var excludedAttributesHashTable={};if(_aspxIsExists(excludedAttributes))
excludedAttributesHashTable=_aspxCreateHashTableFromArray(excludedAttributes);if(_aspxIsExists(element.attributes)){var attrArray=element.attributes;for(var i=0;i<attrArray.length;i++){var attrName=attrArray[i].name;if(!_aspxIsExists(excludedAttributesHashTable[attrName.toLowerCase()]))
attrArray.removeNamedItem(attrName);}}}
function _aspxRemoveAllStyles(element){if(_aspxIsExists(element.style)){for(var key in element.style)
_aspxRemoveAttribute(element.style,key);_aspxRemoveAttribute(element,"style");}}
function _aspxChangeAttributesMethod(enabled){return enabled?_aspxRestoreAttribute:_aspxResetAttribute;}
function _aspxInitiallyChangeAttributesMethod(enabled){return enabled?_aspxChangeAttribute:_aspxResetAttribute;}
function _aspxChangeStyleAttributesMethod(enabled){return enabled?_aspxRestoreStyleAttribute:_aspxResetStyleAttribute;}
function _aspxInitiallyChangeStyleAttributesMethod(enabled){return enabled?_aspxChangeStyleAttribute:_aspxResetStyleAttribute;}
function _aspxChangeEventsMethod(enabled){return enabled?_aspxAttachEventToElement:_aspxDetachEventFromElement;}
function _aspxChangeDocumentEventsMethod(enabled){return enabled?_aspxAttachEventToDocument:_aspxDetachEventFromDocument;}
function _aspxLTrim(str){var re=/\s*((\S+\s*)*)/;return str.replace(re,"$1");}
function _aspxRTrim(str){var re=/((\s*\S+)*)\s*/;return str.replace(re,"$1");}
function _aspxTrim(str){return _aspxLTrim(_aspxRTrim(str));}
function _aspxInsert(str,subStr,index){var leftText=str.slice(0,index);var rightText=str.slice(index);return leftText+subStr+rightText;}
function _aspxInsertEx(str,subStr,startIndex,endIndex){var leftText=str.slice(0,startIndex);var rightText=str.slice(endIndex);return leftText+subStr+rightText;}
function _aspxNavigateUrl(url,target){var javascriptPrefix="javascript:";if(url=="")
return;else if(url.indexOf(javascriptPrefix)!=-1)
eval(url.substr(javascriptPrefix.length));else{if(target!=""){if(_aspxIsSpecialTarget(target))
_aspxNavigateSpecialTarget(url,target);else{var frame=_aspxGetFrame(top.frames,target);if(frame!=null)
frame.location.href=url;else _aspxNavigateSpecialTarget(url,"_blank");}}
else location.href=url;}}
function _aspxIsSpecialTarget(target){var targets=["_blank","_media","_parent","_search","_self","_top"];return _aspxArrayIndexOf(targets,target.toLowerCase())>-1;}
function _aspxNavigateSpecialTarget(url,target){target=target.toLowerCase();if("_top"==target)
top.location.href=url;else if("_self"==target)
location.href=url;else if("_search"==target)
window.open(url,'blank');else if("_media"==target)
window.open(url,'blank');else if("_parent"==target)
window.parent.location.href=url;else if("_blank"==target)
window.open(url,'blank');}
function _aspxGetFrame(frames,name){if(_aspxIsExists(frames[name]))
return frames[name];for(var i=0;i<frames.length;i++){try{var frame=frames[i];if(frame.name==name)
return frame;frame=_aspxGetFrame(frame.frames,name);if(frame!=null)
return frame;}
catch(e){}}
return null;}
function _aspxToHex(d){return(d<16)?("0"+d.toString(16)):d.toString(16);}
function _aspxColorToHexadecimal(colorValue){if(typeof(colorValue)=="number"){var r=colorValue&0xFF;var g=(colorValue>>8)&0xFF;var b=(colorValue>>16)&0xFF;return"#"+_aspxToHex(r)+_aspxToHex(g)+_aspxToHex(b);}
if(colorValue&&(colorValue.substr(0,3)=="rgb")){var re=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/;var regResult=colorValue.match(re);if(regResult){var r=parseInt(regResult[1]);var g=parseInt(regResult[2]);var b=parseInt(regResult[3]);return"#"+_aspxToHex(r)+_aspxToHex(g)+_aspxToHex(b);}
return null;}
if(colorValue&&(colorValue.charAt(0)=="#"))
return colorValue;return null;}
function _aspxFormatCallbackArg(prefix,arg){if(prefix==null||prefix==""||arg==null)
return"";if(arg!=null&&!_aspxIsExists(arg.length)&&_aspxIsExists(arg.value))
arg=arg.value;arg=arg.toString();return prefix+"|"+arg.length+'|'+arg;}
function _aspxFormatCallbackArgs(callbackData){var sb=new ASPxStringBuilder();for(var i=0;i<callbackData.length;i++)
sb.Append(_aspxFormatCallbackArg(callbackData[i][0],callbackData[i][1]));return sb.ToString();}
function _aspxIsValidElement(element){if(__aspxIE)
return _aspxIsExists(element.parentNode)&&_aspxIsExists(element.parentNode.tagName);else{if(!__aspxOpera&&element.offsetParent!=null)
return true;while(element!=null){if(_aspxIsExists(element.tagName)&&element.tagName=="BODY")
return true;element=element.parentNode;}
return false;}}
function _aspxIsValidElements(elements){if(!_aspxIsExists(elements))return false;for(var i=0;i<elements.length;i++){if(_aspxIsExists(elements[i])&&!_aspxIsValidElement(elements[i]))
return false;}
return true;}
function _aspxIsExistsElement(element){return _aspxIsExists(element)&&_aspxIsValidElement(element);}
ASPxClientEvent=_aspxCreateClass(null,{constructor:function(){this.handlerList=[];},AddHandler:function(handler){_aspxArrayPush(this.handlerList,handler);},RemoveHandler:function(handler){_aspxArrayRemove(this.handlerList,handler);},ClearHandlers:function(){_aspxArrayClear(this.handlerList);},FireEvent:function(obj,args){for(var i=0;i<this.handlerList.length;i++)
this.handlerList[i](obj,args);},IsEmpty:function(){return(this.handlerList.length==0);}});ASPxClientEventArgs=_aspxCreateClass(null,{constructor:function(){}});ASPxClientProcessingModeEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(processOnServer){this.constructor.prototype.constructor.call(this);this.processOnServer=processOnServer;}});ASPxClientCancelEventArgs=_aspxCreateClass(ASPxClientProcessingModeEventArgs,{constructor:function(processOnServer){this.constructor.prototype.constructor.call(this,processOnServer);this.cancel=false;}});ASPxClientBeginCallbackEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(command){this.constructor.prototype.constructor.call();this.command=command;}});ASPxClientEndCallbackEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(){this.constructor.prototype.constructor.call();}});ASPxClientCallbackErrorEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(message){this.constructor.prototype.constructor.call();this.message=message;this.handled=false;}});ASPxClientControlCollection=_aspxCreateClass(null,{constructor:function(){this.elements=new Object();this.BeforeInitCallback=new ASPxClientEvent();this.ControlsInitialized=new ASPxClientEvent();},Add:function(element){this.elements[element.name]=element;},Get:function(name){return this.elements[name];},AdjustControls:function(container,checkSizeCorrectedFlag){this.ProcessControlsInConatiner(container,checkSizeCorrectedFlag,function(control,check){control.AdjustControl(check);});},CollapseControls:function(container,checkSizeCorrectedFlag){this.ProcessControlsInConatiner(container,checkSizeCorrectedFlag,function(control,check){control.CollapseControl(check);});},AtlasInitialize:function(){_aspxProcessScripts(this.name);_aspxSweepDuplicatedLinks();},Initialize:function(){this.InitializeElements();if(_aspxIsExistsType(typeof(Sys))&&_aspxIsExistsType(typeof(Sys.Application)))
Sys.Application.add_load(aspxCAInit);},InitializeElements:function(){for(var name in this.elements){var control=this.elements[name];if(!ASPxIdent.IsASPxClientControl(control))
continue;if(!control.isInitialized)
control.Initialize();}
this.AfterInitializeElements(true);this.AfterInitializeElements(false);this.RaiseControlsInitialized();},AfterInitializeElements:function(leadingCall){for(var name in this.elements){var control=this.elements[name];if(!ASPxIdent.IsASPxClientControl(control))
continue;if(control.leadingAfterInitCall&&leadingCall||!control.leadingAfterInitCall&&!leadingCall){if(!this.elements[name].isInitialized)
this.elements[name].AfterInitialize();}}},DoFinalizeCallback:function(){for(var name in this.elements){var control=this.elements[name];if(!ASPxIdent.IsASPxClientControl(control))
continue;control.DoFinalizeCallback();}},ProcessControlsInConatiner:function(container,checkSizeCorrectedFlag,processingProc){for(var controlName in this.elements){var control=this.elements[controlName];if(!ASPxIdent.IsASPxClientControl(control))
continue;if(_aspxIsExists(container)&&_aspxIsExists(control.GetMainElement)){var mainElement=control.GetMainElement();if(_aspxIsExists(mainElement)&&!_aspxGetIsParent(container,mainElement))
continue;}
processingProc(control,checkSizeCorrectedFlag);}},RaiseControlsInitialized:function(){if(!this.ControlsInitialized.IsEmpty()){var args=new ASPxClientEventArgs();this.ControlsInitialized.FireEvent(this,args);}},Before_WebForm_InitCallback:function(){var args=new ASPxClientEventArgs();this.BeforeInitCallback.FireEvent(this,args);}});ASPxClientControl=_aspxCreateClass(null,{constructor:function(name){this.isASPxClientControl=true;this.name=name;this.uniqueID=name;this.enabled=true;this.clientEnabled=true;this.clientVisible=true;this.autoPostBack=false;this.allowMultipleCallbacks=true;this.callBack=null;this.savedCallbacks=null;this.isNative=false;this.requestCount=0;this.isInitialized=false;this.initialFocused=false;this.leadingAfterInitCall=false;this.sizeCorrectedOnce=false;this.serverEvents=[];this.dialogContentHashTable={};this.sizeCorrectedOnce=false;this.loadingPanelElement=null;this.loadingDivElement=null;this.mainElement=null;this.renderIFrameForPopupElements=false;this.Init=new ASPxClientEvent();this.BeginCallback=new ASPxClientEvent();this.EndCallback=new ASPxClientEvent();this.CallbackError=new ASPxClientEvent();aspxGetControlCollection().Add(this);},Initialize:function(){if(this.callBack!=null)
this.InitializeCallBackData();},InlineInitialize:function(){},InitailizeFocus:function(){if(this.initialFocused&&this.IsVisible())
this.Focus();},AfterInitialize:function(){this.AdjustControl(__aspxCheckSizeCorrectedFlag);this.InitailizeFocus();this.isInitialized=true;this.RaiseInit();if(_aspxIsExists(this.savedCallbacks)){for(var i=0;i<this.savedCallbacks.length;i++)
this.CreateCallbackInternal(this.savedCallbacks[i][0],this.savedCallbacks[i][1],false);this.savedCallbacks=null;}},InitializeCallBackData:function(){},CollapseControl:function(checkSizeCorrectedFlag){},IsVisibleWhenCorrectingSize:function(){return this.IsVisible();},AdjustControl:function(checkSizeCorrectedFlag){if(checkSizeCorrectedFlag&&this.sizeCorrectedOnce)
return;var mainElement=this.GetMainElement();if(!_aspxIsExists(mainElement)||!this.IsVisibleWhenCorrectingSize())
return;this.AdjustControlCore();this.sizeCorrectedOnce=true;},AdjustControlCore:function(){},RegisterServerEventAssigned:function(eventNames){for(var i=0;i<eventNames.length;i++)
this.serverEvents[eventNames[i]]=true;},IsServerEventAssigned:function(eventName){return _aspxIsExists(this.serverEvents[eventName]);},GetChild:function(idPostfix){var mainElement=this.GetMainElement();return _aspxIsExists(mainElement)?_aspxGetChildById(this.GetMainElement(),this.name+idPostfix):null;},GetItemElementName:function(element){var name="";if(_aspxIsExists(element.id))
name=element.id.substring(this.name.length+1);return name;},GetLinkElement:function(element){if(element==null)return null;return(element.tagName=="A")?element:_aspxGetChildByTagName(element,"A",0);},GetMainElement:function(){if(!_aspxIsExistsElement(this.mainElement))
this.mainElement=_aspxGetElementById(this.name);return this.mainElement;},IsRightToLeft:function(){return _aspxIsElementRigthToLeft(this.GetMainElement());},OnControlClick:function(clickedElement,htmlEvent){},GetLoadingPanelElement:function(){return _aspxGetElementById(this.name+"_LP");},CreateLoadingPanelClone:function(element,parentElement){var cloneElement=element.cloneNode(true);cloneElement.id=element.id+"V";parentElement.appendChild(cloneElement);return cloneElement;},CreateLoadingPanelInsideContainer:function(parentElement){if(parentElement==null)return null;var element=this.GetLoadingPanelElement();if(element!=null){var width=0;var height=0;var itemsTable=_aspxGetChildByTagName(parentElement,"TABLE",0);if(itemsTable!=null){width=itemsTable.offsetWidth;height=itemsTable.offsetHeight;}
else if(parentElement.childNodes.length==0){var dummyDiv=document.createElement("DIV");parentElement.appendChild(dummyDiv);width=dummyDiv.offsetWidth;}
else{width=parentElement.clientWidth;height=parentElement.clientHeight;}
parentElement.innerHTML="";var table=document.createElement("TABLE");parentElement.appendChild(table);table.border=0;table.cellPadding=0;table.cellSpacing=0;table.style.height=(height>0)?height+"px":"100%";table.style.width=(width>0)?width+"px":"100%";var tbody=document.createElement("TBODY");table.appendChild(tbody);var tr=document.createElement("TR");tbody.appendChild(tr);var td=document.createElement("TD");tr.appendChild(td);td.align="center";td.vAlign="middle";element=this.CreateLoadingPanelClone(element,td);_aspxSetElementDisplay(element,true);this.loadingPanelElement=element;return element;}
else parentElement.innerHTML="&nbsp;";return null;},CreateLoadingPanelWithAbsolutePosition:function(parentElement,offsetElement){if(parentElement==null)return null;if(!_aspxIsExists(offsetElement))
offsetElement=parentElement;var element=this.GetLoadingPanelElement();if(element!=null){element=this.CreateLoadingPanelClone(element,parentElement);element.style.position="absolute";_aspxSetElementDisplay(element,true);this.SetLoadingPanelLocation(offsetElement,element);this.loadingPanelElement=element;return element;}
return null;},CreateLoadingPanelInline:function(parentElement){if(parentElement==null)return null;var element=this.GetLoadingPanelElement();if(element!=null){element=this.CreateLoadingPanelClone(element,parentElement);_aspxSetElementDisplay(element,true);this.loadingPanelElement=element;return element;}
return null;},HideLoadingPanel:function(){if(_aspxIsExistsElement(this.loadingPanelElement)){_aspxRemoveElement(this.loadingPanelElement);this.loadingPanelElement=null;}},SetLoadingPanelLocation:function(element,loadingPanel){var x1=_aspxGetAbsoluteX(element)-_aspxGetIEDocumentClientOffset(true);var y1=_aspxGetAbsoluteY(element)-_aspxGetIEDocumentClientOffset(false);var x2=x1+element.offsetWidth;var y2=y1+element.offsetHeight;if(x1<_aspxGetDocumentScrollLeft())
x1=_aspxGetDocumentScrollLeft();if(y1<_aspxGetDocumentScrollTop())
y1=_aspxGetDocumentScrollTop();if(x2>_aspxGetDocumentScrollLeft()+_aspxGetDocumentClientWidth())
x2=_aspxGetDocumentScrollLeft()+_aspxGetDocumentClientWidth();if(y2>_aspxGetDocumentScrollTop()+_aspxGetDocumentClientHeight())
y2=_aspxGetDocumentScrollTop()+_aspxGetDocumentClientHeight();var x=x1+((x2-x1-loadingPanel.offsetWidth)/2);var y=y1+((y2-y1-loadingPanel.offsetHeight)/2);loadingPanel.style.left=_aspxPrepareClientPosForElement(x,loadingPanel,true)+"px";loadingPanel.style.top=_aspxPrepareClientPosForElement(y,loadingPanel,false)+"px";},GetLoadingDiv:function(){return _aspxGetElementById(this.name+"_LD");},CreateLoadingDiv:function(parentElement,offsetElement){if(parentElement==null)return null;if(!_aspxIsExists(offsetElement))
offsetElement=parentElement;var div=this.GetLoadingDiv();if(div!=null){div=div.cloneNode(true);parentElement.appendChild(div);div.style.position="absolute";var absX=_aspxGetAbsoluteX(offsetElement);var absY=_aspxGetAbsoluteY(offsetElement);_aspxSetElementDisplay(div,true);div.style.left=_aspxPrepareClientPosForElement(absX,div,true)+"px";div.style.top=_aspxPrepareClientPosForElement(absY,div,false)+"px";div.style.width=offsetElement.offsetWidth+"px";div.style.height=offsetElement.offsetHeight+"px";this.loadingDivElement=div;return div;}
return null;},HideLoadingDiv:function(){if(_aspxIsExistsElement(this.loadingDivElement)){_aspxRemoveElement(this.loadingDivElement);this.loadingDivElement=null;}},RaiseInit:function(){if(!this.Init.IsEmpty()){var args=new ASPxClientEventArgs();this.Init.FireEvent(this,args);}},RaiseBeginCallback:function(command){if(!this.BeginCallback.IsEmpty()){var args=new ASPxClientBeginCallbackEventArgs(command);this.BeginCallback.FireEvent(this,args);}},RaiseEndCallback:function(){if(!this.EndCallback.IsEmpty()){var args=new ASPxClientEndCallbackEventArgs();this.EndCallback.FireEvent(this,args);}},RaiseCallbackError:function(message){if(!this.CallbackError.IsEmpty()){var args=new ASPxClientCallbackErrorEventArgs(message);this.CallbackError.FireEvent(this,args);return args.handled;}
return false;},IsVisible:function(){var element=this.GetMainElement();while(_aspxIsExists(element)&&element.tagName!="BODY"){if(!_aspxGetElementVisibility(element)||!_aspxGetElementDisplay(element))
return false;element=element.parentNode;}
return true;},IsDisplayed:function(){var element=this.GetMainElement();while(_aspxIsExists(element)&&element.tagName!="BODY"){if(!_aspxGetElementDisplay(element))
return false;element=element.parentNode;}
return true;},Focus:function(){},GetClientVisible:function(){return this.GetVisible();},SetClientVisible:function(visible){this.SetVisible(visible);},GetVisible:function(){return this.clientVisible;},SetVisible:function(visible){if(this.clientVisible!=visible){this.clientVisible=visible;_aspxSetElementDisplay(this.GetMainElement(),visible);if(visible){this.AdjustControl(__aspxCheckSizeCorrectedFlag);var mainElement=this.GetMainElement();if(_aspxIsExists(mainElement))
aspxGetControlCollection().AdjustControls(mainElement,__aspxCheckSizeCorrectedFlag);}}},InCallback:function(){return this.requestCount>0;},DoBeginCallback:function(command){if(!_aspxIsExists(command))command="";this.RaiseBeginCallback(command);aspxGetControlCollection().Before_WebForm_InitCallback();if(_aspxIsExistsType(typeof(WebForm_InitCallback))&&_aspxIsExists(WebForm_InitCallback)){__theFormPostData="";__theFormPostCollection=new Array();this.ClearPostBackEventInput("__EVENTTARGET");this.ClearPostBackEventInput("__EVENTARGUMENT");WebForm_InitCallback();this.savedFormPostData=__theFormPostData;this.savedFormPostCollection=__theFormPostCollection;}},ClearPostBackEventInput:function(id){var element=_aspxGetElementById(id);if(element!=null)element.value="";},CreateCallback:function(arg,command){if(!this.isInitialized){if(!_aspxIsExists(this.savedCallbacks))
this.savedCallbacks=[];this.savedCallbacks.push([arg,command]);}
else this.CreateCallbackInternal(arg,command,true);},CreateCallbackInternal:function(arg,command,viaTimer){if(!this.CanCreateCallback())
return;this.requestCount++;this.DoBeginCallback(command);if(viaTimer)
window.setTimeout("aspxCreateCallback('"+this.name+"','"+escape(arg)+"','"+escape(command)+"');",0);else this.CreateCallbackCore(arg,command);},CreateCallbackCore:function(arg,command){__theFormPostData=this.savedFormPostData;__theFormPostCollection=this.savedFormPostCollection;this.callBack(arg);},CanCreateCallback:function(){return this.allowMultipleCallbacks||!this.InCallback();},DoLoadCallbackScripts:function(){_aspxProcessScripts(this.name);_aspxSweepDuplicatedLinks();},DoEndCallback:function(){this.RaiseEndCallback();},DoFinalizeCallback:function(){},HideLoadingPanelOnCallback:function(){return true;},DoCallback:function(result){this.requestCount--;if(this.HideLoadingPanelOnCallback()){this.HideLoadingDiv();this.HideLoadingPanel();}
if(result.indexOf(__aspxCallbackResultPrefix)!=0)
this.ProcessCallbackGeneralError(result);else{try{var resultObj=eval(result);if(_aspxIsExists(resultObj.redirect))
window.location.href=resultObj.redirect;else if(_aspxIsExists(resultObj.generalError))
this.ProcessCallbackGeneralError(resultObj.generalError);else{var errorObj=resultObj.error;if(_aspxIsExists(errorObj))
this.ProcessCallbackError(errorObj);else{if(resultObj.cp){for(var name in resultObj.cp)
this[name]=resultObj.cp[name];}
this.ProcessCallback(resultObj.result);}
this.DoLoadCallbackScripts();}}catch(e){this.ProcessCallbackGeneralError(e.message);}}},DoCallbackError:function(result){this.HideLoadingDiv();this.HideLoadingPanel();this.OnCallbackGeneralError(result);},DoControlClick:function(evt){this.OnControlClick(_aspxGetEventSource(evt),evt);},ProcessCallback:function(result){this.OnCallback(result);},OnCallback:function(result){},ProcessCallbackError:function(errorObj){var message=errorObj.message;var data=_aspxIsExists(errorObj.data)?errorObj.data:null;var result=this.RaiseCallbackError(message)?"":message;this.OnCallbackError(result,data);},OnCallbackError:function(result,data){if(result!="")alert(result);},ProcessCallbackGeneralError:function(errorMessage){var result=this.RaiseCallbackError(errorMessage)?"":errorMessage;this.OnCallbackGeneralError(result);},OnCallbackGeneralError:function(result){this.OnCallbackError(result,null);},SendPostBack:function(params){__doPostBack(this.uniqueID,params);}});ASPxIdent={};ASPxIdent.IsDate=function(obj){return _aspxIsFunction(obj.getTimezoneOffset)&&_aspxIsFunction(obj.getUTCFullYear);};ASPxIdent.IsASPxClientControl=function(obj){return _aspxIsExists(obj.isASPxClientControl)&&obj.isASPxClientControl;};ASPxIdent.IsASPxClientEdit=function(obj){return _aspxIsExists(obj.isASPxClientEdit)&&obj.isASPxClientEdit;};ASPxClientControl.GetControlCollection=function(){return aspxGetControlCollection();}
var __aspxControlCollection=null;function aspxGetControlCollection(){if(__aspxControlCollection==null)
__aspxControlCollection=new ASPxClientControlCollection();return __aspxControlCollection;}
function aspxCAInit(){aspxGetControlCollection().AtlasInitialize();}
function aspxCreateCallback(name,arg,command){var control=aspxGetControlCollection().Get(name);if(control!=null)control.CreateCallbackCore(unescape(arg),unescape(command));}
function aspxCallback(result,context){aspxGetControlCollection().DoFinalizeCallback();var control=aspxGetControlCollection().Get(context);if(control!=null)
control.DoCallback(result);}
function aspxCallbackError(result,context){var control=aspxGetControlCollection().Get(context);if(control!=null)
control.DoCallbackError(result,false);}
function aspxCClick(name,evt){var control=aspxGetControlCollection().Get(name);if(control!=null)control.DoControlClick(evt);}
var __aspxStateItemsExist=false;var __aspxHoverStyleSheet=null;var __aspxPressedStyleSheet=null;var __aspxSelectedStyleSheet=null;var __aspxDisabledStyleSheet=null;var __aspxHoverItemKind="HoverStateItem";var __aspxPressedItemKind="PressedStateItem";var __aspxSelectedItemKind="SelectedStateItem";var __aspxDisabledItemKind="DisabledStateItem";var __aspxStyleCount=0;var __aspxStyleNameCache=new Object();ASPxStateItem=_aspxCreateClass(null,{constructor:function(name,className,cssText,postfixes,imageUrls,imagePostfixes,kind){this.name=name;this.className=className;this.customClassName="";this.resultClassName="";this.cssText=cssText;this.postfixes=postfixes;this.imageUrls=imageUrls;this.imagePostfixes=imagePostfixes;this.kind=kind;this.enabled=true;this.elements=null;this.images=null;this.linkColor=null;this.lintTextDecoration=null;},CreateStyleRule:function(){if(this.cssText=="")return"";var styleSheet=this.GetStyleSheet();if(_aspxIsExists(styleSheet)){if(_aspxIsExists(__aspxStyleNameCache[this.cssText]))
return __aspxStyleNameCache[this.cssText];else{var cssText="";var attributes=this.cssText.split(";");for(var i=0;i<attributes.length;i++){if(attributes[i]!="")
cssText+=attributes[i]+" !important;";}
var className="dxh"+__aspxStyleCount;_aspxAddStyleSheetRule(styleSheet,"."+className,cssText);__aspxStyleCount++;__aspxStyleNameCache[this.cssText]=className;return className;}}
return"";},GetResultClassName:function(){if(this.resultClassName==""){if(this.customClassName=="")
this.customClassName=this.CreateStyleRule();if(this.className!=""&&this.customClassName!="")
this.resultClassName=this.className+" "+this.customClassName;else if(this.className!="")
this.resultClassName=this.className;else if(this.customClassName!="")
this.resultClassName=this.customClassName;}
return this.resultClassName;},GetStyleSheet:function(){if(!_aspxIsExists(__aspxDisabledStyleSheet))
__aspxDisabledStyleSheet=_aspxCreateStyleSheet();if(!_aspxIsExists(__aspxSelectedStyleSheet))
__aspxSelectedStyleSheet=_aspxCreateStyleSheet();if(!_aspxIsExists(__aspxHoverStyleSheet))
__aspxHoverStyleSheet=_aspxCreateStyleSheet();if(!_aspxIsExists(__aspxPressedStyleSheet))
__aspxPressedStyleSheet=_aspxCreateStyleSheet();switch(this.kind){case __aspxDisabledItemKind:return __aspxDisabledStyleSheet;case __aspxHoverItemKind:return __aspxHoverStyleSheet;case __aspxPressedItemKind:return __aspxPressedStyleSheet;case __aspxSelectedItemKind:return __aspxSelectedStyleSheet;}
return null;},GetElements:function(element){if(!_aspxIsExists(this.elements)||!_aspxIsValidElements(this.elements)){if(_aspxIsExists(this.postfixes)&&this.postfixes.length>0){this.elements=new Array();var parentNode=element.parentNode;if(_aspxIsExists(parentNode)){for(var i=0;i<this.postfixes.length;i++){var id=this.name+this.postfixes[i];this.elements[i]=_aspxGetChildById(parentNode,id);if(!_aspxIsExists(this.elements[i]))
this.elements[i]=_aspxGetElementById(id);}}}
else this.elements=[element];}
return this.elements;},GetImages:function(element){if(!_aspxIsExists(this.images)||!_aspxIsValidElements(this.images)){this.images=new Array();if(_aspxIsExists(this.imagePostfixes)&&this.imagePostfixes.length>0){var elements=this.GetElements(element);for(var i=0;i<this.imagePostfixes.length;i++){var id=this.name+this.imagePostfixes[i];for(var j=0;j<elements.length;j++){if(!_aspxIsExists(elements[j]))continue;this.images[i]=_aspxGetChildById(elements[j],id);if(_aspxIsExists(this.images[i]))
break;}}}}
return this.images;},Apply:function(element){if(!this.enabled)return;try{this.ApplyStyle(element);if(_aspxIsExists(this.imageUrls)&&this.imageUrls.length>0)
this.ApplyImage(element);}
catch(e){}},ApplyStyle:function(element){var elements=this.GetElements(element);for(var i=0;i<elements.length;i++){if(!_aspxIsExists(elements[i]))continue;var className=elements[i].className.replace(this.GetResultClassName(),"");elements[i].className=_aspxTrim(className)+" "+this.GetResultClassName();if(!__aspxOpera||__aspxOpera9)
this.ApplyStyleToLinks(elements,i);}},ApplyStyleToLinks:function(elements,index){var linkCount=0;var savedLinkCount=-1;if(_aspxIsExists(elements[index]["savedLinkCount"]))
savedLinkCount=parseInt(elements[index]["savedLinkCount"]);do{if(savedLinkCount>-1&&savedLinkCount<=linkCount)
break;var link=elements[index]["link"+linkCount];if(!_aspxIsExists(link)){link=_aspxGetChildByTagName(elements[index],"A",linkCount);if(!_aspxIsExists(link))
link=_aspxGetChildByTagName(elements[index],"SPAN",linkCount);if(_aspxIsExists(link))
elements[index]["link"+linkCount]=link;}
if(_aspxIsExists(link))
this.ApplyStyleToLinkElement(link);else elements[index]["savedLinkCount"]=linkCount;linkCount++;}
while(link!=null)},ApplyStyleToLinkElement:function(link){if(this.GetLinkColor()!="")
_aspxChangeAttributeExtended(link.style,"color",link,"saved"+this.kind+"Color",this.GetLinkColor());if(this.GetLinkTextDecoration()!="")
_aspxChangeAttributeExtended(link.style,"textDecoration",link,"saved"+this.kind+"TextDecoration",this.GetLinkTextDecoration());},ApplyImage:function(element){var images=this.GetImages(element);for(var i=0;i<images.length;i++){if(!_aspxIsExists(images[i])||!_aspxIsExists(this.imageUrls[i])||this.imageUrls[i]=="")continue;if(_aspxIsAlphaFilterUsed(images[i]))
_aspxChangeAttributeExtended(images[i].style,"filter",images[i],"saved"+this.kind+"Filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.imageUrls[i]+",sizingMethod=scale)");else _aspxChangeAttributeExtended(images[i],"src",images[i],"saved"+this.kind+"Src",this.imageUrls[i]);}},Cancel:function(element){if(!this.enabled)return;try{this.CancelStyle(element);if(_aspxIsExists(this.imageUrls)&&this.imageUrls.length>0)
this.CancelImage(element);}
catch(e){}},CancelStyle:function(element){var elements=this.GetElements(element);for(var i=0;i<elements.length;i++){if(!_aspxIsExists(elements[i]))continue;var className=_aspxTrim(elements[i].className.replace(this.GetResultClassName(),""));elements[i].className=className;if(!__aspxOpera||__aspxOpera9)
this.CancelStyleFromLinks(elements,i);}},CancelStyleFromLinks:function(elements,index){var linkCount=0;var savedLinkCount=-1;if(_aspxIsExists(elements[index]["savedLinkCount"]))
savedLinkCount=parseInt(elements[index]["savedLinkCount"]);do{if(savedLinkCount>-1&&savedLinkCount<=linkCount)
break;var link=elements[index]["link"+linkCount];if(!_aspxIsExists(link)){link=_aspxGetChildByTagName(elements[index],"A",linkCount);if(!_aspxIsExists(link))
link=_aspxGetChildByTagName(elements[index],"SPAN",linkCount);if(_aspxIsExists(link))
elements[index]["link"+linkCount]=link;}
if(_aspxIsExists(link))
this.CancelStyleFromLinkElement(link);else elements[index]["savedLinkCount"]=linkCount;linkCount++;}
while(link!=null)},CancelStyleFromLinkElement:function(link){if(this.GetLinkColor()!="")
_aspxRestoreAttributeExtended(link.style,"color",link,"saved"+this.kind+"Color");if(this.GetLinkTextDecoration()!="")
_aspxRestoreAttributeExtended(link.style,"textDecoration",link,"saved"+this.kind+"TextDecoration");},CancelImage:function(element){var images=this.GetImages(element);for(var i=0;i<images.length;i++){if(!_aspxIsExists(images[i])||!_aspxIsExists(this.imageUrls[i])||this.imageUrls[i]=="")continue;if(_aspxIsAlphaFilterUsed(images[i]))
_aspxRestoreAttributeExtended(images[i].style,"filter",images[i],"saved"+this.kind+"Filter");else _aspxRestoreAttributeExtended(images[i],"src",images[i],"saved"+this.kind+"Src");}},Clone:function(){return new ASPxStateItem(this.name,this.className,this.cssText,this.postfixes,this.imageUrls,this.imagePostfixes,this.kind);},IsChildElement:function(element){if(element!=null){var elements=this.GetElements(element);for(var i=0;i<elements.length;i++){if(!_aspxIsExists(elements[i]))continue;if(_aspxGetIsParent(elements[i],element))
return true;}}
return false;},GetLinkColor:function(){if(!_aspxIsExists(this.linkColor)){var rule=_aspxGetStyleSheetRule(this.customClassName);this.linkColor=_aspxIsExists(rule)?rule.style.color:null;if(!_aspxIsExists(this.linkColor)){var rule=_aspxGetStyleSheetRule(this.className);this.linkColor=_aspxIsExists(rule)?rule.style.color:null;}
if(this.linkColor==null)
this.linkColor="";}
return this.linkColor;},GetLinkTextDecoration:function(){if(!_aspxIsExists(this.linkTextDecoration)){var rule=_aspxGetStyleSheetRule(this.customClassName);this.linkTextDecoration=_aspxIsExists(rule)?rule.style.textDecoration:null;if(!_aspxIsExists(this.linkTextDecoration)){var rule=_aspxGetStyleSheetRule(this.className);this.linkTextDecoration=_aspxIsExists(rule)?rule.style.textDecoration:null;}
if(this.linkTextDecoration==null)
this.linkTextDecoration="";}
return this.linkTextDecoration;}});ASPxClientStateEventArgs=_aspxCreateClass(null,{constructor:function(item,element){this.item=item;this.element=element;this.toElement=null;this.fromElement=null;}});ASPxStateController=_aspxCreateClass(null,{constructor:function(){this.hoverItems=new Object();this.pressedItems=new Object();this.selectedItems=new Object();this.disabledItems=new Object();this.currentHoverElement=null;this.currentHoverItemName=null;this.currentPressedElement=null;this.currentPressedItemName=null;this.savedCurrentPressedElement=null;this.savedCurrentMouseMoveSrcElement=null;this.AfterSetHoverState=new ASPxClientEvent();this.AfterClearHoverState=new ASPxClientEvent();this.AfterSetPressedState=new ASPxClientEvent();this.AfterClearPressedState=new ASPxClientEvent();this.AfterDisabled=new ASPxClientEvent();this.AfterEnabled=new ASPxClientEvent();this.BeforeSetHoverState=new ASPxClientEvent();this.BeforeClearHoverState=new ASPxClientEvent();this.BeforeSetPressedState=new ASPxClientEvent();this.BeforeClearPressedState=new ASPxClientEvent();this.BeforeDisabled=new ASPxClientEvent();this.BeforeEnabled=new ASPxClientEvent();},AddHoverItem:function(name,className,cssText,postfixes,imageUrls,imagePostfixes){this.AddItem(this.hoverItems,name,className,cssText,postfixes,imageUrls,imagePostfixes,__aspxHoverItemKind);},AddPressedItem:function(name,className,cssText,postfixes,imageUrls,imagePostfixes){this.AddItem(this.pressedItems,name,className,cssText,postfixes,imageUrls,imagePostfixes,__aspxPressedItemKind);},AddSelectedItem:function(name,className,cssText,postfixes,imageUrls,imagePostfixes){this.AddItem(this.selectedItems,name,className,cssText,postfixes,imageUrls,imagePostfixes,__aspxSelectedItemKind);},AddDisabledItem:function(name,className,cssText,postfixes,imageUrls,imagePostfixes){this.AddItem(this.disabledItems,name,className,cssText,postfixes,imageUrls,imagePostfixes,__aspxDisabledItemKind);},AddItem:function(items,name,className,cssText,postfixes,imageUrls,imagePostfixes,kind){var stateItem=new ASPxStateItem(name,className,cssText,postfixes,imageUrls,imagePostfixes,kind);if(_aspxIsExists(postfixes)&&postfixes.length>0){for(var i=0;i<postfixes.length;i++){items[name+postfixes[i]]=stateItem;}}
else items[name]=stateItem;__aspxStateItemsExist=true;},GetHoverElement:function(srcElement){return this.GetItemElement(srcElement,this.hoverItems,__aspxHoverItemKind);},GetPressedElement:function(srcElement){return this.GetItemElement(srcElement,this.pressedItems,__aspxPressedItemKind);},GetSelectedElement:function(srcElement){return this.GetItemElement(srcElement,this.selectedItems,__aspxSelectedItemKind);},GetDisabledElement:function(srcElement){return this.GetItemElement(srcElement,this.disabledItems,__aspxDisabledItemKind);},GetItemElement:function(srcElement,items,kind){if(_aspxIsExists(srcElement)&&_aspxIsExists(srcElement["cached"+kind])){var cachedElement=srcElement["cached"+kind];if(cachedElement!=__aspxEmptyCachedValue)
return cachedElement;return null;}
var element=srcElement;while(element!=null){var item=items[element.id];if(_aspxIsExists(item)){this.CacheItemElement(srcElement,kind,element);element[kind]=item;return element;}
element=element.parentNode;}
this.CacheItemElement(srcElement,kind,__aspxEmptyCachedValue);return null;},CacheItemElement:function(srcElement,kind,value){if(_aspxIsExists(srcElement)&&!_aspxIsExists(srcElement["cached"+kind]))
srcElement["cached"+kind]=value;},DoSetHoverState:function(element,fromElement){var item=element[__aspxHoverItemKind];if(_aspxIsExists(item)){var args=new ASPxClientStateEventArgs(item,element);args.fromElement=fromElement;this.BeforeSetHoverState.FireEvent(this,args);item.Apply(element);this.AfterSetHoverState.FireEvent(this,args);}},DoClearHoverState:function(element,toElement){var item=element[__aspxHoverItemKind];if(_aspxIsExists(item)){var args=new ASPxClientStateEventArgs(item,element);args.toElement=toElement;this.BeforeClearHoverState.FireEvent(this,args);item.Cancel(element);this.AfterClearHoverState.FireEvent(this,args);}},DoSetPressedState:function(element){var item=element[__aspxPressedItemKind];if(_aspxIsExists(item)){var args=new ASPxClientStateEventArgs(item,element);this.BeforeSetPressedState.FireEvent(this,args);item.Apply(element);this.AfterSetPressedState.FireEvent(this,args);}},DoClearPressedState:function(element){var item=element[__aspxPressedItemKind];if(_aspxIsExists(item)){var args=new ASPxClientStateEventArgs(item,element);this.BeforeClearPressedState.FireEvent(this,args);item.Cancel(element);this.AfterClearPressedState.FireEvent(this,args);}},SetCurrentHoverElement:function(element){if(_aspxIsExists(this.currentHoverElement)&&!_aspxIsValidElement(this.currentHoverElement)){this.currentHoverElement=null;this.currentHoverItemName="";}
if(this.currentHoverElement!=element){var oldCurrentHoverElement=this.currentHoverElement;var item=(element!=null)?element[__aspxHoverItemKind]:null;var itemName=(item!=null)?item.name:"";if(this.currentHoverItemName!=itemName){if(this.currentHoverElement!=null)
this.DoClearHoverState(this.currentHoverElement,element);this.currentHoverElement=element;item=(element!=null)?element[__aspxHoverItemKind]:null;this.currentHoverItemName=(item!=null)?item.name:"";if(this.currentHoverElement!=null)
this.DoSetHoverState(this.currentHoverElement,oldCurrentHoverElement);}}},SetCurrentPressedElement:function(element){if(_aspxIsExists(this.currentPressedElement)&&!_aspxIsValidElement(this.currentPressedElement)){this.currentPressedElement=null;this.currentPressedItemName="";}
if(this.currentPressedElement!=element){if(this.currentPressedElement!=null)
this.DoClearPressedState(this.currentPressedElement);this.currentPressedElement=element;var item=(element!=null)?element[__aspxPressedItemKind]:null;this.currentPressedItemName=(item!=null)?item.name:"";if(this.currentPressedElement!=null)
this.DoSetPressedState(this.currentPressedElement);}},SetCurrentHoverElementBySrcElement:function(srcElement){var element=this.GetHoverElement(srcElement);this.SetCurrentHoverElement(element);},SetCurrentPressedElementBySrcElement:function(srcElement){var element=this.GetPressedElement(srcElement);this.SetCurrentPressedElement(element);},SelectElement:function(element){var item=element[__aspxSelectedItemKind];if(_aspxIsExists(item))
item.Apply(element);},SelectElementBySrcElement:function(srcElement){var element=this.GetSelectedElement(srcElement);if(element!=null)this.SelectElement(element);},DeselectElement:function(element){var item=element[__aspxSelectedItemKind];if(_aspxIsExists(item))
item.Cancel(element);},DeselectElementBySrcElement:function(srcElement){var element=this.GetSelectedElement(srcElement);if(element!=null)this.DeselectElement(element);},SetElementEnabled:function(element,enable){if(enable)
this.EnableElement(element);else this.DisableElement(element);},DisableElement:function(element){var element=this.GetDisabledElement(element);if(element!=null){var item=element[__aspxDisabledItemKind];if(_aspxIsExists(item)){var args=new ASPxClientStateEventArgs(item,element);this.BeforeDisabled.FireEvent(this,args);if(item.name==this.currentPressedItemName)
this.SetCurrentPressedElement(null);if(item.name==this.currentHoverItemName)
this.SetCurrentHoverElement(null);item.Apply(element);this.SetMouseStateItemsEnabled(item.name,item.postfixes,false);this.AfterDisabled.FireEvent(this,args);}}},EnableElement:function(element){var element=this.GetDisabledElement(element);if(element!=null){var item=element[__aspxDisabledItemKind];if(_aspxIsExists(item)){var args=new ASPxClientStateEventArgs(item,element);this.BeforeEnabled.FireEvent(this,args);item.Cancel(element);this.SetMouseStateItemsEnabled(item.name,item.postfixes,true);this.AfterEnabled.FireEvent(this,args);}}},SetMouseStateItemsEnabled:function(name,postfixes,enabled){if(_aspxIsExists(postfixes)&&postfixes.length>0){for(var i=0;i<postfixes.length;i++){this.SetItemsEnabled(this.hoverItems,name+postfixes[i],enabled);this.SetItemsEnabled(this.pressedItems,name+postfixes[i],enabled);}}
else{this.SetItemsEnabled(this.hoverItems,name,enabled);this.SetItemsEnabled(this.pressedItems,name,enabled);}},SetItemsEnabled:function(items,name,enabled){if(_aspxIsExists(items[name]))items[name].enabled=enabled;},OnMouseMove:function(evt){var srcElement=_aspxGetEventSource(evt);if(srcElement==this.savedCurrentMouseMoveSrcElement)return;this.savedCurrentMouseMoveSrcElement=srcElement;if(__aspxIE&&!_aspxGetIsLeftButtonPressed(evt)&&this.savedCurrentPressedElement!=null){this.savedCurrentPressedElement=null;this.SetCurrentPressedElement(null);}
if(this.savedCurrentPressedElement==null)
this.SetCurrentHoverElementBySrcElement(srcElement);else{var element=this.GetPressedElement(srcElement);if(element!=this.currentPressedElement){if(element==this.savedCurrentPressedElement)
this.SetCurrentPressedElement(this.savedCurrentPressedElement);else this.SetCurrentPressedElement(null);}}},OnMouseDown:function(evt){if(!_aspxGetIsLeftButtonPressed(evt))return;var srcElement=_aspxGetEventSource(evt);this.OnMouseDownOnElement(srcElement);},OnMouseDownOnElement:function(element){if(this.GetPressedElement(element)==null)return;this.SetCurrentHoverElement(null);this.SetCurrentPressedElementBySrcElement(element);this.savedCurrentPressedElement=this.currentPressedElement;},OnMouseUp:function(evt){var srcElement=_aspxGetEventSource(evt);this.OnMouseUpOnElement(srcElement);},OnMouseUpOnElement:function(element){if(this.savedCurrentPressedElement==null)return;this.savedCurrentPressedElement=null;this.SetCurrentPressedElement(null);this.SetCurrentHoverElementBySrcElement(element);},OnMouseOver:function(evt){var element=_aspxGetEventSource(evt);if(_aspxIsExists(element)&&element.tagName=="IFRAME")
this.OnMouseMove(evt);},OnSelectStart:function(evt){if((this.savedCurrentPressedElement!=null)&&(!_aspxIsExists(this.savedCurrentPressedElement.needClearSelection))){_aspxClearSelection();return false;}}});var __aspxStateController=null;function aspxGetStateController(){if(__aspxStateController==null)
__aspxStateController=new ASPxStateController();return __aspxStateController;}
function aspxAddStateItems(method,namePrefix,classes){for(var i=0;i<classes.length;i++){for(var j=0;j<classes[i][2].length;j++){var name=namePrefix;if(_aspxIsExists(classes[i][2][j])&&classes[i][2][j]!="")
name+="_"+classes[i][2][j];var postfixes=_aspxIsExists(classes[i][3])?classes[i][3]:null;var imageUrls=_aspxIsExists(classes[i][4])&&_aspxIsExists(classes[i][4][j])?classes[i][4][j]:null;var imagePostfixes=_aspxIsExists(classes[i][5])?classes[i][5]:null;method.call(aspxGetStateController(),name,classes[i][0],classes[i][1],postfixes,imageUrls,imagePostfixes);}}}
function aspxAddHoverItems(namePrefix,classes){aspxAddStateItems(aspxGetStateController().AddHoverItem,namePrefix,classes);}
function aspxAddPressedItems(namePrefix,classes){aspxAddStateItems(aspxGetStateController().AddPressedItem,namePrefix,classes);}
function aspxAddSelectedItems(namePrefix,classes){aspxAddStateItems(aspxGetStateController().AddSelectedItem,namePrefix,classes);}
function aspxAddDisabledItems(namePrefix,classes){aspxAddStateItems(aspxGetStateController().AddDisabledItem,namePrefix,classes);}
function aspxAddAfterClearHoverState(handler){aspxGetStateController().AfterClearHoverState.AddHandler(handler);}
function aspxAddAfterSetHoverState(handler){aspxGetStateController().AfterSetHoverState.AddHandler(handler);}
function aspxAddAfterClearPressedState(handler){aspxGetStateController().AfterClearPressedState.AddHandler(handler);}
function aspxAddAfterSetPressedState(handler){aspxGetStateController().AfterSetPressedState.AddHandler(handler);}
function aspxAddAfterDisabled(handler){aspxGetStateController().AfterDisabled.AddHandler(handler);}
function aspxAddAfterEnabled(handler){aspxGetStateController().AfterEnabled.AddHandler(handler);}
function aspxAddBeforeClearHoverState(handler){aspxGetStateController().BeforeClearHoverState.AddHandler(handler);}
function aspxAddBeforeSetHoverState(handler){aspxGetStateController().BeforeSetHoverState.AddHandler(handler);}
function aspxAddBeforeClearPressedState(handler){aspxGetStateController().BeforeClearPressedState.AddHandler(handler);}
function aspxAddBeforeSetPressedState(handler){aspxGetStateController().BeforeSetPressedState.AddHandler(handler);}
function aspxAddBeforeDisabled(handler){aspxGetStateController().BeforeDisabled.AddHandler(handler);}
function aspxAddBeforeEnabled(handler){aspxGetStateController().BeforeEnabled.AddHandler(handler);}
_aspxAttachEventToElement(window,"load",aspxClassesWindowOnLoad);function aspxClassesWindowOnLoad(evt){aspxGetControlCollection().Initialize();__aspxHTMLLoaded=true;_aspxInitializeScripts();_aspxInitializeLinks();}
_aspxAttachEventToDocument("mousemove",aspxClassesDocumentMouseMove);function aspxClassesDocumentMouseMove(evt){if(__aspxHTMLLoaded&&__aspxStateItemsExist)
aspxGetStateController().OnMouseMove(evt);}
_aspxAttachEventToDocument("mousedown",aspxClassesDocumentMouseDown);function aspxClassesDocumentMouseDown(evt){if(__aspxHTMLLoaded&&__aspxStateItemsExist)
aspxGetStateController().OnMouseDown(evt);}
_aspxAttachEventToDocument("mouseup",aspxClassesDocumentMouseUp);function aspxClassesDocumentMouseUp(evt){if(__aspxHTMLLoaded&&__aspxStateItemsExist)
aspxGetStateController().OnMouseUp(evt);}
_aspxAttachEventToDocument("mouseover",aspxClassesDocumentMouseOver);function aspxClassesDocumentMouseOver(evt){if(__aspxHTMLLoaded&&__aspxStateItemsExist)
aspxGetStateController().OnMouseOver(evt);}
_aspxAttachEventToDocument("selectstart",aspxClassesDocumentSelectStart);function aspxClassesDocumentSelectStart(evt){if(__aspxHTMLLoaded&&__aspxStateItemsExist)
return aspxGetStateController().OnSelectStart(evt);}
function aspxFireDefaultButton(evt,buttonID){if(evt.keyCode==ASPxKeyConsts.KEY_ENTER){var srcElement=_aspxGetEventSource(evt);if(!_aspxIsExists(srcElement)||(srcElement.tagName.toLowerCase()!="textarea")){var defaultButton=_aspxGetElementById(buttonID);if(_aspxIsExists(defaultButton)&&_aspxIsExists(defaultButton.click)){if(_aspxIsFocusable(defaultButton))
defaultButton.focus();defaultButton.click();evt.cancelBubble=true;if(_aspxIsFunction(evt.stopPropagation))
evt.stopPropagation();return false;}}}
return true;}
var __aspxIncludeScriptPrefix="dxis_";var __aspxStartupScriptPrefix="dxss_";var __aspxIncludeScriptsCache={};var __aspxCreatedIncludeScripts;var __aspxAppendedScriptsCount;var __aspxScriptsRestartHandlers={};function _aspxGetScriptCode(script){var text=__aspxSafari?script.firstChild.data:script.text;var comment="<!--";var pos=text.indexOf(comment);if(pos>-1)
text=text.substr(pos+comment.length);return text;}
function _aspxAppendScript(script){var parent=document.getElementsByTagName("head")[0];if(!_aspxIsExists(parent))
parent=document.body;if(_aspxIsExists(parent)){parent.appendChild(script);}}
function _aspxIsAlphaFilterUsed(img){return(__aspxIE&&img.style.filter.indexOf("progid:DXImageTransform.Microsoft.AlphaImageLoader")>-1);}
function _aspxIsKnownIncludeScript(script){return _aspxIsExists(__aspxIncludeScriptsCache[script.src]);}
function _aspxCacheIncludeScript(script){__aspxIncludeScriptsCache[script.src]=1;}
function _aspxGetStartupScripts(){return _aspxGetScriptsCore(__aspxStartupScriptPrefix);}
function _aspxGetIncludeScripts(){return _aspxGetScriptsCore(__aspxIncludeScriptPrefix);}
function _aspxGetScriptsCore(prefix){var result=[];var scripts=document.getElementsByTagName("SCRIPT");for(var i=0;i<scripts.length;i++){if(scripts[i].id.indexOf(prefix)==0)
result.push(scripts[i]);}
return result;}
function _aspxGetLinks(){return document.getElementsByTagName("LINK");;}
function _aspxInitializeLinks(){var links=_aspxGetLinks();for(var i=0;i<links.length;i++)
links[i].loaded=true;}
function _aspxInitializeScripts(){var scripts=_aspxGetIncludeScripts();for(var i=0;i<scripts.length;i++)
_aspxCacheIncludeScript(scripts[i]);var startupScripts=_aspxGetStartupScripts();for(var i=0;i<startupScripts.length;i++)
startupScripts[i].executed=true;}
function _aspxSweepDuplicatedLinks(){if(!__aspxIE||__aspxIE7)
_aspxSweepDuplicatedElements(_aspxGetLinks(),"href");}
function _aspxSweepDuplicatedScripts(){_aspxSweepDuplicatedElements(_aspxGetIncludeScripts(),"src");}
function _aspxSweepDuplicatedElements(collection,attributeName){var hash={};for(var i=0;i<collection.length;i++){var value=_aspxGetAttribute(collection[i],attributeName);if(!_aspxIsExists(value)||value=="")continue;if(_aspxIsExists(hash[value]))
_aspxRemoveElement(collection[i]);else hash[value]=1;}}
function _aspxProcessScripts(ownerName){__aspxCreatedIncludeScripts=[];__aspxAppendedScriptsCount=0;var scripts=_aspxGetIncludeScripts();var immediate=false;var waitCount=0;for(var i=0;i<scripts.length;i++){if(!_aspxIsKnownIncludeScript(scripts[i])){waitCount++;var createdScript=document.createElement("script");__aspxCreatedIncludeScripts.push(createdScript);createdScript.type="text/javascript";createdScript.src=scripts[i].src;if(__aspxIE){createdScript.onreadystatechange=new Function("_aspxOnScriptReadyStateChangedCallback(this,\""+ownerName+"\");");}else{if(!__aspxSafari||__aspxSafari3)
createdScript.onload=new Function("_aspxOnScriptLoadCallback(this,\""+ownerName+"\");");else immediate=true;_aspxAppendScript(createdScript);_aspxCacheIncludeScript(createdScript);}}}
if(immediate&&waitCount>0)
_aspxSetTimeout("_aspxFinalizeScriptProcessing(\""+ownerName+"\")",1);else if(waitCount==0)
_aspxFinalizeScriptProcessing(ownerName);}
function _aspxFinalizeScriptProcessing(ownerName){_aspxSweepDuplicatedScripts();_aspxRunStartupScripts();var owner=aspxGetControlCollection().Get(ownerName);if(owner!=null)owner.DoEndCallback();}
function _aspxRunStartupScripts(){var scripts=_aspxGetStartupScripts();var code;for(var i=0;i<scripts.length;i++){if(!scripts[i].executed){code=_aspxGetScriptCode(scripts[i]);eval(code);scripts[i].executed=true;}}
aspxGetControlCollection().InitializeElements();for(var key in __aspxScriptsRestartHandlers)
__aspxScriptsRestartHandlers[key]();}
function _aspxOnScriptReadyStateChangedCallback(scriptElement,ownerName){if(scriptElement.readyState=="loaded"){_aspxCacheIncludeScript(scriptElement);for(var i=0;i<__aspxCreatedIncludeScripts.length;i++){var script=__aspxCreatedIncludeScripts[i];if(_aspxIsKnownIncludeScript(script)){if(!script.executed){script.executed=true;_aspxAppendScript(script);__aspxAppendedScriptsCount++;}}else break;}
if(__aspxCreatedIncludeScripts.length==__aspxAppendedScriptsCount)
_aspxFinalizeScriptProcessing(ownerName);}}
function _aspxOnScriptLoadCallback(scriptElement,ownerName){__aspxAppendedScriptsCount++;if(__aspxCreatedIncludeScripts.length==__aspxAppendedScriptsCount)
_aspxFinalizeScriptProcessing(ownerName);}
function _aspxAddScriptsRestartHandler(objectName,handler){__aspxScriptsRestartHandlers[objectName]=handler;}
var __aspxMenuAnimationAccelerator=1/10;var __aspxPCAnimationAccelerator=1/3;var __aspxAnimationDiscardPixels=3;var __aspxNotSetAlignIndicator="NotSet";var __aspxInnerAlignIndicator="Sides";function _aspxIsAlignNotSet(align){return align==__aspxNotSetAlignIndicator;}
function _aspxIsInnerAlign(align){return align.indexOf(__aspxInnerAlignIndicator)!=-1;}
function _aspxIsOuterAlign(align){return(!this.IsInnerAlign(align))&&(!_aspxIsAlignNotSet(align));}
function _aspxPopupPosition(position,isInverted){this.position=position;this.isInverted=isInverted;}
function _aspxSegment(pos,len){this.pos=pos;this.len=len;}
function _aspxRect(left,top,width,height){this.left=left;this.top=top;this.width=width;this.height=height;}
function _aspxFindPopupElementById(id){if(id=="")return null;var popupElement=_aspxGetElementById(id);if(!_aspxIsExistsElement(popupElement)){var idParts=id.split("_");var uniqueId=idParts.join("$");popupElement=_aspxGetElementById(uniqueId);}
return popupElement;}
function _aspxFindParentPopupElementByEvent(evt,testFunc){return _aspxFindParentPopupElement(_aspxGetEventSource(evt),testFunc);}
function _aspxFindParentPopupElement(element,testFunc){if(!_aspxIsExists(testFunc))return null;while(element!=null&&element.tagName!="BODY"){if(testFunc(element))
return element;element=element.parentNode;}
return null;}
function _aspxPreventContextMenu(evt){if(__aspxSafari)
evt.stopPropagation();else if(__aspxNS)
evt.preventDefault();}
function _aspxSetStylePosition(element,x,y){element.style.left=x+"px";element.style.top=y+"px";}
function _aspxSetStyleSize(element,width,height){element.style.width=width+"px";element.style.height=height+"px";}
function _aspxIsExistsAbsolutePosParent(element){return _aspxIsExistsParentWithSpecPosition(element,["absolute"])}
function _aspxIsExistsAbsoluteOrRelativePosParent(element){return _aspxIsExistsParentWithSpecPosition(element,["absolute","relative"])}
function _aspxIsExistsParentWithSpecPosition(element,positions){var curEl=element.offsetParent;while(curEl!=null){for(var i=0;i<positions.length;i++){if(_aspxGetCurrentStyle(curEl).position==positions[i])
return true;}
curEl=curEl.offsetParent;}
return false;}
function _aspxGetPopupAbsoluteX(element,popupElement,hAlign,hOffset,x,left){var width=element.offsetWidth;var bodyWidth=_aspxGetDocumentClientWidth();var elementX=_aspxGetAbsoluteX(popupElement);var scrollX=_aspxGetDocumentScrollLeft();if(hAlign=="WindowCenter")
return new _aspxPopupPosition(Math.ceil(bodyWidth/2-width/2)+scrollX+hOffset,false);if(_aspxIsExists(popupElement)){var leftX=elementX-width;var rightX=elementX+popupElement.offsetWidth;var innerLeftX=elementX;var innerRightX=elementX+popupElement.offsetWidth-width;var isMoreFreeSpaceLeft=bodyWidth-(rightX+width)<leftX-2*scrollX;}
else hAlign="";var isInverted=false;if(hAlign=="OutsideLeft"){isInverted=!(leftX-scrollX>0||isMoreFreeSpaceLeft);if(isInverted)
x=rightX-hOffset;else x=leftX+hOffset;}
else if(hAlign=="LeftSides"){x=innerLeftX+hOffset;}
else if(hAlign=="Center"){x=elementX+Math.round((popupElement.offsetWidth-width)/2)+hOffset;}
else if(hAlign=="RightSides"){x=innerRightX+hOffset;}
else if(hAlign=="OutsideRight"){isInverted=!(rightX+width<bodyWidth+scrollX||!isMoreFreeSpaceLeft);if(isInverted)
x=leftX-hOffset;else x=rightX+hOffset;}
else{if(!_aspxGetIsValidPosition(x))
x=(_aspxIsExists(popupElement))?_aspxGetAbsoluteX(popupElement):left;isInverted=x-scrollX+width>bodyWidth&&x-scrollX>bodyWidth/2;if(isInverted)
x=x-width-hOffset;else x=x+hOffset;}
if(__aspxIE55)
x-=_aspxGetIEDocumentClientOffset(true);return new _aspxPopupPosition(x,isInverted);}
function _aspxGetPopupAbsoluteY(element,popupElement,vAlign,vOffset,y,top){var height=element.offsetHeight;var bodyHeight=_aspxGetDocumentClientHeight();var elementY=_aspxGetAbsoluteY(popupElement);var scrollY=_aspxGetDocumentScrollTop();if(vAlign=="WindowCenter")
return new _aspxPopupPosition(Math.ceil(bodyHeight/2-height/2)+scrollY+vOffset,false);if(_aspxIsExists(popupElement)){var bottomY=elementY+popupElement.offsetHeight;var topY=elementY-height;var innerBottomY=elementY+popupElement.offsetHeight-height;var innerTopY=elementY;var isMoreFreeSpaceAbove=bodyHeight-(bottomY+height)<topY-2*scrollY;}
else vAlign="";var isInverted=false;if(vAlign=="Above"){isInverted=!(topY-scrollY>0||isMoreFreeSpaceAbove);if(isInverted)
y=bottomY-vOffset;else y=topY+vOffset;}
else if(vAlign=="TopSides"){y=innerTopY+vOffset;}
else if(vAlign=="Middle"){y=elementY+Math.round((popupElement.offsetHeight-height)/2)+vOffset;}
else if(vAlign=="BottomSides"){y=innerBottomY+vOffset;}
else if(vAlign=="Below"){isInverted=!(bottomY+height<bodyHeight+scrollY||!isMoreFreeSpaceAbove);if(isInverted)
y=topY-vOffset;else y=bottomY+vOffset;}
else{if(!_aspxGetIsValidPosition(y))
y=(_aspxIsExists(popupElement))?_aspxGetAbsoluteY(popupElement):top;isInverted=y-_aspxGetDocumentScrollTop()+height>bodyHeight&&y-_aspxGetDocumentScrollTop()>bodyHeight/2;if(isInverted)
y=y-height-vOffset;else y=y+vOffset;}
if(__aspxIE55)
y-=_aspxGetIEDocumentClientOffset(false);return new _aspxPopupPosition(y,isInverted);}
function _aspxGetIntersectionRect(left1,top1,left2,top2,width,height){var segment1=_aspxGetIntersectionSegment(left1,left2,width);var segment2=_aspxGetIntersectionSegment(top1,top2,height);if(segment1!=null&&segment2!=null){var left=segment1.pos;var top=segment2.pos;var width=segment1.len;var height=segment2.len;return new _aspxRect(left,top,width,height);}
return null;}
function _aspxGetIntersectionSegment(pos1,pos2,len){var posDifferense=Math.abs(pos1-pos2);if(posDifferense<=len){var pos=pos1>pos2?pos1:pos2;var len=len-posDifferense;return new _aspxSegment(pos,len);}
return null;}
function _aspxInitAnimationDiv(element,x,y,onTimerString,onAnimStopCallString){element.animationStart=new Date();element.absoluteLeft=x;element.absoluteTop=y;element.popuping=true;element.onTimerString=onTimerString;element.onAnimStopCallString=onAnimStopCallString;element.style.overflow="hidden";element.style.position="absolute";_aspxSetStylePosition(element,x,y);_aspxSetStyleSize(element,element.offsetWidth,element.offsetHeight);}
function _aspxOnAnimationTimer(animationDivElement,element,mainCell,iframeElement,animationDelay,animationMaxDelay,animationAccelerator){animationDivElement.timerID=_aspxClearTimer(element.timerID);var timeExpired=new Date()-animationDivElement.animationStart>animationMaxDelay;if(timeExpired)
_aspxAnimationFinished(animationDivElement);var left=animationDivElement.popuping?_aspxGetNextAnimationPosInternal(element.offsetLeft,animationAccelerator):0;var top=animationDivElement.popuping?_aspxGetNextAnimationPosInternal(element.offsetTop,animationAccelerator):0;if(left==0&&top==0)
_aspxAnimationFinished(animationDivElement);element.style.top=top+"px";element.style.left=left+"px";var rect=_aspxGetIntersectionRect(animationDivElement.offsetLeft,animationDivElement.offsetTop,element.offsetLeft+animationDivElement.offsetLeft,element.offsetTop+animationDivElement.offsetTop,mainCell.offsetWidth,mainCell.offsetHeight);if(_aspxIsExists(rect)&&_aspxIsExists(iframeElement)){_aspxSetStylePosition(iframeElement,rect.left,rect.top);_aspxSetStyleSize(iframeElement,rect.width,rect.height);}
if(!timeExpired&&animationDivElement.popuping)
animationDivElement.timerID=window.setTimeout(animationDivElement.onTimerString,animationDelay);}
function _aspxGetNextAnimationPosInternal(pos,animationAccelerator){pos=Math.round(pos*animationAccelerator);if(Math.abs(pos)<__aspxAnimationDiscardPixels)
pos=0;return pos;}
function _aspxAnimationFinished(element){if(_aspxStopAnimation(element)&&_aspxIsExists(element.onAnimStopCallString)&&element.onAnimStopCallString!==""){eval(element.onAnimStopCallString);}}
function _aspxStopAnimation(element){if(element.popuping){element.popuping=false;element.onTimerString="";element.style.overflow="visible";return true;}
return false;}
function _aspxGetAnimationHorizontalDirection(popupPosition,horizontalAlign,verticalAlign){if(_aspxIsInnerAlign(horizontalAlign)&&!_aspxIsInnerAlign(verticalAlign)&&!_aspxIsAlignNotSet(verticalAlign))
return 0;var toTheLeft=(horizontalAlign=="OutsideLeft"||horizontalAlign=="RightSides")^popupPosition.isInverted;return toTheLeft?1:-1;}
function _aspxGetAnimationVerticalDirection(popupPosition,horizontalAlign,verticalAlign){if(_aspxIsInnerAlign(verticalAlign)&&!_aspxIsInnerAlign(horizontalAlign)&&!_aspxIsAlignNotSet(horizontalAlign))
return 0;var toTheTop=(verticalAlign=="Above"||verticalAlign=="BottomSides")^popupPosition.isInverted;return toTheTop?1:-1;}
function _aspxHideBodyScroll(){if(__aspxIE){_aspxChangeAttribute(document.body,"scroll","no");_aspxChangeStyleAttribute(document.documentElement,"overflow","hidden");}
else _aspxChangeStyleAttribute(document.body,"overflow","hidden");_aspxChangeStyleAttribute(document.body,"marginRight","16px");}
function _aspxRestoreBodyScroll(){if(__aspxIE){_aspxRestoreAttribute(document.body,"scroll");_aspxRestoreStyleAttribute(document.documentElement,"overflow");}
else _aspxRestoreStyleAttribute(document.body,"overflow");_aspxRestoreStyleAttribute(document.body,"marginRight");}
var __aspxMIIdSuffix="_DXI";var __aspxMMIdSuffix="_DXM";ASPxClientMenuItemInfo=_aspxCreateClass(null,{constructor:function(menu,indexPath){this.clientHeight=0;this.clientWidth=0;this.clientTop=0;this.clientLeft=0;this.offsetHeight=0;this.offsetWidth=0;this.offsetTop=0;this.offsetLeft=__aspxAbsoluteRightPosition;var imageElement=(indexPath!="")?menu.GetItemImageCell(indexPath):null;if(imageElement!=null){this.clientWidth+=imageElement.clientWidth;this.offsetWidth+=imageElement.offsetWidth;if(this.clientLeft==0)
this.clientLeft=_aspxGetClientLeft(imageElement);if(this.offsetLeft>imageElement.offsetLeft)
this.offsetLeft=imageElement.offsetLeft;}
var indentElement=(indexPath!="")?menu.GetItemIndentCell(indexPath):null;if(indentElement!=null){this.clientWidth+=indentElement.clientWidth;this.offsetWidth+=indentElement.offsetWidth;}
var textElement=(indexPath!="")?menu.GetItemTextCell(indexPath):null;if(textElement!=null){this.clientWidth+=textElement.clientWidth;this.offsetWidth+=textElement.offsetWidth;if(this.clientLeft==0)
this.clientLeft=_aspxGetClientLeft(textElement);if(this.offsetLeft>textElement.offsetLeft)
this.offsetLeft=textElement.offsetLeft;this.clientHeight=textElement.clientHeight;this.clientTop=_aspxGetClientTop(textElement);this.offsetHeight+=textElement.offsetHeight;this.offsetTop=textElement.offsetTop;}
var popOutImageElement=(indexPath!="")?menu.GetItemPopOutImageCell(indexPath):null;if(popOutImageElement!=null){this.clientWidth+=popOutImageElement.clientWidth;this.offsetWidth+=popOutImageElement.offsetWidth;if(this.clientLeft==0)
this.clientLeft=_aspxGetClientLeft(popOutImageElement);if(this.offsetLeft>popOutImageElement.offsetLeft)
this.offsetLeft=popOutImageElement.offsetLeft;}}});ASPxClientMenuBase=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.allowSelectItem=false;this.allowCheckItems=false;this.appearAfter=300;this.animationDelay=30;this.animationMaxDelay=400;this.disappearAfter=500;this.enableAnimation=true;this.checkedItems=new Array();this.itemCheckedGroups=new Array();this.lockHoverEvents=false;this.popupToLeft=false;this.popupCount=0;this.rootItem=null;this.rootSubMenuFIXOffset=0;this.rootSubMenuFIYOffset=0;this.rootSubMenuLIXOffset=0;this.rootSubMenuLIYOffset=0;this.rootSubMenuXOffset=0;this.rootSubMenuYOffset=0;this.subMenuFIXOffset=0;this.subMenuFIYOffset=0;this.subMenuLIXOffset=0;this.subMenuLIYOffset=0;this.subMenuXOffset=0;this.subMenuYOffset=0;this.ItemClick=new ASPxClientEvent();this.ItemMouseOver=new ASPxClientEvent();this.ItemMouseOut=new ASPxClientEvent();this.PopUp=new ASPxClientEvent();this.CloseUp=new ASPxClientEvent();aspxGetMenuCollection().Add(this);},InlineInitialize:function(){this.InitializeEnabledAndVisible();this.InitializeCheckedItems();this.InitializeSelectedItem();},InitializeEnabledAndVisible:function(){if(this.rootItem==null)return;this.rootItem.InitializeEnabled();this.rootItem.InitializeVisible();},GetMenuElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMMIdSuffix+indexPath+"_");},GetMenuIFrameElement:function(indexPath){var level=this.GetMenuLevel(indexPath);return _aspxGetElementById(this.name+"_DXMIF"+level);},GetMenuBorderCorrectorElement:function(indexPath){return _aspxGetElementById(this.name+"_DXMBC"+indexPath+"_");},GetMenuMainCell:function(element){return this.GetMenuMainTable(element).rows[0].cells[0];},GetMenuMainTable:function(element){var indexPath=this.GetIndexPathById(element.id,true);var shadowTable=_aspxGetElementById(this.name+"_DXMST"+indexPath+"_");return shadowTable!=null?shadowTable:element;},GetMouseEventItemElement:function(indexPath){var itemElement=null;itemElement=this.GetItemTextCell(indexPath);if(itemElement==null)
itemElement=this.GetItemImageCell(indexPath);return itemElement;},GetItemElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_");},GetItemTemplateCell:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_ITC");},GetItemImageCell:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_I");},GetItemIndentCell:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_N");},GetItemTextCell:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_T");},GetItemPopOutImageCell:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_P");},GetSelectedItemInputElement:function(){return _aspxGetElementById(this.name+"SI");},GetCheckedItemsInputElement:function(){return _aspxGetElementById(this.name+"CI");},GetSubMenuXPosition:function(indexPath,menuElement){var position=0;var element=null;var imageElement=this.GetItemImageCell(indexPath);var textElement=this.GetItemTextCell(indexPath);var popOutImageElement=this.GetItemPopOutImageCell(indexPath);var imagePos=_aspxGetAbsoluteX(imageElement);var textPos=_aspxGetAbsoluteX(textElement);var popOutImagePos=_aspxGetAbsoluteX(popOutImageElement);if(imageElement!=null||textElement!=null||popOutImageElement!=null){if(this.IsVertical(indexPath)){position=__aspxAbsoluteLeftPosition;if(imageElement!=null&&position<imagePos){position=imagePos;element=imageElement;}
if(textElement!=null&&position<textPos){position=textPos;element=textElement;}
if(popOutImageElement!=null&&position<popOutImagePos){position=popOutImagePos;element=popOutImageElement;}
position=_aspxGetAbsoluteX(element)+element.clientWidth;}
else{position=__aspxAbsoluteRightPosition;if(imageElement!=null&&position>imagePos){position=imagePos;element=imageElement;}
if(textElement!=null&&position>textPos){position=textPos;element=textElement;}
if(popOutImageElement!=null&&position>popOutImagePos){position=popOutImagePos;element=popOutImageElement;}}
if(element!=null&&_aspxIsExistsAbsolutePosParent(element))
position-=_aspxGetIEDocumentClientOffset(true);}
return position;},GetSubMenuYPosition:function(indexPath,menuElement){var position=0;var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);if(element!=null){if(this.IsVertical(indexPath)){position=_aspxGetAbsoluteY(element);}
else{if(__aspxNS||__aspxOpera9)
position=_aspxGetAbsoluteY(element)+element.offsetHeight-_aspxGetClientTop(element);else if(__aspxSafari)
position=_aspxGetAbsoluteY(element)+element.offsetHeight+element.offsetTop-_aspxGetClientTop(element);else position=_aspxGetAbsoluteY(element)+element.clientHeight+_aspxGetClientTop(element);}
if(_aspxIsExistsAbsolutePosParent(element))
position-=_aspxGetIEDocumentClientOffset(false);}
return position;},GetClientSubMenuXPosition:function(element,x,indexPath){var itemInfo=new ASPxClientMenuItemInfo(this,indexPath);var itemWidth=itemInfo.clientWidth;var itemOffsetWidth=itemInfo.offsetWidth;var menuWidth=this.GetMenuMainCell(element).offsetWidth;var bodyWidth=_aspxGetDocumentClientWidth();if(this.IsVertical(indexPath)){var left=x-_aspxGetDocumentScrollLeft();var right=left+menuWidth;var toLeftX=x-menuWidth-itemWidth;var toLeftLeft=left-menuWidth-itemWidth;var toLeftRight=right-menuWidth-itemWidth;if(this.popupToLeft){if(toLeftLeft<0&&toLeftLeft<bodyWidth-right){this.popupToLeft=false;return x;}
else return toLeftX;}
else{if(bodyWidth-right<0&&bodyWidth-right<toLeftLeft){this.popupToLeft=true;return toLeftX;}
else return x;}}
else{var left=x-_aspxGetDocumentScrollLeft();var right=left+menuWidth;var toLeftX=x-menuWidth+itemOffsetWidth;var toLeftLeft=left-menuWidth+itemOffsetWidth;var toLeftRight=right-menuWidth+itemOffsetWidth;if(this.popupToLeft){if(toLeftLeft<0&&toLeftLeft<bodyWidth-right){this.popupToLeft=false;return x;}
else return toLeftX;}
else{if(bodyWidth-right<0&&bodyWidth-right<toLeftLeft){this.popupToLeft=true;return toLeftX;}
else return x;}}},GetClientSubMenuYPosition:function(element,y,indexPath){var itemInfo=new ASPxClientMenuItemInfo(this,indexPath);var itemHeight=itemInfo.clientHeight;var itemOffsetHeight=itemInfo.offsetHeight;var menuHeight=this.GetMenuMainCell(element).offsetHeight;var top=y-_aspxGetDocumentScrollTop();var bottom=top+menuHeight;var bodyHeight=_aspxGetDocumentClientHeight();if(this.IsVertical(indexPath)){menuHeight-=itemOffsetHeight-itemHeight;if(bottom>bodyHeight&&top-menuHeight+itemHeight>bodyHeight-bottom)
return y-menuHeight+itemHeight;}
else{if(bottom>bodyHeight&&top-menuHeight-itemHeight>bodyHeight-bottom)
return y-menuHeight-itemHeight;}
return y;},HasChildren:function(indexPath){return(this.GetMenuElement(indexPath)!=null);},IsVertical:function(indexPath){return true;},IsRootItem:function(indexPath){return this.GetMenuLevel(indexPath)<=1;},IsParentElementPositionStatic:function(indexPath){return this.IsRootItem(indexPath);},GetItemIndexPath:function(indexes){return aspxGetMenuCollection().GetItemIndexPath(indexes);},GetItemIndexes:function(indexPath){return aspxGetMenuCollection().GetItemIndexes(indexPath);},GetItemIndexPathById:function(id){return aspxGetMenuCollection().GetIndexPathById(id,false);},GetMenuIndexPathById:function(id){return aspxGetMenuCollection().GetIndexPathById(id,true);},GetIndexPathById:function(id,checkMenu){var indexPath=this.GetItemIndexPathById(id);if(indexPath==""&&checkMenu)
indexPath=this.GetMenuIndexPathById(id);return indexPath;},GetMenuLevel:function(indexPath){return aspxGetMenuCollection().GetMenuLevel(indexPath);},GetParentIndexPath:function(indexPath){var indexes=this.GetItemIndexes(indexPath);indexes.length--;return(indexes.length>0)?this.GetItemIndexPath(indexes):"";},IsLastElement:function(element){return _aspxIsExists(element)&&(!_aspxIsExists(element.nextSibling)||!_aspxIsExists(element.nextSibling.tagName));},IsLastItem:function(indexPath){if(this.IsVertical(indexPath)){var itemElement=this.GetItemElement(indexPath);return this.IsLastElement(itemElement);}
else{var imageCell=this.GetItemImageCell(indexPath);if(this.IsLastElement(imageCell))
return true;var textCell=this.GetItemTextCell(indexPath);if(this.IsLastElement(textCell))
return true;var popOutImageCell=this.GetItemPopOutImageCell(indexPath);if(this.IsLastElement(popOutImageCell))
return true;return false;}},IsFirstElement:function(element){return _aspxIsExists(element)&&(!_aspxIsExists(element.previousSibling)||!_aspxIsExists(element.previousSibling.tagName));},IsFirstItem:function(indexPath){if(this.IsVertical(indexPath)){var itemElement=this.GetItemElement(indexPath);return this.IsFirstElement(itemElement);}
else{var imageCell=this.GetItemImageCell(indexPath);if(this.IsFirstElement(imageCell))
return true;var textCell=this.GetItemTextCell(indexPath);if(this.IsFirstElement(textCell))
return true;var popOutImageCell=this.GetItemPopOutImageCell(indexPath);if(this.IsFirstElement(popOutImageCell))
return true;return false;}},GetClientSubMenuPos:function(element,indexPath,pos,isXPos){if(!_aspxGetIsValidPosition(pos)){pos=isXPos?this.GetSubMenuXPosition(indexPath,element):this.GetSubMenuYPosition(indexPath,element);if(__aspxSafari){if(!this.IsParentElementPositionStatic(indexPath))
pos-=isXPos?document.body.offsetLeft:document.body.offsetTop;}}
var clientPos=isXPos?this.GetClientSubMenuXPosition(element,pos,indexPath):this.GetClientSubMenuYPosition(element,pos,indexPath);var isInverted=pos!=clientPos;var offset=isXPos?this.GetSubMenuXOffset(indexPath):this.GetSubMenuYOffset(indexPath);clientPos+=isInverted?-offset:offset;clientPos-=_aspxGetPositionElementOffset(this.GetMainElement(),isXPos);return new _aspxPopupPosition(clientPos,isInverted);},GetSubMenuXOffset:function(indexPath){if(indexPath=="")
return 0;else if(this.IsRootItem(indexPath)){if(this.IsFirstItem(indexPath))
return this.rootSubMenuFIXOffset;else if(this.IsLastItem(indexPath))
return this.rootSubMenuLIXOffset;else return this.rootSubMenuXOffset;}
else{if(this.IsFirstItem(indexPath))
return this.subMenuFIXOffset;else if(this.IsLastItem(indexPath))
return this.subMenuLIXOffset;else return this.subMenuXOffset;}},GetSubMenuYOffset:function(indexPath){if(indexPath=="")
return 0;else if(this.IsRootItem(indexPath)){if(this.IsFirstItem(indexPath))
return this.rootSubMenuFIYOffset;else if(this.IsLastItem(indexPath))
return this.rootSubMenuLIYOffset;else return this.rootSubMenuYOffset;}
else{if(this.IsFirstItem(indexPath))
return this.subMenuFIYOffset;else if(this.IsLastItem(indexPath))
return this.subMenuLIYOffset;else return this.subMenuYOffset;}},ClearAppearTimer:function(){aspxGetMenuCollection().ClearAppearTimer();},ClearDisappearTimer:function(){aspxGetMenuCollection().ClearDisappearTimer();},IsAppearTimerActive:function(){return aspxGetMenuCollection().IsAppearTimerActive();},IsDisappearTimerActive:function(){return aspxGetMenuCollection().IsDisappearTimerActive();},SetAppearTimer:function(indexPath){aspxGetMenuCollection().SetAppearTimer(this.name,indexPath,this.appearAfter);},SetDisappearTimer:function(){aspxGetMenuCollection().SetDisappearTimer(this.name,this.disappearAfter);},DoItemClick:function(indexPath,hasItemLink,htmlEvent){var processOnServer=this.RaiseItemClick(indexPath,htmlEvent);if(processOnServer&&!hasItemLink)
this.SendPostBack("CLICK:"+indexPath);else{this.ClearDisappearTimer();this.ClearAppearTimer();if(!this.HasChildren(indexPath))
aspxGetMenuCollection().DoHidePopupMenus(null,-1,this.name,false,"");else if(this.IsItemEnabled(indexPath))
this.ShowSubMenu(indexPath);}},DoShowPopupMenu:function(element,x,y,indexPath){if(__aspxNS)
_aspxSetStylePosition(element,-1000,-1000);_aspxSetElementDisplay(element,true);if(this.popupCount==0)this.popupToLeft=false;var horizontalPopupPosition=this.GetClientSubMenuPos(element,indexPath,x,true);var verticalPopupPosition=this.GetClientSubMenuPos(element,indexPath,y,false);var clientX=horizontalPopupPosition.position;var clientY=verticalPopupPosition.position;var toTheLeft=horizontalPopupPosition.isInverted;var toTheTop=verticalPopupPosition.isInverted;if(this.enableAnimation){this.StartAnimation(element,indexPath,horizontalPopupPosition,verticalPopupPosition);}
else{_aspxSetStylePosition(element,clientX,clientY);_aspxSetElementVisibility(element,true);this.DoShowPopupMenuIFrame(element,clientX,clientY,__aspxInvalidDimension,__aspxInvalidDimension,indexPath);this.DoShowPopupMenuBorderCorrector(element,clientX,clientY,indexPath,toTheLeft,toTheTop);}
aspxGetMenuCollection().RegisterVisiblePopupMenu(this.name,element.id);this.popupCount++;this.RaisePopUp(indexPath);},DoShowPopupMenuIFrame:function(element,x,y,width,height,indexPath){if(!this.renderIFrameForPopupElements)return;var iFrame=element.overflowElement;if(!_aspxIsExists(iFrame)){iFrame=this.GetMenuIFrameElement(indexPath);element.overflowElement=iFrame;}
if(_aspxIsExists(iFrame)){var cell=this.GetMenuMainCell(element);if(width<0)
width=cell.offsetWidth;if(height<0)
height=cell.offsetHeight;_aspxSetStyleSize(iFrame,width,height);_aspxSetStylePosition(iFrame,x,y);_aspxSetElementDisplay(iFrame,true);}},DoShowPopupMenuBorderCorrector:function(element,x,y,indexPath,toTheLeft,toTheTop){var borderCorrectorElement=this.GetMenuBorderCorrectorElement(indexPath);if(_aspxIsExists(borderCorrectorElement)){var itemInfo=new ASPxClientMenuItemInfo(this,indexPath);var menuXOffset=_aspxGetClientLeft(this.GetMenuMainCell(element));var menuYOffset=_aspxGetClientTop(this.GetMenuMainCell(element));var menuClientWidth=this.GetMenuMainCell(element).clientWidth;var menuClientHeight=this.GetMenuMainCell(element).clientHeight;var width=0,height=0,left=0,top=0;if(this.IsVertical(indexPath)){var commonClientHeight=itemInfo.clientHeight<menuClientHeight?itemInfo.clientHeight:menuClientHeight;width=menuXOffset;height=commonClientHeight+itemInfo.clientTop-menuYOffset;left=toTheLeft?x+menuClientWidth+menuXOffset:x;top=toTheTop?y+menuClientHeight-height+menuYOffset:y+menuYOffset;}
else{var commonClientWidth=itemInfo.clientWidth<menuClientWidth?itemInfo.clientWidth:menuClientWidth;width=commonClientWidth+itemInfo.clientLeft-menuXOffset;height=menuYOffset;left=toTheLeft?x+menuClientWidth-width+menuXOffset:x+menuXOffset;top=toTheTop?y+menuClientHeight+menuYOffset:y;if(__aspxSafari&&itemInfo.offsetLeft>0)
width+=itemInfo.clientLeft;}
_aspxSetStyleSize(borderCorrectorElement,width,height);_aspxSetStylePosition(borderCorrectorElement,left,top);_aspxSetElementVisibility(borderCorrectorElement,true);_aspxSetElementDisplay(borderCorrectorElement,true);element.borderCorrectorElement=borderCorrectorElement;}},DoHidePopupMenu:function(evt,element){this.DoHidePopupMenuBorderCorrector(element);this.DoHidePopupMenuIFrame(element);_aspxStopAnimation(element);_aspxSetElementVisibility(element,false);_aspxSetElementDisplay(element,false);this.CancelSubMenuItemHoverItem(element);aspxGetMenuCollection().UnregisterVisiblePopupMenu(this.name,element.id);this.popupCount--;var indexPath=this.GetIndexPathById(element.id,true);this.RaiseCloseUp(indexPath);},DoHidePopupMenuIFrame:function(element){if(!this.renderIFrameForPopupElements)return;var iFrame=element.overflowElement;if(_aspxIsExists(iFrame))
_aspxSetElementDisplay(iFrame,false);},DoHidePopupMenuBorderCorrector:function(element){var borderCorrectorElement=element.borderCorrectorElement;if(_aspxIsExists(borderCorrectorElement)){_aspxSetElementVisibility(borderCorrectorElement,false);_aspxSetElementDisplay(borderCorrectorElement,false);element.borderCorrectorElement=null;}},SetHoverElement:function(element){this.lockHoverEvents=true;aspxGetStateController().SetCurrentHoverElementBySrcElement(element);this.lockHoverEvents=false;},ApplySubMenuItemHoverItem:function(element,hoverItem,hoverElement){if(_aspxGetElementDisplay(element)&&!_aspxIsExists(element.hoverItem)){var newHoverItem=hoverItem.Clone();element.hoverItem=newHoverItem;element.hoverElement=hoverElement;newHoverItem.Apply(hoverElement);}},CancelSubMenuItemHoverItem:function(element){if(_aspxIsExists(element.hoverItem)){element.hoverItem.Cancel(element.hoverElement);element.hoverItem=null;element.hoverElement=null;}},ShowSubMenu:function(indexPath){var element=this.GetMenuElement(indexPath);if(element!=null){var level=this.GetMenuLevel(indexPath);aspxGetMenuCollection().DoHidePopupMenus(null,level-1,this.name,false,element.id);if(!_aspxGetElementDisplay(element))
this.DoShowPopupMenu(element,__aspxInvalidPosition,__aspxInvalidPosition,indexPath);}
this.ClearAppearTimer();},SelectItem:function(indexPath){var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);if(element!=null)
aspxGetStateController().SelectElementBySrcElement(element);},DeselectItem:function(indexPath){var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);if(element!=null){var hoverItem=null;var hoverElement=null;var menuElement=this.GetMenuElement(indexPath);if(menuElement!=null&&_aspxIsExists(menuElement.hoverItem)){hoverItem=menuElement.hoverItem;hoverElement=menuElement.hoverElement;this.CancelSubMenuItemHoverItem(menuElement);}
aspxGetStateController().DeselectElementBySrcElement(element);if(menuElement!=null&&hoverItem!=null)
this.ApplySubMenuItemHoverItem(menuElement,hoverItem,hoverElement);}},InitializeSelectedItem:function(){if(!this.allowSelectItem)return;var inputElement=this.GetSelectedItemInputElement();if(inputElement!=null)
this.SelectItem(inputElement.value);},SetSelectedItemInternal:function(indexPath,modifyHotTrackSelection){if(modifyHotTrackSelection)
this.SetHoverElement(null);var inputElement=this.GetSelectedItemInputElement();if(inputElement!=null){this.DeselectItem(inputElement.value);inputElement.value=indexPath;this.SelectItem(inputElement.value);}
if(modifyHotTrackSelection){var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);if(element!=null)
this.SetHoverElement(element);}},InitializeCheckedItems:function(){if(!this.allowCheckItems)return;var inputElement=this.GetCheckedItemsInputElement();if(inputElement!=null){var indexPathes=inputElement.value.split(";");for(var i=0;i<indexPathes.length;i++){if(indexPathes[i]!=""){_aspxArrayPush(this.checkedItems,indexPathes[i]);this.SelectItem(indexPathes[i]);}}}},ChangeCheckedItem:function(indexPath){this.SetHoverElement(null);var inputElement=this.GetCheckedItemsInputElement();if(inputElement!=null){var itemsGroup=this.GetItemsGroup(indexPath);if(itemsGroup!=null){if(itemsGroup.length>1){if(!this.IsCheckedItem(indexPath)){for(var i=0;i<itemsGroup.length;i++){if(itemsGroup[i]==indexPath)continue;if(this.IsCheckedItem(itemsGroup[i])){_aspxArrayRemove(this.checkedItems,itemsGroup[i]);this.DeselectItem(itemsGroup[i]);}}
this.SelectItem(indexPath);_aspxArrayPush(this.checkedItems,indexPath);}}
else{if(this.IsCheckedItem(indexPath)){_aspxArrayRemove(this.checkedItems,indexPath);this.DeselectItem(indexPath);}
else{this.SelectItem(indexPath);_aspxArrayPush(this.checkedItems,indexPath);}}
this.UpdateCheckedInputElement(inputElement);}}
var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);if(element!=null)
this.SetHoverElement(element);},GetItemsGroup:function(indexPath){for(var i=0;i<this.itemCheckedGroups.length;i++){if(_aspxArrayIndexOf(this.itemCheckedGroups[i],indexPath)>-1)
return this.itemCheckedGroups[i];}
return null;},IsCheckedItem:function(indexPath){return _aspxArrayIndexOf(this.checkedItems,indexPath)>-1;},UpdateCheckedInputElement:function(inputElement){var state="";for(var i=0;i<this.checkedItems.length;i++){state+=this.checkedItems[i];if(i<this.checkedItems.length-1)
state+=";";}
inputElement.value=state;},GetAnimationVerticalDirection:function(indexPath,popupPosition){var verticalDirection=(this.IsRootItem(indexPath)&&!this.IsVertical(indexPath))?-1:0;if(popupPosition.isInverted)verticalDirection*=-1;return verticalDirection;},GetAnimationHorizontalDirection:function(indexPath,popupPosition){var horizontalDirection=(this.IsRootItem(indexPath)&&!this.IsVertical(indexPath))?0:-1;if(popupPosition.isInverted)horizontalDirection*=-1;return horizontalDirection;},StartAnimation:function(animationDivElement,indexPath,horizontalPopupPosition,verticalPopupPosition){var element=this.GetMenuMainTable(animationDivElement);var clientX=horizontalPopupPosition.position;var clientY=verticalPopupPosition.position;_aspxInitAnimationDiv(animationDivElement,clientX,clientY,"aspxMATimer(\""+this.name+"\","+"\""+indexPath+"\")","");var verticalDirection=this.GetAnimationVerticalDirection(indexPath,verticalPopupPosition);var horizontalDirection=this.GetAnimationHorizontalDirection(indexPath,horizontalPopupPosition);var yPos=verticalDirection*element.offsetWidth;var xPos=horizontalDirection*element.offsetHeight;_aspxSetStylePosition(element,xPos,yPos);_aspxSetElementVisibility(animationDivElement,true);this.DoShowPopupMenuIFrame(animationDivElement,clientX,clientY,0,0,indexPath);this.DoShowPopupMenuBorderCorrector(animationDivElement,clientX,clientY,indexPath,horizontalPopupPosition.isInverted,verticalPopupPosition.isInverted);animationDivElement.timerID=window.setTimeout(animationDivElement.onTimerString,this.animationDelay);},OnAnimationTimer:function(indexPath){var animationDivElement=this.GetMenuElement(indexPath);if(_aspxIsExists(animationDivElement)){var element=this.GetMenuMainTable(animationDivElement);var mainCell=this.GetMenuMainCell(element);var iframeElement=this.GetMenuIFrameElement(indexPath);_aspxOnAnimationTimer(animationDivElement,element,mainCell,iframeElement,this.animationDelay,this.animationMaxDelay,__aspxMenuAnimationAccelerator);}},OnItemClick:function(indexPath,evt){var isLinkClicked=(_aspxGetParentByTagName(_aspxGetEventSource(evt),"A")!=null);var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);var linkElement=(element!=null)?_aspxGetChildByTagName(element,"A",0):null;if(this.allowSelectItem)
this.SetSelectedItemInternal(indexPath,true);if(this.allowCheckItems)
this.ChangeCheckedItem(indexPath);this.DoItemClick(indexPath,isLinkClicked||(linkElement!=null),evt);if(!isLinkClicked&&linkElement!=null)
_aspxNavigateUrl(linkElement.href,linkElement.target);},OnAfterItemOver:function(hoverItem,hoverElement){if(hoverItem.name==""||this.lockHoverEvents)return;this.ClearDisappearTimer();this.ClearAppearTimer();var indexPath=this.GetMenuIndexPathById(hoverItem.name,false);if(indexPath==""){indexPath=this.GetIndexPathById(hoverItem.name,true);var level=this.GetMenuLevel(indexPath);var menuElement=this.GetMenuElement(indexPath);var id=(menuElement!=null)?menuElement.id:"";aspxGetMenuCollection().DoHidePopupMenus(null,level-1,this.name,false,id);if(hoverItem.enabled){this.SetAppearTimer(indexPath);this.RaiseItemMouseOver(indexPath);}}},OnBeforeItemOver:function(hoverItem,hoverElement){if(__aspxNS&&_aspxIsExists(hoverElement.offsetParent)&&hoverElement.offsetParent.style.borderCollapse=="collapse"){hoverElement.offsetParent.style.borderCollapse="separate";hoverElement.offsetParent.style.borderCollapse="collapse";}
var indexPath=this.GetItemIndexPathById(hoverItem.name);var element=this.GetMenuElement(indexPath);if(_aspxIsExists(element))this.CancelSubMenuItemHoverItem(element);},OnItemOverTimer:function(indexPath){if(this.IsAppearTimerActive()){this.ClearAppearTimer();if(this.GetItemImageCell(indexPath)!=null||this.GetItemIndentCell(indexPath)!=null||this.GetItemTextCell(indexPath)!=null||this.GetItemPopOutImageCell(indexPath)!=null){this.ShowSubMenu(indexPath);}}},OnBeforeItemDisabled:function(disabledItem,disabledElement){this.ClearAppearTimer();var indexPath=this.GetIndexPathById(disabledElement.id,false);if(indexPath!=""){var element=this.GetMenuElement(indexPath);if(element!=null)this.DoHidePopupMenu(null,element);}},OnAfterItemOut:function(hoverItem,hoverElement,newHoverElement){if(hoverItem.name==""||this.lockHoverEvents)return;if(hoverItem.IsChildElement(newHoverElement))return;var indexPath=this.GetItemIndexPathById(hoverItem.name);var element=this.GetMenuElement(indexPath);this.ClearDisappearTimer();this.ClearAppearTimer();if(element==null||!_aspxGetIsParent(element,newHoverElement))
this.SetDisappearTimer();if(element!=null)
this.ApplySubMenuItemHoverItem(element,hoverItem,hoverElement);if(indexPath!="")
this.RaiseItemMouseOut(indexPath);},OnItemOutTimer:function(){if(this.IsDisappearTimerActive()){this.ClearDisappearTimer();if(aspxGetMenuCollection().CheckFocusedElement())
this.SetDisappearTimer();else aspxGetMenuCollection().DoHidePopupMenus(null,0,this.name,true,"");}},CreateItems:function(itemsProperties){var itemType=this.GetClientItemType();this.rootItem=new itemType(this,null,0,"");this.rootItem.CreateItems(itemsProperties);},GetClientItemType:function(){return ASPxClientMenuItem;},GetItemByIndexPath:function(indexPath){var item=this.rootItem;if(indexPath!=""&&item!=null){var indexes=this.GetItemIndexes(indexPath);for(var i=0;i<indexes.length;i++)
item=item.GetItem(indexes[i]);}
return item;},CheckSelectedItem:function(indexPath){var selectedItem=this.GetSelectedItem();if(selectedItem!=null&&selectedItem.GetIndexPath()==indexPath)
this.SetSelectedItem(null);},SetItemChecked:function(indexPath,checked){var inputElement=this.GetCheckedItemsInputElement();if(inputElement!=null){var itemsGroup=this.GetItemsGroup(indexPath);if(itemsGroup!=null){if(!checked&&this.IsCheckedItem(indexPath)){_aspxArrayRemove(this.checkedItems,indexPath);this.DeselectItem(indexPath);}
else if(checked&&!this.IsCheckedItem(indexPath)){if(itemsGroup.length>1){for(var i=0;i<itemsGroup.length;i++){if(itemsGroup[i]==indexPath)continue;if(this.IsCheckedItem(itemsGroup[i])){_aspxArrayRemove(this.checkedItems,itemsGroup[i]);this.DeselectItem(itemsGroup[i]);}}}
this.SelectItem(indexPath);_aspxArrayPush(this.checkedItems,indexPath);}
this.UpdateCheckedInputElement(inputElement);}}},ChangeEnabledAttributes:function(indexPath,method,styleMethod){var itemElement=this.IsVertical(indexPath)?this.GetItemElement(indexPath):null;if(_aspxIsExists(itemElement))
method(itemElement,"onclick");var templateElement=this.GetItemTemplateCell(indexPath);if(_aspxIsExists(templateElement))
method(templateElement,"onclick");var imageElement=this.GetItemImageCell(indexPath);if(_aspxIsExists(imageElement)){method(imageElement,"onclick");styleMethod(imageElement,"cursor");var link=_aspxGetChildByTagName(imageElement,"A",0);if(link!=null){method(link,"onclick");method(link,"href");}}
var textElement=this.GetItemTextCell(indexPath);if(_aspxIsExists(textElement)){method(textElement,"onclick");styleMethod(textElement,"cursor");var link=_aspxGetChildByTagName(textElement,"A",0);if(link!=null){method(link,"onclick");method(link,"href");}
link=_aspxGetChildByTagName(textElement,"A",1);if(link!=null){method(link,"onclick");method(link,"href");}}
var popOutImageElement=this.GetItemPopOutImageCell(indexPath);if(_aspxIsExists(popOutImageElement)){method(popOutImageElement,"onclick");styleMethod(popOutImageElement,"cursor");}
var indentElement=this.GetItemIndentCell(indexPath);if(_aspxIsExists(indentElement)){method(indentElement,"onclick");styleMethod(indentElement,"cursor");}},IsItemEnabled:function(indexPath){var item=this.GetItemByIndexPath(indexPath);return(item!=null)?item.GetEnabled():true;},SetItemEnabled:function(indexPath,enabled,initialization){if(indexPath==""||!this.GetItemByIndexPath(indexPath).enabled)return;if(!initialization||!enabled)
this.ChangeItemEnabledStateItems(indexPath,enabled);this.ChangeItemEnabledAttributes(indexPath,enabled);},ChangeItemEnabledStateItems:function(indexPath,enabled){var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);if(element!=null)
aspxGetStateController().SetElementEnabled(element,enabled);},ChangeItemEnabledAttributes:function(indexPath,enabled){var element=this.GetItemTextCell(indexPath);if(element==null)
element=this.GetItemImageCell(indexPath);if(element!=null){element.enabled=enabled;if(!enabled)
this.CheckSelectedItem(indexPath);this.ChangeEnabledAttributes(indexPath,_aspxChangeAttributesMethod(enabled),_aspxChangeStyleAttributesMethod(enabled));}},GetItemImageUrl:function(indexPath){var element=this.GetItemImageCell(indexPath);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)
return img.src;}
element=this.GetItemTextCell(indexPath);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)
return img.src;}
return"";},SetItemImageUrl:function(indexPath,url){var element=this.GetItemImageCell(indexPath);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)
img.src=url;}
element=this.GetItemTextCell(indexPath);if(element!=null){var img=_aspxGetChildByTagName(element,"IMG",0);if(img!=null)
img.src=url;}},GetItemNavigateUrl:function(indexPath){var element=this.GetItemTextCell(indexPath);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)
return link.href;}
element=this.GetItemImageCell(indexPath);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)
return link.href;}
return"";},SetItemNavigateUrl:function(indexPath,url){var element=this.GetItemTextCell(indexPath);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)
link.href=url;link=_aspxGetChildByTagName(element,"A",1);if(link!=null)
link.href=url;}
element=this.GetItemImageCell(indexPath);if(element!=null){var link=_aspxGetChildByTagName(element,"A",0);if(link!=null)
link.href=url;}},GetItemText:function(indexPath){var element=this.GetItemTextCell(indexPath);if(element!=null){var textNode=_aspxGetChildTextNode(element,0);if(textNode!=null)
return textNode.nodeValue;}
return"";},SetItemText:function(indexPath,text){var element=this.GetItemTextCell(indexPath);if(element!=null){var textNode=_aspxGetChildTextNode(element,0);if(textNode!=null)
textNode.nodeValue=text;}},SetItemVisible:function(indexPath,visible){if(indexPath==""||!this.GetItemByIndexPath(indexPath).visible)return;if(!visible)
this.CheckSelectedItem(indexPath);var element=null;if(this.IsVertical(indexPath)){element=this.GetItemElement(indexPath);if(element!=null)
_aspxSetElementDisplay(element,visible);}
else{element=this.GetItemTemplateCell(indexPath);if(element!=null)
_aspxSetElementDisplay(element,visible);element=this.GetItemImageCell(indexPath);if(element!=null)
_aspxSetElementDisplay(element,visible);element=this.GetItemTextCell(indexPath);if(element!=null)
_aspxSetElementDisplay(element,visible);element=this.GetItemPopOutImageCell(indexPath);if(element!=null)
_aspxSetElementDisplay(element,visible);}
this.SetIndentsVisiblility(indexPath);this.SetSeparatorsVisiblility(indexPath);},SetIndentsVisiblility:function(indexPath){var parent=this.GetItemByIndexPath(indexPath).parent;for(var i=0;i<parent.GetItemCount();i++){var item=parent.GetItem(i);var separatorVisible=item.GetVisible()&&this.HasNextVisibleItems(parent,i);var element=this.GetItemIndentElement(item.GetIndexPath());if(element!=null)_aspxSetElementDisplay(element,separatorVisible);}},SetSeparatorsVisiblility:function(indexPath){var parent=this.GetItemByIndexPath(indexPath).parent;for(var i=0;i<parent.GetItemCount();i++){var item=parent.GetItem(i);var separatorVisible=item.GetVisible()&&this.HasPrevVisibleItems(parent,i);var element=this.GetItemSeparatorElement(item.GetIndexPath());if(element!=null)_aspxSetElementDisplay(element,separatorVisible);element=this.GetItemSeparatorIndentElement(item.GetIndexPath());if(element!=null)_aspxSetElementDisplay(element,separatorVisible);}},HasNextVisibleItems:function(parent,index){for(var i=index+1;i<parent.GetItemCount();i++){if(parent.GetItem(i).GetVisible())
return true;}
return false;},HasPrevVisibleItems:function(parent,index){for(var i=index-1;i>=0;i--){if(parent.GetItem(i).GetVisible())
return true;}
return false;},GetItemIndentElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_II");},GetItemSeparatorElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_IS");},GetItemSeparatorIndentElement:function(indexPath){return _aspxGetElementById(this.name+__aspxMIIdSuffix+indexPath+"_ISI");},RaiseItemClick:function(indexPath,htmlEvent){var processOnServer=this.autoPostBack||this.IsServerEventAssigned("ItemClick");if(!this.ItemClick.IsEmpty()){var item=this.GetItemByIndexPath(indexPath);var htmlElement=this.GetMouseEventItemElement(indexPath);var args=new ASPxClientMenuItemClickEventArgs(processOnServer,item,htmlElement,htmlEvent);this.ItemClick.FireEvent(this,args);processOnServer=args.processOnServer;}
return processOnServer;},RaiseItemMouseOver:function(indexPath){if(!this.ItemMouseOver.IsEmpty()){var item=this.GetItemByIndexPath(indexPath);var htmlElement=this.GetMouseEventItemElement(indexPath);var args=new ASPxClientMenuItemMouseEventArgs(item,htmlElement);this.ItemMouseOver.FireEvent(this,args);}},RaiseItemMouseOut:function(indexPath){if(!this.ItemMouseOut.IsEmpty()){var item=this.GetItemByIndexPath(indexPath);var htmlElement=this.GetMouseEventItemElement(indexPath);var args=new ASPxClientMenuItemMouseEventArgs(item,htmlElement);this.ItemMouseOut.FireEvent(this,args);}},RaisePopUp:function(indexPath){var item=this.GetItemByIndexPath(indexPath);if(!this.PopUp.IsEmpty()){var args=new ASPxClientMenuItemEventArgs(false,item);this.PopUp.FireEvent(this,args);}},RaiseCloseUp:function(indexPath){var item=this.GetItemByIndexPath(indexPath);if(!this.CloseUp.IsEmpty()){var args=new ASPxClientMenuItemEventArgs(false,item);this.CloseUp.FireEvent(this,args);}},GetItemCount:function(){return(this.rootItem!=null)?this.rootItem.GetItemCount():0;},GetItem:function(index){return(this.rootItem!=null)?this.rootItem.GetItem(index):null;},GetItemByName:function(name){return(this.rootItem!=null)?this.rootItem.GetItemByName(name):null;},GetSelectedItem:function(){var inputElement=this.GetSelectedItemInputElement();if(inputElement!=null&&inputElement.value!="")
return this.GetItemByIndexPath(inputElement.value);return null;},SetSelectedItem:function(item){var indexPath=(item!=null)?item.GetIndexPath():"";this.SetSelectedItemInternal(indexPath,false);}});ASPxClientMenuBase.GetMenuCollection=function(){return aspxGetMenuCollection();}
ASPxClientMenuCollection=_aspxCreateClass(ASPxClientControlCollection,{constructor:function(){this.constructor.prototype.constructor.call(this);this.appearTimerID=-1;this.disappearTimerID=-1;this.visibleSubMenusMenuName="";this.visibleSubMenuIds=new Array();this.overXPos=-1;this.overYPos=-1;},RegisterVisiblePopupMenu:function(name,id){_aspxArrayPush(this.visibleSubMenuIds,id);this.visibleSubMenusMenuName=name;},UnregisterVisiblePopupMenu:function(name,id){_aspxArrayRemove(this.visibleSubMenuIds,id);if(this.visibleSubMenuIds.length==0)
this.visibleSubMenusMenuName="";},GetMenu:function(id){return this.Get(this.GetMenuName(id));},GetMenuName:function(id){var pos=id.lastIndexOf(__aspxMMIdSuffix);if(pos==-1)
pos=id.lastIndexOf(__aspxMIIdSuffix);if(pos>-1)
return id.substring(0,pos);return id;},GetMenuLevel:function(indexPath){if(indexPath=="")
return 0;else{var indexes=this.GetItemIndexes(indexPath);return indexes.length;}},GetMenuLevelById:function(id,isMenu){var indexPath=this.GetIndexPathById(id,isMenu);return this.GetMenuLevel(indexPath);},GetIndexPathById:function(id,isMenu){var idSuffix=isMenu?__aspxMMIdSuffix:__aspxMIIdSuffix;var pos=id.lastIndexOf(idSuffix);if(pos>-1){id=id.substring(pos+idSuffix.length);pos=id.lastIndexOf("_");if(pos>-1)
return id.substring(0,pos);}
return"";},GetItemIndexPath:function(indexes){var indexPath="";for(var i=0;i<indexes.length;i++){indexPath+=indexes[i];if(i<indexes.length-1)
indexPath+=__aspxItemIndexSeparator;}
return indexPath;},GetItemIndexes:function(indexPath){var indexes=indexPath.split(__aspxItemIndexSeparator);for(var i=0;i<indexes.length;i++)
indexes[i]=parseInt(indexes[i]);return indexes;},ClearAppearTimer:function(){this.appearTimerID=_aspxClearTimer(this.appearTimerID);},ClearDisappearTimer:function(){this.disappearTimerID=_aspxClearTimer(this.disappearTimerID);},IsAppearTimerActive:function(){return this.appearTimerID>-1;},IsDisappearTimerActive:function(){return this.disappearTimerID>-1;},SetAppearTimer:function(name,indexPath,timeout){this.appearTimerID=_aspxSetTimeout("aspxMIMOverTimer(\""+name+"\",\""+indexPath+"\")",timeout);},SetDisappearTimer:function(name,timeout){this.disappearTimerID=_aspxSetTimeout("aspxMIMOutTimer(\""+name+"\")",timeout);},GetMouseDownMenuLevel:function(evt){var srcElement=_aspxGetEventSource(evt);if(this.visibleSubMenusMenuName!=""){var element=_aspxGetParentById(srcElement,this.visibleSubMenusMenuName);if(element!=null)return 1;}
for(var i=0;i<this.visibleSubMenuIds.length;i++){var element=_aspxGetParentById(srcElement,this.visibleSubMenuIds[i]);if(element!=null)
return this.GetMenuLevelById(this.visibleSubMenuIds[i],true)+1;}
return-1;},CheckFocusedElement:function(){try{if(document.activeElement!=null){for(var i=0;i<this.visibleSubMenuIds.length;i++){var menuElement=_aspxGetElementById(this.visibleSubMenuIds[i]);if(menuElement!=null&&_aspxGetIsParent(menuElement,document.activeElement)){var tag=document.activeElement.tagName.toUpperCase();if(!__aspxIE||tag=="INPUT"||tag=="TEXTAREA"||tag=="SELECT")
return true;}}}}
catch(e){}
return false;},DoHidePopupMenus:function(evt,level,name,leavePopups,exceptId){for(var i=this.visibleSubMenuIds.length-1;i>=0;i--){var menu=this.GetMenu(this.visibleSubMenuIds[i]);if(menu!=null){var menuLevel=this.GetMenuLevelById(this.visibleSubMenuIds[i],true);if((!leavePopups||menuLevel>0)&&exceptId!=this.visibleSubMenuIds[i]){if(menuLevel>level||(menu.name!=name&&name!="")){var element=_aspxGetElementById(this.visibleSubMenuIds[i]);if(element!=null)
menu.DoHidePopupMenu(evt,element);}}}}},DoShowAtCurrentPos:function(name,indexPath){var pc=this.Get(name);var element=pc.GetMainElement();if(pc!=null&&!_aspxGetElementDisplay(element))
pc.DoShowPopupMenu(element,this.overXPos,this.overYPos,indexPath);},SaveCurrentMouseOverPos:function(evt){this.overXPos=_aspxGetEventX(evt);this.overYPos=_aspxGetEventY(evt);},OnMouseDown:function(evt){var menuLevel=this.GetMouseDownMenuLevel(evt);this.DoHidePopupMenus(evt,menuLevel,"",false,"");},HideAll:function(){this.DoHidePopupMenus(null,-1,"",false,"");}});var __aspxMCollection=null;function aspxGetMenuCollection(){if(__aspxMCollection==null)
__aspxMCollection=new ASPxClientMenuCollection();return __aspxMCollection;}
ASPxClientMenuItem=_aspxCreateClass(null,{constructor:function(menu,parent,index,name){this.menu=menu;this.parent=parent;this.index=index;this.name=name;this.enabled=true;this.clientEnabled=true;this.visible=true;this.clientVisible=true;this.items=[];this.indexPath=null;},CreateItems:function(itemsProperties){var itemType=this.menu.GetClientItemType();for(var i=0;i<itemsProperties.length;i++){var itemName=_aspxIsExists(itemsProperties[i][0])?itemsProperties[i][0]:"";var item=new itemType(this.menu,this,i,itemName);if(_aspxIsExists(itemsProperties[i][1]))
item.enabled=itemsProperties[i][1];if(_aspxIsExists(itemsProperties[i][2]))
item.clientEnabled=itemsProperties[i][2];if(_aspxIsExists(itemsProperties[i][3]))
item.visible=itemsProperties[i][3];if(_aspxIsExists(itemsProperties[i][4]))
item.clientVisible=itemsProperties[i][4];_aspxArrayPush(this.items,item);item.CreateItems(itemsProperties[i][5]);}},GetIndexPath:function(){if(this.indexPath==null){this.indexPath="";var item=this;while(item.parent!=null){this.indexPath=(this.indexPath!="")?item.index.toString()+__aspxItemIndexSeparator+this.indexPath:item.index.toString();item=item.parent;}}
return this.indexPath;},GetItemCount:function(){return this.items.length;},GetItem:function(index){return(0<=index&&index<this.items.length)?this.items[index]:null;},GetItemByName:function(name){for(var i=0;i<this.items.length;i++)
if(this.items[i].name==name)return this.items[i];for(var i=0;i<this.items.length;i++){var item=this.items[i].GetItemByName(name);if(item!=null)return item;}
return null;},GetChecked:function(){var indexPath=this.GetIndexPath();return this.menu.IsCheckedItem(indexPath);},SetChecked:function(value){var indexPath=this.GetIndexPath();this.menu.SetItemChecked(indexPath,value);},GetEnabled:function(){return this.enabled&&this.clientEnabled;},SetEnabled:function(value){if(this.clientEnabled!=value){this.clientEnabled=value;this.menu.SetItemEnabled(this.GetIndexPath(),value,false);}},InitializeEnabled:function(){this.menu.SetItemEnabled(this.GetIndexPath(),this.clientEnabled,true);for(var i=0;i<this.items.length;i++)
this.items[i].InitializeEnabled();},GetImageUrl:function(){var indexPath=this.GetIndexPath();return this.menu.GetItemImageUrl(indexPath);},SetImageUrl:function(value){var indexPath=this.GetIndexPath();this.menu.SetItemImageUrl(indexPath,value);},GetNavigateUrl:function(){var indexPath=this.GetIndexPath();return this.menu.GetItemNavigateUrl(indexPath);},SetNavigateUrl:function(value){var indexPath=this.GetIndexPath();this.menu.SetItemNavigateUrl(indexPath,value);},GetText:function(){var indexPath=this.GetIndexPath();return this.menu.GetItemText(indexPath);},SetText:function(value){var indexPath=this.GetIndexPath();this.menu.SetItemText(indexPath,value);},GetVisible:function(){return this.visible&&this.clientVisible;},SetVisible:function(value){if(this.clientVisible!=value){this.clientVisible=value;this.menu.SetItemVisible(this.GetIndexPath(),value);}},InitializeVisible:function(){this.menu.SetItemVisible(this.GetIndexPath(),this.clientVisible);for(var i=0;i<this.items.length;i++)
this.items[i].InitializeVisible();}});ASPxClientMenu=_aspxCreateClass(ASPxClientMenuBase,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.isVertical=false;},IsVertical:function(indexPath){return this.isVertical||(indexPath.indexOf(__aspxItemIndexSeparator)>-1);}});ASPxClientMenuItemEventArgs=_aspxCreateClass(ASPxClientProcessingModeEventArgs,{constructor:function(processOnServer,item){this.constructor.prototype.constructor.call(this,processOnServer);this.item=item;}});ASPxClientMenuItemMouseEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(item,htmlElement){this.constructor.prototype.constructor.call(this);this.item=item;this.htmlElement=htmlElement;}});ASPxClientMenuItemClickEventArgs=_aspxCreateClass(ASPxClientMenuItemEventArgs,{constructor:function(processOnServer,item,htmlElement,htmlEvent){this.constructor.prototype.constructor.call(this,processOnServer,item);this.htmlElement=htmlElement;this.htmlEvent=htmlEvent;}});function aspxMIClick(evt,name,indexPath){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnItemClick(indexPath,evt);if(!__aspxNS)
evt.cancelBubble=true;return true;}
function aspxAMIMOver(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnAfterItemOver(args.item,args.element);}
function aspxBMIMOver(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnBeforeItemOver(args.item,args.element);}
function aspxMIMOverTimer(name,indexPath){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnItemOverTimer(indexPath);}
function aspxBIDisabled(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnBeforeItemDisabled(args.item,args.element);}
function aspxAMIMOut(source,args){var menu=aspxGetMenuCollection().GetMenu(args.item.name);if(menu!=null)menu.OnAfterItemOut(args.item,args.element,args.toElement);}
function aspxMIMOutTimer(name){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnItemOutTimer();}
function aspxMContextMenu(evt){return _aspxCancelBubble(evt);}
_aspxAttachEventToElement(window,"load",aspxMenuWindowOnLoad);function aspxMenuWindowOnLoad(evt){aspxAddAfterSetHoverState(aspxAMIMOver);aspxAddAfterClearHoverState(aspxAMIMOut);aspxAddBeforeSetHoverState(aspxBMIMOver);aspxAddBeforeDisabled(aspxBIDisabled);}
_aspxAttachEventToDocument("mousedown",aspxMenuDocumentMouseDown);function aspxMenuDocumentMouseDown(evt){return aspxGetMenuCollection().OnMouseDown(evt);}
function aspxMATimer(name,indexPath){var menu=aspxGetMenuCollection().Get(name);if(menu!=null)menu.OnAnimationTimer(indexPath);}