if(typeof TeaLeaf=="undefined"){var TeaLeaf={};TeaLeaf.tlStartLoad=new Date();if(typeof TeaLeaf.Configuration=="undefined"){TeaLeaf.Configuration={tlinit:false,tlversion:"2008.09.29.1",tlSDK:false}}}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(A){this.stackEnd--;return this[this.stackEnd]}}TeaLeaf.settlSDK=function(){TeaLeaf.Configuration.tlSDK=true};TeaLeaf.resettlSDK=function(){TeaLeaf.Configuration.tlSDK=false};TeaLeaf.tLoadObjs=new Array();TeaLeaf.addOnLoad=function(B,A){if(arguments.length==1){TeaLeaf.tLoadObjs.push(B)}else{if(arguments.length>1){TeaLeaf.tLoadObjs.push(B[A])}}};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"){if(typeof document.onreadystatechange=="function"){TeaLeaf.ReadyStateChange=document.onreadystatechange}else{TeaLeaf.ReadyStateChange=null}document.onreadystatechange=function(){if(document.readyState=="complete"){TeaLeaf.PageSetup()}if(TeaLeaf.ReadyStateChange){TeaLeaf.ReadyStateChange()}}}else{if(typeof window.onload=="function"){TeaLeaf.OnLoad=window.onload}else{TeaLeaf.OnLoad=null}window.onload=function(){TeaLeaf.PageSetup();if(TeaLeaf.OnLoad){TeaLeaf.OnLoad()}}}}}if(typeof TeaLeaf.Event=="undefined"){TeaLeaf.Event=function(B,C,A){this.date=new Date();if(C){this.EventType=B;this.EventSubType=C;if(A){this.EventSource=A}else{this.EventSource=""}}else{this.EventType="CUSTOM";this.EventSubType=B}};if(typeof TeaLeaf.Event.Configuration=="undefined"){TeaLeaf.Event.Configuration={tlinit:false,tlqueueevents:true,tlqueueeventstimer:30000,tlqueueeventsmaxsz:8192,tlshowexceptions:false,tlurl:"/tealeaf.htm",tlsecureurl:"/tealeaf.htm",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:1000000,height:1000000,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(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(){var A="text/xml";return A};TeaLeaf.Event.tlGetTeaLeafXEvent=function(){var A="ClientEvent";return A};TeaLeaf.Event.tlEventType=function(){return TeaLeaf.Event.SetType};TeaLeaf.Event.tlEventSubType=function(){return TeaLeaf.Event.SetSubType};TeaLeaf.Event.tlGetUrlPath=function(){var A=window.location.pathname;return A};TeaLeaf.Event.tlGetJSVersion=function(){return TeaLeaf.Configuration.tlversion};TeaLeaf.Event.tlResolutionType=function(C,D){var B=TeaLeaf.Event.Configuration.tlResolution;for(var A=0;A<B.length;A++){if(C<=B[A].width||D<=B[A].height){return B[A].type}}return B[length-1].type};TeaLeaf.Event.tlResolutionTypeBrowser=function(){var C=0;var B=0;if(window.innerWidth){C=window.innerWidth;B=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientWidth){C=document.documentElement.clientWidth;B=document.documentElement.clientHeight}else{if(document.body&&document.body.clientWidth){C=document.body.clientWidth;B=document.body.clientHeight}else{var A=document.getElementsByTagName("body");if(A.length>0){C=A[0].clientWidth;B=A[0].clientHeight}}}}var D=TeaLeaf.Event.tlResolutionType(C,B);return D};TeaLeaf.Event.tlGetRenderTime=function(){return TeaLeaf.Event.PageLoadMilliSecs};TeaLeaf.Event.tlGetElementCount=function(A){return document.getElementsByName(A).length};TeaLeaf.Event.tlBadImageCount=function(){var B=0;var C;for(C=0;C<document.images.length;C++){var A=document.images[C];if(!A.complete){B++;continue}if(typeof A.naturalWidth!="undefined"&&A.naturalWidth==0){B++}}return B};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(B,A){return Math.abs(B-A)};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(D){var C=document.cookie;var A=D+"=";var E=C.indexOf("; "+A);if(E==-1){E=C.indexOf(A);if(E!=0){return""}}else{E+=2}var B=document.cookie.indexOf(";",E);if(B==-1){B=C.length}return unescape(C.substring(E+A.length,B))};TeaLeaf.Event.tlSetHTTPHeaders=function(tlreq,tlheaderconfig){for(var i=0;i<tlheaderconfig.length;i++){if(tlheaderconfig[i].tlsethttpheader==true){tlreq.setRequestHeader(tlheaderconfig[i].tlreqhttpheadername,eval(tlheaderconfig[i].tlreqhttpheadervalue))}}};TeaLeaf.Event.tlGetPageId=function(){if(TeaLeaf.Event.Configuration.tlpageid){return TeaLeaf.Event.Configuration.tlpageid}if(TeaLeaf.Event.Configuration.tlpageidcookie){TeaLeaf.Event.Configuration.tlpageid=TeaLeaf.Event.tlGetCookie(TeaLeaf.Event.Configuration.tlpageidcookie);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();return TeaLeaf.Event.Configuration.tlpageid};TeaLeaf.Event.tlSendFailure=function(F,E,G){var C=new Date();var H=Date.UTC(C.getUTCFullYear(),C.getUTCMonth(),C.getUTCDate(),C.getUTCHours(),C.getUTCMinutes(),C.getUTCSeconds(),C.getUTCMilliseconds());var B;if(TeaLeaf.tlStartLoad){B=TeaLeaf.Event.tlDateDiff(C,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(E)+'" Message="'+TeaLeaf.Event.tlFormatXML(G)+'" TimeDuration="'+B+'" DateSince1970="'+H+'" />\r\n';try{TeaLeaf.Event.Configuration.tlasync=true;var D=new TeaLeaf.Event("INFO","EXCEPTION");D.tlSendXML(tlsendStr,true)}catch(A){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(A.name+": "+A.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(B){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=null}}}}return A};TeaLeaf.Event.TransportArray=new Array();TeaLeaf.Event.tlXMLHTTPObj=function(){var A=0;for(;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(B){var A=0;for(;A<TeaLeaf.Event.TransportArray.length;A++){if(B==TeaLeaf.Event.TransportArray[A]){TeaLeaf.Event.TransportArray[A]=null}}};TeaLeaf.Event.tlAddHandler=function(D,E,C,B){try{if(D.addEventListener){if(navigator.userAgent.toLowerCase().indexOf("safari")!=-1){D.addEventListener("on"+E,C,B)}else{D.addEventListener(E,C,B)}}else{if(D.attachEvent){D.attachEvent("on"+E,C)}}}catch(A){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(A.name+": "+A.message+"\r\n\r\nPos 4")}}};TeaLeaf.Event.tlRemoveHandler=function(D,E,C,B){try{if(D.removeEventListener){D.removeEventListener(E,C,B)}else{if(D.detachEvent){D.detachEvent("on"+E,C)}}}catch(A){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(A.name+": "+A.message+"\r\n\r\nPos 5")}}};TeaLeaf.Event.tlFlushQueue=function(E){var G=null;var D=TeaLeaf.Event.Configuration.tlqueueeventstimer;var C=D*3;if(TeaLeaf.Event.Configuration.tlusetopqueue){var B=new Date();var F=(B-top.TeaLeaf.Event.TimeSent);if(top.TeaLeaf.Event.tlQueuedXML){if(E||F>=D){G=top.TeaLeaf.Event.tlQueuedXML;top.TeaLeaf.Event.tlQueuedXML="";top.TeaLeaf.Event.TimeSent=B}}if(!G){if(!E&&F<(D/2)){if(D>=C){D=C}else{D=(D*3)/2}}return D}}else{if(!TeaLeaf.Event.tlQueuedXML){return D}G=TeaLeaf.Event.tlQueuedXML;TeaLeaf.Event.tlQueuedXML=""}var A=new TeaLeaf.Event("GUI","QUEUED");A.tlSendXML(G);return D};TeaLeaf.Event.prototype.tlPushXML=function(A){if(!this.XMLStack){this.XMLStack=new Array()}var B="  <"+A;if(this.XMLData){this.XMLData+=B}else{this.XMLData=B}};TeaLeaf.Event.prototype.tlPopXML=function(){if(this.XMLData){this.XMLData+=" />\r\n"}else{return false}};TeaLeaf.Event.prototype.tlAddData=function(A){var D="";if(this.XMLStack){for(var B=0;B<this.XMLStack.length;B++){D+="  "}}var C=[];for(var B=0;B<A.length;B+=2){name=A[B];tlValue=TeaLeaf.Event.tlFormatXML(A[B+1]);if(name&&tlValue){C[C.length]=D+" "+name+'="'+tlValue+'"'}}if(!this.XMLData){this.XMLData=""}this.XMLData+=C.join("");delete A};TeaLeaf.Event.prototype.tlSendXML=function(E,D){var C=TeaLeaf.Event.tlXMLHTTPObj();if(!C){return }try{var B=this.theUrl;C.onreadystatechange=function(F){if(C.readyState==2&&typeof TeaLeaf.Cookie!="undefined"){var H=new Date();H.setTime(H.getTime()-86400000);TeaLeaf.Cookie.tlSetCookieValue("tlQueuedXML","",H,"/")}if(C.readyState==4){try{if(C.status!=200&&C.status!=304){if(TeaLeaf.Event.Configuration.tlignoresendfailure==true){TeaLeaf.Event.Configuration.tlignoresendfailure=false;TeaLeaf.Event.tlSendFailure(B,B,"Status "+C.status+": "+C.statusText)}}}catch(G){}}};C.open("POST",B,TeaLeaf.Event.Configuration.tlasync);TeaLeaf.Event.tlSetHTTPHeaders(C,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet);if(TeaLeaf.Event.Configuration.tlinitflag==true){TeaLeaf.Event.tlSetHTTPHeaders(C,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit)}if(TeaLeaf.Event.Configuration.tlbeforeunloadflag==true){TeaLeaf.Event.tlSetHTTPHeaders(C,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload)}C.send(E)}catch(A){if(TeaLeaf.Event.Configuration.tlshowexceptions){if(A.name){alert(A.name+": "+A.message+"\r\n\r\nURL: "+this.theUrl+"\r\n\r\nPos 3 ")}else{alert(A+"\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,A)}TeaLeaf.Event.tlCleanXMLHTTPObj(C)}};TeaLeaf.Event.prototype.tlSend=function(B){if(this.XMLStack){while(this.XMLStack.length>0){this.tlPopXML()}}var C=Date.UTC(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate(),this.date.getUTCHours(),this.date.getUTCMinutes(),this.date.getUTCSeconds(),this.date.getUTCMilliseconds());var A;if(TeaLeaf.tlStartLoad){A=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}if(B){sendStr=sendStr+' PageId="'+TeaLeaf.Event.tlGetPageId()+'" TimeDuration="'+A+'" DateSince1970="'+C+'" >\r\n'+this.XMLData+"</ClientEvent>\r\n"}else{sendStr=sendStr+' PageId="'+TeaLeaf.Event.tlGetPageId()+'"'+this.XMLData+' TimeDuration="'+A+'" DateSince1970="'+C+'" />\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}}if(TeaLeaf.Event.Configuration.tlqueueeventsmaxsz<TeaLeaf.Event.tlQueuedXML.length){TeaLeaf.Event.tlFlushQueue()}return }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;");A=A.replace(/:/g,"&#58;");return A};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,'"');A=A.replace(/&#38;/g,"&");return A};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{if(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{if(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{if(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(A){return TeaLeaf.Event.Configuration.tlpageidcookie};TeaLeaf.Event.tlEventJSONCfgUtil=function(C,D,A){for(var B=0;B<C.length;B++){if(A=="all"){C[B].load=D}else{if(A==C[B].domevent){C[B].load=D}}}};TeaLeaf.Event.tlErrorHandler=function(D,C,A){var B=new Date();if(!A){A="unknown"}var F=new TeaLeaf.Event("INFO","EXCEPTION");var E=new Array("Message",D,"URL",escape(C),"Line",A);F.tlAddData(E);TeaLeaf.Event.Configuration.tlasync=true;F.tlSend();TeaLeaf.Event.tlFlushQueue();return false};TeaLeaf.Event.tlBeforeUnload=function(){if(TeaLeaf.Event.Configuration.tleventbeforeunloadflag==true){TeaLeaf.Event.Configuration.tleventunloadflag=false;var tlevt=new TeaLeaf.Event("PERFORMANCE","BeforeUnload");TeaLeaf.Event.SetType=tlevt.EventType;if(TeaLeaf.Event.SetSubType==""){TeaLeaf.Event.SetSubType=tlevt.EventSubType}else{TeaLeaf.Event.SetSubType+="; "+tlevt.EventSubType}TeaLeaf.Event.Configuration.tlbeforeunloadflag=true;TeaLeaf.Event.Configuration.tlignoresendfailure=true;TeaLeaf.Event.Configuration.tlasync=false;tlevt.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 tlevt=new TeaLeaf.Event("PERFORMANCE","Unload");TeaLeaf.Event.SetType=tlevt.EventType;if(TeaLeaf.Event.SetSubType==""){TeaLeaf.Event.SetSubType=tlevt.EventSubType}else{TeaLeaf.Event.SetSubType+="; "+tlevt.EventSubType}TeaLeaf.Event.Configuration.tlignoresendfailure=true;TeaLeaf.Event.Configuration.tlasync=false;tlevt.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(){if(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 timeAmount=TeaLeaf.Event.Configuration.tlqueueeventstimer;try{timeAmount=TeaLeaf.Event.tlFlushQueue()}catch(exc){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(exc.name+": "+exc.message+"\r\n\r\nPos 7")}}setTimeout("TeaLeaf.Event.tlTimerRoutine()",timeAmount)};setTimeout("TeaLeaf.Event.tlTimerRoutine()",TeaLeaf.Event.Configuration.tlqueueeventstimer)}TeaLeaf.Event.Loaded=true};var tmpUrl;if(window.location.protocol=="http:"){tmpUrl=TeaLeaf.Event.Configuration.tlurl}else{tmpUrl=TeaLeaf.Event.Configuration.tlsecureurl}if(tmpUrl.substr(0,1)=="/"){TeaLeaf.Event.prototype.theUrl=window.location.protocol+"//"+window.location.host+tmpUrl}else{TeaLeaf.Event.prototype.theUrl=window.location.href.substr(0,window.location.href.lastIndexOf("/")+1)+tmpUrl}if(TeaLeaf.Event.Configuration.tlinit==false){TeaLeaf.Event.Configuration.tlinit=true;TeaLeaf.Event.prototype.XMLData="";TeaLeaf.addOnLoad(TeaLeaf.Event.EventSetup)}}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(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(B){B.tlPushXML("Info");var A=new Array("PageLoadMilliSecs",TeaLeaf.Event.tlGetRenderTime(),"Version",TeaLeaf.Event.tlGetJSVersion(),"TimezoneOffset",B.date.getTimezoneOffset());B.tlAddData(A);B.tlPopXML()};TeaLeaf.Env.tlDOMDocumentInfo=function(C){C.tlPushXML("Document");var B=new Array("URL",document.URL,"Title",document.title,"Referer",document.referer,"ContentType",document.contentType,"LastModified",document.lastModified,"CharacterSet",document.characterSet,"Height",document.height,"Width",document.width);C.tlAddData(B);var A=new Array("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);C.tlAddData(A);C.tlPopXML()};TeaLeaf.Env.tlDOMWindowInfo=function(E){E.tlPushXML("Window");var D=new Array("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);E.tlAddData(D);if(window.innerHeight&&window.innerWidth){var B=new Array("ClientSize",window.innerHeight+"x"+window.innerWidth);E.tlAddData(B)}else{if(document.body){if(document.body.clientWidth&&document.body.clientHeight){var A=new Array("ClientSize",document.body.clientHeight+"x"+document.body.clientWidth);E.tlAddData(A)}}}var C=new Array("FullScreen",navigator.fullScreen,"Frames",window.frames.length);E.tlAddData(C);E.tlPopXML()};TeaLeaf.Env.tlDOMNavigatorInfo=function(B){B.tlPushXML("Navigator");var A=new Array("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);B.tlAddData(A);B.tlPopXML()};TeaLeaf.Env.tlDOMScreenInfo=function(B){B.tlPushXML("Screen");var A=new Array("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);B.tlAddData(A);B.tlPopXML()};TeaLeaf.Env.tlPluginInfo=function(H){if(window.ActiveXObject){for(var D=0;D<TeaLeaf.Env.Configuration.tlPlugins.length;D++){if(TeaLeaf.Env.Configuration.tlPlugins[D].tlenable){var E=TeaLeaf.Env.Configuration.tlPlugins[D].tlIEplugin;try{var B=new ActiveXObject(E);if(B){H.tlPushXML("Plugin");var G=new Array("pluginname",TeaLeaf.Env.Configuration.tlPlugins[D].tlpluginname,"version",TeaLeaf.Env.Configuration.tlPlugins[D].tlversion);H.tlAddData(G);H.tlPopXML()}}catch(F){}}}}else{for(var D=0;D<navigator.plugins.length;D++){for(var C=0;C<TeaLeaf.Env.Configuration.tlPlugins.length;C++){if(TeaLeaf.Env.Configuration.tlPlugins[C].tlenable){var A=navigator.plugins[D].name.substr(0,TeaLeaf.Env.Configuration.tlPlugins[C].tlpluginname.length);if(A==TeaLeaf.Env.Configuration.tlPlugins[C].tlpluginname){TeaLeaf.Env.Configuration.tlPlugins[C].tlenable=false;H.tlPushXML("Plugin");var G=new Array("pluginname",TeaLeaf.Env.Configuration.tlPlugins[C].tlpluginname,"version",TeaLeaf.Env.Configuration.tlPlugins[C].tlversion);H.tlAddData(G);H.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(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,tlScheduledScan:true,tlExcludeTags:true,tlUniversalAttach:false,tlStoreQueueInCookie:false,tlFieldBlock:[{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:"raceways",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"cordcovers",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"wireloom",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"braidedsleeving",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"networking",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"ties-clips-grommets",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"heatshrinktubing",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"racks-enclosures",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"power-distribution",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"wires-cables",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"cable-identification",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"cable-termination",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"desk-outlet",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"electricals",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"label-printer",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"fiber-optic",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"fire-protect",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"test-equipment",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"tools-n-cases",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"name-brands",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"PanduitCorp",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"BlackBoxCorp",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"LevitonCorp",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"CorningCables",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"GreenleeTextron",domevent:"mouseover",tlhandler:"TeaLeaf.Client.tlAddEvent"},{domelementID:"KleinTools",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}};TeaLeaf.Client.Configuration.tlIdCounter=new Array()}}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{if(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(B,A){if(B==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,true,A)}else{TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,true,A)}};TeaLeaf.Client.tlDisableAllEventHandlers=function(A){if(A){if(A==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,"all")}else{if(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(B,A){if(B==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,A)}else{TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,false,A)}};TeaLeaf.Client.tlClientJSONCfgUtil=function(C,D,A){for(var B=0;B<C.length;B++){if(A=="all"){C[B].load=D}else{if(A==C[B].domevent){C[B].load=D}}}};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(D){if((D.id&&D.id!="")||(D.name&&D.name!="")){return }var E=D.tagName;var F=TeaLeaf.Client.Configuration.tlIdCounter[E];if(F==undefined){TeaLeaf.Client.Configuration.tlIdCounter[E]=0}var A="_TL_"+E+"_"+TeaLeaf.Client.Configuration.tlIdCounter[E];var C=document.getElementById(A);var B=A;if(C){while(document.getElementById("_TL_"+E+"_"+TeaLeaf.Client.Configuration.tlIdCounter[E]++)){}}D.id=B;TeaLeaf.Client.Configuration.tlIdCounter[E]++};TeaLeaf.Client.tlFindinJSON=function(B,A){var D=TeaLeaf.Client.tlGetName(B);if(D){for(var C=0;C<A.length;C++){if(D==A[C].tlfieldname){return A[C]}}}};TeaLeaf.Client.tlIsReplace=function(A){if(!A){return false}if(typeof A=="object"){if(A.TeaLeafReplace){return true}}else{var C=document.getElementById(A);if(C.TeaLeafReplace==true){return true}if(!C){C=document.getElementsByName(A);for(var B=0;B<tlSilent.length;B++){if(C[B].TeaLeafReplace==true){return true}}}}if(A.type=="password"){return TeaLeaf.Client.Configuration.tlpassword==2}return false};TeaLeaf.Client.tlReplaceValue=function(B){var A=TeaLeaf.Client.tlGetName(B);TeaLeaf.Client.tlMakeFieldBlockMap();var C=TeaLeaf.Client.Configuration.tlFieldBlockMap[A.toLowerCase()];if(C==null){return""}if(C.eventvaluereplace.length>0){return C.eventvaluereplace}else{return""}};TeaLeaf.Client.tlIsExcluded=function(B){if(!B){return false}if(typeof B=="object"){if(B.TeaLeafExclude){return true}}else{var A=document.getElementById(B);if(A){if(A.TeaLeafExclude){return true}}else{A=document.getElementsByName(B);if(A){for(var C=0;C<A.length;C++){if(A[C].TeaLeafExclude){return true}}}}return false}if(B.type=="password"){return TeaLeaf.Client.Configuration.tlpassword==2}return false};TeaLeaf.Client.tlGetName=function(B){if(B==null){return null}var A=B.name;if(A&&A!=""){return A}var C=B.id;if(C&&C!=""){return C}return null};TeaLeaf.Client.tlGetEventSource=function(B){var A=null;if(B){if(B.srcElement){A=B.srcElement}else{A=B.target;if(A==null){A=B.explicitOriginalTarget;if(A==null){A=B.originalTarget}}}if(A&&(A.name==null||A.name=="")){if(A.parentNode&&A.parentNode.tagName){if(A.parentNode.tagName=="A"||A.parentNode.tagName=="LINK"){A=A.parentNode}}}}return A};TeaLeaf.Client.tlGetAnchor=function(C,B){if(C==null){return null}if(C.name&&C.name!=""){return null}var A;for(A=0;A<document.anchors.length;A++){if(document.anchors[A]==C){if(B){return"<AnchorElement>"+A+"</AnchorElement>\r\n"}else{return"Anchor-"+A}}}for(A=0;A<document.links.length;A++){if(document.links[A]==C){if(B){return"<LinkElement>"+A+"</LinkElement>\r\n"}else{return"Link-"+A}}}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(D){if(!D||D.length<=0){return null}var B="";if(!TeaLeaf.Event.tlNameStartChar(D.charCodeAt(0))){B="_"}var A=D.length;var C;for(C=0;C<A;C++){if(TeaLeaf.Event.tlNameChar(D.charCodeAt(C))){B=B+D.charAt(C)}else{B=B+"_"}}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(D){TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!D){D=window.event}if(D.keyCode<32){return }var C=TeaLeaf.Client.tlGetEventSource(D);if(!C){return }if(!C.TeaLeafFocusTime){C.TeaLeafFocusTime=new Date()}if(TeaLeaf.Client.tlQueuedKeySource){if(TeaLeaf.Client.tlQueuedKeySource!=C){if(TeaLeaf.Client.tlQueuedKeys&&TeaLeaf.Client.tlQueuedKeys.length>0){TeaLeaf.Client.tlSendKeys()}TeaLeaf.Client.tlQueuedKeySource=C}}else{TeaLeaf.Client.tlQueuedKeySource=C}var B=TeaLeaf.Client.tlGetName(C);var A=null;if(!B){A=TeaLeaf.Client.tlGetAnchor(C,false);if(!A){TeaLeaf.Client.tlQueuedKeySource=null;return }}else{if(TeaLeaf.Client.tlIsReplace(C)){TeaLeaf.Client.tlQueuedKeysCount++;return }if(TeaLeaf.Client.tlIsExcluded(C)){TeaLeaf.Client.tlQueuedKeys=null;TeaLeaf.Client.tlQueuedKeysCount++;return }}if(TeaLeaf.Client.tlQueuedKeys){if(TeaLeaf.Client.tlQueuedKeys.length>0){TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+";"}}if(D.ctrlKey){if(TeaLeaf.Client.tlQueuedKeys){TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+"ctrl-"}else{TeaLeaf.Client.tlQueuedKeys="ctrl-"}}if(D.altKey){if(TeaLeaf.Client.tlQueuedKeys){TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+"alt-"}else{TeaLeaf.Client.tlQueuedKeys="alt-"}}if(D.shiftKey){if(TeaLeaf.Client.tlQueuedKeys){TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+"shift-"}else{TeaLeaf.Client.tlQueuedKeys="shift-"}}TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+D.keyCode};TeaLeaf.Client.tlSendKeys=function(){if(!TeaLeaf.Client.tlQueuedKeySource||(!TeaLeaf.Client.tlQueuedKeys&&!TeaLeaf.Client.tlQueuedKeysCount)){return }var E=TeaLeaf.Client.tlQueuedKeySource;var H=TeaLeaf.Client.tlQueuedKeys;var L=TeaLeaf.Client.tlQueuedKeysCount;TeaLeaf.Client.tlQueuedKeySource=null;TeaLeaf.Client.tlQueuedKeys="";TeaLeaf.Client.tlQueuedKeysCount=0;var M=false;if(TeaLeaf.Client.tlIsReplace(E)){M=true;return }var J=false;if(TeaLeaf.Client.tlIsExcluded(E)){J=true;H=null}var A=TeaLeaf.Client.tlGetName(E);var C=null;if(A==null){C=TeaLeaf.Client.tlGetAnchor(E,false);if(C==null){return }}else{if(TeaLeaf.Client.tlIsExcluded(A)){return null}}var K=new TeaLeaf.Event("GUI","KeyUp");var B=new Array("Name",E.name,"Id",E.id,"Lev",C,"ElementType",E.type,"TagName",E.tagName,"KeyCount",L);K.tlAddData(B);if(J){var I=new Array("Excluded","true");K.tlAddData(I)}else{if(M){var G=TeaLeaf.Client.tlGetReplaceValue(E);var N=new Array("ValueIn",A,A,G,"KeyCode",H);K.tlAddData(N)}else{var F=TeaLeaf.Event.tlFormatXMLName(A);var D=new Array("ValueIn",F,F,E.value,"KeyCode",H);K.tlAddData(D)}}K.tlSend()};TeaLeaf.Client.tlSendResize=function(){if(!TeaLeaf.Client.ResizeClientX&&!TeaLeaf.Client.ResizeClientY){return }var B=new TeaLeaf.Event("GUI","Resize");var A=new Array("ClientX",TeaLeaf.Client.ResizeClientX,"ClientY",TeaLeaf.Client.ResizeClientY,"ScreenX",TeaLeaf.Client.ResizeScreenX,"ScreenY",TeaLeaf.Client.ResizeScreenY);B.tlAddData(A);TeaLeaf.Client.ResizeClientX=null;TeaLeaf.Client.ResizeClientY=null;TeaLeaf.Client.ResizeScreenX=null;TeaLeaf.Client.ResizeScreenY=null;B.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){return }var B=new TeaLeaf.Event("GUI","Scroll");var A=new Array("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);B.tlAddData(A);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;B.tlSend()};TeaLeaf.Client.tlFindAncestorByTag=function(B,A){var C=B.parentNode;while(C&&C!=window.document){if(C.nodeType!=1){continue}if(C.tagName==A){break}else{C=C.parentNode}}return C};TeaLeaf.Client.tlGetXPathFromNode=function(D){if(D==null){return null}var A=[];var H=D;var G=null;var F=null;while(H!=window.document&&(H.id==null||H.id=="")){G=null;F=null;switch(H.tagName){case"TD":if(F=TeaLeaf.Client.tlFindAncestorByTag(H,"TR")){G=F.cells}break;case"TR":if(F=TeaLeaf.Client.tlFindAncestorByTag(H,"TABLE")){G=F.rows}break;case"OPTION":if(F=TeaLeaf.Client.tlFindAncestorByTag(H,"SELECT")){G=F.options}default:F=H.parentNode;if(!F){F=window.document}G=F.childNodes;break}if(G==null){return null}var B=0;for(var C=0;C<G.length;C++){if(G[C].nodeType!=1){continue}if(G[C].tagName==H.tagName){if(G[C]==H){A[A.length]=[H.tagName,B];H=F;done=true;break}B++}}}if(H.id!=null&&H.id!=""){A[A.length]=[H.id]}var E=[];for(var C=A.length-1;C>=0;C--){if(A[C].length>1){E[E.length]="['"+A[C][0]+"',"+A[C][1]+"]"}else{E[E.length]="['"+A[C][0].replace(/'/g,"\\'")+"']"}}return"["+E.join(",")+"]"};TeaLeaf.Client.tlGetNodeFromXPath=function(path,decode){if(path==null){return null}if(decode){path=TeaLeaf.Event.tlXMLDecode(path)}var xpath=eval(path);if(xpath==null){return null}var cur_node=window.document;for(var i=0;i<xpath.length;i++){found=false;if(xpath[i].length==1){cur_node=document.getElementById(xpath[i]);if(cur_node==null){return null}}else{k=0;switch(cur_node.tagName){case"TABLE":children=cur_node.rows;break;case"TR":children=cur_node.cells;break;case"SELECT":children=cur_node.options;break;default:children=cur_node.childNodes;break}for(var j=0;j<children.length;j++){if(children[j].nodeType!=1){continue}if(children[j].tagName==xpath[i][0]){if(k==xpath[i][1]){cur_node=children[j];found=true;break}k++}}if(!found){return null}}}return cur_node};window.TeaLeaf_Client_tlGetNodeFromXPath=TeaLeaf.Client.tlGetNodeFromXPath;TeaLeaf.Client.tlAddEvent=function(G){if(!G){G=window.event}if(G.tealeafMarked===true){return }var F=TeaLeaf.Client.tlGetEventSource(G);if(!F){return }TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!F.TeaLeafFocusTime){switch(G.type){case"keyup":case"change":case"click":case"dblclick":case"mousedown":F.TeaLeafFocusTime=new Date();break}}if(G.type=="blur"&&F.type=="application/x-shockwave-flash"){return }if(G.type=="click"&&TeaLeaf.Client.checkIsInput(F)){TeaLeaf.Event.Configuration.tlidoflastvisitedcontrol=TeaLeaf.Client.tlGetName(F)}var J=new TeaLeaf.Event("GUI",G.type);var C=new Array("Name",F.name,"Id",F.id,"ElementType",F.type,"TagName",F.tagName,"AltKey",G.altKey?"True":null,"CtrlKey",G.ctrlKey?"True":null,"ShiftKey",G.shiftKey?"True":null,"NodeName",G.nodeName,"NodeValue",G.nodeValue,"XPath",TeaLeaf.Client.tlGetXPathFromNode(F));J.tlAddData(C);var A=TeaLeaf.Client.tlGetName(F);if(G.type=="blur"&&F.TeaLeafFocusTime){var B=new Date();var K=new Array("TimeInControl",TeaLeaf.Event.tlDateDiff(B,F.TeaLeafFocusTime));J.tlAddData(K);F.TeaLeafFocusTime=null}if(F.TeaLeafExclude){var I=new Array("Excluded","true");J.tlAddData(I)}else{var E=TeaLeaf.Event.tlFormatXMLName(A);var H=F.TeaLeafReplace?TeaLeaf.Client.tlReplaceValue(F):F.value;var D=new Array("ValueIn",E,E,H,"KeyCode",G.keyCode);J.tlAddData(D)}J.tlSend()};TeaLeaf.Client.tlHandleFormSubmit=function(L){TeaLeaf.Client.Configuration.tlactiontype="Submit";TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!L){L=window.event}var K=TeaLeaf.Client.tlGetEventSource(L);if(!K){return }var J;if(!K.name){var B=document.forms;for(J=0;J<B.length;J++){if(B[J]==K){K.name="Ordinal-"+J;break}}}if(!K.name){return }if(TeaLeaf.Client.tlIsReplace(K)){var M=TeaLeaf.Client.tlGetReplaceValue(K);var C=TeaLeaf.Client.tlGetName(K);var P=new Array("ValueIn",C,C,M);O.tlAddData(P)}var O=new TeaLeaf.Event("GUI",L.type);var G=new Array("Name",K.name,"Id",K.id,"ElementType",K.type,"TagName",K.tagName,"AltKey",L.altKey?"True":null,"CtrlKey",L.ctrlKey?"True":null,"ShiftKey",L.shiftKey?"True":null,"NodeName",L.nodeName,"NodeValue",L.nodeValue,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder);O.tlAddData(G);var F=K.getElementsByTagName("INPUT");var A=new Array("InputFieldCount",F.length);O.tlAddData(A);O.tlPushXML("InputFields");for(J=0;J<F.length;J++){var E=F[J];if(!E.name){continue}O.tlPushXML("Field"+J);var D=new Array("Name",E.name,"Id",E.id,"ElementType",E.type,"TagName",E.tagName);O.tlAddData(D);if(TeaLeaf.Client.tlIsExcluded(C)){var N=new Array("Excluded","true");O.tlAddData(N)}else{if(TeaLeaf.Client.tlIsReplace(E.name)){var M=TeaLeaf.Client.tlGetReplaceValue(E);var C=TeaLeaf.Client.tlGetName(E);var P=new Array("ValueIn",C,C,M);O.tlAddData(P)}else{var I=TeaLeaf.Event.tlFormatXMLName(E.name);var H=new Array("ValueIn",I,I,E.value);O.tlAddData(H)}}O.tlPopXML()}O.tlPopXML();O.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(E){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!E){E=window.event}var D=TeaLeaf.Client.tlGetEventSource(E);if(!D){return }var C;if(!D.name){var A=document.forms;for(C=0;C<A.length;C++){if(A[C]==D){D.name="Ordinal-"+C;break}}}if(name==null){return }if(TeaLeaf.Client.tlIsReplace(D)){var F=TeaLeaf.Client.tlGetReplaceValue(D);var G=TeaLeaf.Client.tlGetName(D);var I=new Array("ValueIn",G,G,F);H.tlAddData(I)}var H=new TeaLeaf.Event("GUI",E.type);var B=new Array("Name",D.name,"Id",D.id,"ElementType",D.type,"TagName",D.tagName,"AltKey",E.altKey?"True":null,"CtrlKey",E.ctrlKey?"True":null,"ShiftKey",E.shiftKey?"True":null,"NodeName",E.nodeName,"NodeValue",E.nodeValue,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder);H.tlAddData(B);H.tlSend();TeaLeaf.tlVisitOrder=""};TeaLeaf.Client.tlBeforeUnload=function(){if(TeaLeaf.Client.tlBeforeUnloadFired){return }TeaLeaf.Client.tlBeforeUnloadFired=true;if(typeof TeaLeaf.Cookie!="undefined"&&TeaLeaf.Client.Configuration.tlStoreQueueInCookie){var C=new Date();C.setTime(C.getTime()+300000);var B=TeaLeaf.Event.tlQueuedXML.replace(/(\r|\n)/g,"").replace(/;/g,"%3B");TeaLeaf.Cookie.tlSetCookieValue("tlQueuedXML",B,C,"/")}if(TeaLeaf.Client.Configuration.tlbeforeunloadflag==true){TeaLeaf.Event.Configuration.tllastdwelltime=new Date();TeaLeaf.Client.Configuration.tlunloadflag=false;var D=new TeaLeaf.Event("PERFORMANCE","BeforeUnload");TeaLeaf.Event.SetType=D.EventType;if(TeaLeaf.Event.SetSubType==""){TeaLeaf.Event.SetSubType=D.EventSubType}else{TeaLeaf.Event.SetSubType+="; "+D.EventSubType}TeaLeaf.Event.Configuration.tlbeforeunloadflag=true;var A=new Array("MouseMove",TeaLeaf.Client.tlHasUserMovement?"TRUE":"FALSE","Action",TeaLeaf.Client.Configuration.tlactiontype,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder);D.tlAddData(A);TeaLeaf.Event.Configuration.tlasync=false;D.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 B=new TeaLeaf.Event("PERFORMANCE","Unload");TeaLeaf.Event.SetType=B.EventType;if(TeaLeaf.Event.SetSubType==""){TeaLeaf.Event.SetSubType=B.EventSubType}else{TeaLeaf.Event.SetSubType+="; "+B.EventSubType}var A=new Array("MouseMove",TeaLeaf.Client.tlHasUserMovement?"TRUE":"FALSE","Action",TeaLeaf.Client.Configuration.tlactiontype,"VisitOrder",TeaLeaf.Event.Configuration.tlvisitorder);B.tlAddData(A);TeaLeaf.Event.Configuration.tlasync=false;B.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++){if(window==window.frames[A]){continue}TeaLeaf.Client.tlAttachToControls(window.frames[A])}}catch(B){}};TeaLeaf.Client.tlSingleAttach=function(){var tldomsingleelements=TeaLeaf.Client.Configuration.tlSingleAttach;for(var i=0;i<tldomsingleelements.length;i++){if(tldomsingleelements[i].domelementID&&tldomsingleelements[i].domelementID!=""){var tlelement=document.getElementById(tldomsingleelements[i].domelementID);if(tlelement){var func=eval(tldomsingleelements[i].tlhandler);TeaLeaf.Event.tlAddHandler(tlelement,tldomsingleelements[i].domevent,func,false)}}}};TeaLeaf.Client.tlAttachToControls=function(win){try{TeaLeaf.Event.tlAddHandler(win,"beforeunload",eval(TeaLeaf.Client.tlBeforeUnload),false);TeaLeaf.Event.tlAddHandler(win,"unload",eval(TeaLeaf.Client.tlUnload),false);var handlers=TeaLeaf.Client.Configuration.tlWindowHandlers;for(var i=0;i<handlers.length;i++){if(handlers[i].load==true){var func=eval(handlers[i].tlhandler);TeaLeaf.Event.tlAddHandler(win,handlers[i].domevent,func,false)}}handlers=TeaLeaf.Client.Configuration.tlDocumentHandlers;for(var i=0;i<handlers.length;i++){if(handlers[i].load==true){var func=eval(handlers[i].tlhandler);TeaLeaf.Event.tlAddHandler(win.document,handlers[i].domevent,func,false)}}TeaLeaf.Client.tlProcessNode(win.document.body)}catch(e){}};TeaLeaf.Client.tlCheckAttach=function(control){if(control.TeaLeaf||control.TeaLeafExclude){return }control.TeaLeaf=true;if(TeaLeaf.Client.Configuration.tlassignTLID){TeaLeaf.Client.tlAddIdToControl(control)}TeaLeaf.Client.tlMakeFieldBlockMap();switch(control.tagName){case"INPUT":case"SELECT":case"TEXTAREA":if(TeaLeaf.Client.Configuration.tlsendfocus){TeaLeaf.Event.tlAddHandler(control,"focus",TeaLeaf.Client.tlSetFocusTime,false)}if(TeaLeaf.Client.Configuration.tlsendblur){TeaLeaf.Event.tlAddHandler(control,"blur",TeaLeaf.Client.tlHandleBlur,false)}TeaLeaf.Event.tlAddHandler(control,"change",TeaLeaf.Client.tlAddEvent,false);item_name=TeaLeaf.Client.tlGetName(control);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)){control.TeaLeafExclude=map_item.eventnovalue;control.TeaLeafReplace=map_item.eventvaluereplace.length>0}break}if(TeaLeaf.Client.Configuration.tlUniversalAttach){var handlers=TeaLeaf.Client.Configuration.tlDocumentHandlers;for(var i=0;i<handlers.length;i++){if(handlers[i]["load"]){TeaLeaf.Event.tlAddHandler(control,handlers[i]["domevent"],eval(handlers[i]["tlhandler"]),false)}}}};TeaLeaf.Client.tlCheckIndControls=function(D){try{if(D.document){var A=D.document.getElementsByTagName("INPUT");for(var B=0;B<A.length;B++){TeaLeaf.Client.tlCheckAttach(A[B])}A=D.document.getElementsByTagName("SELECT");for(var B=0;B<A.length;B++){TeaLeaf.Client.tlCheckAttach(A[B])}A=D.document.getElementsByTagName("BODY");if(A.length>0){A=A[0].getElementsByTagName("*");for(var B=0;B<A.length;B++){TeaLeaf.Client.tlCheckAttach(A[B])}}}}catch(C){}};TeaLeaf.Client.tlProcessNode=function(F,B){if(typeof (F)=="string"){F=document.getElementById(F)}if(F==null){return }try{switch(F.tagName){case"INPUT":case"SELECT":case"TEXTAREA":TeaLeaf.Client.tlCheckAttach(F);break;default:if(TeaLeaf.Client.Configuration.tlUniversalAttach&&TeaLeaf.Client.tlTagNameAllowed(F.tagName)){TeaLeaf.Client.tlCheckAttach(F)}break}if(!B){var D=["INPUT","SELECT","TEXTAREA"];for(var C=0;C<D.length;C++){items=F.getElementsByTagName(D[C]);for(var A=0;A<items.length;A++){TeaLeaf.Client.tlCheckAttach(items[A])}}if(TeaLeaf.Client.Configuration.tlUniversalAttach){if(TeaLeaf.Client.Configuration.tlExcludeTags){items=F.getElementsByTagName("*");for(var C=0;C<items.length;C++){if(TeaLeaf.Client.tlTagNameAllowed(items[C].tagName)){TeaLeaf.Client.tlCheckAttach(items[C])}}}else{for(var C in TeaLeaf.Client.tlNodeTags){items=F.getElementsByTagName(C);for(var A=0;A<items.length;A++){TeaLeaf.Client.tlCheckAttach(items[A])}}}}}}catch(E){}};TeaLeaf.Client.tlSetFocusTime=function(B){if(!B){B=window.event}var A=TeaLeaf.Client.tlGetEventSource(B);if(!A||A.type=="application/x-shockwave-flash"){return }var A=TeaLeaf.Client.tlGetEventSource(B);if(!A){return }if(!A.TeaLeafFocusTime){A.TeaLeafFocusTime=new Date()}if(TeaLeaf.Client.Configuration.tlsendfocus){TeaLeaf.Client.tlAddEvent(B)}};TeaLeaf.Client.tlHandleBlur=function(B){if(!B){B=window.event}var A=TeaLeaf.Client.tlGetEventSource(B);if(!A||A.type=="application/x-shockwave-flash"){return }TeaLeaf.Client.tlEndVisit(A);if(TeaLeaf.Client.checkIsInput(A)){TeaLeaf.Event.Configuration.tlidoflastvisitedcontrol=TeaLeaf.Client.tlGetName(A)}if(TeaLeaf.Client.Configuration.tlsendblur){TeaLeaf.Client.tlAddEvent(B)}};TeaLeaf.Client.tlEndVisit=function(C){if(C.TeaLeafFocusTime){var A=TeaLeaf.Client.tlGetName(C);if(!A){A=TeaLeaf.Client.tlGetAnchor(C,false);if(A){A="LEVEL"+A}else{A="unnamed"}}var D=TeaLeaf.Event.tlDateDiff(C.TeaLeafFocusTime,new Date());var B=A+":"+D;if(TeaLeaf.Event.Configuration.tlvisitorder.length>0){TeaLeaf.Event.Configuration.tlvisitorder=TeaLeaf.Event.Configuration.tlvisitorder+";"+B}else{TeaLeaf.Event.Configuration.tlvisitorder=B}}};TeaLeaf.Client.tlDetachFromAllControls=function(){TeaLeaf.Client.Configuration.tlcontrolsattached=false;TeaLeaf.Client.tlDetachFromControls(window);try{var B;for(B=0;B<window.frames.length;B++){var A=window.frames[B];TeaLeaf.Client.tlDetachFromControls(A)}}catch(C){}};TeaLeaf.Client.tlDetachFromControls=function(win){try{var handlers=TeaLeaf.Client.Configuration.tlWindowHandlers;for(var i=0;i<handlers.length;i++){var func=eval(handlers[i].tlhandler);TeaLeaf.Event.tlRemoveHandler(win,handlers[i].domevent,func,false)}handlers=TeaLeaf.Client.Configuration.tlDocumentHandlers;for(var i=0;i<handlers.length;i++){var func=eval(handlers[i].tlhandler);TeaLeaf.Event.tlRemoveHandler(win.document,handlers[i].domevent,func,false)}var items=win.document.getElementsByTagName("INPUT");var i;for(i=0;i<items.length;i++){TeaLeaf.Event.tlRemoveHandler(items[i],"change",TeaLeaf.Client.tlAddEvent,false);TeaLeaf.Event.tlRemoveHandler(control,"focus",TeaLeaf.Client.tlSetFocusTime,false);TeaLeaf.Event.tlRemoveHandler(control,"blur",TeaLeaf.Client.tlHandleBlur,false);items[i].TeaLeaf=false}items=win.document.getElementsByTagName("SELECT");for(i=0;i<items.length;i++){TeaLeaf.Event.tlRemoveHandler(items[i],"change",TeaLeaf.Client.tlAddEvent,false);TeaLeaf.Event.tlRemoveHandler(control,"focus",TeaLeaf.Client.tlSetFocusTime,false);TeaLeaf.Event.tlRemoveHandler(control,"blur",TeaLeaf.Client.tlHandleBlur,false);items[i].TeaLeaf=false}}catch(e){}};TeaLeaf.Client.tlAttachToControl=function(domelement,eventtype,eventHandler){if(eventHandler){TeaLeaf.Event.tlAddHandler(domelement,eventtype,eventHandler,false)}else{TeaLeaf.Event.tlAddHandler(domelement,eventtype,eval(TeaLeaf.Client.tlAddEvent),false)}};TeaLeaf.Client.tlDetachFromControl=function(domelement,eventtype,eventHandler){if(eventHandler){TeaLeaf.Event.tlRemoveHandler(domelement,eventtype,eventHandler,false)}else{TeaLeaf.Event.tlRemoveHandler(domelement,eventtype,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){continue}lower_item_name=item_name.toLowerCase();map_item=TeaLeaf.Client.Configuration[lower_item_name];if(map_item==null){continue}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){return }TeaLeaf.Client.tlProcessNode(document.body);try{for(var B=0;B<window.frames.length;B++){var A=window.frames[B];TeaLeaf.Client.tlProcessNode(A.document.body)}}catch(C){}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}var B=TeaLeaf.Client.Configuration.tlNodeTags[A];if(B==null){B=false}if(TeaLeaf.Client.Configuration.tlExcludeTags){return !B}else{return B}};TeaLeaf.Client.tlMakeFieldBlockMap=function(){if(TeaLeaf.Client.Configuration.tlFieldBlockMap!=null){return }TeaLeaf.Client.Configuration.tlFieldBlockMap={};var B=TeaLeaf.Client.Configuration.tlFieldBlock;for(var A=0;A<B.length;A++){name=B[A]["tlfieldname"];if(name==null){continue}else{name=name.toLowerCase()}if(B[A]["caseinsensitive"]){B[A]["tlfieldname"]=name}TeaLeaf.Client.Configuration.tlFieldBlockMap[name]=B[A]}};TeaLeaf.Client.tlStartListeners=function(){TeaLeaf.Client.tlAttachToAllControls();TeaLeaf.Client.tlSingleAttach()};TeaLeaf.Client.tlEndListeners=function(){TeaLeaf.Event.tlFlushQueue(true);TeaLeaf.Client.tlDetachFromAllControls()};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(C,B,H,D){var F=arguments.length;var G="blocked";var J=window.OrigOpen(C,B,H,D);try{if(!J.closed){G="visible"}}catch(K){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(K.name+": "+K.message+"\r\n\r\nPos 8")}}var I=new TeaLeaf.Event("GUI","WindowOpen");var E=new Array("Status",G,"Url",escape(C),"Name",B,"Features",H,"Replace",D);I.tlAddData(E);I.tlSend();return J};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()}};