/*


 				MACHINE GENERATED FILE - DO NOT EDIT



		File generated on: Fri, 17 Jun 2011 17:15:08

		Copyright (c) 2008-2009 Group Logic Incorporated. All rights reserved.

		This source code may be used only by organizations licensed to use MassTransit, in conjunction with normal MassTransit usage. No portion 
		of it may be redistributed or modified without the written permission of Group Logic, Inc. See the Group Logic Software License Agreement 
		for more information.

*/




$R('com.grouplogic.Array');(function(){var undefined;com.grouplogic.Array=function(){this.constructor();};com.grouplogic.Array.prototype={constructor:function(){},indexOf:function(array,item,fromIndex){var length=array.length;if(fromIndex==null){fromIndex=0;}else if(fromIndex<0){fromIndex=Math.max(0,length+fromIndex);}
for(var i=fromIndex;i<length;i++){if(array[i]===item)return i;}
return-1;},each:function(array,proc,context){context=context||window;for(var i=0,value=array[i];i<array.length&&proc.call(context,value,i)!==false;value=array[++i]){}},removeFromArray:function(array,item){var index=this.indexOf(array,item);if(index!=-1)array.splice(index,1);return item;},toString:function(array){return $d(array).toString();}};})();$G.array=new com.grouplogic.Array();
$R('com.grouplogic.DOMUtils');$R('com.grouplogic.DOMElemUtils');(function(){var undefined;var propertyNameCache={};var regExPatterns={HAS_HYPHENS:/(-[a-z])/i,IS_SAFARI:/safari/i,IS_IE:/(msie|internet explorer)/i,IS_ROOT_ELEM:/^body|html$/i};com.grouplogic.DOMUtils=function(){return this.constructor();};com.grouplogic.DOMUtils.prototype={isIE:false,isSafari:false,isOpera:false,arrayUtils:null,constructor:function(){this.isIE=regExPatterns.IS_IE.test(navigator.userAgent);this.isSafari=regExPatterns.IS_SAFARI.test(navigator.userAgent);this.isOpera=(window.opera!==undefined);this.arrayUtils=$G.array;},isNull:function(val){return(val==null);},isUndefined:function(v){return(typeof(v)=='undefined');},isValid:function(v){return!(this.isNull(v)||this.isUndefined(v));},getDocumentElementByTagName:function(name,d){var n=null;if(this.isValid(name)){var doc=rootElem||window.document;if(this.isValid(doc)&&doc.getElementsByTagName){n=doc.getElementsByTagName(name);}}
return n;},getDocumentElementsByTagName:function(name,rootElem){var n=null;if(this.isValid(name)){var e=rootElem||window.document;if(this.isValid(e)&&e.getElementsByTagName){n=e.getElementsByTagName(name);}}
return n;},getTableBody:function(t){var tableBody;var tableElem=$d(t).first();if(tableElem){var tableChild=tableElem.firstChild;while(tableChild){if(tableChild.nodeType==1&&tableChild.tagName=='TBODY'){tableBody=tableChild;break;}
tableChild=tableChild.nextSibling;}}
return tableBody?$d(tableBody):undefined;},createDocumentFromXML:function(xmlString){if(document.implementation.createDocument){var parser=new DOMParser();doc=parser.parseFromString(xmlString,"text/xml");}else if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(xmlString);}
return doc;},serializeXMLDocument:function(xmlDoc){if(typeof XMLSerializer!="undefined"){return(new XMLSerializer()).serializeToString(xmlDoc);}else if(xmlDoc.xml){return xmlDoc.xml;}else{throw"serializeXMLDocument is not supported or can't serialize "+xmlDoc;}}};var __DOMUtils=window.$D=$G.dom=new com.grouplogic.DOMUtils();com.grouplogic.DOMElemUtils=Base.extend({length:0,_DOMElemUtils:true,constructor:function(elements,doc){this.base();elements=elements||[];doc=doc||window.document;this.setNewElements([]);this.doc=doc;if(elements.nodeType){return this.setNewElements([elements]);}
if(typeof elements=='string'){if(node=this._getElem(this.doc,elements)){this.setNewElements([node]);}
return this;}
var theElems=[];for(var i=0,numElems=elements.length;i<numElems;++i){var anElem=elements[i];if(anElem&&anElem.nodeType){theElems.push(anElem);}
else if(typeof anElem=='string'){var n=null;if(this.doc.getElementById){n=this.doc.getElementById(anElem);}else if(this.doc.all){n=this.doc.all[anElem];}else if(this.doc.layers){n=this.doc.layers[anElem];}
if(n){theElems.push(n);}}}
return this.setNewElements(theElems);},_resolveElement:function(elem){var e=null;if(typeof elem=='string'){e=this._getElem(this.doc,elem);}else{e=(elem&&elem._DOMElemUtils)?elem[0]:elem;}
return e;},_getElem:function(doc,e){doc=doc||window.document;var n=null;if(doc.getElementById){n=doc.getElementById(e);}else if(doc.all){n=doc.all[e];}else if(doc.layers){n=doc.layers[e];}
return n;},isNull:function(val){return(val==null);},isUndefined:function(v){return(v==undefined);},isValid:function(v){return!(this.isNull(v)||this.isUndefined(v));},isObject:function(o){return(o&&"object"==typeof o)||this.isFunction(o);},isIE:function(){return $G.dom.isIE;},isSafari:function(){return $G.dom.isSafari;},isOpera:function(){return $G.dom.isOpera;},toString:function(){var n=0,result='ids=';this.each(function(elem,idx){if(elem.id){if(++n>1)result+=' ';result+=elem.id;}});return result;},indexOf:function(elem){var e=this._resolveElement(elem);if(e){for(var i=0,length=this.length;i<length;i++){if(this[i]===e)return i;}}
return-1;},splice:function(){var newElems=Array.prototype.splice.apply(this,arguments);return this.setNewElements(this.asArray(newElems));},asArray:function(){var results=[];this.each(function(e,idx){results[idx]=e;});return results;},merge:function(b){var curElems=this.asArray();var newElems=new this.constructor(b).asArray();var i=0,j=curElems.length,anElem;while(anElem=b[i++]){curElems[j++]=anElem;}
return this.setNewElements(curElems);},getChildrenByTagName:function(name){var results=new this.constructor([]);this.each(function(e,idx){var elems=$D.getDocumentElementsByTagName(name,e);results.merge(elems);});return results;},removeElement:function(elem){var e=this._resolveElement(elem);var index=this.indexOf(e);if(index!=-1)this.splice(index,1);return this;},test_if:function(cond,func){var condResults=cond(this);return condResults?func(condResults):undefined;},if_contained:function(elem,func){return this.test_if(function(e){return function(ths){return(ths.indexOf(e)!=-1);};}(elem),function(ths,e){return function(elems){return func(ths,e);};}(this,elem));},if_not_contained:function(elem,func){return this.test_if(function(e){return function(elems){return(elems.indexOf(e)==-1);};}(elem),function(ths,e){return function(elems){return func(ths,e);};}(this,elem));},first:function(){return(this[0]?this[0]:undefined);},id:function(){var val=undefined;if(this.length){val=(this[0].id||"");}
return val;},parent:function(){return(this.length)?this[0].parentNode:null;},child:function(){return new this.constructor(((this.length)?this[0].firstChild:null),this.doc);},if_has_parent:function(func){return this.test_if(function(e){return e.parent();},function(p){return func(p);});},siblings:function(){var sibs=[];if(this.length){for(var e=this[0].parentNode.firstChild;e;e=e.nextSibling){if(e.nodeType==1&&e!=this[0])
sibs.push(e);}}
return new this.constructor(sibs,this.doc);},numChildren:function(){return(this[0]?this[0].childNodes.length:undefined);},children:function(){var kids=[];if(this.length){for(var e=this[0].firstChild;e;e=e.nextSibling){if(e.nodeType==1&&e!=this[0])
kids.push(e);}}
return new this.constructor(kids,this.doc);},insertFirst:function(elem){var e=this._resolveElement(elem);if(this.length&&e.nodeType==1){this[0].insertBefore(e,this[0].firstChild);}
return this;},insertAfter:function(elem){if(this.length){var e=this._resolveElement(elem);this[0].parentNode.insertBefore(e,this[0].nextSibling);}
return this;},insertBefore:function(elem){if(this.length){var e=this._resolveElement(elem);this[0].parentNode.insertBefore(e,this[0]);}
return this;},insertLast:function(elem){var e=this._resolveElement(elem);if(this.length&&e.nodeType==1){this[0].appendChild(e);}
return this;},value:function(){return(this.length)?(this[0].value||""):"";},selected:function(){return(this.length)?(this[0].selected||""):"";},disabled:function(){return(this.length)?(this[0].disabled||""):"";},checked:function(){return(this.length)?(this[0].checked||""):"";},html:function(){return(this.length?this[0].innerHTML:"");},attr:function(name){return(this.length)?(this[0].getAttribute(name)||undefined):undefined;},setHtml:function(html){var h=(html||"");if(this[0])this[0].innerHTML=h;return this;},appendHtml:function(html){var h=(html||"");if(this[0])this[0].innerHTML+=h;return this;},setTextContent:function(content){var c=(content||"");if(this[0])this[0].textContent=c;return this;},supportsSelection:function(){var returnVal=false;if(this[0]){returnVal=this[0].createTextRange||this[0].setSelectionRange;}
return returnVal;},focus:function(){if(this[0])this[0].focus();return this;},blur:function(){if(this[0])this[0].blur();return this;},clearSelection:function(){try{if(document.selection){if(document.selection.empty){docunent.selection.empty();}else if(docunent.selection.clear){docunent.selection.clear();}}else if(window.getSelection){if(this.isSafari){window.getSelection().collapse();}else{window.getSelection().removeAllRanges();}}else{}}catch(e){}
return this;},selectRange:function(start,len,setFocus){if(this[0]){if(this[0].createTextRange){var oRange=this[0].createTextRange();oRange.moveStart("character",start);oRange.moveEnd("character",len-this[0].value.length);oRange.select();}else if(this[0].setSelectionRange){this[0].setSelectionRange(start,len);}
if(setFocus)this[0].focus();}
return this;},setNewElements:function(newElems){this.elems=newElems;this.length=0;if(newElems.length){Array.prototype.push.apply(this,this.elems);}else{Array.prototype.constructor.apply(this,[]);}
return this;},each:function(proc,direction){direction=direction||"forwards";if(direction=="forwards")
for(var i=0,value=this[i];i<this.length&&proc.call(this,value,i)!==false;value=this[++i]){}
else
for(var i=this.length-1,value=this[i];i>=0&&proc.call(this,value,i)!==false;value=this[--i]){}
return this;},setChecked:function(state){var val=(state||"");return this.each(function(e,idx){e.checked=val;});},setDisabled:function(state){var val=(state||"");return this.each(function(e,idx){e.disabled=val;});},filter_out:function(fn,stopFn){var newElems=[];this.each(function(e,idx){if(fn.call(this,e,idx)==false){newElems.push(e);}
if(stopFn){return stopFn.call(this,e,newElems);}});this.setNewElements(newElems);return this;},deleteChildren:function(){this.each(function(e,idx){var len=e.childNodes.length;while(e.hasChildNodes()){e.removeChild(e.firstChild);}});return this;},setAttr:function(attr,value){this.each(function(e,idx){e.setAttribute(attr,value);});return this;},removeAttr:function(attrName){this.each(function(e,idx){e.removeAttribute(attrName);});return this;},setValue:function(v){var val=(v||"");return this.each(function(e,idx){e.value=val;});},setChecked:function(v){var val=(v||"");return this.each(function(e,idx){e.checked=val;});},setDisabled:function(v){var val=(v||"");return this.each(function(e,idx){e.disabled=val;});},truncateChildren:function(maxKids,offset){offset=offset||maxKids;this.each(function(e,idx){if(this.isValid(e)){var len=e.childNodes.length;while(e.childNodes.length>maxKids){e.removeChild(e.childNodes[maxKids]);}}});return this;},deleteElement:function(){this.each(function(elem,idx){if(this.isValid(elem)){elem.parentNode.removeChild(elem);}});return this.setNewElements([]);},hasClass:function(e,className){return $G.array.indexOf((e.className||e).toString().split(/\s+/),className)>-1;},addClass:function(newClassName){var elemsToChange=new com.grouplogic.DOMElemUtils(this.elems,this.doc);elemsToChange.filter_out(function(elem,idx){return this.hasClass(elem,newClassName);});elemsToChange.each(function(elem,idx){if((newClassName!=undefined)&&!this.hasClass(elem,newClassName)&&(elem.nodeType==1)){elem.className+=(elem.className?" ":"")+newClassName;}});delete elemsToChange;return this;},removeClass:function(className){var elemsToChange=new com.grouplogic.DOMElemUtils(this.elems,this.doc);elemsToChange.filter_out(function(elem,idx){return(this.hasClass(elem,className)==false);});elemsToChange.each(function(elem,idx){if((className!=undefined)&&(elem.nodeType==1)&&this.hasClass(elem,className)){var classNames=(elem.className||elem).toString().split(/\s+/);$G.array.removeFromArray(classNames,className);elem.className=classNames.join(" ");}});delete elemsToChange;return this;},convertToCamelCase:function(t){if(!regExPatterns.HAS_HYPHENS.test(t)){return t;}
if(this.propertyNameCache[t]){return propertyNameCache[t];}
var converted=t;while(regExPatterns.HAS_HYPHENS.exec(converted)){converted=converted.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}
propertyNameCache[t]=converted;return converted;}});window.$d=function(elems,doc){return new com.grouplogic.DOMElemUtils(elems,doc);};})();
$R('com.grouplogic.StyleUtils');(function(){var undefined;com.grouplogic.StyleUtils=com.grouplogic.DOMElemUtils.extend({constructor:function(){this.base.apply(this,arguments);this._getStyle=this._pickGetStyle();},filterHidden:function(){this.filter_out(function(e,idx){return(this._elemIsVisible(e)==false);});return this;},filterVisible:function(){this.filter_out(function(e,idx){return(this._elemIsVisible(e)==true);});return this;},getStyle:function(property,callback){this.each(function(e,idx){return callback.call(this,e,this._getStyle(e,property));});return this;},x:function(){var obj=this[0],curleft=0;if(obj){if(obj.offsetParent){while(obj&&obj.tagName!="BODY"){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;}
return curleft;},y:function(){var obj=this[0],curtop=0;if(obj){if(obj.offsetParent){while(obj&&obj.tagName!="BODY"){curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;}
return curtop;},width:function(){return(this[0]?(this[0].offsetWidth||this[0].clientWidth||this[0].scrollWidth):0);},height:function(){return(this[0]?(this[0].offsetHeight||this[0].clientHeight||this[0].scrollHeight):0);},top:function(){return(this[0]?this[0].offsetTop:0);},left:function(){return(this[0]?this[0].offsetLeft:0);},css:function(p){return(this[0]?this._getStyle(this[0],p):"");},visible:function(){return(this[0]?this._elemIsVisible(this[0]):false);},opacity:function(){return(this[0]?this.css('opacity'):100);},posX:function(callback){this.each(function(e,idx){return callback.call(this,e,parseInt(this._getStyle(e,'left'),10));});return this;},posY:function(callback){this.each(function(e,idx){return callback.call(this,e,parseInt(this._getStyle(e,'top'),10));});return this;},setX:function(pos){return this.each(function(e,idx){e.style.left=pos+"px";});return this;},setY:function(pos){return this.each(function(e,idx){e.style.top=pos+"px";});},addX:function(inc){return this.posX(function(e,left){e.setX(left+inc);});},addY:function(pos){return this.posY(function(e,top){e.setX(top+inc);});},setOpacity:function(opac){this.each(function(e,idx){var cssOpac=opac/100;if(e.style.filter!=undefined){e.zoom=1;e.style.filter="alpha(opacity="+opac+")";}
e.style.opacity=cssOpac;});return this;},setDisplay:function(newDisplay){this.each(function(e,idx){e.style.display=newDisplay;});return this;},setOverflow:function(overflow){this.each(function(e,idx){e.style.overflow=overflow;});return this;},setWidth:function(w){var newWidth=w||"";if((typeof w=="number")||(typeof w=="string"&&(w.indexOf('%')==-1)&&(w.indexOf('px')==-1)&&!isNaN(parseInt(w)))){newWidth+="px";}
this.each(function(e,idx){e.style.width=newWidth;});return this;},setHeight:function(h){var newHeight=h||"";if((typeof h=="number")||(typeof h=="string"&&(h.indexOf('%')==-1)&&(h.indexOf('px')==-1)&&!isNaN(parseInt(h)))){newHeight+="px";}
this.each(function(e,idx){e.style.height=newHeight;});return this;},setZIndex:function(z){this.each(function(e,idx){e.style.zIndex=z;});return this;},changeChartHeight:function(height){this.each(function(e,idx){try{if(e.firstChild&&(e.firstChild.childNodes.length>0)){if(e.firstChild.childNodes[0].nodeName=="EMBED"){e.firstChild.childNodes[0].style.height=height+"px";}}}catch(ex){}});return this;},setPosition:function(x,y){this.each(function(e,idx){e.style.left=x+"px";e.style.top=y+"px";});return this;},setSize:function(w,h){this.each(function(e,idx){e.style.width=w+"px";e.style.height=h+"px";});return this;},elemsAreVisible:function(context,cb){var result=true;this.each(function(e,idx){result=result&&_elemIsVisible(e);return result;});cb.call(context,result);return this;},setVisibility:function(newState,checkEmbeddedCharts){this.each(function(e){checkEmbeddedCharts=checkEmbeddedCharts||false;e.style.visibility=newState;if(checkEmbeddedCharts&&(e.firstChild&&e.firstChild.tagName=="DIV"))
{var embedTags=$D.getDocumentElementsByTagName("EMBED");if(embedTags){for(var i=0;i<embedTags.length;i++){var embedObj=embedTags[i];if(embedObj&&embedObj.type=="application/x-shockwave-flash"){try{var tmp=embedObj.parentNode;while(tmp)
{if(tmp.id==id){embedObj.TSetProperty('/',7,(newState=="visible")?"true":"false");break;}
tmp=tmp.parentNode;}}catch(e){}}}}}});return this;},disableSelection:function(){this.each(function(e){if(e.onselectstart!=undefined){e.onselectstart=function(){return false;};e.unselectable="on";}else if(e.style.MozUserSelect!=undefined){e.style.MozUserSelect="none";}else if(this.isSafari){e.style.KhtmlUserSelect="none";}});return this;},enableSelection:function(){this.each(function(e){if(e.onselectstart!=undefined){e.onselectstart=null;e.unselectable="off";}else if(e.style.MozUserSelect!=undefined){e.style.MozUserSelect="";}else if(this.isSafari){e.style.KhtmlUserSelect="";}});return this;},_elemIsVisible:function(e){var elemDisplay=this._getStyle(e,'display')||"";var elemVisibility=this._getStyle(e,'visibility')||"";var elemOpacity=this._getStyle(e,'opacity');elemOpacity=(elemOpacity==undefined)?1.0:elemOpacity;return e?((elemDisplay!="none")&&(elemVisibility!="hidden")&&(elemOpacity>0.0)):undefined;},_pickGetStyle:function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(obj,property){obj=$d(obj).first();if(!obj)
return;var value=null;if(property=='float'){property='cssFloat';}
if(obj.style&&obj.style[property])
return obj.style[property];var computed=null;if(obj.ownerDocument&&obj.ownerDocument.defaultView){computed=obj.ownerDocument.defaultView.getComputedStyle(obj,'');}else if(window.getComputedStyle){computed=window.getComputedStyle(obj,'');}
if(computed){value=computed[this.convertToCamelCase(property)];}
return obj.style[property]||value;};}else if(document.documentElement.currentStyle&&this.isIE()){return function(obj,property){obj=$d(obj).first();if(!obj)
return;switch(this.convertToCamelCase(property)){case'opacity':var val=100;try{val=obj.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=obj.filters('alpha').opacity;}catch(e){}}
return val/100;case'float':property='styleFloat';default:var value=obj.currentStyle?obj.currentStyle[property]:null;return(obj.style[property]||value);}};}else{return function(obj,property){obj=$d(obj).first();if(!obj)
return;return obj.style[property];};}}});var __gli_StyleUtils=window.$s=function(elems,doc){return new com.grouplogic.StyleUtils(elems,doc);};})();
$R('com.grouplogic.DhtmlElement');$R('com.grouplogic.DhtmlElementDelete');$R('com.grouplogic.DhtmlElementDeleteAllChildren');$R('com.grouplogic.DhtmlElementClose');$R('com.grouplogic.DhtmlElementResize');$R('com.grouplogic.DhtmlElementWiden');$R('com.grouplogic.DhtmlEditAutocomplete');$R('com.grouplogic.DhtmlElementChange');$R('com.grouplogic.DhtmlElementDialogBehavior');(function(){var undefined;var dbgconsole=$G.debug||window.com.grouplogic.globals.debug;com.grouplogic.DhtmlElement=Base.extend({mDebug:false,mDebugMouseDown:false,mDebugClick:false,mDebugWiden:false,mElem:null,mDisabled:false,constructor:function(id,doc){this.base();this.mBoundEvents=new Array();this.mElem=$d(id,doc).first();},dbg:function(op,msg){if(this.mDebug){dbgconsole.dbgtrace('DHTML','event',op,msg,'#7C4C00');}},dbgmousedown:function(op,msg){if(this.mDebugMouseDown){dbgconsole.dbgtrace('DHTML','mousedown',op,msg,'#7C4C00');}},dbgclick:function(op,msg){if(this.mDebugClick){dbgconsole.dbgtrace('DHTML','*CLICK*',op,msg,'#D13C0B');}},dbgwiden:function(op,msg){if(this.mDebugWiden){dbgconsole.dbgtrace('DHTML','widen',op,msg,'#007C4C');}},initialize:function(){var result=false;try{if(this.mElem){result=true;}}catch(e){}
return result;},patchEvt:function(e){if(typeof e=='undefined')e=window.event;if(typeof e.layerX=='undefined')e.layerX=e.offsetX;if(typeof e.layerY=='undefined')e.layerY=e.offsetY;return e;},stopDefault:function(evt){if(evt&&evt.preventDefault)evt.preventDefault();return false;},stopBubble:function(evt){if(evt&&evt.stopPropagation){evt.stopPropagation();}else{window.event.cancelBubble=true;}},bind:function(obj,eventName){this.dbg('bind',obj.mElem.id.toString()+'.'+eventName.toString());return(function(e){e=e||window.event;return obj[eventName].call(obj,e,this);});},bindNoEventParam:function(obj,eventName){return(function(){return obj[eventName].call(obj,this);});},boundTo:function(){return this.mElem.id;},unbind:function(){if(this.mBoundEvents&&this.mBoundEvents.length){while(this.mBoundEvents.length>0){var eventName=this.mBoundEvents.pop();if(eventName.match(/^doc_(.*)$/)){eventName=eventName.substr(4);this.dbg('unbind','document.'+eventName.toString());window.document[eventName]=null;}else{this.dbg('unbind',this.mElem.id.toString()+'.'+eventName.toString());this.mElem[eventName]=null;}}}},unbindMouseEvents:function(){this.mElem.onclick=null;this.mElem.onmouseover=null;this.mElem.onmouseout=null;this.mElem.onmousedown=null;this.mElem.onmouseup=null;this.mElem.onmousemove=null;},setDisabled:function(newState){this.mDisabled=newState;return this;},disabled:function(){return this.mDisabled;},setOnClick:function(){if(this.mElem){this.mElem.onclick=this.bind(this,"doOnClick");this.mBoundEvents.push("onclick");}},doOnClick:function(evnt,element){if(this.mDebugClick){var msg='id='+element.id+'.onclick';if(evnt){msg+='; x='+evnt.screenX+', y='+evnt.screenY;}
this.dbgclick('onclick',msg);}
return false;},setOnMouseOver:function(){if(this.mElem){this.mElem.onmouseover=this.bind(this,"doOnMouseOver");this.mBoundEvents.push("onmouseover");}},doOnMouseOver:function(event,element){if(element){element.style.cursor='pointer';}
return false;},setOnMouseOut:function(){if(this.mElem){this.mElem.onmouseout=this.bind(this,"doOnMouseOut");this.mBoundEvents.push("onmouseout");}},doOnMouseOut:function(event,element){return false;},setOnMouseDown:function(){if(this.mElem){this.mElem.onmousedown=this.bind(this,"doOnMouseDown");this.mBoundEvents.push("onmousedown");}},doOnMouseDown:function(event,element){return false;},setOnMouseUp:function(){if(this.mElem){this.mElem.onmouseup=this.bind(this,"doOnMouseUp");this.mBoundEvents.push("onmouseup");}},doOnMouseUp:function(event,element){return false;},setOnMouseMove:function(){if(this.mElem){this.mElem.onmousemove=this.bind(this,"doOnMouseMove");this.mBoundEvents.push("onmousemove");}},doOnMouseMove:function(event,element){return false;},setOnKeyUp:function(){if(this.mElem){this.mElem.onkeyup=this.bind(this,"doOnKeyUp");this.mBoundEvents.push("onkeyup");}},setPageOnKeyUp:function(){window.document.onkeyup=this.bind(this,"doOnKeyUp");this.mBoundEvents.push("doc_onkeyup");},doOnKeyUp:function(event,element){return false;},setOnKeyDown:function(){if(this.mElem){this.mElem.onkeydown=this.bind(this,"doOnKeyDown");this.mBoundEvents.push("onkeydown");}},setPageOnKeyDown:function(){window.document.onkeydown=this.bind(this,"doOnKeyDown");this.mBoundEvents.push("doc_onkeydown");},doOnKeyDown:function(event,element){return false;},setOnBlur:function(){if(this.mElem){this.mElem.onblur=this.bindNoEventParam(this,"doOnBlur");this.mBoundEvents.push("onblur");}},doOnBlur:function(element){return false;},setOnChange:function(){if(this.mElem){this.mElem.onchange=this.bindNoEventParam(this,"doOnChange");this.mBoundEvents.push("onchange");}},doOnChange:function(element){return false;}});com.grouplogic.DhtmlElementDelete=com.grouplogic.DhtmlElement.extend({constructor:function(id,doc,idToDelete){this.base(id,doc);this.mDoc=doc;this.mElemToDeleteID=idToDelete;},doOnClick:function(event,element){this.base(event,element);if(element){$d(this.mElemToDeleteID,this.mDoc).deleteElement();}
return false;}});com.grouplogic.DhtmlElementDeleteAllChildren=com.grouplogic.DhtmlElement.extend({constructor:function(id,doc,parentOfDoomedChildren){this.base(id,doc);this.mDoc=doc;this.mParentOfDoomedChildren=$d(parentOfDoomedChildren,doc);},doOnClick:function(event,element){this.base(event,element);if(element){this.mParentOfDoomedChildren.deleteChildren();}
return false;}});com.grouplogic.DhtmlElementClose=com.grouplogic.DhtmlElement.extend({constructor:function(menubarID,popupWindow,doc){this.base(menubarID,doc);this.mDoc=doc;this.mPopupWindow=popupWindow;},initialize:function(){var result=this.base();this.setOnClick();this.setOnMouseOver();return result;},doOnClick:function(event,element){this.base(event,element);if(this){var mousePos=$G.gliUtils.getMousePositionRelativeToTarget(event);this.mPopupWindow.hidePopup();}
return true;}});com.grouplogic.DhtmlElementResize=com.grouplogic.DhtmlElement.extend({constructor:function(doc,id,elemToResizeID){this.base(id,doc);this.mDoc=doc;this.mElemToResize=$s(elemToResizeID,doc);this.mResizeOffsetX=0;this.mResizeOffsetY=0;this.mWeAreResizing=false;},initialize:function(){var result=this.base();this.setOnMouseOver();this.setOnMouseDown();this.setOnMouseUp();this.setOnMouseMove();return result;},resizeTargetElement:function(newElemX,newElemY){try{if(this.mWeAreResizing){var dx=newElemX-this.mElem.origPos[0];var dy=newElemY-this.mElem.origPos[1];var newWidth=this.mElemToResize.width()+dx;var newHeight=this.mElemToResize.height()+dy;this.mElemToResize.setWidth(newWidth+"px");this.mElemToResize.setHeight(newHeight+"px");$s(this.mElem).setPosition(newElemX+'px',newElemY+'px');}}catch(e){}
return false;},doOnMouseOver:function(event,element){if(element){element.style.cursor='move';}
return false;},doOnMouseUp:function(event,element){if(element){this.mWeAreResizing=false;}
return false;},doOnMouseDown:function(evt,element){if(element){evt=this.patchEvt(evt);var evtX=(evt.pageX||(evt.clientX+this.mDoc.body.scrollLeft)||0);var evtY=(evt.pageY||(evt.clientY+this.mDoc.body.scrollTop)||0);var objLeft=element.offsetLeft;var objTop=element.offsetTop;this.mDoc.onmousemove=function(curResizer,elem){return function(e){e=curResizer.patchEvt(e);curResizer.doOnMouseMove(e,elem);};}(this,element);this.mDoc.onmouseup=function(curResizer,elem){return function(e){e=curResizer.patchEvt(e);curResizer.doOnMouseUp(e,elem);};}(this,element);this.mDoc.onselectstart=function(){return false;};this.mWeAreResizing=true;this.mResizeOffsetX=objLeft-evtX;this.mResizeOffsetY=objTop-evtY;this.dbgmousedown('mouse down: x='+evtX+', y='+evtY+', objLeft='+objLeft+', objTop='+objTop+', mResizeOffsetX='+this.mResizeOffsetX+', mResizeOffsetY='+this.mResizeOffsetY);this.stopBubble(evt);}
return this.stopDefault(evt);},doOnMouseMove:function(evt,element){if(element&&this.mWeAreResizing){evt=this.patchEvt(evt);var evtX=(evt.pageX||(evt.clientX+this.mDoc.body.scrollLeft)||0);var evtY=(evt.pageY||(evt.clientY+this.mDoc.body.scrollTop)||0);var newElemX=evtX+this.mResizeOffsetX;var newElemY=evtY+this.mResizeOffsetY;this.stopBubble(evt);return this.resizeTargetElement(newElemX,newElemY);}else
return true;}});com.grouplogic.DhtmlElementWiden=com.grouplogic.DhtmlElement.extend({constructor:function(doc,id,elemToResizeID){this.base(id,doc);this.mDoc=doc;this.mElemToResize=$s(elemToResizeID,doc);this.mResizeOffsetX=0;this.mWeAreResizing=false;},initialize:function(){var result=this.base();this.setOnMouseOver();this.setOnMouseDown();this.setOnMouseUp();this.setOnMouseMove();return result;},resizeTargetElement:function(newElemX){try{if(this.mWeAreResizing){var dx=newElemX-this.mElem.origPos[0];var newWidth=this.mElemToResize.width()+dx;this.mElemToResize.setWidth(newWidth+"px");$s(this.mElem).setX(newElemX);}}catch(e){}
return false;},doOnMouseOver:function(event,element){if(element){element.style.cursor='move';}
return false;},doOnMouseUp:function(event,element){if(element){this.mWeAreResizing=false;}
return false;},doOnMouseDown:function(event,element){if(element){var evtX=(event.pageX||(event.clientX+this.mDoc.body.scrollLeft)||0);var objLeft=element.offsetLeft;this.mDoc.onmousemove=function(curResizer,elem){return function(e){curResizer.doOnMouseMove(e,elem);};}(this,element);this.mDoc.onmouseup=function(curResizer,elem){return function(e){curResizer.doOnMouseUp(e,elem);};}(this,element);var globalXPos=0;if(element.offsetParent){while(1){globalXPos+=element.offsetLeft;if(!element.offsetParent)
break;element=element.offsetParent;}}
else if(element.x)
globalXPos+=element.x;this.mWeAreResizing=true;this.mResizeOffsetX=objLeft-evtX;this.dbgwiden('mouse down','x='+evtX+', objGlobalXPos='+globalXPos+', objLeft='+objLeft+', mResizeOffsetX='+this.mResizeOffsetX);}
return false;},doOnMouseMove:function(event,element){if(element&&this.mWeAreResizing){var evtX=(event.pageX||(event.clientX+this.mDoc.body.scrollLeft)||0);var evtY=(event.pageY||(event.clientY+this.mDoc.body.scrollTop)||0);var newElemX=evtX+this.mResizeOffsetX;var newElemY=evtY+this.mResizeOffsetY;this.dbgwiden('mouse move','x='+evtX+', y='+evtY+', newElemX='+newElemX);return this.resizeTargetElement(newElemX);}else
return true;}});com.grouplogic.DhtmlEditAutocomplete=com.grouplogic.DhtmlElement.extend({constructor:function(doc,editControlID,suggestionProc,userPickedSuggestionProc){this.base(editControlID,doc);this.mDoc=doc;this.textbox=$s(editControlID,doc);this.mSuggestionProc=suggestionProc;this.mSuggestionSelectedProc=userPickedSuggestionProc;this.cur=-1;this.layer=null;this.originalText='';this.createDropDown();},initialize:function(){var result=this.base();this.setOnKeyUp();this.setOnKeyDown();this.setOnBlur();return result;},createDropDown:function(){var oThis=this;this.layer=document.createElement("div");this.layer.className="suggestions";this.layer.style.visibility="hidden";this.layer.style.width=this.textbox.width()+"px";this.layer.style.left=this.textbox.x()+"px";this.layer.style.top=(this.textbox.y()+this.textbox.height())+"px";this.layer.onmousedown=this.layer.onmouseup=this.layer.onmouseover=function(e){e=e||window.event;oTarget=e.target||e.srcElement;if(e.type=="mousedown"){oThis.textbox.setValue(oTarget.firstChild.nodeValue);if(oThis.mSuggestionSelectedProc){oThis.mSuggestionSelectedProc(oThis.textbox.value());}
oThis.hideSuggestions();}else if(e.type=="mouseover"){oThis.highlightSuggestion(oTarget);}else{oThis.textbox.focus();}};document.body.appendChild(this.layer);},restoreOriginalText:function(e,element){if(this.originalText!=''){this.textbox.setValue(this.originalText);this.originalText='';}},handleSpecialKeysOnKeyUp:function(e,element){switch(e.keyCode){case 8:case 46:this.mSuggestionProc(this,false);this.cur=-1;break;case 27:this.restoreOriginalText();this.hideSuggestions();return true;break;case 9:this.hideSuggestions();return false;break;case 224:case 91:return true;break;default:return false;}
return true;},doOnKeyUp:function(e,element){var returnVal=false;if(element){if(this.handleSpecialKeysOnKeyUp(e,element)){returnVal=true;}else{var keyCode=e.keyCode;if(keyCode<32||(keyCode>=33&&keyCode<46)||(keyCode>=112&&keyCode<=123)){}else{this.mSuggestionProc(this,true);returnVal=true;}}}
return returnVal;},doOnKeyDown:function(e,element){var returnVal=false;var cancelEvent=false;if(element){switch(e.keyCode){case 38:this.previousSuggestion();break;case 40:this.nextSuggestion();break;case 13:this.originalText=this.textbox.value();this.hideSuggestions();cancelEvent=false;if(this.mSuggestionSelectedProc){this.mSuggestionSelectedProc(this.textbox.value());}
break;case 37:case 39:return;break;case 224:case 91:return;break;default:return;}
if(cancelEvent){e.returnValue=false;e.cancelBubble=true;}
return returnVal;}},doOnBlur:function(element){if(element){this.hideSuggestions();}},nextSuggestion:function(){var cSuggestionNodes=this.layer.childNodes;if(cSuggestionNodes.length>0&&this.cur<cSuggestionNodes.length-1){if(this.layer.style.visibility!="visible"){this.layer.style.visibility="visible";}
var oNode=cSuggestionNodes[++this.cur];this.highlightSuggestion(oNode);this.textbox.setValue(oNode.firstChild.nodeValue);}},previousSuggestion:function(){var cSuggestionNodes=this.layer.childNodes;if(cSuggestionNodes.length>0&&this.cur>0){var oNode=cSuggestionNodes[--this.cur];this.highlightSuggestion(oNode);this.textbox.setValue(oNode.firstChild.nodeValue);}},showSuggestions:function(aSuggestions){var oDiv=null;this.layer.innerHTML="";this.originalText=this.textbox.value();for(var i=0;i<aSuggestions.length;i++){oDiv=document.createElement("div");oDiv.appendChild(document.createTextNode(aSuggestions[i]));this.layer.appendChild(oDiv);}
var newX=this.textbox.x();var newY=(this.textbox.y()+this.textbox.height());$s(this.layer).setWidth(this.textbox.width()+"px").setPosition(newX,newY).setVisibility("visible");},hideSuggestions:function(){this.layer.style.visibility="hidden";this.cur=-1;},highlightSuggestion:function(oSuggestionNode){for(var i=0;i<this.layer.childNodes.length;i++){var oNode=this.layer.childNodes[i];if(oNode==oSuggestionNode){oNode.className="current";}else if(oNode.className=="current"){oNode.className="";}}},autosuggest:function(aSuggestions,bTypeAhead){if(aSuggestions.length>0){if(bTypeAhead){this.typeAhead(aSuggestions[0]);}
this.showSuggestions(aSuggestions);}else{this.hideSuggestions();}},typeAhead:function(sSuggestion){if(this.textbox.supportsSelection()){var iLen=this.textbox.value().length;this.textbox.setValue(sSuggestion);this.textbox.selectRange(iLen,sSuggestion.length,true);}}});com.grouplogic.DhtmlElementChange=com.grouplogic.DhtmlElement.extend({constructor:function(doc,changedElemID,updateElemID,updateProc){this.base(changedElemID,doc);this.mDoc=doc;this.mUpdateElem=$s(updateElemID,doc).first();this.mUpdateProc=updateProc;},initialize:function(){var result=this.base();this.setOnChange();return result;},doOnChange:function(element){if(this.mElem&&this.mUpdateElem&&this.mUpdateProc){this.mUpdateProc(this.mElem,this.mUpdateElem);}}});com.grouplogic.DhtmlElementDialogBehavior=com.grouplogic.DhtmlElement.extend({constructor:function(doc,dialogElemID,cancelProc,okProc){this.base(dialogElemID,doc);this.mDoc=doc;this.mCancelProc=cancelProc;this.mOkProc=okProc;},initialize:function(){var result=this.base();return result;},handleSpecialKeysOnKeyUp:function(e,element){switch(e.keyCode){case 27:if(this.mCancelProc)
this.mCancelProc(this);return true;break;default:return false;}
return true;},doOnKeyUp:function(e,element){var returnVal=false;if(element){returnVal=this.handleSpecialKeysOnKeyUp(e,element);}
return returnVal;},doOnKeyDown:function(e,element){var returnVal=false;var cancelEvent=false;if(element){switch(e.keyCode){case 13:cancelEvent=false;if(this.mOkProc)
this.mOkProc(this);break;default:return;}
if(cancelEvent){e.returnValue=false;e.cancelBubble=true;}
return returnVal;}},install:function(e,element){this.setPageOnKeyUp();this.setPageOnKeyDown();},uninstall:function(e,element){this.unbind();}});})();
$R('com.grouplogic.DebugConsole');com.grouplogic.DebugConsole=function(screenSize){this.constructor(screenSize);};com.grouplogic.DebugConsole.prototype={mScreenSize:null,mDebugConsoleWin:null,mDebugConsoleWinFeatures:"scrollbars=yes,resizable=yes,status=no,location=no,menubar=no,toolbar=no",mDebugConsoleHeight:300,mDebugConsoleMaxLines:250,constructor:function(){this.mScreenSize={h:screen.availWidth,v:screen.availHeight};this.openDebugConsole();},isNull:function(val){return(val==null);},isUndefined:function(v){return(typeof(v)=='undefined');},isValid:function(v){return!(this.isNull(v)||this.isUndefined(v));},haveDebugConsole:function(){return(this.mDebugConsoleWin!=null&&!this.mDebugConsoleWin.closed);},releaseDebugConsole:function(){this.mDebugConsoleWin=null;},openDebugConsole:function(){try{if(this.mDebugConsoleWin==null||this.mDebugConsoleWin.closed){var yPos=this.mScreenSize.v-this.mDebugConsoleHeight-5;var winOpenArgs="width="+this.mScreenSize.h+",height="+this.mDebugConsoleHeight+",screenX=0,left=0,screenY="+yPos+",top="+yPos+","+this.mDebugConsoleWinFeatures;var debugConsoleWin=window.open("",null,winOpenArgs,false);if(!debugConsoleWin)
return;var debugConsoleWinDoc=debugConsoleWin.document;var debugDIV=$d('debug_console',debugConsoleWinDoc);if(!debugDIV.first()){debugConsoleWinDoc.write('<html><head><title>Debug Log</title><link rel="stylesheet" type="text/css" href="css/masstransit.css"><link rel="stylesheet" type="text/css" href="css/debug.css"></head><body></body></html>');debugConsoleWinDoc.close();var s=debugConsoleWinDoc.createElement('script');s.type='text/javascript';s.charset='utf-8';s.src='javascript/gli_base.js';debugConsoleWinDoc.getElementsByTagName('head')[0].appendChild(s);s=debugConsoleWinDoc.createElement('script');s.type='text/javascript';s.charset='utf-8';s.src='javascript/gli_utils.js';debugConsoleWinDoc.getElementsByTagName('head')[0].appendChild(s);debugConsoleWin.onunload=function(){if(typeof window.openers!="undefined"){for(var i=0;i<window.openers.length;i++){var curWindow=window.openers[i];var curWinConsole=window.gDebugConsole;if(typeof curWinConsole!="undefined"){curWinConsole.releaseDebugConsole();}}}};this.mDebugConsoleWin=debugConsoleWin;var debugBody=debugConsoleWinDoc.getElementsByTagName('body')[0];if(debugBody){debugBody.className="debug_window";var consoleDiv=debugConsoleWinDoc.createElement("div");consoleDiv.className="debug_console";consoleDiv.id="debug_console";debugConsoleWinDoc.body.appendChild(consoleDiv);var deleteDiv=debugConsoleWin.document.createElement("div");var d=new Date();deleteDiv.className="clear_icon_small";deleteDiv.id="_xx_"+d.getTime();if(debugBody.firstChild)
debugBody.insertBefore(deleteDiv,debugBody.firstChild);else
debugBody.appendChild(deleteDiv);deleteDiv.innerHTML="Clear Log";deleteDiv.appendChild(debugConsoleWinDoc.createElement("hr"));if(deleteDiv.attachEvent){deleteDiv.attachEvent('onclick',function(d){return function(e){d.deleteChildren();};}($d(consoleDiv)));deleteDiv.attachEvent('onmouseover',function(d){return function(){d.style.cursor="pointer";};}(deleteDiv));}else{deleteDiv.addEventListener('click',function(d){return function(e){d.deleteChildren();};}($d(consoleDiv)),false);deleteDiv.addEventListener('mouseover',function(d){return function(){d.style.cursor="pointer";};}(deleteDiv),false);}}}else{this.mDebugConsoleWin=debugConsoleWin;this.mDebugConsole=debugDIV;}
if(typeof debugConsoleWin.openers=="undefined")
debugConsoleWin.openers=new Array();debugConsoleWin.openers.push(window);}}catch(e){}
return this.mDebugConsoleWin;},writeExceptionToConsole:function(e,js){try{var msg='<span class="exception_msg">';if(this.isValid(e.isFatal)&&e.isFatal)
msg+="FATAL ";if(this.isValid(e.name))
msg+=e.name+" ";msg+="Exception: ";if(this.isValid(e.message))
msg+=e.message+"</span><br>";if(this.isValid(e.fileName))
msg+="File: "+e.fileName+"<br>";else if(this.isValid(e.sourceURL))
msg+="sourceURL: "+e.sourceURL+"<br>";if(this.isValid(e.lineNumber))
msg+="Line: "+e.lineNumber+"<br>";else if(this.isValid(e.line))
msg+="Line: "+e.line+"<br>";if(this.isValid(js)){var js_copy=js.replace(/</g,"&lt;");js_copy=js_copy.replace(/>/g,"&gt;");js_copy=js_copy.replace(/\r\n/g,"<br>");msg+="Javascript:<br><p>\'<br>"+js_copy+"<br>\'<br></p>";}
this.writeToDebugConsole(msg);}catch(ex){}},writeTraceToDebugConsole:function(dt,module,submodule,op,msg,color){try{var debugConsoleWin=this.openDebugConsole();if(this.isValid(debugConsoleWin)){var debugDIV=$d('debug_console',debugConsoleWin.document);if(debugDIV.first()){var d=new Date();var newEntry=debugConsoleWin.document.createElement("div");newEntry.className="debug_entry";newEntry.id=d.getTime();newEntry.style.color=color;var deleteDiv=debugConsoleWin.document.createElement("div");deleteDiv.className="delete_icon_small";deleteDiv.id="__"+d.getTime();newEntry.appendChild(deleteDiv);var txt="<pre>"+dt+"&nbsp;&nbsp;"+module+"&nbsp;&nbsp;"+submodule+"&nbsp;&nbsp;"+op;newEntry.innerHTML+=txt;var entryMsg=debugConsoleWin.document.createElement("pre");newEntry.appendChild(entryMsg);entryMsg.className="debug_msg_text";entryMsg.innerHTML=msg;entryMsg.style.color=color;debugDIV.insertFirst(newEntry);if(deleteDiv.attachEvent){deleteDiv.attachEvent('onclick',function(dd){return function(e){dd.deleteElement();};}($d(newEntry.id)));deleteDiv.attachEvent('onmouseover',function(dd){return function(){dd.style.cursor="pointer";};}(deleteDiv));}else{deleteDiv.addEventListener('click',function(dd){return function(e){if(dd&&dd.parentNode)dd.parentNode.removeChild();};}(deleteDiv.parentNode),false);deleteDiv.addEventListener('mouseOver',function(d){return function(){d.style.cursor="pointer";};}(deleteDiv),false);}
if(this.mDebugConsoleMaxLines){$d(debugDIV).truncateChildren(this.mDebugConsoleMaxLines);}}}}
catch(ex){}},writeToDebugConsole:function(msg){try{var d=new Date();var dt=$G.gliUtils.substr(String('0'+d.getHours()),-2,2)+':'+$G.gliUtils.substr(String('0'+d.getMinutes()),-2,2)+':'+$G.gliUtils.substr(String('0'+d.getSeconds()),-2,2)+'.'+$G.gliUtils.substr(String('000'+d.getMilliseconds()),-4,4);if(msg==''){this.writeTraceToDebugConsole(dt,"","","",msg,"#000000");}else{this.writeTraceToDebugConsole(dt,"ERROR","ERROR","ERROR",msg,"#FF0000");}}
catch(ex){}}};
$R('com.grouplogic.AJAX');$R('com.grouplogic.AJAXException');com.grouplogic.AJAXException=function(){switch(arguments.length){case 0:this.constructor();break;case 1:this.constructor(arguments[0]);break;case 4:this.constructor(arguments[0],arguments[1],arguments[2],arguments[3]);break;}};var AJAXException=com.grouplogic.AJAXException;AJAXException.prototype={name:"AJAXException",message:'',uri:'',fileName:'',lineNumber:0,stack:null,constructor:function(){switch(arguments.length){case 0:break;case 1:this.constructFromException(arguments[0]);break;case 4:this.message=arguments[0];this.uri=arguments[1];this.fileName=arguments[2];this.lineNumber=arguments[3];break;default:throw("ParameterError: AJAXException requires an element ID to be specified");break;}},toString:function(){var outMsg='';if(this.message)
outMsg+=('message: "'+this.message);if(this.uri)
outMsg+=('"; url:'+this.uri);return outMsg},constructFromException:function(e){this.message=e.message;if(typeof e.fileName!="undefined")
this.fileName=e.fileName;if(typeof e.lineNumber!="undefined")
this.lineNumber=e.lineNumber;if(typeof e.stack!="undefined")
this.stack=e.stack;this.uri=this.fileName;}};com.grouplogic.AJAX=function(targObj,msgCallback,responseRecvdCallback,updateCallback,reqCompletedCallback,resizeTarget){this.constructor(targObj,msgCallback,responseRecvdCallback,updateCallback,reqCompletedCallback,resizeTarget);};var AJAX=com.grouplogic.AJAX;AJAX.prototype={mDebug:false,mDebugAllXHRStates:false,mStartTime:null,mCompletedTime:null,xmlHttpFactories:[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],xmlReq:null,resultMsg:'',errorMsg:'',timeout:600000,timer:null,errorHandler:null,uri:'',constructor:function(targObj,msgCallback,responseRecvdCallback,updateCallback,reqCompletedCallback,resizeTarget){this.targetObj=targObj;this.resizeTarget=resizeTarget;this.MsgCallback=msgCallback;this.ResponseRecvdCallback=responseRecvdCallback;this.updateCallback=updateCallback;this.completedCallback=reqCompletedCallback;},dbg:function(op,msg){if(this.mDebug){$G.debug.dbgtrace('AJAX','',op,msg,'#2d8918');}},getXHRStatus:function(){var status=0;try{if(this.xmlReq)
status=this.xmlReq.status;}catch(e){}
return status;},getXHRStatusText:function(){var msg='';try{if(this.xmlReq&&this.xmlReq.statusText){msg+=this.xmlReq.statusText+", ";}
if(this.xmlReq)
msg+="status="+this.xmlReq.status;}catch(e){}
return msg;},clearTimeoutTimer:function(){if(this.timer){this.dbg('clear timeout','timer='+this.timer.toString()+', uri='+this.uri);clearTimeout(this.timer);this.timer=null;}},setCompleted:function(){this.mCompletedTime=new Date();if(this.xmlReq){this.xmlReq.onreadystatechange=function(){};}
this.xmlReq=null;},setErrorMsg:function(msg){this.errorMsg=msg;},setErrorHandler:function(h){this.errorHandler=h;},setTimeout:function(t){this.timeout=t;},setUpdateCallback:function(cb){this.updateCallback=cb;},setCompletedCallback:function(cb){this.completedCallback=cb;},myCallback:function(xmlObj,update){var targetObj=xmlObj.targetObj;if(xmlObj.ResponseRecvdCallback)
xmlObj.ResponseRecvdCallback(targetObj);if(xmlObj.updateCallback)
xmlObj.updateCallback(targetObj,update,xmlObj.resizeTarget,(xmlObj.expectedDataType!="json"));if(xmlObj.completedCallback)
xmlObj.completedCallback(targetObj);},cancel:function(){this.dbg('cancel','uri='+this.uri);this.clearTimeoutTimer();if(this.isRequestProcessing()){this.killRequest();}
this.setCompleted();},returnError:function(specificMsg){var htmlErrorContent='<table class="subreport_table" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" width="100%"><br><br><p>@@@@</p></td></tr></table>';var xmlErrorContent='<?xml version="1.0" encoding="macintosh"?><errors><error msg="@@@@" /></errors>';if(this.expectedDataType=="html"){var textUpdate=htmlErrorContent.replace('@@@@',specificMsg);this.myCallback(this,textUpdate);}else if(this.expectedDataType=="xml"){textUpdate=xmlErrorContent;textUpdate=textUpdate.replace('@@@@',specificMsg);textUpdate=$D.createDocumentFromXML(textUpdate);this.myCallback(this,textUpdate);}else if(this.expectedDataType=="json"){}},instantiate:function(uri,expectedDataType){this.expectedDataType=expectedDataType;this.uri=uri;this.mStartTime=new Date();this.mCompletedTime=null;this.dbg('init','type='+expectedDataType+', uri='+uri);for(var i=0;i<this.xmlHttpFactories.length;i++)
{try{this.xmlReq=this.xmlHttpFactories[i]();}
catch(e){continue;}
break;}
try{if(this.xmlReq!=null)
{this.timer=window.setTimeout(function(ths){return function(){try{var elapsedTime=new Date().getTime()-ths.mStartTime.getTime();if(ths.mCompletedTime==null){ths.dbg('timeout','elapsedTime='+elapsedTime+', uri='+uri);ths.killRequest();ths.setCompleted();var specificMsg='Server request timed out after '+parseInt(elapsedTime/1000)+' seconds.'
ths.returnError(specificMsg);}else{elapsedTime=ths.mCompletedTime.getTime()-ths.mStartTime.getTime();ths.dbg('timeout','**IGNORED** elapsedTime='+elapsedTime+', uri='+uri);}}catch(e){if(ths.errorHandler)
ths.errorHandler(e);}}}(this),this.timeout);this.dbg('set timeout','timer='+this.timer+', uri='+uri);this.xmlReq.onreadystatechange=function(xmlObj){return function(){try{if(xmlObj.xmlReq.readyState==4){var elapsedTime=new Date().getTime()-xmlObj.mStartTime.getTime();xmlObj.dbg('state change','COMPLETE: readyState='+xmlObj.xmlReq.readyState+', status='+xmlObj.getXHRStatus()+', elapsedTime='+elapsedTime+', uri='+xmlObj.uri);xmlObj.clearTimeoutTimer();if((xmlObj.getXHRStatus()==200)||(xmlObj.getXHRStatus()==304)){if(xmlObj.expectedDataType=="html"){var textUpdate=xmlObj.xmlReq.responseText;if(textUpdate&&textUpdate.length>0){xmlObj.dbg('TEXT data','len='+textUpdate.length+' uri='+xmlObj.uri);xmlObj.myCallback(xmlObj,textUpdate);}else{xmlObj.dbg('NO TEXT DATA','msg='+xmlObj.getXHRStatusText()+', uri='+xmlObj.uri);var specificMsg=xmlObj.errorMsg+xmlObj.getXHRStatus();xmlObj.returnError(specificMsg);}}else if(xmlObj.expectedDataType=="xml"){var update=xmlObj.xmlReq.responseXML;if(update){xmlObj.dbg('XML data','uri='+xmlObj.uri);xmlObj.myCallback(xmlObj,update);}else{xmlObj.dbg('NO XML DATA','msg='+xmlObj.getXHRStatusText()+', uri='+xmlObj.uri);var specificMsg=xmlObj.errorMsg+' Web server returned data in the wrong format.';xmlObj.returnError(specificMsg);}}else if(xmlObj.expectedDataType=="json"){var jsData="("+xmlObj.xmlReq.responseText+")";xmlObj.myCallback(xmlObj,jsData);}else{throw new AJAXException('Server request failed; unknown data type; status code: '+xmlObj.getXHRStatus(),uri,'',0);}
var now=Date();if(xmlObj.MsgCallback)
xmlObj.MsgCallback('Last updated '+now.toString());}else{if(xmlObj.MsgCallback)
xmlObj.MsgCallback('Last update failed with status of '+xmlObj.getXHRStatus());if(xmlObj.getXHRStatus()==0){xmlObj.dbg('user cancel','user or page unload cancelled the request, uri='+xmlObj.uri);}else{throw new AJAXException('Server request failed; received '+xmlObj.getXHRStatus()+' return code.',uri,'',0);}}
xmlObj.setCompleted();}else{if(xmlObj.mDebugAllXHRStates)
xmlObj.dbg('state change','readyState='+xmlObj.xmlReq.readyState+', uri='+xmlObj.uri);}}catch(e){if(xmlObj.errorHandler)
xmlObj.errorHandler(e);}finally{}}}(this);this.xmlReq.open("GET",uri,true);this.xmlReq.send(null);}}catch(e){$G.debug.dbg_error(e.toString());return null;}
return this.xmlReq;},killRequest:function(){if(this.xmlReq){this.dbg('kill request','uri='+this.uri);this.xmlReq.onreadystatechange=function(){};this.xmlReq.abort();this.xmlReq=null;}else{this.dbg('kill request','XHR already disposed, uri='+this.uri);}},isRequestProcessing:function(){return(this.xmlReq!=null);},extractTag:function(text,tag,option)
{var scripts='';var rg=new RegExp('<'+tag+'[^>]*>([\\s\\S]*?)<\/'+tag+'>',"ig");var updateText=text.replace(rg,function(){scripts+=arguments[1]+'\n';return'';});if(typeof option=='function')option(scripts,updateText);return updateText;},writehtml:function(targetObj,update,resizeTarget,findEmbeddedJS){var embeddedJS='';var newHTML='';try{if(findEmbeddedJS){newHTML=this.extractTag(update,'script',function(script){embeddedJS=script;});}else{newHTML=update;}
if(newHTML.match(/^.*login_container.*/)){throw new AJAXException('Connection timed out or login is otherwise required.',this.uri,'gli_alax.js',0);}
targetObj.innerHTML=newHTML;if(findEmbeddedJS&&embeddedJS.length>0){this.executeDynamicScript.call(window,embeddedJS);}}
catch(e){var errMsg='AJAX request failed to update page due to an error: '+e.toString();if(targetObj)
targetObj.innerHTML='<div class=innertube><table class=error_table id="error_msg"><table width="100%" border=0 cellspacing=0 cellpadding=0><tr><td colspan=2>&nbsp;</td></tr><tr><td colspan=2>&nbsp;</td></tr><tr><td width="100%" align=center valign=top><p class=popup_error>'+errMsg+'</p><p class=popup_error_file></p>&nbsp;<br></td><td>&nbsp;</td></tr></table></table></div>';throw new AJAXException(errMsg,this.uri,'gli_alax.js',0);}},executeDynamicScript:function(js){var result=false;try{if(window.execScript)
{try{window.execScript(js);}catch(e){error_log(e);}}else if(/safari/i.test(navigator.userAgent)){eval.call(window,js);}else{eval.call(window,js);}
result=true;}catch(e){$G.debug.writeExceptionToConsole(e,js);}
return result;}}
if(!this.JSON){JSON=function(){function f(n){return n<10?'0'+n:n;}
Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==='string'){return c;}
return'\\u'+('0000'+
(+(a.charCodeAt(0))).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
return{stringify:function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+
(+(a.charCodeAt(0))).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){if(text=="[]"){j=[];}else if(text=="{}"){j={};}else{j=eval('('+text+')');}
return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');}};}();}
$R('com.grouplogic.DOMDrag');(function(){var undefined;com.grouplogic.DOMDrag=function(){this.constructor();};com.grouplogic.DOMDrag.prototype={obj:null,constructor:function(){this.obj=null;},init:function(o,oRoot,minX,maxX,minY,maxY,bSwapHorzRef,bSwapVertRef,fXMapper,fYMapper)
{try{if(typeof o=="string"){o=$d(o).first();}
if(typeof oRoot=="string"){oRoot=$d(oRoot).first();}
o.onmousedown=$G['dragUtils'].start;o.hmode=bSwapHorzRef?false:true;o.vmode=bSwapVertRef?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o.hmode&&isNaN(parseInt(o.root.style.left,10)))o.root.style.left="0px";if(o.vmode&&isNaN(parseInt(o.root.style.top,10)))o.root.style.top="0px";if(!o.hmode&&isNaN(parseInt(o.root.style.right,10)))o.root.style.right="0px";if(!o.vmode&&isNaN(parseInt(o.root.style.bottom,10)))o.root.style.bottom="0px";o.minX=typeof minX!='undefined'?minX:null;o.minY=typeof minY!='undefined'?minY:null;o.maxX=typeof maxX!='undefined'?maxX:null;o.maxY=typeof maxY!='undefined'?maxY:null;o.xMapper=fXMapper?fXMapper:null;o.yMapper=fYMapper?fYMapper:null;o.root.onDragStart=new Function();o.root.onDragEnd=new Function();o.root.onDrag=new Function();}catch(e){$G.reportExceptionHandler(e);}},stopDefault:function(evt){if(evt&&evt.preventDefault)evt.preventDefault();return false;},stopBubble:function(evt){if(evt&&evt.stopPropagation){evt.stopPropagation();}else{window.event.cancelBubble=true;}},start:function(e)
{try{$G['dragUtils'].stopBubble(e);var o=$G['dragUtils'].obj=this;evt=$G['dragUtils'].fixE(e);var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o.lastMouseX=evt.clientX;o.lastMouseY=evt.clientY;if(o.hmode){if(o.minX!=null)o.minMouseX=evt.clientX-x+o.minX;if(o.maxX!=null)o.maxMouseX=o.minMouseX+o.maxX-o.minX;}else{if(o.minX!=null)o.maxMouseX=-o.minX+evt.clientX+x;if(o.maxX!=null)o.minMouseX=-o.maxX+evt.clientX+x;}
if(o.vmode){if(o.minY!=null)o.minMouseY=evt.clientY-y+o.minY;if(o.maxY!=null)o.maxMouseY=o.minMouseY+o.maxY-o.minY;}else{if(o.minY!=null)o.maxMouseY=-o.minY+evt.clientY+y;if(o.maxY!=null)o.minMouseY=-o.maxY+evt.clientY+y;}
if(document.onselectstart!=undefined){document.onselectstart=function(){return false;};}
document.onmousemove=$G['dragUtils'].drag;document.onmouseup=$G['dragUtils'].end;}catch(e){$G.reportExceptionHandler(e);}
return $G['dragUtils'].stopDefault(e);},drag:function(e)
{try{$G['dragUtils'].stopBubble(e);evt=$G['dragUtils'].fixE(e);var o=$G['dragUtils'].obj;var ey=evt.clientY;var ex=evt.clientX;var y=parseInt(o.vmode?o.root.style.top:o.root.style.bottom);var x=parseInt(o.hmode?o.root.style.left:o.root.style.right);var nx,ny;if(o.minX!=null)ex=o.hmode?Math.max(ex,o.minMouseX):Math.min(ex,o.maxMouseX);if(o.maxX!=null)ex=o.hmode?Math.min(ex,o.maxMouseX):Math.max(ex,o.minMouseX);if(o.minY!=null)ey=o.vmode?Math.max(ey,o.minMouseY):Math.min(ey,o.maxMouseY);if(o.maxY!=null)ey=o.vmode?Math.min(ey,o.maxMouseY):Math.max(ey,o.minMouseY);nx=Math.max(x+((ex-o.lastMouseX)*(o.hmode?1:-1)),0);ny=Math.max(y+((ey-o.lastMouseY)*(o.vmode?1:-1)),0);if(o.xMapper)nx=o.xMapper(y);else if(o.yMapper)ny=o.yMapper(x);$G['dragUtils'].obj.root.style[o.hmode?"left":"right"]=nx+"px";$G['dragUtils'].obj.root.style[o.vmode?"top":"bottom"]=ny+"px";$G['dragUtils'].obj.lastMouseX=ex;$G['dragUtils'].obj.lastMouseY=ey;$G['dragUtils'].obj.root.onDrag(nx,ny);}catch(e){$G.reportExceptionHandler(e);}
return $G['dragUtils'].stopDefault(e);},end:function()
{try{if(document.onselectstart!=undefined){document.onselectstart=null;}
document.onmousemove=null;document.onmouseup=null;$G['dragUtils'].obj.root.onDragEnd(parseInt($G['dragUtils'].obj.root.style[$G['dragUtils'].obj.hmode?"left":"right"]),parseInt($G['dragUtils'].obj.root.style[$G['dragUtils'].obj.vmode?"top":"bottom"]));$G['dragUtils'].obj=null;}catch(e){$G.reportExceptionHandler(e);}},fixE:function(e)
{if(typeof e=='undefined')e=window.event;if(typeof e.layerX=='undefined')e.layerX=e.offsetX;if(typeof e.layerY=='undefined')e.layerY=e.offsetY;return e;}};})();$G['dragUtils']=new com.grouplogic.DOMDrag();
$R('com.grouplogic.FX');$R('com.grouplogic.FXUtils');$R('com.grouplogic.FX.Animator');$R('com.grouplogic.FX.AnimatorFadeIn');$R('com.grouplogic.FX.AnimatorFadeOut');$R('com.grouplogic.FX.AnimatorSlideLeft');$R('com.grouplogic.FX.AnimatorSlideRight');$R('com.grouplogic.FX.AnimatorFadeSlideInOut');(function(){var undefined;var gFxSequenceNumber=1;com.grouplogic.FXUtils=com.grouplogic.StyleUtils.extend({constructor:function(){this.base.apply(this,arguments);},conceal:function(completionProc,duration,opData){if(this.length){$G.fx.debugfx('CONCEAL','','elements, ids='+this.toString());var fadeOut=new com.grouplogic.FX.AnimatorFadeOut(this,duration,completionProc);$G.fx.animateElements(fadeOut,opData);}else{if(completionProc)completionProc();}
return this;},reveal:function(completionProc,duration,opData){if(this.length){$G.fx.debugfx('REVEAL','','elements, ids='+this.toString());var fadeIn=new com.grouplogic.FX.AnimatorFadeIn(this,duration,completionProc);$G.fx.animateElements(fadeIn,opData);}else{if(completionProc)completionProc();}
return this;},slideup:function(completionProc,duration,opData){if(this.length){$G.fx.debugfx('SLIDEUP','','elements, ids='+this.toString());var slideUp=new com.grouplogic.FX.AnimatorSlideUp(this,duration,completionProc);$G.fx.animateElements(slideUp,opData);}else{if(completionProc)completionProc();}
return this;},slidedown:function(completionProc,duration,opData){$G.fx.animateElements(slideDown,opData);if(this.length){$G.fx.debugfx('SLIDEDOWN','','elements, ids='+this.toString());var slideDown=new com.grouplogic.FX.AnimatorSlideDown(this,duration,completionProc);}else{if(completionProc)completionProc();}
return this;},slideleft:function(completionProc,duration,opData){if(this.length){$G.fx.debugfx('SLIDELEFT','','elements, ids='+this.toString());var slideUp=new com.grouplogic.FX.AnimatorSlideLeft(this,duration,completionProc);$G.fx.animateElements(slideUp,opData);}else{if(completionProc)completionProc();}
return this;},slideright:function(completionProc,duration,opData){if(this.length){$G.fx.debugfx('SLIDERIGHT','','elements, ids='+this.toString());var slideDown=new com.grouplogic.FX.AnimatorSlideRight(this,duration,completionProc);$G.fx.animateElements(slideDown,opData);}else{if(completionProc)completionProc();}
return this;},animate:function(animator,opData){if(this.length){$G.fx.animateElements(animator,opData);}else{if(animator.completionProc)animator.completionProc();}
return this;},cancelAnimations:function(){if(this.length){$G.fx.debugfx('CANCEL','','canceling animations for elements, ids='+this.toString());this.each(function(ths){return function(e,idx){$G.fx.cancelAnimation(e);};}(this));}
return this;}});var __gli_FXUtils=window.$f=function(elems,doc){return new com.grouplogic.FXUtils(elems,doc);};com.grouplogic.FX=Base.extend({mDebug:false,mDebugSlomo:false,mAnimationsWorking:null,constructor:function(){this.base();this.mAnimationsWorking=[];},dbg:function(submodule,op,msg){if(this.mDebug){var dbgColor=(submodule=='cancel')?"#E75300":this.dbgcolor(op);$G.debug.dbgtrace('FX',submodule,op,msg,dbgColor);}},debugfx:function(submodule,op,msg){this.dbg(submodule,op,msg);},dbgcolor:function(op){var color="";switch(op){case"reveal":color="#6C0CCE";break;case"conceal":color="#215505";break;case"show":color="#80020B";break;case"hide":color="#0A7CA0";break;case"slide_down":color="#80020B";break;case"slide_up":color="#0A7CA0";break;case"reappear":color="#6D4000";break;case"vanish":color="#130AA0";break;default:color="#000095";break;}
return color;},findAnimationsForElem:function(elem){var result=[];if(this.mAnimationsWorking&&this.mAnimationsWorking.length>0){for(var i=0;i<this.mAnimationsWorking.length;i++){var curAnimation=this.mAnimationsWorking[i];curAnimation.elems.if_contained(elem,function(aninElems,elem){result.push(curAnimation);});}}
return result;},elementBeingAnimated:function(elem){var curAnimations=this.findAnimationsForElem(elem);return(curAnimations.length!=0);},canAnimateElement:function(elem,whichOperation){var result=true;var curAnimations=this.findAnimationsForElem(elem);if(curAnimations.length){$G.array.each(curAnimations,(function(ths){return function(animRef,index){if(animRef.op==whichOperation){ths.dbg('error','error','Can animate returned false for id='+id+', op='+whichOperation);result=false;return false;}};})(this),this);}
return result;},should_abort:function(whichOperation,existingOperation){return(((whichOperation=="fadein")&&(existingOperation=="fadeout"))||((whichOperation=="fadeout")&&(existingOperation=="fadein"))||((whichOperation=="show")&&(existingOperation=="hide"))||((whichOperation=="hide")&&(existingOperation=="show"))||((whichOperation=="fadeslide_out")&&(existingOperation=="fadeslide_in"))||((whichOperation=="fadeslide_in")&&(existingOperation=="fadeslide_out"))||((whichOperation=="slide_up")&&(existingOperation=="slide_down"))||((whichOperation=="slide_down")&&(existingOperation=="slide_up"))||((whichOperation=="slide_left")&&(existingOperation=="slide_right"))||((whichOperation=="slide_right")&&(existingOperation=="slide_left")));},animateElements:function(animator,opData){this.dbg('entry',animator.operation,'duration='+animator.duration+', e='+animator.elems.toString());var newRefProc=(function(ths){return function(newRef){ths.mAnimationsWorking.push(newRef);};})(this);var deleteRefProc=(function(ths){return function(oldRef){var curSize=ths.mAnimationsWorking.length;$G.array.removeFromArray(ths.mAnimationsWorking,oldRef);};})(this);animator.preflight((function(fxengine){return function(elem){var proceed=false;var curAnimations=fxengine.findAnimationsForElem(elem);if(curAnimations.length){$G.array.each(curAnimations,(function(){return function(animRef,index){var continueIter=true;if(animRef.op==animator.operation){;proceed=false;continueIter=false;}
else if(fxengine.should_abort(animator.operation,animRef.op)){;animRef.animator.completeAnimation(animRef,true);continueIter=false;proceed=true;}else{;}
return continueIter;};})(),this);}else{proceed=true;}
return proceed;};})(this)).createAnimRefs(newRefProc,deleteRefProc).beginAnimations();return this;},cancelAnimation:function(elem){var result=null;if(this.elementBeingAnimated(elem)){elem=$d(elem);;if(this.mAnimationsWorking&&this.mAnimationsWorking.length>0){var ths=this;for(var i=0;i<this.mAnimationsWorking.length;i++){var anAnimation=this.mAnimationsWorking[i];elem.each(function(e,idx){anAnimation.elems.if_contained(e,function(elems,elemToCancel){;anAnimation.animator.completeAnimationForElement(anAnimation,elemToCancel);});});}}}else{;}
return result;},ceaseAllAnimation:function(){;if(this.mAnimationsWorking&&this.mAnimationsWorking.length>0){while(this.mAnimationsWorking.length>0){var animRef=this.mAnimationsWorking[0];animRef.animator.completeAnimation(animRef,true);}}},cleanupAnimation:function(animRef){;if(animRef.timer){delete(animRef.timer);animRef.timer=null;}
if(animRef.startTime){delete(animRef.startTime);animRef.startTime=null;}
animRef.elems=null;animRef.opData=null;animRef.callback=null;var curSize=this.mAnimationsWorking.length;$G.array.removeFromArray(this.mAnimationsWorking,animRef);delete animRef;},changeChartHeight:function(container,height)
{try{if(container.firstChild&&(container.firstChild.childNodes.length>0)){if(container.firstChild.childNodes[0].nodeName=="EMBED"){container.firstChild.childNodes[0].style.height=height+"px";}}}catch(e){}}});var __gli_FX=window.$G.fx=new com.grouplogic.FX();com.grouplogic.FX.Animator=Base.extend({seqNum:0,constructor:function(elems,duration,completionProc,heartbeat){this.base();if($G.fx.mDebugSlomo){duration=duration*5;}
this.operation='none';this.elems=elems;this.duration=duration;this.heartbeat=heartbeat||50;this.completionProc=completionProc;this.workingAnimation=null;this.aborted=false;this.seqNum=gFxSequenceNumber++;},dbg:function(submodule,op,msg){$G.fx.dbg(submodule,op,"fx#:"+this.seqNum+" "+msg);},debugfx:function(submodule,op,msg){this.dbg(submodule,op,msg);},_stopAnimating:function(animRef){this.aborted=true;if(animRef.timer){clearInterval(animRef.timer);delete(animRef.timer);animRef.timer=null;}},begin:function(){},animate:function(elapsed){},complete:function(){},preflight:function(preflightCallback){var newElems=[];this.elems.each((function(e,idx){if(preflightCallback(e,idx)){newElems.push(e);}}));this.elems.setNewElements(newElems);return this;},createAnimRefs:function(newref_callback,cleanup_ref_callback){if(this.elems.length){var theElems=$f(this.elems);var newRef={elems:theElems,elemIDs:theElems.toString(),op:this.operation,callback:cleanup_ref_callback,animator:this};newref_callback(newRef);this.workingAnimation=newRef;;}else{;}
return this;},beginAnimations:function(){if(this.elems.length){if(this.workingAnimation){;this.workingAnimation.startTime=(new Date()).getTime();this.begin(this.workingAnimation);this.workingAnimation.timer=setInterval(this.createTimerCallback(this,this.workingAnimation),this.heartbeat);}else{;}}
else{;}
return this;},createTimerCallback:function(animObj,animRef){return(function(){try{animObj.continueAnimation.call(animObj,animRef);}catch(e){if(window.$G.debug.displayExceptionsInConsole()){window.$G.debug.writeExceptionToConsole(e);}}});return this;},continueAnimation:function(animRef){try
{var elapsed=(new Date()).getTime()-animRef.startTime;if(elapsed>this.duration||this.aborted){if(this.aborted){;}else{;this.completeAnimation(animRef,true);}}else{this.animate(animRef,elapsed);}}catch(e){this._stopAnimating(animRef);$G.debug.alert(e);throw e;}
return this;},completeAnimationForElement:function(animRef,elem){;;animRef.elems.removeElement(elem);;if(animRef.elems.length==0){;this.completeAnimation(animRef,true);}
return this;},completeAnimation:function(animRef,doCleanup){;this._stopAnimating(animRef);var animCallback=animRef.callback;this.complete(animRef);if(animCallback!=null)
animCallback(animRef);if(doCleanup)
this.cleanupAnimation(animRef);if(this.completionProc){this.completionProc();}
return this;},cleanupAnimation:function(animRef){;if(animRef.timer){delete(animRef.timer);animRef.timer=null;}
if(animRef.startTime){delete(animRef.startTime);animRef.startTime=null;}
delete animRef.elems;animRef.elems=null;animRef.opData=null;animRef.callback=null;animRef.animator=null;delete animRef;}});com.grouplogic.FX.AnimatorFadeOut=com.grouplogic.FX.Animator.extend({constructor:function(elems,duration,completionProc){this.base(elems,duration,completionProc);this.operation='fadeout';},begin:function(animRef){;},animate:function(animRef,elapsed){var opac=100-Math.round((100*elapsed)/this.duration);animRef.elems.setOpacity(opac);;},complete:function(animRef){;animRef.elems.setOpacity(0).setVisibility('hidden');}});com.grouplogic.FX.AnimatorFadeIn=com.grouplogic.FX.Animator.extend({constructor:function(elems,duration,completionProc){this.base(elems,duration,completionProc);this.operation='fadein';},begin:function(animRef){;animRef.elems.setOpacity(0).setVisibility('visible');},animate:function(animRef,elapsed){var opac=Math.round((100*elapsed)/this.duration);animRef.elems.setOpacity(opac);;},complete:function(animRef){;animRef.elems.setOpacity(100).setVisibility('visible');}});com.grouplogic.FX.AnimatorSlideRight=com.grouplogic.FX.Animator.extend({constructor:function(elems,duration,completionProc,defaultMaxWidth){this.base(elems,duration,completionProc);this.defaultMaxWidth=defaultMaxWidth;this.operation='show';},begin:function(animRef){;animRef.elems.setOpacity(0).setVisibility('visible');},animate:function(animRef,elapsed){var frac=elapsed/this.duration;;animRef.elems.each(function(ths,an){return function(e,idx){var origWidth=Math.min(e.__origWidth||ths.defaultMaxWidth,100);w=Math.round(origWidth*frac);$s(e).setWidth(w+"%");};}(this,animRef));},complete:function(animRef){;animRef.elems.each(function(ths,an){return function(e,idx){$s(e).setWidth(e.__origWidth+"%").setOpacity(100).setVisibility('visible');};}(this,animRef));}});com.grouplogic.FX.AnimatorSlideLeft=com.grouplogic.FX.Animator.extend({constructor:function(elems,duration,completionProc,defaultMaxWidth){this.base(elems.filterVisible(),duration,completionProc);this.defaultMaxWidth=defaultMaxWidth;this.operation='hide';},begin:function(animRef){;animRef.elems.setVisibility('visible');animRef.elems.each(function(ths){return function(e,idx){e.__origWidth=Math.min(parseFloat((e.style&&e.style.width)?e.style.width:(this.defaultMaxWidth+"%")),30);};}(this));;},animate:function(animRef,elapsed){var frac=elapsed/this.duration;;animRef.elems.each(function(ths,an){return function(e,idx){var w=e.__origWidth-Math.round(e.__origWidth*frac);$s(e).setWidth(w+"%");};}(this,animRef));},complete:function(animRef){;animRef.elems.each((function(ths){return function(e,idx){$s(e).setVisibility('hidden').setWidth("0");};})(this));}});com.grouplogic.FX.AnimatorFadeSlideInOut=com.grouplogic.FX.Animator.extend({constructor:function(elems,elemsToAdjust,restore,duration,completionProc,defaultMaxWidth){this.base((restore?elems.filterVisible():elems.filterHidden()),duration,completionProc);this.defaultMaxWidth=defaultMaxWidth;this.restore=restore;this.operation=restore?'fadeslide_out':'fadeslide_in';this.elemsToAdjust=elemsToAdjust;},begin:function(animRef){;if(this.restore){animRef.elems.setOpacity(0).setVisibility('visible');}else{animRef.elems.each((function(ths){return function(e,idx){e.__origWidth=Math.min(parseFloat((e.style&&e.style.width)?e.style.width:(ths.defaultMaxWidth+"%")),30);ths.dbg('begin','fadeslide','id='+e.id+', origWidth='+e.__origWidth);};})(this));this.elemsToAdjust.each((function(ths){return function(e,idx){e.__origWidth=parseFloat($G.gliUtils.getCSSPropertyValue("#"+e.id,'width'));};})(this));}},animate:function(animRef,elapsed){var frac=elapsed/this.duration;animRef.elems.each((function(ths){return function(e,idx){if(ths.restore){opac=Math.round(100*frac);var origWidth=Math.min(e.__origWidth||ths.defaultMaxWidth,100);ths.dbg('animate','fadeslide_in','id='+e.id+", e.__origWidth="+e.__origWidth+", origWidth="+origWidth+", frac="+frac+"%, opac="+opac);w=Math.round(origWidth*frac);}else{opac=100-Math.round(100*frac);w=e.__origWidth-Math.round(e.__origWidth*frac);}
$s(e).setWidth(w+"%").setOpacity(opac);};})(this));this.elemsToAdjust.each((function(ths){return function(e,idx){var diff=100-e.__origWidth;if(ths.restore){w=100-Math.round(diff*frac);}else{w=e.__origWidth+Math.round(diff*frac);}
$s(e).setWidth(w+"%");};})(this));},complete:function(animRef){animRef.elems.each((function(ths){return function(e,idx){if(ths.restore){ths.dbg('end','slidein-out','id='+animRef.elemIDs);$s(e).setWidth(e.__origWidth+"%").setOpacity(100).setVisibility('visible');}else{$s(e).setOpacity(0).setVisibility('hidden').setWidth("0");}};})(this));this.elemsToAdjust.each((function(ths){return function(e,idx){if(ths.restore){ths.dbg('end','slidein-out','id='+animRef.elemIDs);$s(e).setWidth(e.__origWidth+"%");}else{$s(e).setWidth("100%");}};})(this));}});com.grouplogic.FX.AnimatorSlideDown=com.grouplogic.FX.Animator.extend({constructor:function(elems,duration,completionProc,defaultMaxHeight){this.base(elems,duration,completionProc);this.defaultMaxHeight=defaultMaxHeight;this.operation='slide_down';},begin:function(animRef){;animRef.elems.setVisibility('visible');},animate:function(animRef,elapsed){var frac=elapsed/this.duration;;animRef.elems.each(function(ths,an){return function(e,idx){var h=Math.round(e.__origHeight*frac);$s(e).setHeight(h+"%");};}(this,animRef));},complete:function(animRef){;animRef.elems.each(function(ths){return function(e,idx){$s(e).setHeight(e.__origHeight+"%");};}(this));}});com.grouplogic.FX.AnimatorSlideUp=com.grouplogic.FX.Animator.extend({constructor:function(elems,duration,completionProc,defaultMaxHeight){this.base(elems.filterVisible(),duration,completionProc);this.defaultMaxHeight=defaultMaxHeight;this.operation='slide_up';},begin:function(animRef){;animRef.elems.setVisibility('visible');animRef.elems.each(function(ths){return function(e,idx){e.__origHeight=Math.min(parseFloat((e.style&&e.style.height)?e.style.height:(this.defaultMaxHeight+"%")),30);};}(this));;},animate:function(animRef,elapsed){var frac=elapsed/this.duration;;animRef.elems.each(function(ths,an){return function(e,idx){var h=e.__origHeight-Math.round(e.__origHeight*frac);$s(e).setHeight(h+"%");};}(this,animRef));},complete:function(animRef){;var frac=elapsed/this.duration;var h=e.__origHeight-Math.round(e.__origHeight*frac);$s(e).setHeight(h+"%");}});})();
