if(typeof TeaLeaf=="undefined"){var TeaLeaf={};TeaLeaf.tlStartLoad=new Date;if(typeof TeaLeaf.Configuration=="undefined")TeaLeaf.Configuration={tlinit:false,tlversion:"2009.04.03.1",tlSDK:false}}
if(typeof TeaLeaf.Event=="undefined"){TeaLeaf.Event=function(a,b,c){this.date=new Date;if(b){this.EventType=a;this.EventSubType=b;this.EventSource=c?c:""}else{this.EventType="CUSTOM";this.EventSubType=a}};if(typeof TeaLeaf.Event.Configuration=="undefined")TeaLeaf.Event.Configuration={tlinit:false,tlqueueevents:true,tlqueueeventstimer:3E4,tlqueueeventsmaxsz:8192,tlshowexceptions:false,tlurl:"/javascript/TeaLeafTarget.asp",tlsecureurl:"/javascript/TeaLeafTarget.asp",tlpageidcookie:"TLTHID",tleventcount:0,
tlpageid:"",tlinitflag:false,tlbeforeunloadflag:false,tlusetopqueue:false,tllastdwelltime:"",tlidoflastvisitedcontrol:"",tleventunloadflag:true,tleventbeforeunloadflag:true,tlcatcherrors:true,tlignoresendfailure:true,tlasync:true,tlvisitorder:"",tlResolution:[{width:799,height:599,type:0,displayText:"small"},{width:800,height:600,type:1,displayText:"800x600"},{width:1024,height:760,type:2,displayText:"1024x760"},{width:1280,height:1024,type:3,displayText:"1280x1024"},{width:1E6,height:1E6,type:4,
displayText:"large"}],tlHTTPRequestHeadersSet:[{tlreqhttpheadername:"Content-Type",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetContentType()"},{tlreqhttpheadername:"X-TeaLeaf",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetTeaLeafXEvent()"},{tlreqhttpheadername:"X-TeaLeafType",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlEventType()"},{tlreqhttpheadername:"X-TeaLeafSubType",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlEventSubType()"},{tlreqhttpheadername:"X-TeaLeaf-Page-Url",
tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetUrlPath()"},{tlreqhttpheadername:"X-TeaLeaf-UIEventCapture-Version",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetJSVersion()"}],tlHTTPRequestHeadersEvalInit:[{tlreqhttpheadername:"X-TeaLeaf-Screen-Res",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlResolutionType(screen.width ,screen.height)"},{tlreqhttpheadername:"X-TeaLeaf-Browser-Res",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlResolutionTypeBrowser()"},
{tlreqhttpheadername:"X-TeaLeaf-Page-Render",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetRenderTime()"},{tlreqhttpheadername:"X-TeaLeaf-Page-Objects",tlsethttpheader:true,tlreqhttpheadervalue:'TeaLeaf.Event.tlGetElementCount("object")'},{tlreqhttpheadername:"X-TeaLeaf-Page-Img-Fail",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlBadImageCount()"}],tlHTTPRequestHeadersEvalBeforeUnload:[{tlreqhttpheadername:"X-TeaLeaf-Page-Cui-Events",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetEventCount()"},
{tlreqhttpheadername:"X-TeaLeaf-Page-Cui-Bytes",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetSendStringBytes(sendStr)"},{tlreqhttpheadername:"X-TeaLeaf-Page-Dwell",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetDwellTime()"},{tlreqhttpheadername:"X-TeaLeaf-Page-Last-Field",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetLastVisitedElementID()"},{tlreqhttpheadername:"X-TeaLeaf-Visit-Order",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetVisitOrder()"}]}}
if(typeof TeaLeaf.Env=="undefined"){TeaLeaf.Env={};if(typeof TeaLeaf.Env.Configuration=="undefined")TeaLeaf.Env.Configuration={tlinit:false,tlinitpost:true,tlPlugins:[{tlIEplugin:"ShockwaveFlash.ShockwaveFlash.1",tlpluginname:"Shockwave Flash",tlversion:"1.0",tlenable:false},{tlIEplugin:"MediaPlayer.MediaPlayer.1",tlpluginname:"Windows Media Player",tlversion:"",tlenable:false},{tlIEplugin:"PDF.PdfCtrl.1",tlpluginname:"Adobe Acrobat",tlversion:"",tlenable:false},{tlIEplugin:"QuickTimeCheckObject.QuickTimeCheck.1",
tlpluginname:"QuickTime",tlversion:"",tlenable:false}]}}
if(typeof TeaLeaf.Client=="undefined"){TeaLeaf.Client={};if(typeof TeaLeaf.Client.Configuration=="undefined"){TeaLeaf.Client.Configuration={tlinit:false,tlpassword:1,tlsendfocus:false,tlsendblur:true,tlunloadflag:true,tlactiontype:"No Submit",tlbeforeunloadflag:true,tlcontrolsattached:false,tlassignTLID:false,tlscanupdate:0,tlIEhref:false,tlScheduledScan:true,tlExcludeTags:true,tlUniversalAttach:false,tlStoreQueueInCookie:false,tlFieldBlock:[{tlfieldname:"cc_number",caseinsensitive:true,eventvaluereplace:"X",
eventnovalue:true},{tlfieldname:"TLCREDITCARD",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"tlpassword",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"tlpwd",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"tlqty",caseinsensitive:true,eventvaluereplace:"333",eventnovalue:false}],tlFieldBlockMap:null,tlWindowHandlers:[{domevent:"resize",load:false,tlhandler:"TeaLeaf.Client.tlQueueResize"},{domevent:"focus",load:true,
tlhandler:"TeaLeaf.Client.tlSetFocusTime"},{domevent:"help",load:true,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"scroll",load:false,tlhandler:"TeaLeaf.Client.tlQueueScroll"},{domevent:"beforeprint",load:false,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"afterprint",load:false,tlhandler:"TeaLeaf.Client.tlAddEvent"}],tlDocumentHandlers:[{domevent:"click",load:true,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"dblclick",load:true,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"keyup",
load:true,tlhandler:"TeaLeaf.Client.tlQueueKey"},{domevent:"mousedown",load:false,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"mouseup",load:false,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"mouseover",load:false,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"mouseout",load:false,tlhandler:"TeaLeaf.Client.tlAddEvent"},{domevent:"mousemove",load:false,tlhandler:"TeaLeaf.Client.tlUserMovement"}],tlSingleAttach:[{domelementID:"",domevent:"mousedown",tlhandler:"TeaLeaf.Client.tlAddEvent"},
{domelementID:"",domevent:"mouseup",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"",domevent:"mouseout",tlhandler:"TeaLeaf.Client.tlAddEvent"}],tlNodeTags:{APPLET:true,ATTRIBUTE:true,B:true,BASE:true,BODY:true,BR:true,CENTER:true,COL:true,COLGROUP:true,COMMENT:true,DIV:true,DEFAULT:true,DEL:true,EVENT:true,FONT:true,FORM:true,HEAD:true,HISTORY:true,HR:true,HTML:true,I:true,INS:true,LINK:true,MAP:true,META:true,NAMESPACE:true,
NAVIGGATOR:true,NOBR:true,OPTION:true,P:true,PARAM:true,S:true,SCRIPT:true,SMALL:true,STRIKE:true,STRONG:true,STYLE:true,SUB:true,SUP:true,TH:true,TITLE:true,THEAD:true,TFOOT:true,TR:true,U:true},tlSpecialChildNodeTags:{NOBR:true,P:true}};TeaLeaf.Client.Configuration.tlIdCounter=[]}}
if(TeaLeaf&&TeaLeaf.Configuration&&TeaLeaf.Configuration.tlinit==false){TeaLeaf.Configuration.tlinit=true;if(!Array.prototype.push){Array.prototype.stackEnd=0;Array.prototype.push=function(a){this[this.stackEnd]=a;this.stackEnd++}}if(!Array.prototype.pop)Array.prototype.pop=function(){this.stackEnd--;return this[this.stackEnd]};TeaLeaf.settlSDK=function(){TeaLeaf.Configuration.tlSDK=true};TeaLeaf.resettlSDK=function(){TeaLeaf.Configuration.tlSDK=false};TeaLeaf.tlIsIE=function(){if(navigator.appName.indexOf("Microsoft")>=
0&&parseInt(navigator.appVersion)>=4)return true;return false};TeaLeaf.tLoadObjs=[];TeaLeaf.addOnLoad=function(a,b){if(arguments.length==1)TeaLeaf.tLoadObjs.push(a);else arguments.length>1&&TeaLeaf.tLoadObjs.push(a[b])};TeaLeaf.PageSetup=function(){if(TeaLeaf.Configuration.tlSDK==false)for(var a=0;a<TeaLeaf.tLoadObjs.length;a++)TeaLeaf.tLoadObjs[a]();TeaLeaf.EndLoad=new Date};if(document.addEventListener)document.addEventListener("DOMContentLoaded",TeaLeaf.PageSetup,null);else if(typeof document.readyState!=
"undefined"){TeaLeaf.ReadyStateChange=typeof document.onreadystatechange=="function"?document.onreadystatechange:null;document.onreadystatechange=function(){document.readyState=="complete"&&TeaLeaf.PageSetup();TeaLeaf.ReadyStateChange&&TeaLeaf.ReadyStateChange()}}else{TeaLeaf.OnLoad=typeof window.onload=="function"?window.onload:null;window.onload=function(){TeaLeaf.PageSetup();TeaLeaf.OnLoad&&TeaLeaf.OnLoad()}}}
if(TeaLeaf.Event&&TeaLeaf.Event.Configuration){try{if(typeof TeaLeaf_PageID=="undefined")TeaLeaf_PageID=null}catch(e){TeaLeaf_PageID=null}TeaLeaf.Event.tlQueuedXML="";TeaLeaf.Event.tlGetContentType=function(){return"text/xml"};TeaLeaf.Event.tlGetTeaLeafXEvent=function(){return"ClientEvent"};TeaLeaf.Event.tlEventType=function(){return TeaLeaf.Event.SetType};TeaLeaf.Event.tlEventSubType=function(){return TeaLeaf.Event.SetSubType};TeaLeaf.Event.tlGetUrlPath=function(){return window.location.pathname};
TeaLeaf.Event.tlGetJSVersion=function(){return TeaLeaf.Configuration.tlversion};TeaLeaf.Event.tlResolutionType=function(a,b){for(var c=TeaLeaf.Event.Configuration.tlResolution,d=0;d<c.length;d++)if(a<=c[d].width||b<=c[d].height)return c[d].type;return c[length-1].type};TeaLeaf.Event.tlResolutionTypeBrowser=function(){var a=0,b=0;if(window.innerWidth){a=window.innerWidth;b=window.innerHeight}else if(document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth;
b=document.documentElement.clientHeight}else if(document.body&&document.body.clientWidth){a=document.body.clientWidth;b=document.body.clientHeight}else{var c=document.getElementsByTagName("body");if(c.length>0){a=c[0].clientWidth;b=c[0].clientHeight}}return TeaLeaf.Event.tlResolutionType(a,b)};TeaLeaf.Event.tlGetRenderTime=function(){return TeaLeaf.Event.PageLoadMilliSecs};TeaLeaf.Event.tlGetElementCount=function(a){return document.getElementsByName(a).length};TeaLeaf.Event.tlBadImageCount=function(){var a=
0,b;for(b=0;b<document.images.length;b++){var c=document.images[b];if(c.complete)typeof c.naturalWidth!="undefined"&&c.naturalWidth==0&&a++;else a++}return a};TeaLeaf.Event.tlGetEventCount=function(){return TeaLeaf.Event.Configuration.tleventcount};TeaLeaf.Event.tlGetSendStringBytes=function(a){return a.length};TeaLeaf.Event.tlGetDwellTime=function(){return TeaLeaf.Event.tlDateDiff(TeaLeaf.tlStartLoad,TeaLeaf.Event.Configuration.tllastdwelltime)};TeaLeaf.Event.tlGetLastVisitedElementID=function(){return TeaLeaf.Event.Configuration.tlidoflastvisitedcontrol};
TeaLeaf.Event.tlDateDiff=function(a,b){return Math.abs(a-b)};TeaLeaf.Event.tlGetVisitOrder=function(){return TeaLeaf.Event.Configuration.tlvisitorder};TeaLeaf.Event.tlFormatXML=function(a){if(a){if(a.replace)return a.replace(/&/g,"&amp;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return a}return""};TeaLeaf.Event.tlGetCookie=function(a){var b=document.cookie;a=a+"=";var c=b.indexOf("; "+a);if(c==-1){c=b.indexOf(a);if(c!=0)return""}else c+=2;var d=document.cookie.indexOf(";",
c);if(d==-1)d=b.length;return unescape(b.substring(c+a.length,d))};TeaLeaf.Event.tlSetHTTPHeaders=function(a,b){for(var c=0;c<b.length;c++)b[c].tlsethttpheader==true&&a.setRequestHeader(b[c].tlreqhttpheadername,eval(b[c].tlreqhttpheadervalue))};TeaLeaf.Event.tlGetPageId=function(){if(TeaLeaf.Event.Configuration.tlpageid)return TeaLeaf.Event.Configuration.tlpageid;if(TeaLeaf_PageID){TeaLeaf.Event.Configuration.tlpageid=TeaLeaf_PageID;return TeaLeaf.Event.Configuration.tlpageid}TeaLeaf.Event.Configuration.tlpageid=
"ID"+TeaLeaf.tlStartLoad.getHours()+"H"+TeaLeaf.tlStartLoad.getMinutes()+"M"+TeaLeaf.tlStartLoad.getSeconds()+"S"+TeaLeaf.tlStartLoad.getMilliseconds()+"R"+Math.random();return TeaLeaf.Event.Configuration.tlpageid};TeaLeaf.Event.tlSendFailure=function(a,b,c){a=new Date;var d=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),f;if(TeaLeaf.tlStartLoad)f=TeaLeaf.Event.tlDateDiff(a,TeaLeaf.tlStartLoad);TeaLeaf.Event.Configuration.tleventcount++;
tlsendStr='<ClientEvent count="'+TeaLeaf.Event.Configuration.tleventcount+'" Type="INFO" SubType="EXCEPTION" PageId="'+TeaLeaf.Event.tlGetPageId()+'" FailedUrl="'+TeaLeaf.Event.tlFormatXML(b)+'" Message="'+TeaLeaf.Event.tlFormatXML(c)+'" TimeDuration="'+f+'" DateSince1970="'+d+'" />\r\n';try{TeaLeaf.Event.Configuration.tlasync=true;(new TeaLeaf.Event("INFO","EXCEPTION")).tlSendXML(tlsendStr,true)}catch(g){TeaLeaf.Event.Configuration.tlshowexceptions&&alert(g.name+": "+g.message+"\r\n\r\nPos 4")}};
TeaLeaf.Event.tlGetTransport=function(){var a;if(window.XMLHttpRequest)try{a=new XMLHttpRequest}catch(b){a=null}else if(window.ActiveXObject)try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){a=null}}return a};TeaLeaf.Event.TransportArray=[];TeaLeaf.Event.tlXMLHTTPObj=function(){for(var a=0;a<TeaLeaf.Event.TransportArray.length;a++)if(TeaLeaf.Event.TransportArray[a]&&TeaLeaf.Event.TransportArray[a].readyState>0){if(TeaLeaf.Event.TransportArray[a].readyState==
4){TeaLeaf.Event.TransportArray[a].abort();TeaLeaf.Event.TransportArray[a].onreadystatechange=new function(){};return TeaLeaf.Event.TransportArray[a]}}else{TeaLeaf.Event.TransportArray[a]=TeaLeaf.Event.tlGetTransport();return TeaLeaf.Event.TransportArray[a]}TeaLeaf.Event.TransportArray[a]=TeaLeaf.Event.tlGetTransport();return TeaLeaf.Event.TransportArray[a]};TeaLeaf.Event.tlCleanXMLHTTPObj=function(a){for(var b=0;b<TeaLeaf.Event.TransportArray.length;b++)if(a==TeaLeaf.Event.TransportArray[b])TeaLeaf.Event.TransportArray[b]=
null};TeaLeaf.Event.tlAddHandler=function(a,b,c,d){try{if(a.addEventListener)navigator.userAgent.toLowerCase().indexOf("safari")!=-1?a.addEventListener("on"+b,c,d):a.addEventListener(b,c,d);else a.attachEvent&&a.attachEvent("on"+b,c)}catch(f){TeaLeaf.Event.Configuration.tlshowexceptions&&alert(f.name+": "+f.message+"\r\n\r\nPos 4")}};TeaLeaf.Event.tlRemoveHandler=function(a,b,c,d){try{if(a.removeEventListener)a.removeEventListener(b,c,d);else a.detachEvent&&a.detachEvent("on"+b,c)}catch(f){TeaLeaf.Event.Configuration.tlshowexceptions&&
alert(f.name+": "+f.message+"\r\n\r\nPos 5")}};TeaLeaf.Event.tlFlushQueue=function(a){var b=null,c=TeaLeaf.Event.Configuration.tlqueueeventstimer,d=c*3;if(TeaLeaf.Event.Configuration.tlusetopqueue){var f=new Date,g=f-top.TeaLeaf.Event.TimeSent;if(top.TeaLeaf.Event.tlQueuedXML)if(a||g>=c){b=top.TeaLeaf.Event.tlQueuedXML;top.TeaLeaf.Event.tlQueuedXML="";top.TeaLeaf.Event.TimeSent=f}if(!b){if(!a&&g<c/2)c=c>=d?d:c*3/2;return c}}else{if(!TeaLeaf.Event.tlQueuedXML)return c;b=TeaLeaf.Event.tlQueuedXML;TeaLeaf.Event.tlQueuedXML=
""}(new TeaLeaf.Event("GUI","QUEUED")).tlSendXML(b);return c};TeaLeaf.Event.prototype.tlPushXML=function(a){if(!this.XMLStack)this.XMLStack=[];a="  <"+a;if(this.XMLData)this.XMLData+=a;else this.XMLData=a};TeaLeaf.Event.prototype.tlPopXML=function(){if(this.XMLData)this.XMLData+=" />\r\n";else return false};TeaLeaf.Event.prototype.tlAddData=function(a){var b="";if(this.XMLStack)for(var c=0;c<this.XMLStack.length;c++)b+="  ";var d=[];for(c=0;c<a.length;c+=2){var f=a[c];tlValue=TeaLeaf.Event.tlFormatXML(a[c+
1]);if(f&&tlValue)d[d.length]=b+" "+f+'="'+tlValue+'"'}if(!this.XMLData)this.XMLData="";this.XMLData+=d.join("");delete a};TeaLeaf.Event.prototype.tlSendXML=function(a){var b=TeaLeaf.Event.tlXMLHTTPObj();if(b)try{var c=this.theUrl;b.onreadystatechange=function(){if(b.readyState==2&&typeof TeaLeaf.Cookie!="undefined"){var f=new Date;f.setTime(f.getTime()-864E5);TeaLeaf.Cookie.tlSetCookieValue("tlQueuedXML","",f,"/")}if(b.readyState==4)try{if(b.status!=200&&b.status!=304)if(TeaLeaf.Event.Configuration.tlignoresendfailure==
true){TeaLeaf.Event.Configuration.tlignoresendfailure=false;TeaLeaf.Event.tlSendFailure(c,c,"Status "+b.status+": "+b.statusText)}}catch(g){}};b.open("POST",c,TeaLeaf.Event.Configuration.tlasync);TeaLeaf.Event.tlSetHTTPHeaders(b,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet);TeaLeaf.Event.Configuration.tlinitflag==true&&TeaLeaf.Event.tlSetHTTPHeaders(b,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit);TeaLeaf.Event.Configuration.tlbeforeunloadflag==true&&TeaLeaf.Event.tlSetHTTPHeaders(b,
TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload);b.send(a)}catch(d){if(TeaLeaf.Event.Configuration.tlshowexceptions)d.name?alert(d.name+": "+d.message+"\r\n\r\nURL: "+this.theUrl+"\r\n\r\nPos 3 "):alert(d+"\r\n\r\nURL: "+this.theUrl+"\r\n\r\nPos 3 ");if(TeaLeaf.Event.Configuration.tlignoresendfailure==true){TeaLeaf.Event.Configuration.tlignoresendfailure=false;TeaLeaf.Event.tlSendFailure(this.theUrl,this.theUrl,d)}TeaLeaf.Event.tlCleanXMLHTTPObj(b)}};TeaLeaf.Event.prototype.tlSend=
function(a){if(this.XMLStack)for(;this.XMLStack.length>0;)this.tlPopXML();var b=Date.UTC(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate(),this.date.getUTCHours(),this.date.getUTCMinutes(),this.date.getUTCSeconds(),this.date.getUTCMilliseconds()),c;if(TeaLeaf.tlStartLoad)c=TeaLeaf.Event.tlDateDiff(this.date,TeaLeaf.tlStartLoad);TeaLeaf.Event.Configuration.tleventcount++;sendStr='<ClientEvent count="'+TeaLeaf.Event.Configuration.tleventcount+'" Type="'+this.EventType+'" SubType="'+
this.EventSubType+'"';if(this.EventSource)sendStr=sendStr+'" Source="'+this.EventSource+'"';sendStr=a?sendStr+' PageId="'+TeaLeaf.Event.tlGetPageId()+'" TimeDuration="'+c+'" DateSince1970="'+b+'" >\r\n'+this.XMLData+"</ClientEvent>\r\n":sendStr+' PageId="'+TeaLeaf.Event.tlGetPageId()+'"'+this.XMLData+' TimeDuration="'+c+'" DateSince1970="'+b+'" />\r\n';if(TeaLeaf.Event.Configuration.tlqueueevents){if(TeaLeaf.Event.Configuration.tlusetopqueue)if(top.TeaLeaf.Event.tlQueuedXML)top.TeaLeaf.Event.tlQueuedXML+=
sendStr;else top.TeaLeaf.Event.tlQueuedXML=sendStr;else if(TeaLeaf.Event.tlQueuedXML)TeaLeaf.Event.tlQueuedXML+=sendStr;else TeaLeaf.Event.tlQueuedXML=sendStr;TeaLeaf.Event.Configuration.tlqueueeventsmaxsz<TeaLeaf.Event.tlQueuedXML.length&&TeaLeaf.Event.tlFlushQueue()}else{try{this.tlSendXML(sendStr);this.XMLData=""}catch(d){}this.XMLData=""}};TeaLeaf.Event.tlXMLEncode=function(a){if(a==null)return a;a=a.replace(/&/g,"&#38;");a=a.replace(/"/g,"&#34;");a=a.replace(/'/g,"&#39;");return a=a.replace(/:/g,
"&#58;")};TeaLeaf.Event.tlXMLDecode=function(a){if(a==null)return a;a=a.replace(/&#58;/g,":");a=a.replace(/&#39;/g,"'");a=a.replace(/&#34;/g,'"');return a=a.replace(/&#38;/g,"&")};TeaLeaf.Event.tlEnableAllHTTPHeaders=function(a){if(a)if(a=="info")TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,true,"all");else if(a=="init")TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,true,"all");else a=="beforeunload"&&TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload,
true,"all");else{TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,true,"all");TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,true,"all");TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload,true,"all")}};TeaLeaf.Event.tlEnableHTTPHeader=function(a,b){if(a=="info")TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,true,b);else if(a=="init")TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,
true,b);else a=="beforeunload"&&TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload,true,b)};TeaLeaf.Event.tlDisableAllHTTPHeaders=function(a){if(a)if(a=="info")TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,false,"all");else if(a=="init")TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,false,"all");else a=="beforeunload"&&TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload,
false,"all");else{TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,false,"all");TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,false,"all");TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload,false,"all")}};TeaLeaf.Event.tlEnableQueueEvents=function(){TeaLeaf.Event.Configuration.tlqueueevents=true};TeaLeaf.Event.tlDisableQueueEvents=function(){TeaLeaf.Event.Configuration.tlqueueevents=
false};TeaLeaf.Event.tlEnableShowExceptions=function(){TeaLeaf.Event.Configuration.tlshowexceptions=true};TeaLeaf.Event.tlDisableShowExceptions=function(){TeaLeaf.Event.Configuration.tlshowexceptions=false};TeaLeaf.Event.tlSetQueueEventTime=function(a){TeaLeaf.Event.Configuration.tlqueueeventstimer=a};TeaLeaf.Event.tlGetQueueEventTime=function(){return TeaLeaf.Event.Configuration.tlqueueeventstimer};TeaLeaf.Event.tlSetQueueEventMaxSize=function(a){TeaLeaf.Event.Configuration.tlqueueeventsmaxsz=a};
TeaLeaf.Event.tlGetQueueEventMaxSize=function(){return TeaLeaf.Event.Configuration.tlqueueeventsmaxsz};TeaLeaf.Event.tlSetPostURL=function(a){TeaLeaf.Event.Configuration.tlurl=a};TeaLeaf.Event.tlGetPostURL=function(){return TeaLeaf.Event.Configuration.tlurl};TeaLeaf.Event.tlSetPageIDCookie=function(a){TeaLeaf.Event.Configuration.tlpageidcookie=a};TeaLeaf.Event.tlGetPageIDCookie=function(){return TeaLeaf.Event.Configuration.tlpageidcookie};TeaLeaf.Event.tlEventJSONCfgUtil=function(a,b,c){for(var d=
0;d<a.length;d++)if(c=="all")a[d].load=b;else if(c==a[d].domevent)a[d].load=b};TeaLeaf.Event.tlErrorHandler=function(a,b,c){c||(c="unknown");var d=new TeaLeaf.Event("INFO","EXCEPTION");a=["Message",a,"URL",escape(b),"Line",c];d.tlAddData(a);TeaLeaf.Event.Configuration.tlasync=true;d.tlSend();TeaLeaf.Event.tlFlushQueue();return false};TeaLeaf.Event.tlBeforeUnload=function(){if(TeaLeaf.Event.Configuration.tleventbeforeunloadflag==true){TeaLeaf.Event.Configuration.tleventunloadflag=false;var a=new TeaLeaf.Event("PERFORMANCE",
"BeforeUnload");TeaLeaf.Event.SetType=a.EventType;if(TeaLeaf.Event.SetSubType=="")TeaLeaf.Event.SetSubType=a.EventSubType;else TeaLeaf.Event.SetSubType+="; "+a.EventSubType;TeaLeaf.Event.Configuration.tlbeforeunloadflag=true;TeaLeaf.Event.Configuration.tlignoresendfailure=true;TeaLeaf.Event.Configuration.tlasync=false;a.tlSend();TeaLeaf.Event.tlFlushQueue(true)}TeaLeaf.Event.tlRemoveHandler(window,"beforeunload",eval(TeaLeaf.Event.tlBeforeUnload),false);TeaLeaf.Event.tlRemoveHandler(window,"unload",
eval(TeaLeaf.Event.tlUnload),false)};TeaLeaf.Event.tlUnload=function(){if(TeaLeaf.Event.Configuration.tleventunloadflag){TeaLeaf.Event.Configuration.tllastdwelltime=new Date;TeaLeaf.Event.Configuration.tleventbeforeunloadflag=false;var a=new TeaLeaf.Event("PERFORMANCE","Unload");TeaLeaf.Event.SetType=a.EventType;if(TeaLeaf.Event.SetSubType=="")TeaLeaf.Event.SetSubType=a.EventSubType;else TeaLeaf.Event.SetSubType+="; "+a.EventSubType;TeaLeaf.Event.Configuration.tlignoresendfailure=true;TeaLeaf.Event.Configuration.tlasync=
false;a.tlSend();TeaLeaf.Event.tlFlushQueue(true)}TeaLeaf.Event.tlRemoveHandler(window,"beforeunload",eval(TeaLeaf.Event.tlBeforeUnload),false);TeaLeaf.Event.tlRemoveHandler(window,"unload",eval(TeaLeaf.Event.tlUnload),false)};TeaLeaf.Event.EventSetup=function(){TeaLeaf.Event.Configuration.tlcatcherrors&&TeaLeaf.Event.tlAddHandler(window,"error",TeaLeaf.Event.tlErrorHandler,false);if(!TeaLeaf.Client){TeaLeaf.Event.tlAddHandler(window,"beforeunload",eval(TeaLeaf.Event.tlBeforeUnload),false);TeaLeaf.Event.tlAddHandler(window,
"unload",eval(TeaLeaf.Event.tlUnload),false)}if(TeaLeaf.Event.Configuration.tlqueueevents){TeaLeaf.Event.tlTimerRoutine=function(){var a=TeaLeaf.Event.Configuration.tlqueueeventstimer;try{a=TeaLeaf.Event.tlFlushQueue()}catch(b){TeaLeaf.Event.Configuration.tlshowexceptions&&alert(b.name+": "+b.message+"\r\n\r\nPos 7")}setTimeout("TeaLeaf.Event.tlTimerRoutine()",a)};setTimeout("TeaLeaf.Event.tlTimerRoutine()",TeaLeaf.Event.Configuration.tlqueueeventstimer)}TeaLeaf.Event.Loaded=true};var tmpUrl;tmpUrl=
window.location.protocol=="http:"?TeaLeaf.Event.Configuration.tlurl:TeaLeaf.Event.Configuration.tlsecureurl;TeaLeaf.Event.prototype.theUrl=window.location.protocol+"//"+window.location.host+tmpUrl;if(TeaLeaf.Event.Configuration.tlinit==false){TeaLeaf.Event.Configuration.tlinit=true;TeaLeaf.Event.prototype.XMLData="";TeaLeaf.addOnLoad(TeaLeaf.Event.EventSetup)}}
if(TeaLeaf.Env&&TeaLeaf.Env.Configuration){TeaLeaf.Env.tlSendPageSummary=function(){if(TeaLeaf.Configuration.tlSDK==false)if(TeaLeaf.Env.Configuration.tlinitpost==true){TeaLeaf.Env.Configuration.tlinitpost=false;var a=new TeaLeaf.Event("PERFORMANCE","INIT");TeaLeaf.Event.PageLoadMilliSecs=TeaLeaf.Event.tlDateDiff(TeaLeaf.tlStartLoad,a.date);TeaLeaf.Event.SetType=a.EventType;if(TeaLeaf.Event.SetSubType=="")TeaLeaf.Event.SetSubType=a.EventSubType;else TeaLeaf.Event.SetSubType+="; "+a.EventSubType;TeaLeaf.Event.Configuration.tlinitflag=
true;TeaLeaf.Env.tlInfo(a);TeaLeaf.Env.tlDOMDocumentInfo(a);TeaLeaf.Env.tlDOMWindowInfo(a);TeaLeaf.Env.tlDOMNavigatorInfo(a);TeaLeaf.Env.tlDOMScreenInfo(a);TeaLeaf.Env.tlPluginInfo(a);a.tlSend(true)}};TeaLeaf.Env.tlInfo=function(a){a.tlPushXML("Info");var b=["PageLoadMilliSecs",TeaLeaf.Event.tlGetRenderTime(),"Version",TeaLeaf.Event.tlGetJSVersion(),"TimezoneOffset",a.date.getTimezoneOffset()];a.tlAddData(b);a.tlPopXML()};TeaLeaf.Env.tlDOMDocumentInfo=function(a){a.tlPushXML("Document");a.tlAddData(["URL",
document.URL,"Title",document.title,"Referer",document.referer,"ContentType",document.contentType,"LastModified",document.lastModified,"CharacterSet",document.characterSet,"Height",document.height,"Width",document.width]);var b=["Anchors",document.anchors.length,"Applets",document.applets.length,"Embeds",document.embeds.length,"Forms",document.forms.length,"Images",document.images.length,"BadImages",TeaLeaf.Event.tlBadImageCount(),"Links",document.links.length,"Plugins",document.plugins.length];a.tlAddData(b);
a.tlPopXML()};TeaLeaf.Env.tlDOMWindowInfo=function(a){a.tlPushXML("Window");var b=["WindowHref",escape(window.location.href),"WindowProtocol",window.location.protocol,"WindowHost",window.location.host,"WindowHostName",window.location.hostname,"WindowPort",window.location.port,"WindowPathName",window.location.pathname];a.tlAddData(b);if(window.innerHeight&&window.innerWidth)a.tlAddData(["ClientSize",window.innerHeight+"x"+window.innerWidth]);else document.body&&document.body.clientWidth&&document.body.clientHeight&&
a.tlAddData(["ClientSize",document.body.clientHeight+"x"+document.body.clientWidth]);a.tlAddData(["FullScreen",navigator.fullScreen,"Frames",window.frames.length]);a.tlPopXML()};TeaLeaf.Env.tlDOMNavigatorInfo=function(a){a.tlPushXML("Navigator");a.tlAddData(["AppCodeName",navigator.appCodeName,"AppName",navigator.appName,"AppVersion",navigator.appVersion,"BrowserLanguage",navigator.browserLanguage,"CookieEnabled",navigator.cookieEnabled,"CPUClass",navigator.cpuClass,"Language",navigator.language,
"OSCPU",navigator.oscpu,"Platform",navigator.platform,"Product",navigator.product,"SystemLanguage",navigator.systemLanguage,"UserAgent",navigator.userAgent,"UserLanguage",navigator.userLanguage,"Vendor",navigator.vendor,"VendorSub",navigator.vendorSub]);a.tlPopXML()};TeaLeaf.Env.tlDOMScreenInfo=function(a){a.tlPushXML("Screen");a.tlAddData(["AvailHeight",screen.availHeight,"AvailLeft",screen.availLeft,"AvailTop",screen.availTop,"AvailWidth",screen.availWidth,"BufferDepth",screen.bufferDepth,"ColorDepth",
screen.colorDepth,"DeviceXDPI",screen.deviceXDPI,"DeviceYDPI",screen.deviceYDPI,"FontSmoothingEnabled",screen.fontSmoothingEnabled,"Height",screen.height,"Left",screen.left,"LogicalXDPI",screen.logicalXDPI,"LogicalYDPI",screen.logicalYDPI,"Top",screen.top,"UpdateInterval",screen.updateInterval,"Width",screen.width]);a.tlPopXML()};TeaLeaf.Env.tlPluginInfo=function(a){if(window.ActiveXObject)for(var b=0;b<TeaLeaf.Env.Configuration.tlPlugins.length;b++){if(TeaLeaf.Env.Configuration.tlPlugins[b].tlenable){var c=
TeaLeaf.Env.Configuration.tlPlugins[b].tlIEplugin;try{if(new ActiveXObject(c)){a.tlPushXML("Plugin");var d=["pluginname",TeaLeaf.Env.Configuration.tlPlugins[b].tlpluginname,"version",TeaLeaf.Env.Configuration.tlPlugins[b].tlversion];a.tlAddData(d);a.tlPopXML()}}catch(f){}}}else for(b=0;b<navigator.plugins.length;b++)for(c=0;c<TeaLeaf.Env.Configuration.tlPlugins.length;c++)if(TeaLeaf.Env.Configuration.tlPlugins[c].tlenable)if(navigator.plugins[b].name.substr(0,TeaLeaf.Env.Configuration.tlPlugins[c].tlpluginname.length)==
TeaLeaf.Env.Configuration.tlPlugins[c].tlpluginname){TeaLeaf.Env.Configuration.tlPlugins[c].tlenable=false;a.tlPushXML("Plugin");d=["pluginname",TeaLeaf.Env.Configuration.tlPlugins[c].tlpluginname,"version",TeaLeaf.Env.Configuration.tlPlugins[c].tlversion];a.tlAddData(d);a.tlPopXML()}};TeaLeaf.Env.CallInit=function(){TeaLeaf.addOnLoad(TeaLeaf.Env.tlSendPageSummary)};if(TeaLeaf.Env.Configuration.tlinit==false){TeaLeaf.Env.Configuration.tlinit=true;TeaLeaf.Env.CallInit()}}
if(TeaLeaf.Client&&TeaLeaf.Client.Configuration){TeaLeaf.Client.tlTimeoutID=-1;TeaLeaf.Client.tlEnableAllEventHandlers=function(a){if(a)if(a==window)TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,true,"all");else a==document&&TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,true,"all");else{TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,true,"all");TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,
true,"all")}};TeaLeaf.Client.tlEnableEventHandler=function(a,b){a==window?TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,true,b):TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,true,b)};TeaLeaf.Client.tlDisableAllEventHandlers=function(a){if(a)if(a==window)TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,"all");else a==document&&TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,
false,"all");else{TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,"all");TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,false,"all")}};TeaLeaf.Client.tlDisableEventHandlers=function(a,b){a==window?TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,b):TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,false,b)};TeaLeaf.Client.tlClientJSONCfgUtil=function(a,
b,c){for(var d=0;d<a.length;d++)if(c=="all")a[d].load=b;else if(c==a[d].domevent)a[d].load=b};TeaLeaf.Client.tlHasUserMovement=false;TeaLeaf.Client.tlUserMovement=function(){TeaLeaf.Client.tlHasUserMovement=true;TeaLeaf.Event.tlRemoveHandler(document,"mousemove",TeaLeaf.Client.tlUserMovement,false)};TeaLeaf.Client.tlAddIdToControl=function(a){if(!(a.id&&a.id!=""||a.name&&a.name!="")){var b=a.tagName;if(TeaLeaf.Client.Configuration.tlIdCounter[b]==undefined)TeaLeaf.Client.Configuration.tlIdCounter[b]=
0;var c="_TL_"+b+"_"+TeaLeaf.Client.Configuration.tlIdCounter[b];if(document.getElementById(c))for(;document.getElementById("_TL_"+b+"_"+TeaLeaf.Client.Configuration.tlIdCounter[b]++););a.id=c;TeaLeaf.Client.Configuration.tlIdCounter[b]++}};TeaLeaf.Client.tlFindinJSON=function(a,b){var c=TeaLeaf.Client.tlGetName(a);if(c)for(var d=0;d<b.length;d++)if(c==b[d].tlfieldname)return b[d]};TeaLeaf.Client.tlIsReplace=function(a){if(!a)return false;if(typeof a=="object"){if(a.TeaLeafReplace)return true}else{var b=
document.getElementById(a);if(b.TeaLeafReplace==true)return true;if(!b){b=document.getElementsByName(a);for(var c=0;c<tlSilent.length;c++)if(b[c].TeaLeafReplace==true)return true}}if(a.type=="password")return TeaLeaf.Client.Configuration.tlpassword==2;return false};TeaLeaf.Client.tlReplaceValue=function(a){a=TeaLeaf.Client.tlGetName(a);TeaLeaf.Client.tlMakeFieldBlockMap();a=TeaLeaf.Client.Configuration.tlFieldBlockMap[a.toLowerCase()];if(a==null)return"";return a.eventvaluereplace.length>0?a.eventvaluereplace:
""};TeaLeaf.Client.tlIsExcluded=function(a){if(!a)return false;if(typeof a=="object"){if(a.TeaLeafExclude)return true}else{var b=document.getElementById(a);if(b){if(b.TeaLeafExclude)return true}else if(b=document.getElementsByName(a))for(a=0;a<b.length;a++)if(b[a].TeaLeafExclude)return true;return false}if(a.type=="password")return TeaLeaf.Client.Configuration.tlpassword==2;return false};TeaLeaf.Client.tlGetName=function(a){if(a==null)return null;var b=a.id;if(b&&b!="")return b;if((a=a.name)&&a!=
"")return a;return null};TeaLeaf.Client.tlGetEventSource=function(a){var b=null;if(a){if(a.srcElement)b=a.srcElement;else{b=a.target;if(b==null){b=a.explicitOriginalTarget;if(b==null)b=a.originalTarget}}if(b&&(b.name==null||b.name==""))if(b.parentNode&&b.parentNode.tagName)if(b.parentNode.tagName=="A"||b.parentNode.tagName=="LINK")b=b.parentNode}return b};TeaLeaf.Client.tlGetAnchor=function(a,b){if(a==null)return null;if(a.name&&a.name!="")return null;var c;for(c=0;c<document.anchors.length;c++)if(document.anchors[c]==
a)return b?"<AnchorElement>"+c+"</AnchorElement>\r\n":"Anchor-"+c;for(c=0;c<document.links.length;c++)if(document.links[c]==a)return b?"<LinkElement>"+c+"</LinkElement>\r\n":"Link-"+c;return null};TeaLeaf.Client.checkIsInput=function(a){if(typeof a=="string")a=document.getElementById(a);switch(a.tagName){case "INPUT":case "SELECT":case "TEXTAREA":return true}return false};TeaLeaf.Event.tlFormatXMLName=function(a){if(!a||a.length<=0)return null;var b="";TeaLeaf.Event.tlNameStartChar(a.charCodeAt(0))||
(b="_");var c=a.length,d;for(d=0;d<c;d++)b+=TeaLeaf.Event.tlNameChar(a.charCodeAt(d))?a.charAt(d):"_";return b};TeaLeaf.Event.tlNameStartChar=function(a){return a>=65&&a<=90||a==95||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533};TeaLeaf.Event.tlNameChar=function(a){return TeaLeaf.Event.tlNameStartChar(a)||a==45||a==46||a>=48&&a<=57||a==
183||a>=768&&a<=879||a>=8255&&a<=8256};TeaLeaf.Client.tlQueuedKeys="";TeaLeaf.Client.tlQueueKey=function(a){TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!a)a=window.event;if(!(a.keyCode<32)){var b=TeaLeaf.Client.tlGetEventSource(a);if(b){if(!b.TeaLeafFocusTime)b.TeaLeafFocusTime=new Date;if(TeaLeaf.Client.tlQueuedKeySource){if(TeaLeaf.Client.tlQueuedKeySource!=b){TeaLeaf.Client.tlQueuedKeys&&TeaLeaf.Client.tlQueuedKeys.length>0&&TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlQueuedKeySource=
b}}else TeaLeaf.Client.tlQueuedKeySource=b;var c=null;if(TeaLeaf.Client.tlGetName(b)){if(TeaLeaf.Client.tlIsReplace(b)){TeaLeaf.Client.tlQueuedKeysCount++;return}if(TeaLeaf.Client.tlIsExcluded(b)){TeaLeaf.Client.tlQueuedKeys=null;TeaLeaf.Client.tlQueuedKeysCount++;return}}else{c=TeaLeaf.Client.tlGetAnchor(b,false);if(!c){TeaLeaf.Client.tlQueuedKeySource=null;return}}if(TeaLeaf.Client.tlQueuedKeys)if(TeaLeaf.Client.tlQueuedKeys.length>0)TeaLeaf.Client.tlQueuedKeys+=";";if(a.ctrlKey)if(TeaLeaf.Client.tlQueuedKeys)TeaLeaf.Client.tlQueuedKeys+=
"ctrl-";else TeaLeaf.Client.tlQueuedKeys="ctrl-";if(a.altKey)if(TeaLeaf.Client.tlQueuedKeys)TeaLeaf.Client.tlQueuedKeys+="alt-";else TeaLeaf.Client.tlQueuedKeys="alt-";if(a.shiftKey)if(TeaLeaf.Client.tlQueuedKeys)TeaLeaf.Client.tlQueuedKeys+="shift-";else TeaLeaf.Client.tlQueuedKeys="shift-";TeaLeaf.Client.tlQueuedKeys+=a.keyCode}}};TeaLeaf.Client.tlSendKeys=function(){if(!(!TeaLeaf.Client.tlQueuedKeySource||!TeaLeaf.Client.tlQueuedKeys&&!TeaLeaf.Client.tlQueuedKeysCount)){var a=TeaLeaf.Client.tlQueuedKeySource,
b=TeaLeaf.Client.tlQueuedKeys,c=TeaLeaf.Client.tlQueuedKeysCount;TeaLeaf.Client.tlQueuedKeySource=null;TeaLeaf.Client.tlQueuedKeys="";TeaLeaf.Client.tlQueuedKeysCount=0;if(!TeaLeaf.Client.tlIsReplace(a)){var d=false;if(TeaLeaf.Client.tlIsExcluded(a)){d=true;b=null}var f=TeaLeaf.Client.tlGetName(a),g=null;if(f==null){g=TeaLeaf.Client.tlGetAnchor(a,false);if(g==null)return}else if(TeaLeaf.Client.tlIsExcluded(f))return null;var h=new TeaLeaf.Event("GUI","KeyUp");c=["Name",a.name,"Id",a.id,"Lev",g,"ElementType",
a.type,"TagName",a.tagName,"XPath",TeaLeaf.Client.tlGetXPathFromNode(a),"KeyCount",c];h.tlAddData(c);if(d)h.tlAddData(["Excluded","true"]);else{d=TeaLeaf.Event.tlFormatXMLName(f);h.tlAddData(["ValueIn",d,d,a.value,"KeyCode",b])}h.tlSend()}}};TeaLeaf.Client.tlSendResize=function(){if(TeaLeaf.Client.ResizeClientX||TeaLeaf.Client.ResizeClientY){var a=new TeaLeaf.Event("GUI","Resize");a.tlAddData(["ClientX",TeaLeaf.Client.ResizeClientX,"ClientY",TeaLeaf.Client.ResizeClientY,"ScreenX",TeaLeaf.Client.ResizeScreenX,
"ScreenY",TeaLeaf.Client.ResizeScreenY]);TeaLeaf.Client.ResizeClientX=null;TeaLeaf.Client.ResizeClientY=null;TeaLeaf.Client.ResizeScreenX=null;TeaLeaf.Client.ResizeScreenY=null;a.tlSend()}};TeaLeaf.Client.tlQueueScroll=function(a){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();if(!a)a=window.event;if(a.clientX){TeaLeaf.Client.ScrollClientX=a.clientX;TeaLeaf.Client.ScrollClientY=a.clientY;TeaLeaf.Client.ScrollScreenX=a.screenX;TeaLeaf.Client.ScrollScreenY=a.screenY}else{TeaLeaf.Client.ScrollHeight=
a.target.scrollHeight;TeaLeaf.Client.ScrollWidth=a.target.scrollWidth;TeaLeaf.Client.ScrollTop=a.target.scrollTop;TeaLeaf.Client.ScrollLeft=a.target.scrollLeft}};TeaLeaf.Client.tlSendScroll=function(){if(TeaLeaf.Client.ScrollClientX||TeaLeaf.Client.ScrollHeight){var a=new TeaLeaf.Event("GUI","Scroll");a.tlAddData(["ClientX",TeaLeaf.Client.ScrollClientX,"ClientY",TeaLeaf.Client.ScrollClientY,"ScreenX",TeaLeaf.Client.ScrollScreenX,"ScreenY",TeaLeaf.Client.ScrollScreenY,"ScrollHeight",TeaLeaf.Client.ScrollHeight,
"ScrollWidth",TeaLeaf.Client.ScrollWidth,"ScrollTop",TeaLeaf.Client.ScrollTop,"ScrollLeft",TeaLeaf.Client.ScrollLeft]);TeaLeaf.Client.ScrollClientX=null;TeaLeaf.Client.ScrollClientY=null;TeaLeaf.Client.ScrollScreenX=null;TeaLeaf.Client.ScrollScreenY=null;TeaLeaf.Client.ScrollHeight=null;TeaLeaf.Client.ScrollWidth=null;TeaLeaf.Client.ScrollTop=null;TeaLeaf.Client.ScrollLeft=null;a.tlSend()}};TeaLeaf.Client.tlFindAncestorByTag=function(a,b){for(var c=a.parentNode;c&&c!=window.document;)if(c.nodeType==
1)if(c.tagName==b)break;else c=c.parentNode;return c};TeaLeaf.Client.tlGetXPathFromNode=function(a){if(a==null)return null;var b=[];a=a;var c=null,d=null;for(var f in TeaLeaf.Client.Configuration.tlSpecialChildNodeTags)if(a.tagName.toString()==f)a=a.parentNode;for(;a!=window.document&&(a.id==null||a.id=="");){c=null;switch(a.tagName){case "TD":if(d=TeaLeaf.Client.tlFindAncestorByTag(a,"TR"))c=d.cells;break;case "TR":if(d=TeaLeaf.Client.tlFindAncestorByTag(a,"TABLE"))c=d.rows;break;case "OPTION":if(d=
TeaLeaf.Client.tlFindAncestorByTag(a,"SELECT"))c=d.options;break;default:d=a.parentNode;if(!d)d=window.document;c=d.childNodes;break}if(c==null)return null;var g=0;for(f=0;f<c.length;f++)if(c[f].nodeType==1&&c[f].tagName==a.tagName){if(c[f]==a){b[b.length]=[a.tagName.toUpperCase(),g];break}g++}a=d}if(a.id!=null&&a.id!="")b[b.length]=[a.id];a=[];for(f=b.length-1;f>=0;f--)a[a.length]=b[f].length>1?"['"+b[f][0]+"',"+b[f][1]+"]":"['"+b[f][0].toString().replace(/'/g,"\\'")+"']";return"["+a.join(",")+"]"};
TeaLeaf.Client.tlGetNodeFromXPath=function(a,b){if(a==null)return null;if(b)a=TeaLeaf.Event.tlXMLDecode(a);var c=eval(a);if(c==null)return null;for(var d=window.document,f=0;f<c.length;f++){found=false;if(c[f].length==1){d=document.getElementById(c[f]);if(d==null)return null}else{k=0;switch(d.tagName){case "TABLE":children=d.rows;break;case "TR":children=d.cells;break;case "SELECT":children=d.options;break;default:children=d.childNodes;break}for(var g=0;g<children.length;g++)if(children[g].nodeType==
1)if(children[g].tagName.toUpperCase()==c[f][0]){if(k==c[f][1]){d=children[g];found=true;break}k++}if(!found)return null}}return d};window.TeaLeaf_Client_tlGetNodeFromXPath=TeaLeaf.Client.tlGetNodeFromXPath;TeaLeaf.Client.tlAddEvent=function(a){if(!a)a=window.event;if(a.tealeafMarked!==true){var b=TeaLeaf.Client.tlGetEventSource(a);if(b){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!b.TeaLeafFocusTime)switch(a.type){case "keyup":case "change":case "click":case "dblclick":case "mousedown":b.TeaLeafFocusTime=
new Date;break}if(!(a.type=="blur"&&b.type=="application/x-shockwave-flash")){if(a.type=="click"&&TeaLeaf.Client.checkIsInput(b))TeaLeaf.Event.Configuration.tlidoflastvisitedcontrol=TeaLeaf.Client.tlGetName(b);if(a.type=="click"&&(b.tagName=="a"||b.tagName=="A")&&TeaLeaf.tlIsIE()){TeaLeaf.Client.Configuration.tlIEhref=false;if(b.href=="#"||b.href=="javascript:void(0);"||b.href=="javascript:void(0)"||b.href=="javascript:;")TeaLeaf.Client.Configuration.tlIEhref=true}var c=new TeaLeaf.Event("GUI",a.type),
d=["Name",b.name,"Id",b.id,"ElementType",b.type,"TagName",b.tagName,"AltKey",a.altKey?"True":null,"CtrlKey",a.ctrlKey?"True":null,"ShiftKey",a.shiftKey?"True":null,"NodeName",a.nodeName,"NodeValue",a.nodeValue,"XPath",TeaLeaf.Client.tlGetXPathFromNode(b)];c.tlAddData(d);d=TeaLeaf.Client.tlGetName(b);if(a.type=="blur"&&b.TeaLeafFocusTime){a=["TimeInControl",TeaLeaf.Event.tlDateDiff(new Date,b.TeaLeafFocusTime)];c.tlAddData(a);b.TeaLeafFocusTime=null}if(b.TeaLeafExclude)c.tlAddData(["Excluded","true"]);
else{a=TeaLeaf.Event.tlFormatXMLName(d);b=b.TeaLeafReplace?TeaLeaf.Client.tlReplaceValue(b):b.value;c.tlAddData(["ValueIn",a,a,b])}c.tlSend()}}}};TeaLeaf.Client.tlHandleFormSubmit=function(a){TeaLeaf.Client.Configuration.tlactiontype="Submit";TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!a)a=window.event;var b=TeaLeaf.Client.tlGetEventSource(a);if(b){var c;if(!b.name){var d=document.forms;for(c=0;c<d.length;c++)if(d[c]==b){b.name="Ordinal-"+c;break}}if(b.name){if(TeaLeaf.Client.tlIsReplace(b)){d=
TeaLeaf.Client.tlGetReplaceValue(b);var f=TeaLeaf.Client.tlGetName(b);d=["ValueIn",f,f,d];g.tlAddData(d)}var g=new TeaLeaf.Event("GUI",a.type);g.tlAddData(["Name",b.name,"Id",b.id,"ElementType",b.type,"TagName",b.tagName,"AltKey",a.altKey?"True":null,"CtrlKey",a.ctrlKey?"True":null,"ShiftKey",a.shiftKey?"True":null,"NodeName",a.nodeName,"NodeValue",a.nodeValue,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder]);a=b.getElementsByTagName("INPUT");g.tlAddData(["InputFieldCount",a.length]);g.tlPushXML("InputFields");
for(c=0;c<a.length;c++){b=a[c];if(b.name){g.tlPushXML("Field"+c);g.tlAddData(["Name",b.name,"Id",b.id,"ElementType",b.type,"TagName",b.tagName]);if(TeaLeaf.Client.tlIsExcluded(f))g.tlAddData(["Excluded","true"]);else if(TeaLeaf.Client.tlIsReplace(b.name)){d=TeaLeaf.Client.tlGetReplaceValue(b);f=TeaLeaf.Client.tlGetName(b);d=["ValueIn",f,f,d];g.tlAddData(d)}else{d=TeaLeaf.Event.tlFormatXMLName(b.name);g.tlAddData(["ValueIn",d,d,b.value])}g.tlPopXML()}}g.tlPopXML();g.tlSend();TeaLeaf.Event.Configuration.tlvisitorder=
""}}};TeaLeaf.Client.tlQueueResize=function(a){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendScroll();if(!a)a=window.event;if(a.clientX){TeaLeaf.ResizeClientX=a.clientX;TeaLeaf.ResizeClientY=a.clientY;TeaLeaf.ResizeScreenX=a.screenX;TeaLeaf.ResizeScreenY=a.screenY}else{TeaLeaf.ResizeClientX=a.target.width;TeaLeaf.ResizeClientY=a.target.height}};TeaLeaf.Client.tlHandleFormReset=function(a){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!a)a=window.event;
var b=TeaLeaf.Client.tlGetEventSource(a);if(b){var c;if(!b.name){var d=document.forms;for(c=0;c<d.length;c++)if(d[c]==b){b.name="Ordinal-"+c;break}}if(name!=null){if(TeaLeaf.Client.tlIsReplace(b)){c=TeaLeaf.Client.tlGetReplaceValue(b);d=TeaLeaf.Client.tlGetName(b);f.tlAddData(["ValueIn",d,d,c])}var f=new TeaLeaf.Event("GUI",a.type);f.tlAddData(["Name",b.name,"Id",b.id,"ElementType",b.type,"TagName",b.tagName,"AltKey",a.altKey?"True":null,"CtrlKey",a.ctrlKey?"True":null,"ShiftKey",a.shiftKey?"True":
null,"NodeName",a.nodeName,"NodeValue",a.nodeValue,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder]);f.tlSend();TeaLeaf.tlVisitOrder=""}}};TeaLeaf.Client.tlBeforeUnload=function(){if(!TeaLeaf.Client.tlBeforeUnloadFired){TeaLeaf.Client.tlBeforeUnloadFired=true;if(TeaLeaf.Client.Configuration.tlIEhref)TeaLeaf.Client.Configuration.tlIEhref=false;else{if(typeof TeaLeaf.Cookie!="undefined"&&TeaLeaf.Client.Configuration.tlStoreQueueInCookie){var a=new Date;a.setTime(a.getTime()+3E5);var b=TeaLeaf.Event.tlQueuedXML.replace(/(\r|\n)/g,
"").replace(/;/g,"%3B");TeaLeaf.Cookie.tlSetCookieValue("tlQueuedXML",b,a,"/")}if(TeaLeaf.Client.Configuration.tlbeforeunloadflag==true){TeaLeaf.Event.Configuration.tllastdwelltime=new Date;TeaLeaf.Client.Configuration.tlunloadflag=false;a=new TeaLeaf.Event("PERFORMANCE","BeforeUnload");TeaLeaf.Event.SetType=a.EventType;if(TeaLeaf.Event.SetSubType=="")TeaLeaf.Event.SetSubType=a.EventSubType;else TeaLeaf.Event.SetSubType+="; "+a.EventSubType;TeaLeaf.Event.Configuration.tlbeforeunloadflag=true;a.tlAddData(["MouseMove",
TeaLeaf.Client.tlHasUserMovement?"TRUE":"FALSE","Action",TeaLeaf.Client.Configuration.tlactiontype,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder]);TeaLeaf.Event.Configuration.tlasync=false;a.tlSend();TeaLeaf.Event.tlFlushQueue(true);TeaLeaf.Event.Configuration.tlvisitorder="";TeaLeaf.Client.tlDetachFromAllControls()}}}};TeaLeaf.Client.tlUnload=function(){if(TeaLeaf.Client.Configuration.tlunloadflag){TeaLeaf.Event.Configuration.tllastdwelltime=new Date;TeaLeaf.Client.Configuration.tlbeforeunloadflag=
false;var a=new TeaLeaf.Event("PERFORMANCE","Unload");TeaLeaf.Event.SetType=a.EventType;if(TeaLeaf.Event.SetSubType=="")TeaLeaf.Event.SetSubType=a.EventSubType;else TeaLeaf.Event.SetSubType+="; "+a.EventSubType;a.tlAddData(["MouseMove",TeaLeaf.Client.tlHasUserMovement?"TRUE":"FALSE","Action",TeaLeaf.Client.Configuration.tlactiontype,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder]);TeaLeaf.Event.Configuration.tlasync=false;a.tlSend();TeaLeaf.Event.tlFlushQueue(true);TeaLeaf.Event.Configuration.tlvisitorder=
"";TeaLeaf.Client.tlDetachFromAllControls()}};TeaLeaf.Client.tlAttachToAllControls=function(){TeaLeaf.Client.Configuration.tlcontrolsattached=true;TeaLeaf.Client.tlAttachToControls(window);try{var a;for(a=0;a<window.frames.length;a++)window!=window.frames[a]&&TeaLeaf.Client.tlAttachToControls(window.frames[a])}catch(b){}};TeaLeaf.Client.tlSingleAttach=function(){for(var a=TeaLeaf.Client.Configuration.tlSingleAttach,b=0;b<a.length;b++)if(a[b].domelementID&&a[b].domelementID!=""){var c=document.getElementById(a[b].domelementID);
if(c){var d=eval(a[b].tlhandler);TeaLeaf.Event.tlAddHandler(c,a[b].domevent,d,false)}}};TeaLeaf.Client.tlAttachToControls=function(a){try{TeaLeaf.Event.tlAddHandler(a,"beforeunload",eval(TeaLeaf.Client.tlBeforeUnload),false);TeaLeaf.Event.tlAddHandler(a,"unload",eval(TeaLeaf.Client.tlUnload),false);for(var b=TeaLeaf.Client.Configuration.tlWindowHandlers,c=0;c<b.length;c++)if(b[c].load==true){var d=eval(b[c].tlhandler);TeaLeaf.Event.tlAddHandler(a,b[c].domevent,d,false)}b=TeaLeaf.Client.Configuration.tlDocumentHandlers;
for(c=0;c<b.length;c++)if(b[c].load==true){d=eval(b[c].tlhandler);TeaLeaf.Event.tlAddHandler(a.document,b[c].domevent,d,false)}TeaLeaf.Client.tlProcessNode(a.document.body)}catch(f){}};TeaLeaf.Client.tlCheckAttach=function(a){if(!(a.TeaLeaf||a.TeaLeafExclude)){a.TeaLeaf=true;TeaLeaf.Client.Configuration.tlassignTLID&&TeaLeaf.Client.tlAddIdToControl(a);TeaLeaf.Client.tlMakeFieldBlockMap();switch(a.tagName){case "INPUT":case "SELECT":case "TEXTAREA":TeaLeaf.Client.Configuration.tlsendfocus&&TeaLeaf.Event.tlAddHandler(a,
"focus",TeaLeaf.Client.tlSetFocusTime,false);TeaLeaf.Client.Configuration.tlsendblur&&TeaLeaf.Event.tlAddHandler(a,"blur",TeaLeaf.Client.tlHandleBlur,false);TeaLeaf.Event.tlAddHandler(a,"change",TeaLeaf.Client.tlAddEvent,false);item_name=TeaLeaf.Client.tlGetName(a);if(item_name==null)break;lower_item_name=item_name.toLowerCase();map_item=TeaLeaf.Client.Configuration.tlFieldBlockMap[lower_item_name];if(map_item==null)break;if(map_item.tlfieldname==item_name||map_item.caseinsensitive&&map_item.tlfieldname==
lower_item_name){a.TeaLeafExclude=map_item.eventnovalue;a.TeaLeafReplace=map_item.eventvaluereplace.length>0}break}if(TeaLeaf.Client.Configuration.tlUniversalAttach)for(var b=TeaLeaf.Client.Configuration.tlDocumentHandlers,c=0;c<b.length;c++)b[c].load&&TeaLeaf.Event.tlAddHandler(a,b[c].domevent,eval(b[c].tlhandler),false)}};TeaLeaf.Client.tlCheckIndControls=function(a){try{if(a.document){for(var b=a.document.getElementsByTagName("INPUT"),c=0;c<b.length;c++)TeaLeaf.Client.tlCheckAttach(b[c]);b=a.document.getElementsByTagName("SELECT");
for(c=0;c<b.length;c++)TeaLeaf.Client.tlCheckAttach(b[c]);b=a.document.getElementsByTagName("BODY");if(b.length>0){b=b[0].getElementsByTagName("*");for(c=0;c<b.length;c++)TeaLeaf.Client.tlCheckAttach(b[c])}}}catch(d){}};TeaLeaf.Client.tlProcessNode=function(a,b){if(typeof a=="string")a=document.getElementById(a);if(a!=null)try{switch(a.tagName){case "INPUT":case "SELECT":case "TEXTAREA":TeaLeaf.Client.tlCheckAttach(a);break;default:TeaLeaf.Client.Configuration.tlUniversalAttach&&TeaLeaf.Client.tlTagNameAllowed(a.tagName)&&
TeaLeaf.Client.tlCheckAttach(a);break}if(!b){for(var c=["INPUT","SELECT","TEXTAREA"],d=0;d<c.length;d++){items=a.getElementsByTagName(c[d]);for(var f=0;f<items.length;f++)TeaLeaf.Client.tlCheckAttach(items[f])}if(TeaLeaf.Client.Configuration.tlUniversalAttach)if(TeaLeaf.Client.Configuration.tlExcludeTags){items=a.getElementsByTagName("*");for(d=0;d<items.length;d++)TeaLeaf.Client.tlTagNameAllowed(items[d].tagName)&&TeaLeaf.Client.tlCheckAttach(items[d])}else for(d in TeaLeaf.Client.Configuration.tlNodeTags){items=
a.getElementsByTagName(d);for(f=0;f<items.length;f++)TeaLeaf.Client.tlCheckAttach(items[f])}}}catch(g){}};TeaLeaf.Client.tlSetFocusTime=function(a){if(!a)a=window.event;var b=TeaLeaf.Client.tlGetEventSource(a);if(!(!b||b.type=="application/x-shockwave-flash"))if(b=TeaLeaf.Client.tlGetEventSource(a)){if(!b.TeaLeafFocusTime)b.TeaLeafFocusTime=new Date;TeaLeaf.Client.Configuration.tlsendfocus&&TeaLeaf.Client.tlAddEvent(a)}};TeaLeaf.Client.tlHandleBlur=function(a){if(!a)a=window.event;var b=TeaLeaf.Client.tlGetEventSource(a);
if(!(!b||b.type=="application/x-shockwave-flash")){TeaLeaf.Client.tlEndVisit(b);if(TeaLeaf.Client.checkIsInput(b))TeaLeaf.Event.Configuration.tlidoflastvisitedcontrol=TeaLeaf.Client.tlGetName(b);TeaLeaf.Client.Configuration.tlsendblur&&TeaLeaf.Client.tlAddEvent(a)}};TeaLeaf.Client.tlEndVisit=function(a){if(a.TeaLeafFocusTime){var b=TeaLeaf.Client.tlGetName(a);if(!b)b=(b=TeaLeaf.Client.tlGetAnchor(a,false))?"LEVEL"+b:"unnamed";a=TeaLeaf.Event.tlDateDiff(a.TeaLeafFocusTime,new Date);b=b+":"+a;TeaLeaf.Event.Configuration.tlvisitorder=
TeaLeaf.Event.Configuration.tlvisitorder!=""?TeaLeaf.Event.Configuration.tlvisitorder+";"+b:b}};TeaLeaf.Client.tlDetachFromAllControls=function(){TeaLeaf.Client.Configuration.tlcontrolsattached=false;TeaLeaf.Client.tlDetachFromControls(window);try{var a;for(a=0;a<window.frames.length;a++)TeaLeaf.Client.tlDetachFromControls(window.frames[a])}catch(b){}};TeaLeaf.Client.tlDetachFromControls=function(a){try{for(var b=TeaLeaf.Client.Configuration.tlWindowHandlers,c=0;c<b.length;c++){var d=eval(b[c].tlhandler);
TeaLeaf.Event.tlRemoveHandler(a,b[c].domevent,d,false)}b=TeaLeaf.Client.Configuration.tlDocumentHandlers;for(c=0;c<b.length;c++){d=eval(b[c].tlhandler);TeaLeaf.Event.tlRemoveHandler(a.document,b[c].domevent,d,false)}var f=a.document.getElementsByTagName("INPUT");for(c=0;c<f.length;c++){TeaLeaf.Event.tlRemoveHandler(f[c],"change",TeaLeaf.Client.tlAddEvent,false);TeaLeaf.Event.tlRemoveHandler(f[c],"blur",TeaLeaf.Client.tlHandleBlur,false);f[c].TeaLeaf=false}f=a.document.getElementsByTagName("SELECT");
for(c=0;c<f.length;c++){TeaLeaf.Event.tlRemoveHandler(f[c],"change",TeaLeaf.Client.tlAddEvent,false);TeaLeaf.Event.tlRemoveHandler(f[c],"blur",TeaLeaf.Client.tlHandleBlur,false);f[c].TeaLeaf=false}}catch(g){}};TeaLeaf.Client.tlAttachToControl=function(a,b,c){c?TeaLeaf.Event.tlAddHandler(a,b,c,false):TeaLeaf.Event.tlAddHandler(a,b,eval(TeaLeaf.Client.tlAddEvent),false)};TeaLeaf.Client.tlDetachFromControl=function(a,b,c){c?TeaLeaf.Event.tlRemoveHandler(a,b,c,false):TeaLeaf.Event.tlRemoveHandler(a,b,
eval(TeaLeaf.Client.tlAddEvent),false)};TeaLeaf.Client.tlMarkBlocked=function(a){TeaLeaf.Client.tlMakeFieldBlockMap();if(a==null)a=document.getElementsByTagName("INPUT");for(var b=0;b<a.length;b++){item_name=TeaLeaf.Client.tlGetName(a[b]);if(item_name!=null){lower_item_name=item_name.toLowerCase();map_item=TeaLeaf.Client.Configuration.tlFieldBlockMap[lower_item_name];if(map_item!=null)if(map_item.tlfieldname==item_name||map_item.caseinsensitive&&map_item.tlfieldname==lower_item_name){a[b].TeaLeafExclude=
map_item.eventnovalue;a[b].TeaLeafReplace=map_item.eventvaluereplace.length>0}}}};TeaLeaf.Client.tlScanForAdditions=function(){if(TeaLeaf.Client.Configuration.tlScheduledScan){TeaLeaf.Client.tlProcessNode(document.body);try{for(var a=0;a<window.frames.length;a++)TeaLeaf.Client.tlProcessNode(window.frames[a].document.body)}catch(b){}window.clearTimeout(TeaLeaf.Client.tlTimeoutID);TeaLeaf.Client.tlTimeoutID=window.setTimeout(TeaLeaf.Client.tlScanForAdditions,TeaLeaf.Client.Configuration.tlscanupdate)}};
TeaLeaf.Client.tlTagNameAllowed=function(a){if(a==null)return false;a=TeaLeaf.Client.Configuration.tlNodeTags[a];if(a==null)a=false;return TeaLeaf.Client.Configuration.tlExcludeTags?!a:a};TeaLeaf.Client.tlMakeFieldBlockMap=function(){if(TeaLeaf.Client.Configuration.tlFieldBlockMap==null){TeaLeaf.Client.Configuration.tlFieldBlockMap={};for(var a=TeaLeaf.Client.Configuration.tlFieldBlock,b=0;b<a.length;b++){name=a[b].tlfieldname;if(name!=null){name=name.toLowerCase();if(a[b].caseinsensitive)a[b].tlfieldname=
name;TeaLeaf.Client.Configuration.tlFieldBlockMap[name]=a[b]}}}};TeaLeaf.Client.tlStartListeners=function(){TeaLeaf.Client.tlAttachToAllControls();TeaLeaf.Client.tlSingleAttach()};TeaLeaf.Client.tlEndListeners=function(){TeaLeaf.Event.tlFlushQueue(true);TeaLeaf.Client.tlDetachFromAllControls()};TeaLeaf.Client.tlSendValueChange=function(a,b){var c=new TeaLeaf.Event("GUI",b);c.tlAddData(["Name",a.name,"Id",a.id,"ElementType",a.type]);var d=TeaLeaf.Client.tlGetName(a);d=TeaLeaf.Event.tlFormatXMLName(d);
var f=a.TeaLeafReplace?TeaLeaf.Client.tlReplaceValue(a):a.value;c.tlAddData(["ValueIn",d,d,f]);c.tlSend()};TeaLeaf.Client.tlSetup=function(){if(typeof TeaLeaf.Cookie!="undefined"){var a=TeaLeaf.Cookie.tlGetCookieValue("tlQueuedXML");if(a!=null&&a!="")TeaLeaf.Event.tlQueuedXML+=a.replace(/%3B/g,";")}TeaLeaf.Client.tlAttachToAllControls();TeaLeaf.Client.tlSingleAttach();window.OrigOpen=window.open;window.open=function(b,c,d,f){var g="blocked",h=window.OrigOpen(b,c,d,f);try{h.closed||(g="visible")}catch(i){TeaLeaf.Event.Configuration.tlshowexceptions&&
alert(i.name+": "+i.message+"\r\n\r\nPos 8")}var j=new TeaLeaf.Event("GUI","WindowOpen");b=["Status",g,"Url",escape(b),"Name",c,"Features",d,"Replace",f];j.tlAddData(b);j.tlSend();return h};window.clearTimeout(TeaLeaf.Client.tlTimeoutID);if(TeaLeaf.Client.Configuration.tlscanupdate>0)TeaLeaf.Client.tlTimeoutID=window.setTimeout(TeaLeaf.Client.tlScanForAdditions,TeaLeaf.Client.Configuration.tlscanupdate)};TeaLeaf.Client.CallInit=function(){TeaLeaf.Event.tlRemoveHandler(window,"beforeunload",eval(TeaLeaf.Client.tlBeforeUnload),
false);TeaLeaf.Event.tlRemoveHandler(window,"unload",eval(TeaLeaf.Client.tlUnload),false);TeaLeaf.addOnLoad(TeaLeaf.Client.tlSetup)};if(TeaLeaf.Client.Configuration.tlinit==false){TeaLeaf.Client.Configuration.tlinit=true;TeaLeaf.Client.CallInit()}};
