// (c) 2005 Infragistics - Do NOT modify the content of this file
// Version 6.1.20061.81

if(ig){if(!ig.ui){function IgUI(){this.ACTION_DRAG=1;this.PROP_FLOATING="ofltng";this.PROP_DRAGGABLE="odrggbl";this.PROP_DRAGGABLE_VIA_HANDLE="odrggblvh";this.PROP_DRAG_HANDLE="odrghdl";this.PROP_DRAG_MODE="odrgmd";this.PROP_RESIZABLE="orszbl";this.DRAG_MODE_DRAG="drag";this.DRAG_MODE_MOVE="move";this.DRAG_SHADOW="oddds";this.selectedNodes=new ig.ArrayList();this.dragMode=null;this.dragSources=new ig.ArrayList();this.dropTarget=null;this.hoveredElement=null;this.x=null;this.y=null;this.lastX=null;this.lastY=null;this.lastX=null;this.lastY=null;this.isMouseDown=false;}
IgUI.prototype.clearSelection=function(){if(document.selection){document.selection.empty();}
else{if(window.getSelection&&window.getSelection().removeAllRanges){window.getSelection().removeAllRanges();}}};IgUI.prototype.createDragEventArg=function(){var o=new Object();o.x=this.x;o.y=this.y;return o;};IgUI.prototype.doDragStart=function(e){if(ig.ui.isMouseDown){if(ig.ui.selectedNodes.size()>0){var fn=ig.ui.selectedNodes.get(0);if(!ig.isNull(fn)){if(fn.getDragMode()===ig.ui.DRAG_MODE_MOVE){fn.dragDrop();}
else{var deltaX=Math.abs(ig.ui.x-ig.ui.mouseDownX);var deltaY=Math.abs(ig.ui.y-ig.ui.mouseDownY);if(deltaX>10||deltaY>10){for(var i=0;i<ig.ui.selectedNodes.size();i++){var node=ig.ui.selectedNodes.get(i);if(!ig.isNull(node)){node.dragDrop();}}}}}}}};IgUI.prototype.doDragMove=function(e){for(var i=0;i<this.dragSources.size();i++){var n=ig.getUIElementById(this.dragSources.get(i));n.onDrag(e);}
if(!ig.isNull(this.dropTarget)){var dea=ig.ui.createDragEventArg();this.dropTarget.onDragOver(dea);}};IgUI.prototype.doDragEnd=function(e){for(var i=0;i<this.dragSources.size();i++){var n=ig.getUIElementById(this.dragSources.get(i));n.onDragEnd();}
if(!ig.isNull(ig.ui.dropTarget)){ig.ui.dropTarget.hideDropCaret();var dea=ig.ui.createDragEventArg();ig.ui.dropTarget.onDrop(dea,ig.ui.dragSources);}
ig.ui.dropTarget=null;this.dragSources.clear();this.action=null;this.dragMode=null;};IgUI.prototype.focus=function(elm){elm=ig.getElementById(elm);if(!ig.isNull(elm)){if(elm.focus){elm.focus();}}};IgUI.prototype.getHoveredElement=function(){return this.hoveredElement;};IgUI.prototype.getDraggableTarget=function(n){var r=null;var t=ig.getTargetUIElement(n);if(!ig.isNull(t)){if(t.isDraggable()){if(!(t.isDraggableViaHandle()&&!t.isDragHandle())){r=t;}}
else{var p=ig.getTargetUIElement(t.elm.parentNode);if(!ig.isNull(p)){if(p.isDraggable()){if(!(p.isDraggableViaHandle()&&!p.isDragHandle())){r=p;}
else{if(!(p.isDraggableViaHandle()&&!t.isDragHandle())){r=p;}}}}}}
return r;};IgUI.prototype.init=function(){ig.factory.addClass("Link",IgLink);ig.factory.addClass("HeaderLink",IgHeaderLink);ig.factory.addClass("PagerLink",IgPagerLink);ig.factory.addClass("UIComponent",IgUIComponent);ig.factory.addClass("UIElement",IgUIElement);ig.addEventListener(document,ig.event.EVENT_MOUSEDOWN,ig.ui.onMouseDown,true);ig.addEventListener(document,ig.event.EVENT_MOUSEMOVE,ig.ui.onMouseMove,false);ig.addEventListener(document,ig.event.EVENT_MOUSEOVER,ig.ui.onMouseOver,false);ig.addEventListener(document,ig.event.EVENT_MOUSEUP,ig.ui.onMouseUp,false);ig.addEventListener(document,ig.event.EVENT_CLICK,ig.ui.onClick,false);ig.addEventListener(document,ig.event.EVENT_MOUSEOVER,ig.ui.onDoubleClick,false);ig.addEventListener(document,ig.event.EVENT_KEYDOWN,ig.ui.onKeyDown,false);};IgUI.prototype.onClick=function(e){if(ig.ui.cancelClick){ig.ui.cancelClick=false;return false;}
e=ig.toEvent(e);var t=ig.getTargetUIElement(e.target);if(!ig.isNull(t)){if(t.isEnabled()){return t.onClick(e);}
else{e.preventDefault();}}};IgUI.prototype.onDoubleClick=function(e){e=ig.toEvent(e);var t=ig.getTargetUIElement(e.target);if(!ig.isNull(t)){if(t.isEnabled()){return t.onDoubleClick(e);}
else{e.preventDefault();}}};IgUI.prototype.onKeyDown=function(e){e=ig.toEvent(e);if(!ig.isNull(e)){var t=ig.getTargetUIElement(e.target);if(!ig.isNull(t)){if(t.isEnabled()||(e.keyCode==e.KEY_TAB)){return t.onKeyPress(e);}
else{e.preventDefault();}}}
return null;};IgUI.prototype.onMouseDown=function(e){e=ig.toEvent(e);ig.ui.mouseDownX=e.pageX;ig.ui.mouseDownY=e.pageY;ig.ui.isMouseDown=true;ig.ui.selectedNodes.clear();var t=ig.ui.getDraggableTarget(e.target);ig.ui.selectedNodes.add(t);if(!ig.isNull(t)){e.preventDefault();}};IgUI.prototype.onMouseMove=function(e){e=ig.toEvent(e);ig.ui.x=e.pageX;ig.ui.y=e.pageY;if(ig.ui.action===ig.ui.ACTION_DRAG){ig.ui.doDragMove(e);}
else{ig.ui.doDragStart(e);}
ig.ui.lastX=e.pageX;ig.ui.lastY=e.pageY;};IgUI.prototype.onMouseOver=function(e){e=ig.toEvent(e);var t=ig.getTargetUIElement(e.target);if(!ig.isNull(t)){if(t.isEnabled()){if(ig.ui.action===ig.ui.ACTION_DRAG){if(!t.equals(ig.ui.dropTarget)){if(!ig.isNull(ig.ui.dropTarget)){var dea=ig.ui.createDragEventArg();ig.ui.dropTarget.onDragLeave(dea);ig.ui.dropTarget=null;}
if(t.isDragSourceAccepted(ig.ui.dragSources)){ig.ui.dropTarget=t;var dea=ig.ui.createDragEventArg();t.onDragEnter(dea);}}}
else{if(!t.equals(ig.ui.getHoveredElement())){if(!ig.isNull(ig.ui.getHoveredElement())){ig.ui.getHoveredElement().onMouseLeave(e);}
t.onMouseEnter(e);}}}}
else{if(ig.ui.action===ig.ui.ACTION_DRAG){t=ig.ui.dropTarget;if(!ig.isNull(t)){ig.ui.dropTarget=null;t.onDragLeave(e);}}
else{t=ig.ui.getHoveredElement();if(!ig.isNull(t)){t.onMouseLeave(e);}}}};IgUI.prototype.onMouseUp=function(e){ig.ui.isMouseDown=false;e=ig.toEvent(e);if(ig.ui.action===ig.ui.ACTION_DRAG){ig.ui.doDragEnd(e);ig.ui.cancelClick=true;}};IgUI.prototype.setHoveredElement=function(e){var pe=this.getHoveredElement();this.hoveredElement=e;if(!ig.isNull(pe)){pe.repaint();}
if(!ig.isNull(e)){e.repaint();}};ig.ui=new IgUI();function IgDomNode(e){this.elm=e;}
IgDomNode.prototype.addEventListener=function(anEvent,aListener,useCapture){ig.addEventListener(this.elm,anEvent,aListener,useCapture);};IgDomNode.prototype.createDragShadow=function(){var h=this.getOuterHtml();var w=this.getWidth()+4;if(this.elm.nodeName=="TD"||this.elm.nodeName=="TH"){h="<table width='"+w+"'><tr>"+h+"</tr></table>";}
if(this.elm.nodeName=="TR"){h="<table width='"+w+"'>"+h+"</table>";}
var d=new IgDomNode(document.createElement("div"));d.elm.innerHTML=h;d.setOpacity(0.8);d.moveTo(this.getPageLeft(),this.getPageTop());document.body.appendChild(d.elm);this.elm.oddds=d.elm;return d;};IgDomNode.prototype.dragDrop=function(){if(ig.isNull(ig.ui.action)){ig.ui.clearSelection();ig.ui.action=ig.ui.ACTION_DRAG;ig.ui.dragMode=this.getDragMode();}
ig.ui.dragSources.add(this.elm);this.onDragStart();};IgDomNode.prototype.equals=function(n){return(!ig.isNull(n))&&(this.elm===n.elm);};IgDomNode.prototype.getAttribute=function(attrn){return ig.getAttribute(this.elm,attrn);};IgDomNode.prototype.getChildUIElements=function(type){var r=new ig.ArrayList();var cn=this.elm.childNodes;for(var i=0;i<cn.length;i++){var c=cn[i];if(ig.getAttribute(c,"otype")==type){r.add(ig.getUIElementById(c));}}
return r;};IgDomNode.prototype.getCssProperty=function(propName){var result=null;if(ig.NaES(propName)){if(this.elm.currentStyle){result=this.elm.currentStyle[propName];}
else{if(document.defaultView.getComputedStyle){result=document.defaultView.getComputedStyle(this.elm,'').getPropertyValue(propName);}
else{result=this.elm.style.propName;}}}
return result;};IgDomNode.prototype.getDragMode=function(){var r=null;var p=ig.findAncestor(this.elm.parentNode,ig.PROP_TYPE,null,null);if(!ig.isNull(p)){r=p.getAttribute(ig.ui.PROP_DRAG_MODE);}
if(ig.isNull(r)){r=this.getAttribute(ig.ui.PROP_DRAG_MODE);}
if(ig.isNull(r)){r=ig.ui.DRAG_MODE_DRAG;}
return r;};IgDomNode.prototype.deleteDragShadow=function(){var ds=this.getDragShadow();if(!ig.isNull(ds)){ds.removeNode();ds=null;this.elm.oddds=null;}};IgDomNode.prototype.getDragShadow=function(){var r=this.elm.oddds;if(!ig.isNull(r)){r=ig.getUIElementById(r);}
return r;};IgDomNode.prototype.getMaxHeight=function(){var result=0;var tmpDisplay=this.elm.style.display;this.elm.style.display="block";var tmpVisibility=this.elm.style.visibility;this.elm.style.visibility="";var tmpHeight=this.elm.style.height;this.elm.style.height="";result=this.getHeight();this.elm.style.display=tmpDisplay;this.elm.style.visibility=tmpVisibility;this.elm.style.height=tmpHeight;return result;};IgDomNode.prototype.getOriginalCssProperty=function(propName){return this.getAttribute(propName);};IgDomNode.prototype.getOuterHtml=function(){var r=this.elm.outerHTML;if(!ig.NaES(r)){r="<"+this.elm.nodeName+" class='"+this.elm.className+"'>";r=r+this.elm.innerHTML+"</"+this.elm.nodeName+">";}
return r;};IgDomNode.prototype.getFirstChild=function(){var r=null;var childNodes=this.elm.childNodes;for(var i=0;i<childNodes.length;i++){if(childNodes[i].tagName){r=childNodes[i];break;}}
return ig.getUIElementById(r);};IgDomNode.prototype.getForm=function(){return ig.findAncestor(this.elm,null,null,"FORM");};IgDomNode.prototype.getHeight=function(){return parseInt(this.elm.offsetHeight);};IgDomNode.prototype.getId=function(){return this.elm.id;};IgDomNode.prototype.getIframe=function(){var iframe=null;if(ig.isIE){var id=this.elm.id;if(!ig.isNull(id)){id=id+"_frm";iframe=ig.getElementById(id);if(ig.isNull(iframe)){iframe=document.createElement("IFRAME");iframe.frameBorder="no";iframe.id=id;iframe.scrolling="no";iframe.src='javascript:new String("<html></html>")';iframe.style.display='none';iframe.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=50);";iframe.style.position="absolute";iframe.style.visibility='hidden';this.elm.parentNode.insertBefore(iframe,this.elm);}}}
return iframe;};IgDomNode.prototype.getLastChild=function(){var r=null;var childNodes=this.elm.childNodes;for(var i=childNodes.length-1;i>=0;i--){if(childNodes[i].tagName){r=childNodes[i];break;}}
return ig.getUIElementById(r);};IgDomNode.prototype.getLeft=function(){var tmp=parseInt(this.getCssProperty("left"));return isNaN(tmp)?0:tmp;};IgDomNode.prototype.getOpacity=function(){var result=this.getCssProperty("opacity");if(ig.isNull(result)){result="1.0";}
return parseFloat(result);};IgDomNode.prototype.getPageLeft=function(){if(this.elm.pageX){return this.elm.pageX;}
var nLeftPos=0;var eParElement=this.elm;while(!ig.isNull(eParElement)){if(ig.isIE){if((eParElement.tagName!="TABLE")&&(eParElement.tagName!="BODY")){nLeftPos+=eParElement.clientLeft;}}
else{if(eParElement.tagName=="TABLE"){var nParBorder=parseInt(eParElement.border);if(isNaN(nParBorder)){var nParFrame=eParElement.getAttribute('frame');if(!ig.isNull(nParFrame)){nLeftPos+=1;}}
else if(nParBorder>0){nLeftPos+=nParBorder;}}}
nLeftPos+=eParElement.offsetLeft;eParElement=eParElement.offsetParent;}
return nLeftPos;};IgDomNode.prototype.getPageTop=function(){if(this.elm.pageY){return this.elm.pageY;}
var nTopPos=0;var eParElement=this.elm;while(!ig.isNull(eParElement)){if(ig.isIE){if((eParElement.tagName!="TABLE")&&(eParElement.tagName!="BODY")){nTopPos+=eParElement.clientTop;}}
else{if(eParElement.tagName=="TABLE"){var nParBorder=parseInt(eParElement.border);if(isNaN(nParBorder)){var nParFrame=eParElement.getAttribute('frame');if(!ig.isNull(nParFrame)){nTopPos+=1;}}
else if(nParBorder>0){nTopPos+=nParBorder;}}}
nTopPos+=eParElement.offsetTop;eParElement=eParElement.offsetParent;}
return nTopPos;};IgDomNode.prototype.getProperty=function(propName){var result=null;if(ig.NaES(propName)){var tmp="this.get"+ig.getCamelNotation(propName)+"()";result=eval(tmp);}
return result;};IgDomNode.prototype.getTop=function(){var tmp=parseInt(this.getCssProperty("top"));return isNaN(tmp)?0:tmp;};IgDomNode.prototype.getType=function(){return ig.getType(this);};IgDomNode.prototype.getWidth=function(){return parseInt(this.elm.offsetWidth);};IgDomNode.prototype.hide=function(rs){if(this.elm.style.visibility!="hidden"){this.elm.style.visibility="hidden";}
if(rs===true){if(this.elm.style.display!="none"){this.elm.style.display="none";}}
if(this.isFloating()){if(ig.isIE){var iframe=this.getIframe();if(!ig.isNull(iframe)){iframe.style.visibility="hidden";iframe.style.display="none";}}}};IgDomNode.prototype.hideDropCaret=function(){this.elm.style.cursor=this.getAttribute("styleCursor");};IgDomNode.prototype.isAncestor=function(n){var res=false;if(!ig.isNull(n)){var tmp=n.elm;while(!ig.isNull(tmp)){if(tmp==this.elm){res=true;break;}
tmp=tmp.parentNode;}}
return res;};IgDomNode.prototype.isDraggable=function(){return(this.getAttribute(ig.ui.PROP_DRAGGABLE)=="true");};IgDomNode.prototype.isDraggableViaHandle=function(){return(this.getAttribute(ig.ui.PROP_DRAGGABLE_VIA_HANDLE)=="true");};IgDomNode.prototype.isDragHandle=function(){return(this.getAttribute(ig.ui.PROP_DRAG_HANDLE)=="true");};IgDomNode.prototype.isDragSourceAccepted=function(dragSources){return false;};IgDomNode.prototype.isEnabled=function(){return(this.getAttribute(ig.PROP_DISABLED)!="true");};IgDomNode.prototype.isFloating=function(){return(this.getAttribute(ig.ui.PROP_FLOATING)=="true");};IgDomNode.prototype.isResizable=function(){return(this.getAttribute(ig.ui.PROP_RESIZABLE,false,"")=="true");};IgDomNode.prototype.isVisible=function(){return!(this.elm.style.visibility=="hidden"||this.elm.style.display=="none");};IgDomNode.prototype.moveTo=function(x,y){if(this.elm.style.position!="absolute"){this.elm.style.position="absolute";}
this.elm.style.left=x+"px";this.elm.style.top=y+"px";};IgDomNode.prototype.moveToVisible=function(x,y){if(this.elm.style.position!="absolute"){this.elm.style.position="absolute";}
this.elm.style.left=x+"px";this.elm.style.top=y+"px";};IgDomNode.prototype.onClick=function(){this.click();};IgDomNode.prototype.onDoubleClick=function(){};IgDomNode.prototype.onDragStart=function(dea){if(ig.ui.dragMode===ig.ui.DRAG_MODE_MOVE){this.moveTo(this.getPageLeft(),this.getPageTop());}
else{var ds=this.createDragShadow();ds.moveTo(ig.ui.x+4,ds.getPageTop());}};IgDomNode.prototype.onDrag=function(){var dx=ig.ui.x-ig.ui.lastX;var dy=ig.ui.y-ig.ui.lastY;if(ig.ui.dragMode===ig.ui.DRAG_MODE_MOVE){this.moveTo(this.getLeft()+dx,this.getTop()+dy);}
else{var ds=this.getDragShadow();if(!ig.isNull(ds)){ds.moveTo(ds.getLeft()+dx,ds.getTop()+dy);}}};IgDomNode.prototype.onDragEnd=function(dea){this.deleteDragShadow();};IgDomNode.prototype.onDragEnter=function(dea){this.showDropCaret(dea);};IgDomNode.prototype.onDragOver=function(dea){};IgDomNode.prototype.onDragLeave=function(dea){this.hideDropCaret();};IgDomNode.prototype.onDrop=function(dea,dragSources){if(!ig.isNull(dragSources)){for(var i=0;i<dragSources.size();i++){var n=dragSources.get(i);this.elm.appendChild(n);}}};IgDomNode.prototype.onKeyPress=function(e){var c=this.getParentComponent();if(!ig.isNull(c)){c.onKeyPress(e);}};IgDomNode.prototype.onMouseEnter=function(){ig.ui.setHoveredElement(this);};IgDomNode.prototype.onMouseLeave=function(){ig.ui.setHoveredElement(null);};IgDomNode.prototype.removeNode=function(){this.elm.innerHTML="";if(this.elm.parentNode){this.elm.parentNode.removeChild(this.elm);}
else{document.body.removeChild(this.elm);}
this.elm=null;};IgDomNode.prototype.saveOriginalCssProperties=function(){if(!ig.NaES(this.getAttribute("left"))){this.setAttribute("left",this.getLeft("left"));this.setAttribute("top",this.getTop("top"));this.setAttribute("height",this.getHeight("height"));this.setAttribute("width",this.getWidth("width"));this.setAttribute("opacity",this.getOpacity("opacity"));}};IgDomNode.prototype.setAttribute=function(n,v){return ig.setAttribute(this.elm,n,v);};IgDomNode.prototype.setCursor=function(v){this.elm.style.cursor=v;};IgDomNode.prototype.setHeight=function(v){this.elm.style.height=v+"px";};IgDomNode.prototype.setLeft=function(v){this.elm.style.left=v+"px";};IgDomNode.prototype.setProperty=function(propName,propValue){var result=null;if(ig.NaES(propName)&&!ig.isNull(propValue)){var tmp="this.set"+ig.getCamelNotation(propName)+"("+propValue+")";result=eval(tmp);}
return result;};IgDomNode.prototype.setTop=function(v){this.elm.style.top=v+"px";};IgDomNode.prototype.setType=function(type){this.setAttribute(this.elm,ig.PROP_TYPE,type);};IgDomNode.prototype.setFloating=function(value){this.setAttribute(ig.ui.PROP_FLOATING,value);};IgDomNode.prototype.setOpacity=function(o){var t=Math.max(0,Math.min(o,1));this.elm.style.filter="alpha(opacity:"+Math.round(t*100)+")";this.elm.style.opacity=t;};IgDomNode.prototype.setWidth=function(v){this.elm.style.width=v+"px";};IgDomNode.prototype.show=function(x,y,x2,y2){if(ig.isNumber(x)||ig.isNumber(y)){var w=this.getWidth();var sl=ig.getScrollLeft();var cw=ig.getClientWidth();var h=this.getHeight();var ch=ig.getClientHeight();var st=ig.getScrollTop();if(ig.isNumber(x)){if(x>cw+sl-w){if(ig.isNumber(x2)){x=x2;}else{x=x-w;}}
if(x<0){x=0;}}
if(ig.isNumber(y)){if(y+h>ch+st){y=ch+st-h;}
if(y<0){y=0;}}
this.moveTo(x,y);}
if(this.elm.style.visibility!="visible"){this.elm.style.visibility="visible";}
if(this.elm.style.display!==""){this.elm.style.display="";}
if(this.isFloating()){if(ig.isIE){var iframe=this.getIframe();if(!ig.isNull(iframe)){iframe.style.top=this.getTop();iframe.style.left=this.getLeft();iframe.style.width=this.getWidth();iframe.style.height=this.getHeight();iframe.style.zIndex=this.elm.style.zIndex;iframe.style.visibility="visible";iframe.style.display="";}}}};IgDomNode.prototype.showDropCaret=function(){this.setAttribute("styleCursor",this.elm.style.cursor);if(ig.isIE){this.elm.style.cursor="hand";}
else{this.elm.style.cursor="pointer";}};function IgUIElement(e){this.IgDomNode(e);}
IgUIElement.prototype.applyClass=function(){var css=this.getClass();if(ig.isString(css)){if(this.elm.className!=css){this.elm.className=css;}}};IgUIElement.prototype.updateCursor=function(){var c=null;if(this.isEnabled()){if(this.isHovered()){if(!ig.isNull(ig.ui.getDraggableTarget(this.elm))){if(this.getDragMode()==ig.ui.DRAG_MODE_MOVE){c="move";}
else{c="pointer";}}
else{if(this.isResizable()){c="e-resize";}}}}
if(ig.NaES(c)){this.elm.style.cursor=c;}};IgUIElement.prototype.collapse=function(){var cc=this.getChildContainer();if(!ig.isNull(cc)){cc.hide(true);var pc=this.getParentComponent();if(!ig.isNull(pc)){var sn=pc.getSelectedElement();if(this.isAncestor(sn)){this.select();}}}};IgUIElement.prototype.click=function(){};IgUIElement.prototype.disable=function(){this.setUIAttribute(ig.PROP_DISABLED,true);};IgUIElement.prototype.enable=function(){this.setUIAttribute(ig.PROP_DISABLED,false);};IgUIElement.prototype.expand=function(){var cc=this.getChildContainer();if(!ig.isNull(cc)){cc.show();}};IgUIElement.prototype.fireEvent=function(eventName,jsCallback){ig.smartSubmit(this.getId(),eventName,null,this.getId(),jsCallback);};IgUIElement.prototype.focus=function(){if(this.isEnabled()){ig.ui.setHoveredElement(this);var link=ig.findDescendant(this.elm,null,null,"a");if(!ig.isNull(link)){link.focus();}}};IgUIElement.prototype.getAttribute=function(attrn,p,s){var tmp=ig.getAttribute(this.elm,attrn);if(p===true&&!ig.NaES(tmp)){var pc=this.getParentComponent();if(!ig.isNull(pc)){if(!ig.isNull(s)){tmp=ig.getAttribute(pc.elm,attrn+s);}
else{tmp=ig.getAttribute(pc.elm,attrn+this.getType());}}}
return tmp;};IgUIElement.prototype.getChildContainer=function(){return ig.getUIElementById(this.getId()+"_cc");};IgUIElement.prototype.getClass=function(){var css=null;if(!this.isEnabled()){css=this.getDisabledClass();}
else{if(this.isSelected()){css=this.getSelectedClass();}
else{if(this.isHovered()){css=this.getHoverClass();}}
if(!css){css=this.getDefaultClass();}}
return css;};IgUIElement.prototype.getDefaultClass=function(){return this.getAttribute(ig.PROP_DEFAULT_CLASS,true);};IgUIElement.prototype.getDisabledClass=function(){return this.getAttribute(ig.PROP_DISABLED_CLASS,true);};IgUIElement.prototype.getEventArguments=function(){return this.getAttribute("oprmtrs");};IgUIElement.prototype.getFirstChild=function(oe){var cc=this.getChildContainer();if(!ig.isNull(cc)){var t=this.getType();cc=ig.findDescendant(cc.elm,ig.PROP_TYPE,t);cc=ig.getUIElementById(cc);if(oe===true&&!ig.isNull(cc)&&!cc.isEnabled()){cc=cc.getNextSibling(true);}}
return cc;};IgUIElement.prototype.getFirstSibling=function(oe){var r=null;var t=this.getType();var tmp=this.elm.parentNode.firstChild;while(!ig.isNull(tmp)){if(ig.getType(tmp)==t){r=tmp;break;}
tmp=tmp.nextSibling;}
r=ig.getUIElementById(r);if(oe===true&&!ig.isNull(r)&&!r.isEnabled()){r=r.getNextSibling(true);}
return r;};IgUIElement.prototype.getHoverClass=function(){return this.getAttribute(ig.PROP_HOVER_CLASS,true);};IgUIElement.prototype.getLastChild=function(oe){var r=this.getFirstChild(oe);if(r){r=r.getLastSibling(oe);}
return r;};IgUIElement.prototype.getLastSibling=function(oe){var r=null;var t=this.getType();var tmp=this.elm.parentNode.lastChild;while(!ig.isNull(tmp)){if(ig.getType(tmp)==t){r=tmp;break;}
tmp=tmp.previousSibling;}
r=ig.getUIElementById(r);if(oe===true&&!ig.isNull(r)&&!r.isEnabled()){r=r.getPreviousSibling(true);}
return r;};IgUIElement.prototype.getNextSibling=function(oe){var r=null;var t=this.getType();var tmp=this.elm.nextSibling;while(!ig.isNull(tmp)){if(ig.getType(tmp)==t){r=tmp;break;}
tmp=tmp.nextSibling;}
r=ig.getUIElementById(r);if(oe===true&&!ig.isNull(r)&&!r.isEnabled()){r=r.getNextSibling(true);}
return r;};IgUIElement.prototype.getParentComponent=function(){var c=this.getAttribute(ig.PROP_PARENT_COMPONENT);if(!ig.NaES(c)){var pids=this.getParentIds();if(ig.isArray(pids)){for(var i=0;i<pids.length;i++){var pid=pids[i];if(ig.isUIComponent(pid)){this.setAttribute(ig.PROP_PARENT_COMPONENT,pid);c=pid;break;}}}
if(!ig.NaES(c)){c=ig.findAncestor(this.elm.parentNode,ig.PROP_COMPONENT,null,null);}}
return ig.getUIElementById(c);};IgUIElement.prototype.getParentIds=function(){var pids=new Array();var id=this.getId();if(ig.NaES(id)){var lio=id.length;while(lio>=0){lio=id.lastIndexOf(":",lio-1);if(lio>=0){var anId=id.substring(0,lio);pids.push(anId);}}}
return pids;};IgUIElement.prototype.getParentSibling=function(){var c=this.getAttribute(ig.PROP_PARENT);if(!ig.NaES(c)){var pids=this.getParentIds();if(ig.isArray(pids)){for(var i=0;i<pids.length;i++){var tmp=ig.getElementById(pids[i]);if(ig.isOfType(tmp,this.getType())){this.setAttribute(ig.PROP_PARENT,tmp.id);c=tmp.id;break;}}}
if(!ig.NaES(c)){c=ig.findAncestor(this.elm.parentNode,ig.PROP_TYPE,this.getType(),null);}}
return ig.getUIElementById(c);};IgUIElement.prototype.getPreviousSibling=function(oe){var r=null;var t=this.getType();var tmp=this.elm.previousSibling;while(!ig.isNull(tmp)){if(ig.getType(tmp)==t){r=tmp;break;}
tmp=tmp.previousSibling;}
r=ig.getUIElementById(r);if(oe===true&&!ig.isNull(r)&&!r.isEnabled()){r=r.getPreviousSibling(true);}
return r;};IgUIElement.prototype.hasChild=function(){return(!ig.isNull(this.getChildContainer()));};IgUIElement.prototype.getSelectedClass=function(){return this.getAttribute(ig.PROP_SELECTED_CLASS,true);};IgUIElement.prototype.isAncestor=function(n){var res=false;if(!ig.isNull(n)){var thisId=this.getId();var otherId=n.getId();if(ig.NaES(thisId)&&ig.NaES(otherId)){res=(otherId.indexOf(thisId)===0);}}
return res;};IgUIElement.prototype.isExpanded=function(){var cc=this.getChildContainer();return(!ig.isNull(cc))?(cc.elm.style.visibility!="hidden"&&cc.elm.style.display!="none"):false;};IgUIElement.prototype.isHovered=function(){return this.equals(ig.ui.getHoveredElement());};IgUIElement.prototype.isSelected=function(){var result=null;var comp=this.getParentComponent();if(!ig.isNull(comp)){result=this.equals(comp.getSelectedElement());}
return result;};IgUIElement.prototype.queueEvent=function(evtSrc,evtName,evtValue){if(ig.NaES(evtSrc)){var pcmp=this.getParentComponent();if(!ig.isNull(pcmp)){pcmp.queueEvent(evtSrc,evtName,evtValue);}}};IgUIElement.prototype.removeChildren=function(){var cc=this.getChildrenContainer();if(!ig.isNull(cc)){var pn=cc.parentNode;if(!ig.isNull(pn)){pn.removeChild(cc);}}};IgUIElement.prototype.repaint=function(){this.applyClass();this.updateCursor();};IgUIElement.prototype.replaceChildren=function(newChildren){this.removeChildren();this.appendChildren();};IgUIElement.prototype.select=function(){var pc=this.getParentComponent();if(!ig.isNull(pc)){pc.selectElement(this);}};IgUIElement.prototype.setUIAttribute=function(n,v){if(this.setAttribute(n,v)){this.repaint();}};IgUIElement.prototype.toggle=function(){if(this.isExpanded()){this.collapse();}
else{this.expand();}};IgUIElement.prototype.unselect=function(){if(this.isSelected()){var pc=this.getParentComponent();if(!ig.isNull(pc)){pc.unselectElement(this);}}};IgUIElement._extends(IgDomNode);function IgUIComponent(e){this.IgUIElement(e);}
IgUIComponent.prototype.focus=function(){};IgUIComponent.prototype.getParentComponent=function(){return null;};IgUIComponent.prototype.getSelectedElement=function(){var se=this.getAttribute(ig.PROP_SELECTED_ELEMENT);return ig.getUIElementById(se);};IgUIComponent.prototype.onKeyPress=function(e){};IgUIComponent.prototype.queueEvent=function(evtSrc,evtName,evtValue){var eq=new IgEventQueue(this.getId());if(!ig.isNull(eq)){eq.queueEvent(evtSrc,evtName,evtValue);}};IgUIComponent.prototype.select=function(e){};IgUIComponent.prototype.selectElement=function(se){if(!ig.isNull(se)&&!se.isSelected()){this.unselectElement(this.getSelectedElement());if(ig.NaES(se.elm.id)){this.setAttribute(ig.PROP_SELECTED_ELEMENT,se.elm.id);}
else{this.setAttribute(ig.PROP_SELECTED_ELEMENT,se);}
se.repaint();}};IgUIComponent.prototype.unselectElement=function(se){if(!ig.isNull(se)){this.setAttribute(ig.PROP_SELECTED_ELEMENT,null);se.repaint();}};IgUIComponent._extends(IgUIElement);function IgPagerLink(e){this.IgUIElement(e);}
IgPagerLink._extends(IgUIElement);function IgLink(e){this.IgUIElement(e);}
IgLink.prototype.getIconUrl=function(){return this.getAttribute("odiu",false);};IgLink.prototype.getHoverIconUrl=function(){return this.getAttribute("ohiu",false);};IgLink.prototype.repaint=function(){this.IgUIElement_repaint();this.updateIcon();};IgLink.prototype.getIcon=function(){return ig.getElementById(this.getId()+"i");};IgLink.prototype.updateIcon=function(){var tmp=(this.isHovered())?this.getHoverIconUrl():this.getIconUrl();if(ig.NaES(tmp)){var e=this.getIcon();if(!ig.isNull(e)){e.src=tmp;}}};IgLink._extends(IgUIElement);function IgHeaderLink(e){this.IgLink(e);}
IgHeaderLink.prototype.click=function(){this.toggle();};IgHeaderLink.prototype.collapse=function(){this.IgLink_collapse();this.repaint();};IgHeaderLink.prototype.expand=function(){this.IgLink_expand();this.repaint();};IgHeaderLink.prototype.getClass=function(){var css=null;if(!this.isEnabled()){css=this.getDisabledClass();}
else{if(this.isExpanded()){if(this.isHovered()){css=this.getExpandedHoverClass();}
else{css=this.getExpandedDefaultClass();}}
else{if(this.isHovered()){css=this.getHoverClass();}}
if(!css){css=this.getDefaultClass();}}
return css;};IgHeaderLink.prototype.getExpandedDefaultClass=function(){return this.getAttribute("oedc",true);};IgHeaderLink.prototype.getExpandedHoverClass=function(){return this.getAttribute("oehc",true);};IgHeaderLink.prototype.getExpandedIconUrl=function(){return this.getAttribute("oediu",false);};IgHeaderLink.prototype.getExpandedHoverIconUrl=function(){return this.getAttribute("oehiu",false);};IgHeaderLink.prototype.updateIcon=function(){var tmp=(this.isHovered())?this.getHoverIconUrl():this.getIconUrl();if(ig.NaES(tmp)){var e=this.getIcon();if(!ig.isNull(e)){e.src=tmp;}}};IgHeaderLink._extends(IgLink);ig.ui=new IgUI();}
ig.addEventListener(window,"load",ig.ui.init,false);}
