if(!AjaxComponents.CCAnimation){AjaxComponents.CCAnimation=function(){};AjaxComponents.CCAnimation.prototype={loaded:false,changeWidth:function(c,e,d,b){if(c.changeWidthFunction){window.clearInterval(c.changeWidthFunction)}c.currentWidth=$Utility.getElementSize(c).Width;var f=0;var a=$Animation.getStepValueInt(c.currentWidth,e,d,b);var g=Math.ceil(b/d);if(a==0){c.style.width=e+"px";return}c.changeWidthFunction=window.setInterval(function(){c.currentWidth=c.currentWidth+a;c.style.width=c.currentWidth+"px";f++;if(f>g){c.style.width=e+"px";window.clearInterval(c.changeWidthFunction);c.changeWidthFunction=null}},d)},changeHeight:function(d,b,e,c){if(d.changeHeightFunction){window.clearInterval(d.changeHeightFunction)}d.currentHeight=$Utility.getElementSize(d).Height;var f=0;var g=$Animation.getStepValueInt(d.currentHeight,b,e,c);var a=Math.ceil(c/e);if(g==0){d.style.height=b+"px";return}d.changeHeightFunction=window.setInterval(function(){d.currentHeight=d.currentHeight+g;d.style.height=d.currentHeight+"px";f++;if(f>a){d.style.height=b+"px";window.clearInterval(d.changeHeightFunction);d.changeHeightFunction=null}},e)},changeXPos:function(d,b,e,c){if(d.changeXPosFunction){window.clearInterval(d.changeXPosFunction)}d.currentXPos=$Utility.getPositionX(d);var f=0;var g=$Animation.getStepValueInt(d.currentXPos,b,e,c);var a=Math.ceil(c/e);if(g==0){d.style.left=b+"px";return}d.changeXPosFunction=window.setInterval(function(){d.currentXPos=d.currentXPos+g;d.style.left=d.currentXPos+"px";f++;if(f>a){d.style.left=b+"px";window.clearInterval(d.changeXPosFunction);d.changeXPosFunction=null}},e)},changeYPos:function(d,b,e,c){if(d.changeYPosFunction){window.clearInterval(d.changeYPosFunction)}d.currentYPos=$Utility.getPositionY(d);var f=0;var g=$Animation.getStepValueInt(d.currentYPos,b,e,c);var a=Math.ceil(c/e);if(g==0){d.style.top=b+"px";return}d.changeYPosFunction=window.setInterval(function(){d.currentYPos=d.currentYPos+g;d.style.top=d.currentYPos+"px";f++;if(f>a){d.style.top=b+"px";window.clearInterval(d.changeYPosFunction);d.changeYPosFunction=null}},e)},changeTransparency:function(c,f,d,b){if(c.changeTransparencyFunction){window.clearInterval(c.changeTransparencyFunction)}c.currentTransparency=$Utility.getElementOpacity(c);var e=0;var a=$Animation.getStepValueInt(c.currentTransparency,f,d,b);var g=Math.ceil(b/d);if(a==0){$Utility.setElementOpacity(c,f);return}c.changeTransparencyFunction=window.setInterval(function(){c.currentTransparency=c.currentTransparency+a;$Utility.setElementOpacity(c,c.currentTransparency);e++;if(e>g){$Utility.setElementOpacity(c,f);window.clearInterval(c.changeTransparencyFunction);c.changeTransparencyFunction=null}},d)},getStepValueInt:function(b,c,a,d){return val=(c-b)/(d/a)}};var $Animation=new AjaxComponents.CCAnimation();AjaxComponents.CCAnimation.loaded=true};
if(!AjaxComponents.CCDrag){AjaxComponents.CCDrag=function(){};AjaxComponents.CCDrag.prototype={loaded:false,DragObject:null,makeItemDraggable:function(c,d,b,a){c.Handle=d;c.Handle.MoveObject=c;c.Handle.onmousedown=this.startDrag;c.stay_in_window_bounds=b;c.drag_transparency=a},mouseCoords:function(b){if(b.pageX||b.pageY){return{X:b.pageX,Y:b.pageY}}var a=b.clientX+document.body.scrollLeft-document.body.clientLeft;var c=b.clientY+document.body.scrollTop-document.body.clientTop;return{X:a,Y:c}},getPosition:function(c){var b=0;var a=0;while(c.offsetParent){b+=c.offsetLeft;a+=c.offsetTop;c=c.offsetParent}b+=c.offsetLeft;a+=c.offsetTop;return{X:b,Y:a}},getMouseOffset:function(f,c){c=c||window.event;var a=this.getPosition(f);var b=this.mouseCoords(c);var g=b.X-a.X;var d=b.Y-a.Y;return{X:g,Y:d}},startDrag:function(a){$Drag.DragObject=this;$Drag.DragObject.style.display="block";$Drag.DragObject.style.zIndex="1000";document.onmousemove=$Drag.dragMouseMove;document.onmouseup=$Drag.dragMouseUp;this.mouseOffset=$Drag.getMouseOffset(this,a);return false},stopDrag:function(){$Drag.DragObject.style.display="block";$Drag.DragObject.style.zIndex="-25";document.onmousemove=null;document.onmouseup=null;$Drag.DragObject=null},dragMouseMove:function(g){g=g||window.event;var d=$Drag.mouseCoords(g);if($Drag.DragObject){var f=$Utility.getClientScrollPos();var b=(d.X-$Drag.DragObject.mouseOffset.X);var c=(d.Y-$Drag.DragObject.mouseOffset.Y);if($Drag.DragObject.MoveObject.stay_in_window_bounds){if(b<f.Left){b=f.Left}if(c<f.Top){c=f.Top}var h=$Utility.getClientBrowserSize();var a=$Utility.getElementSize($Drag.DragObject.MoveObject);if(b+a.Width>h.Width+f.Left){b=h.Width+f.Left-a.Width}if(c+a.Height>h.Height+f.Top){c=h.Height+f.Top-a.Height}}if($Drag.DragObject.MoveObject.drag_transparency&&$Drag.DragObject.MoveObject.drag_transparency!=100){$Utility.setElementOpacity($Drag.DragObject.MoveObject,$Drag.DragObject.MoveObject.drag_transparency/100)}$Drag.DragObject.MoveObject.style.position="absolute";$Drag.DragObject.MoveObject.style.top=c+"px";$Drag.DragObject.MoveObject.style.left=b+"px";return false}},dragMouseUp:function(a){if($Drag.DragObject.MoveObject.drag_transparency&&$Drag.DragObject.MoveObject.drag_transparency!=100){$Utility.setElementOpacity($Drag.DragObject.MoveObject,1)}$Drag.stopDrag()}};var $Drag=new AjaxComponents.CCDrag();AjaxComponents.CCDrag.loaded=true};
if(!window.AjaxComponents_Dialog_Loaded){AjaxComponents_Dialog=function(a){this.ID=a;this.Dialog=document.getElementById(a);this.Dialog.DragItem=document.getElementById(a+"_HeaderDiv");this.IsShowing=false};AjaxComponents_Dialog.prototype={Initialize:function(){this.Dialog.style.position="absolute";this.Dialog.style.visibility="hidden";this.Dialog.style.top=this.Y+"px";this.Dialog.style.left=this.X+"px";if(this.AllowDrag){$Drag.makeItemDraggable(this.Dialog,this.Dialog.DragItem,this.StayInWindowBounds,this.DragTransparency)}},Show:function(){this.Dialog.style.visibility="visible";if(this.Center){var b=$Utility.getClientBrowserSize();var a=$Utility.getElementSize(this.Dialog);this.Dialog.style.left=(b.Width-a.Width)/2+"px";this.Dialog.style.top=(b.Height-a.Height)/2+"px"}this.IsShowing=true},Hide:function(){this.Dialog.style.visibility="hidden";this.IsShowing=false},Height:function(a){this.Dialog.style.height=a},Width:function(a){this.Dialog.style.width=a}};window.AjaxComponents_Dialog_Loaded=true};
