if(typeof TeaLeaf=="undefined"){var TeaLeaf={};TeaLeaf.Private={};TeaLeaf.tlStartLoad=new Date();if(typeof TeaLeaf.Configuration=="undefined"){TeaLeaf.Configuration={tlinit:false,tlversion:"2009.11.17.1",tlSDK:false}}if(TeaLeaf.$C==null){TeaLeaf.$C=function(a){return a}}}if(typeof TeaLeaf.Event=="undefined"){TeaLeaf.Event=function(b,a,c){this.date=new Date();if(a){this.EventType=b;this.EventSubType=a;if(c){this.EventSource=c}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:"/tealeafui",tlsecureurl:"/tealeafui",tleventcount:0,tlexceptioncount:0,tlpageid:"",tlinitflag:false,tlbeforeunloadflag:false,tlusetopqueue:false,tllastdwelltime:"",tlidoflastvisitedcontrol:"",tleventunloadflag:true,tleventbeforeunloadflag:true,tlcatcherrors:true,tlcatchpopups:false,tlignoresendfailure:true,tlasync:true,tlvisitorder:"",t1970:0,tlXP:"",tlXPCount:0,tlXPTable:"",tlmaxeventcount:100,tlmaxeventexception:10,tlResolution:[{width:799,height:599,type:0,displayText:"small"},{width:800,height:600,type:1,displayText:"800x600"},{width:1024,height:600,type:2,displayText:"1024x600"},{width:1024,height:760,type:3,displayText:"1024x760"},{width:1280,height:800,type:4,displayText:"1280x800"},{width:1280,height:1024,type:5,displayText:"1280x1024"},{width:1440,height:900,type:6,displayText:"1440x900"},{width:1680,height:1050,type:7,displayText:"1680x1050"},{width:1920,height:1200,type:8,displayText:"1920x1200"},{width:1000000,height:1000000,type:9,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-Cui-Exceptions",tlsethttpheader:true,tlreqhttpheadervalue:"TeaLeaf.Event.tlGetExceptionCount()"},{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:false,tlExcludeTags:true,tlUniversalAttach:false,tlStoreQueueInCookie:false,tlFieldBlock:[{tlfieldname:"pword",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"pin",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"cvv2",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"card_no",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"card_startmonth",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"card_startyear",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"card_expirymonth",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"card_expiryyear",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"bib_pin",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"vfy_bib_pin",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"issue_no",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"response_1",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"response_2",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"answer",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"Sort_Code_1",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"Sort_Code_2",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"Sort_Code_3",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true},{tlfieldname:"Acct_No",caseinsensitive:true,eventvaluereplace:"",eventnovalue:true}],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:true,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:true,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(b){this[this.stackEnd]=b;this.stackEnd++}}if(!Array.prototype.pop){Array.prototype.pop=function(b){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.makeRandomString=function(j){var l="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^*()_+|=-][}{;,./?";var i="";for(var g=0;g<j;g++){var h=Math.floor(Math.random()*l.length);i+=l.charAt(h)}return i};TeaLeaf.tLoadObjs=[];TeaLeaf.addOnLoad=function(c,d){if(arguments.length==1){TeaLeaf.tLoadObjs.push(c)}else{if(arguments.length>1){TeaLeaf.tLoadObjs.push(c[d])}}};TeaLeaf.PageSetup=function(){if(TeaLeaf.Configuration.tlSDK==false){for(var b=0;b<TeaLeaf.tLoadObjs.length;b++){TeaLeaf.tLoadObjs[b]()}}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(TeaLeaf.Event&&TeaLeaf.Event.Configuration){try{if(typeof TeaLeaf_PageID=="undefined"){TeaLeaf_PageID=null}}catch(e){TeaLeaf_PageID=null}TeaLeaf.Event.tlQueuedXML="";TeaLeaf.Event.tlQueuedXPXML="";TeaLeaf.Event.tlGetContentType=function(){var b="text/xml";return b};TeaLeaf.Event.tlGetTeaLeafXEvent=function(){var b=TeaLeaf.$C("ClientEvent");return b};TeaLeaf.Event.tlEventType=function(){return TeaLeaf.Event.SetType};TeaLeaf.Event.tlEventSubType=function(){return TeaLeaf.Event.SetSubType};TeaLeaf.Event.tlGetUrlPath=function(){var b=window.location.pathname;return b};TeaLeaf.Event.tlGetJSVersion=function(){return TeaLeaf.Configuration.tlversion};TeaLeaf.Event.tlResolutionType=function(h,g){var i=TeaLeaf.Event.Configuration.tlResolution;for(var f=0;f<i.length;f++){if(h<=i[f].width||g<=i[f].height){return i[f].type}}return i[i.length-1].type};TeaLeaf.Event.tlResolutionTypeBrowser=function(){var f=0;var g=0;if(window.innerWidth){f=window.innerWidth;g=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientWidth){f=document.documentElement.clientWidth;g=document.documentElement.clientHeight}else{if(document.body&&document.body.clientWidth){f=document.body.clientWidth;g=document.body.clientHeight}else{var i=document.getElementsByTagName("body");if(i.length>0){f=i[0].clientWidth;g=i[0].clientHeight}}}}var h=TeaLeaf.Event.tlResolutionType(f,g);return h};TeaLeaf.Event.tlGetRenderTime=function(){return TeaLeaf.Event.PageLoadMilliSecs};TeaLeaf.Event.tlGetElementCount=function(b){return document.getElementsByName(b).length};TeaLeaf.Event.tlBadImageCount=function(){var d=0;var g;for(g=0;g<document.images.length;g++){var f=document.images[g];if(!f.complete){d++;continue}if(typeof f.naturalWidth!="undefined"&&f.naturalWidth==0){d++}}return d};TeaLeaf.Event.tlGetEventCount=function(){return TeaLeaf.Event.Configuration.tleventcount};TeaLeaf.Event.tlGetSendStringBytes=function(b){return b.length};TeaLeaf.Event.tlGetExceptionCount=function(){return(TeaLeaf.Event.Configuration.tlcatcherrors?TeaLeaf.Event.Configuration.tlexceptioncount:null)};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(c,d){return Math.abs(c-d)};TeaLeaf.Event.tlGetVisitOrder=function(){return TeaLeaf.Event.Configuration.tlvisitorder};TeaLeaf.Event.tlFormatXML=function(b){if(b){if(b.replace){return b.replace(/&/g,"&amp;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}return b}return""};TeaLeaf.Event.tlGetCookie=function(l){var g=document.cookie;var i=l+"=";var j=g.indexOf("; "+i);if(j==-1){j=g.indexOf(i);if(j!=0){return""}}else{j+=2}var h=document.cookie.indexOf(";",j);if(h==-1){h=g.length}return unescape(g.substring(j+i.length,h))};TeaLeaf.Event.tlSetHTTPHeaders=function(tlreq,tlheaderconfig){for(var i=0;i<tlheaderconfig.length;i++){if(tlheaderconfig[i].tlsethttpheader==true){var headerValue=eval(tlheaderconfig[i].tlreqhttpheadervalue);if(headerValue!=null){tlreq.setRequestHeader(tlheaderconfig[i].tlreqhttpheadername,headerValue)}}}};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(r,q,n){var j=new Date();var m=Date.UTC(j.getUTCFullYear(),j.getUTCMonth(),j.getUTCDate(),j.getUTCHours(),j.getUTCMinutes(),j.getUTCSeconds(),j.getUTCMilliseconds());var o;if(TeaLeaf.tlStartLoad){o=TeaLeaf.Event.tlDateDiff(j,TeaLeaf.tlStartLoad)}TeaLeaf.Event.Configuration.tleventcount++;TeaLeaf.Event.Configuration.tlexceptioncount++;tlsendStr="<"+TeaLeaf.$C("ClientEvent")+" "+TeaLeaf.$C("Count")+'="'+TeaLeaf.Event.Configuration.tleventcount+'" '+TeaLeaf.$C("Type")+'="'+TeaLeaf.$C("INFO")+'" '+TeaLeaf.$C("SubType")+'="'+TeaLeaf.$C("EXCEPTION")+'" '+TeaLeaf.$C("PageId")+'="'+TeaLeaf.Event.tlGetPageId()+'" '+TeaLeaf.$C("FailedUrl")+'="'+TeaLeaf.Event.tlFormatXML(q)+'" '+TeaLeaf.$C("Message")+'="'+TeaLeaf.Event.tlFormatXML(n)+'" '+TeaLeaf.$C("TimeDuration")+'="'+o+'" '+TeaLeaf.$C("DateSince1970")+'="'+m+'" />\r\n';try{TeaLeaf.Event.Configuration.tlasync=true;var p=new TeaLeaf.Event(TeaLeaf.$C("INFO"),TeaLeaf.$C("EXCEPTION"));p.tlSendXML(tlsendStr,true)}catch(l){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(l.name+": "+l.message+"\r\n\r\nPos 4")}}};TeaLeaf.Event.tlGetTransport=function(){var d;if(window.XMLHttpRequest){try{d=new XMLHttpRequest()}catch(c){d=null}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){d=null}}}}return d};TeaLeaf.Event.TransportArray=[];TeaLeaf.Event.tlXMLHTTPObj=function(){var b=0;for(;b<TeaLeaf.Event.TransportArray.length;b++){if(TeaLeaf.Event.TransportArray[b]&&TeaLeaf.Event.TransportArray[b].readyState>0){if(TeaLeaf.Event.TransportArray[b].readyState==4){TeaLeaf.Event.TransportArray[b].abort();TeaLeaf.Event.TransportArray[b].onreadystatechange=new function(){};return TeaLeaf.Event.TransportArray[b]}}else{TeaLeaf.Event.TransportArray[b]=TeaLeaf.Event.tlGetTransport();return TeaLeaf.Event.TransportArray[b]}}TeaLeaf.Event.TransportArray[b]=TeaLeaf.Event.tlGetTransport();return TeaLeaf.Event.TransportArray[b]};TeaLeaf.Event.tlCleanXMLHTTPObj=function(c){var d=0;for(;d<TeaLeaf.Event.TransportArray.length;d++){if(c==TeaLeaf.Event.TransportArray[d]){TeaLeaf.Event.TransportArray[d]=null}}};TeaLeaf.Event.tlAddHandler=function(g,i,j,l){try{if(!g){return}if(g.addEventListener){g.addEventListener(i,j,l)}else{if(g.attachEvent){g.attachEvent("on"+i,j)}else{}}}catch(h){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(h.name+": "+h.message+"\r\n\r\nPos 4")}}};TeaLeaf.Event.tlRemoveHandler=function(g,i,j,l){try{if(!g){return}if(g.removeEventListener){g.removeEventListener(i,j,l)}else{if(g.detachEvent){g.detachEvent("on"+i,j)}}}catch(h){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(h.name+": "+h.message+"\r\n\r\nPos 5")}}};TeaLeaf.Event.tlFlushQueue=function(n){var l=null;var i=TeaLeaf.Event.Configuration.tlqueueeventstimer;var o=i*3;if(TeaLeaf.Event.Configuration.tlusetopqueue){var p=new Date();var m=(p-top.TeaLeaf.Event.TimeSent);if(top.TeaLeaf.Event.tlQueuedXML){if(n||m>=i){l=top.TeaLeaf.Event.tlQueuedXML;top.TeaLeaf.Event.tlQueuedXML="";top.TeaLeaf.Event.TimeSent=p}}if(!l){if(!n&&m<(i/2)){if(i>=o){i=o}else{i=(i*3)/2}}return i}}else{if(!TeaLeaf.Event.tlQueuedXML){return i}l=TeaLeaf.Event.tlQueuedXML;TeaLeaf.Event.tlQueuedXML=""}var j=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("QUEUED"));j.tlSendXML(l);return i};TeaLeaf.Event.prototype.tlPushXML=function(f,g){if(!this.XMLStack){this.XMLStack=[]}if(g){}else{var d="  <"+f+" ";if(this.XMLData){this.XMLData+=d}else{this.XMLData=d}}};TeaLeaf.Event.prototype.tlPopXML=function(){if(this.XMLData){this.XMLData+="/>\r\n"}else{return false}};TeaLeaf.Event.prototype.tlAddData=function(i){var j="";if(this.XMLStack){for(var m=0;m<this.XMLStack.length;m++){j+="  "}}var l=[];for(var m=0;m<i.length;m+=2){var n=i[m];var h=TeaLeaf.Event.tlFormatXML(i[m+1]);if(n&&h){l[l.length]=j+n+'="'+h+'" '}}if(!this.XMLData){this.XMLData=""}this.XMLData+=l.join("");i=null};TeaLeaf.Event.prototype.tlSendXML=function(m,o){var p=TeaLeaf.Event.tlXMLHTTPObj();if(!p){return}try{var j=this.theUrl;p.onreadystatechange=function(c){if(p.readyState==2&&typeof TeaLeaf.Cookie!="undefined"){var a=new Date();a.setTime(a.getTime()-86400000);TeaLeaf.Cookie.tlSetCookieValue("tlQueuedXML","",a,"/")}if(p.readyState==4){try{if(p.status!=200&&p.status!=304){if(TeaLeaf.Event.Configuration.tlignoresendfailure==true){TeaLeaf.Event.Configuration.tlignoresendfailure=false;TeaLeaf.Event.tlSendFailure(j,j,"Status "+p.status+": "+p.statusText)}}}catch(b){}}};p.open("POST",j,TeaLeaf.Event.Configuration.tlasync);TeaLeaf.Event.tlSetHTTPHeaders(p,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet);if(TeaLeaf.Event.Configuration.tlinitflag==true){TeaLeaf.Event.tlSetHTTPHeaders(p,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit)}if(TeaLeaf.Event.Configuration.tlbeforeunloadflag==true){TeaLeaf.Event.tlSetHTTPHeaders(p,TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload)}var r=new Date();var n=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds());var q="<"+TeaLeaf.$C("ClientEventSet")+" "+TeaLeaf.$C("PostTimeStamp")+'="'+n+'" >';m=q+m+"</"+TeaLeaf.$C("ClientEventSet")+">";p.send(m)}catch(l){if(TeaLeaf.Event.Configuration.tlshowexceptions){if(l.name){alert(l.name+": "+l.message+"\r\n\r\nURL: "+this.theUrl+"\r\n\r\nPos 3 ")}else{alert(l+"\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,l)}TeaLeaf.Event.tlCleanXMLHTTPObj(p)}};TeaLeaf.Event.prototype.tlSend=function(f){TeaLeaf.Event.Configuration.tleventcount++;if(this.XMLStack){while(this.XMLStack.length>0){this.tlPopXML()}}if(TeaLeaf.Event.Configuration.tleventcount>TeaLeaf.Event.Configuration.tlmaxeventcount){TeaLeaf.Event.tlFlushQueue();return}var d=Date.UTC(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate(),this.date.getUTCHours(),this.date.getUTCMinutes(),this.date.getUTCSeconds(),this.date.getUTCMilliseconds());sendStr="<"+TeaLeaf.$C("ClientEvent")+" "+TeaLeaf.$C("Count")+'="'+TeaLeaf.Event.Configuration.tleventcount+'" '+TeaLeaf.$C("Type")+'="'+this.EventType+'" '+TeaLeaf.$C("SubType")+'="'+this.EventSubType+'" ';if(this.EventSource){sendStr+=TeaLeaf.$C("Source")+'="'+this.EventSource+'" '}sendStr+=TeaLeaf.$C("PageId")+'="'+TeaLeaf.Event.tlGetPageId()+'" ';if(!f){sendStr+=this.XMLData}if(TeaLeaf.tlStartLoad){sendStr+=TeaLeaf.$C("TimeDuration")+'="'+TeaLeaf.Event.tlDateDiff(this.date,TeaLeaf.tlStartLoad)+'" '}sendStr+=TeaLeaf.$C("DateSince1970")+'="'+d+'" ';if(f){sendStr+=">\r\n"+this.XMLData+"</"+TeaLeaf.$C("ClientEvent")+">\r\n"}else{sendStr+="/>\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(g){}this.XMLData=""};TeaLeaf.Event.tlXMLEncode=function(b){if(b==null){return b}b=b.replace(/&/g,"&#38;");b=b.replace(/"/g,"&#34;");b=b.replace(/'/g,"&#39;");b=b.replace(/:/g,"&#58;");return b};TeaLeaf.Event.tlXMLDecode=function(b){if(b==null){return b}b=b.replace(/&#58;/g,":");b=b.replace(/&#39;/g,"'");b=b.replace(/&#34;/g,'"');b=b.replace(/&#38;/g,"&");return b};TeaLeaf.Event.tlEnableAllHTTPHeaders=function(b){if(b){if(b=="info"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,true,"all")}else{if(b=="init"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,true,"all")}else{if(b=="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(d,c){if(d=="info"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,true,c)}else{if(d=="init"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,true,c)}else{if(d=="beforeunload"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload,true,c)}}}};TeaLeaf.Event.tlDisableAllHTTPHeaders=function(b){if(b){if(b=="info"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,false,"all")}else{if(b=="init"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,false,"all")}else{if(b=="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(b){TeaLeaf.Event.Configuration.tlqueueeventstimer=b};TeaLeaf.Event.tlGetQueueEventTime=function(){return TeaLeaf.Event.Configuration.tlqueueeventstimer};TeaLeaf.Event.tlSetQueueEventMaxSize=function(b){TeaLeaf.Event.Configuration.tlqueueeventsmaxsz=b};TeaLeaf.Event.tlGetQueueEventMaxSize=function(){return TeaLeaf.Event.Configuration.tlqueueeventsmaxsz};TeaLeaf.Event.tlSetPostURL=function(b){TeaLeaf.Event.Configuration.tlurl=b};TeaLeaf.Event.tlGetPostURL=function(){return TeaLeaf.Event.Configuration.tlurl};TeaLeaf.Event.tlEventJSONCfgUtil=function(h,i,g){for(var f=0;f<h.length;f++){if(g=="all"){h[f].load=i}else{if(g==h[f].domevent){h[f].load=i}}}};TeaLeaf.Event.tlErrorHandler=function(m,n,i){TeaLeaf.Event.Configuration.tlexceptioncount++;if(TeaLeaf.Event.Configuration.tlexceptioncount>TeaLeaf.Event.Configuration.tlmaxeventexception){return}if((typeof m!=="string")&&!n){return false}var h=new Date();if(!i){i="-"}var j=new TeaLeaf.Event(TeaLeaf.$C("INFO"),TeaLeaf.$C("EXCEPTION"));var l=[TeaLeaf.$C("Message"),m,TeaLeaf.$C("URL"),escape(n),TeaLeaf.$C("Line"),i];j.tlAddData(l);TeaLeaf.Event.Configuration.tlasync=true;j.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(TeaLeaf.$C("PERFORMANCE"),TeaLeaf.$C("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(TeaLeaf.$C("PERFORMANCE"),TeaLeaf.$C("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){if(typeof window.onerror!=="function"){window.onerror=TeaLeaf.Event.tlErrorHandler}}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)}var tlnow=new Date();var t1970=Date.UTC(tlnow.getUTCFullYear(),tlnow.getUTCMonth(),tlnow.getUTCDate(),tlnow.getUTCHours(),tlnow.getUTCMinutes(),tlnow.getUTCSeconds(),tlnow.getUTCMilliseconds());TeaLeaf.Event.Configuration.t1970=t1970;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(TeaLeaf.Env&&TeaLeaf.Env.Configuration){TeaLeaf.Env.tlSendPageSummary=function(){if(TeaLeaf.Configuration.tlSDK||TeaLeaf.Env.Configuration.tlinitpost!=true){return}TeaLeaf.Env.Configuration.tlinitpost=false;var b=new TeaLeaf.Event(TeaLeaf.$C("PERFORMANCE"),TeaLeaf.$C("INIT"));TeaLeaf.Event.PageLoadMilliSecs=TeaLeaf.Event.tlDateDiff(TeaLeaf.tlStartLoad,b.date);TeaLeaf.Event.SetType=b.EventType;if(TeaLeaf.Event.SetSubType==""){TeaLeaf.Event.SetSubType=b.EventSubType}else{TeaLeaf.Event.SetSubType+="; "+b.EventSubType}TeaLeaf.Event.Configuration.tlinitflag=true;TeaLeaf.Env.tlInfo(b);TeaLeaf.Env.tlDOMDocumentInfo(b);TeaLeaf.Env.tlDOMWindowInfo(b);TeaLeaf.Env.tlDOMScreenInfo(b);TeaLeaf.Env.tlPluginInfo(b);b.tlSend(true)};TeaLeaf.Env.tlInfo=function(c){c.tlPushXML(TeaLeaf.$C("Info"));var d=[TeaLeaf.$C("PageLoadMilliSecs"),TeaLeaf.Event.tlGetRenderTime(),TeaLeaf.$C("Version"),TeaLeaf.Event.tlGetJSVersion(),TeaLeaf.$C("TimezoneOffset"),c.date.getTimezoneOffset()];c.tlAddData(d);c.tlPopXML()};TeaLeaf.Env.tlDOMDocumentInfo=function(g){g.tlPushXML(TeaLeaf.$C("Document"));var d=[TeaLeaf.$C("Title"),document.title,TeaLeaf.$C("Referer"),document.referer,TeaLeaf.$C("ContentType"),document.contentType,TeaLeaf.$C("LastModified"),document.lastModified,TeaLeaf.$C("CharacterSet"),document.characterSet,TeaLeaf.$C("Height"),document.height,TeaLeaf.$C("Width"),document.width];g.tlAddData(d);var f=[TeaLeaf.$C("Anchors"),document.anchors.length,TeaLeaf.$C("Applets"),document.applets.length,TeaLeaf.$C("Embeds"),document.embeds.length,TeaLeaf.$C("Forms"),document.forms.length,TeaLeaf.$C("Images"),document.images.length,TeaLeaf.$C("BadImages"),TeaLeaf.Event.tlBadImageCount(),TeaLeaf.$C("Links"),document.links.length,TeaLeaf.$C("Plugins"),document.plugins.length];g.tlAddData(f);g.tlPopXML()};TeaLeaf.Env.tlDOMWindowInfo=function(h){h.tlPushXML(TeaLeaf.$C("Window"));var i=[TeaLeaf.$C("WindowHref"),escape(window.location.href),TeaLeaf.$C("WindowProtocol"),window.location.protocol,TeaLeaf.$C("WindowHost"),window.location.host,TeaLeaf.$C("WindowHostName"),window.location.hostname,TeaLeaf.$C("WindowPort"),window.location.port,TeaLeaf.$C("WindowPathName"),window.location.pathname];h.tlAddData(i);if(window.innerHeight&&window.innerWidth){h.tlAddData([TeaLeaf.$C("ClientSize"),(window.innerHeight+"x"+window.innerWidth)])}else{if(document.body){if(document.body.clientWidth&&document.body.clientHeight){h.tlAddData([TeaLeaf.$C("ClientSize"),(document.body.clientHeight+"x"+document.body.clientWidth)])}}}var f=[TeaLeaf.$C("FullScreen"),navigator.fullScreen,TeaLeaf.$C("Frames"),window.frames.length];if(typeof window.sessionStorage==="object"){var g=window.sessionStorage.TLTWID;if(g==null){g=TeaLeaf.makeRandomString(6);window.sessionStorage.TLTWID=g}h.tlAddData([TeaLeaf.$C("WindowId"),g])}h.tlAddData(f);h.tlPopXML()};TeaLeaf.Env.tlDOMNavigatorInfo=function(c){c.tlPushXML(TeaLeaf.$C("Navigator"));var d=[TeaLeaf.$C("AppCodeName"),navigator.appCodeName,TeaLeaf.$C("AppName"),navigator.appName,TeaLeaf.$C("AppVersion"),navigator.appVersion,TeaLeaf.$C("BrowserLanguage"),navigator.browserLanguage,TeaLeaf.$C("CookieEnabled"),navigator.cookieEnabled,TeaLeaf.$C("CPUClass"),navigator.cpuClass,TeaLeaf.$C("Language"),navigator.language,TeaLeaf.$C("OSCPU"),navigator.oscpu,TeaLeaf.$C("Platform"),navigator.platform,TeaLeaf.$C("Product"),navigator.product,TeaLeaf.$C("SystemLanguage"),navigator.systemLanguage,TeaLeaf.$C("UserAgent"),navigator.userAgent,TeaLeaf.$C("UserLanguage"),navigator.userLanguage,TeaLeaf.$C("Vendor"),navigator.vendor,TeaLeaf.$C("VendorSub"),navigator.vendorSub];c.tlAddData(d);c.tlPopXML()};TeaLeaf.Env.tlDOMScreenInfo=function(c){c.tlPushXML(TeaLeaf.$C("Screen"));var d=[TeaLeaf.$C("AvailHeight"),screen.availHeight,TeaLeaf.$C("AvailLeft"),screen.availLeft,TeaLeaf.$C("AvailTop"),screen.availTop,TeaLeaf.$C("AvailWidth"),screen.availWidth,TeaLeaf.$C("BufferDepth"),screen.bufferDepth,TeaLeaf.$C("ColorDepth"),screen.colorDepth,TeaLeaf.$C("DeviceXDPI"),screen.deviceXDPI,TeaLeaf.$C("DeviceYDPI"),screen.deviceYDPI,TeaLeaf.$C("FontSmoothingEnabled"),screen.fontSmoothingEnabled,TeaLeaf.$C("Height"),screen.height,TeaLeaf.$C("Left"),screen.left,TeaLeaf.$C("LogicalXDPI"),screen.logicalXDPI,TeaLeaf.$C("LogicalYDPI"),screen.logicalYDPI,TeaLeaf.$C("Top"),screen.top,TeaLeaf.$C("UpdateInterval"),screen.updateInterval,TeaLeaf.$C("Width"),screen.width];c.tlAddData(d);c.tlPopXML()};TeaLeaf.Env.tlPluginInfo=function(m){if(window.ActiveXObject){for(var q=0;q<TeaLeaf.Env.Configuration.tlPlugins.length;q++){if(!TeaLeaf.Env.Configuration.tlPlugins[q].tlenable){continue}var i=TeaLeaf.Env.Configuration.tlPlugins[q].tlIEplugin;try{var j=new ActiveXObject(i);if(j){m.tlPushXML(TeaLeaf.$C("Plugin"));var n=[TeaLeaf.$C("Pluginname"),TeaLeaf.Env.Configuration.tlPlugins[q].tlpluginname,TeaLeaf.$C("Version"),TeaLeaf.Env.Configuration.tlPlugins[q].tlversion];m.tlAddData(n);m.tlPopXML()}}catch(o){}}}else{for(var q=0;q<navigator.plugins.length;q++){for(var r=0;r<TeaLeaf.Env.Configuration.tlPlugins.length;r++){if(!TeaLeaf.Env.Configuration.tlPlugins[r].tlenable){continue}var p=navigator.plugins[q].name.substr(0,TeaLeaf.Env.Configuration.tlPlugins[r].tlpluginname.length);if(p==TeaLeaf.Env.Configuration.tlPlugins[r].tlpluginname){TeaLeaf.Env.Configuration.tlPlugins[r].tlenable=false;m.tlPushXML(TeaLeaf.$C("Plugin"));var n=[TeaLeaf.$C("Pluginname"),TeaLeaf.Env.Configuration.tlPlugins[r].tlpluginname,TeaLeaf.$C("Version"),TeaLeaf.Env.Configuration.tlPlugins[r].tlversion];m.tlAddData(n);m.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(b){if(b){if(b==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,true,"all")}else{if(b==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(c,d){if(c==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,true,d)}else{TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,true,d)}};TeaLeaf.Client.tlDisableAllEventHandlers=function(b){if(b){if(b==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,"all")}else{if(b==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(c,d){if(c==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,d)}else{TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,false,d)}};TeaLeaf.Client.tlClientJSONCfgUtil=function(h,i,g){for(var f=0;f<h.length;f++){if(g=="all"){h[f].load=i}else{if(g==h[f].domevent){h[f].load=i}}}};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(m){if((m.id&&m.id!="")||(m.name&&m.name!="")){return}var l=m.tagName;var j=TeaLeaf.Client.Configuration.tlIdCounter[l];if(j==undefined){TeaLeaf.Client.Configuration.tlIdCounter[l]=0}var i="_TL_"+l+"_"+TeaLeaf.Client.Configuration.tlIdCounter[l];var n=document.getElementById(i);var h=i;if(n){while(document.getElementById("_TL_"+l+"_"+TeaLeaf.Client.Configuration.tlIdCounter[l]++)){}}m.id=h;TeaLeaf.Client.Configuration.tlIdCounter[l]++};TeaLeaf.Client.tlFindinJSON=function(g,i){var h=TeaLeaf.Client.tlGetName(g);if(h){for(var f=0;f<i.length;f++){if(h==i[f].tlfieldname){return i[f]}}}};TeaLeaf.Client.tlIsReplace=function(d){if(!d){return false}if(typeof d=="object"){if(d.TeaLeafReplace){return true}}else{var f=document.getElementById(d);if(f&&f.TeaLeafReplace==true){return true}if(!f){f=document.getElementsByName(d);if(f){for(var g=0;g<f.length;g++){if(f[g].TeaLeafReplace==true){return true}}}}}if(d.type=="password"){return TeaLeaf.Client.Configuration.tlpassword==2}return false};TeaLeaf.Client.tlReplaceValue=function(d){var f=TeaLeaf.Client.tlGetName(d);TeaLeaf.Client.tlMakeFieldBlockMap();var g=TeaLeaf.Client.Configuration.tlFieldBlockMap[f.toLowerCase()];if(g==null){return""}if(g.eventvaluereplace.length>0){return g.eventvaluereplace}else{return""}};TeaLeaf.Client.tlIsExcluded=function(d){if(!d){return false}if(typeof d=="object"){if(d.TeaLeafExclude){return true}}else{var f=document.getElementById(d);if(f){if(f.TeaLeafExclude){return true}}else{f=document.getElementsByName(d);if(f){for(var g=0;g<f.length;g++){if(f[g].TeaLeafExclude){return true}}}}return false}if(d.type=="password"){return TeaLeaf.Client.Configuration.tlpassword==2}return false};TeaLeaf.Client.tlGetName=function(g){if(g==null){return null}var d=g.id;if(d&&d!=""){return d}var f=g.name;if(f&&f!=""){return f}return null};TeaLeaf.Client.tlGetEventSource=function(c){var d=null;if(c){if(c.srcElement){d=c.srcElement}else{d=c.target;if(d==null){d=c.explicitOriginalTarget;if(d==null){d=c.originalTarget}}}if(d&&(d.name==null||d.name=="")){if(d.parentNode&&d.parentNode.tagName){if(d.parentNode.tagName=="A"||d.parentNode.tagName=="LINK"){d=d.parentNode}}}}return d};TeaLeaf.Client.tlGetAnchor=function(g,d){if(g==null){return null}if(g.name&&g.name!=""){return null}var f;for(f=0;f<document.anchors.length;f++){if(document.anchors[f]==g){if(d){return"<AnchorElement>"+f+"</AnchorElement>\r\n"}else{return"Anchor-"+f}}}for(f=0;f<document.links.length;f++){if(document.links[f]==g){if(d){return"<LinkElement>"+f+"</LinkElement>\r\n"}else{return"Link-"+f}}}return null};TeaLeaf.Client.checkIsInput=function(b){if(typeof(b)=="string"){b=document.getElementById(b)}switch(b.tagName){case"INPUT":case"SELECT":case"TEXTAREA":return true}return false};TeaLeaf.Event.tlFormatXMLName=function(h){if(!h||h.length<=0){return null}var f="";if(!TeaLeaf.Event.tlNameStartChar(h.charCodeAt(0))){f="_"}var g=h.length;var i;for(i=0;i<g;i++){if(TeaLeaf.Event.tlNameChar(h.charCodeAt(i))){f=f+h.charAt(i)}else{f=f+"_"}}return f};TeaLeaf.Event.tlNameStartChar=function(b){return(b>=65&&b<=90)||b==95||(b>=97&&b<=122)||(b>=192&&b<=214)||(b>=216&&b<=246)||(b>=248&&b<=767)||(b>=880&&b<=893)||(b>=895&&b<=8191)||(b>=8204&&b<=8205)||(b>=8304&&b<=8591)||(b>=11264&&b<=12271)||(b>=12289&&b<=55295)||(b>=63744&&b<=64975)||(b>=65008&&b<=65533)};TeaLeaf.Event.tlNameChar=function(b){return TeaLeaf.Event.tlNameStartChar(b)||b==45||b==46||(b>=48&&b<=57)||b==183||(b>=768&&b<=879)||(b>=8255&&b<=8256)};TeaLeaf.Client.tlQueuedKeys="";TeaLeaf.Client.tlQueueKey=function(h){TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!h){h=window.event}if(h.keyCode<32){return}var i=TeaLeaf.Client.tlGetEventSource(h);if(!i){return}if(!i.TeaLeafFocusTime){i.TeaLeafFocusTime=new Date()}if(TeaLeaf.Client.tlQueuedKeySource){if(TeaLeaf.Client.tlQueuedKeySource!=i){if(TeaLeaf.Client.tlQueuedKeys&&TeaLeaf.Client.tlQueuedKeys.length>0){TeaLeaf.Client.tlSendKeys()}TeaLeaf.Client.tlQueuedKeySource=i}}else{TeaLeaf.Client.tlQueuedKeySource=i}var f=TeaLeaf.Client.tlGetName(i);var g=null;if(!f){f=TeaLeaf.Client.tlGetXPathFromNode(i);if(!f){g=TeaLeaf.Client.tlGetAnchor(i,false);if(!g){TeaLeaf.Client.tlQueuedKeySource=null;return}}else{TeaLeaf.Client.tlQueuedKeySource=i}}else{if(TeaLeaf.Client.tlIsReplace(i)){TeaLeaf.Client.tlQueuedKeysCount++;return}if(TeaLeaf.Client.tlIsExcluded(i)){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(h.ctrlKey){if(TeaLeaf.Client.tlQueuedKeys){TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+"ctrl-"}else{TeaLeaf.Client.tlQueuedKeys="ctrl-"}}if(h.altKey){if(TeaLeaf.Client.tlQueuedKeys){TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+"alt-"}else{TeaLeaf.Client.tlQueuedKeys="alt-"}}if(h.shiftKey){if(TeaLeaf.Client.tlQueuedKeys){TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+"shift-"}else{TeaLeaf.Client.tlQueuedKeys="shift-"}}TeaLeaf.Client.tlQueuedKeys=TeaLeaf.Client.tlQueuedKeys+h.keyCode};TeaLeaf.Client.tlSendKeys=function(){if(!TeaLeaf.Client.tlQueuedKeySource||(!TeaLeaf.Client.tlQueuedKeys&&!TeaLeaf.Client.tlQueuedKeysCount)){return}var y=TeaLeaf.Client.tlQueuedKeySource;var v=TeaLeaf.Client.tlQueuedKeys;var p=TeaLeaf.Client.tlQueuedKeysCount;TeaLeaf.Client.tlQueuedKeySource=null;TeaLeaf.Client.tlQueuedKeys="";TeaLeaf.Client.tlQueuedKeysCount=0;var r=false;if(TeaLeaf.Client.tlIsReplace(y)){r=true;return}var t=false;if(TeaLeaf.Client.tlIsExcluded(y)){t=true;v=null}var B=TeaLeaf.Client.tlGetName(y);var A=null;if(B&&TeaLeaf.Client.tlIsExcluded(B)){return null}var s=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("KeyUp"));var u=[TeaLeaf.$C("Name"),y.name,TeaLeaf.$C("Id"),y.id,TeaLeaf.$C("Lev"),A,TeaLeaf.$C("ElementType"),y.type,TeaLeaf.$C("TagName"),y.tagName,TeaLeaf.$C("XPath"),TeaLeaf.Client.tlGetXPathFromNode(y),TeaLeaf.$C("KeyCount"),p];s.tlAddData(u);if(t){s.tlAddData([TeaLeaf.$C("Excluded"),TeaLeaf.$C("True")])}else{if(r){var w=TeaLeaf.Client.tlGetReplaceValue(y);var q=[TeaLeaf.$C("ValueIn"),B,B,w,TeaLeaf.$C("KeyCode"),v];s.tlAddData(q)}else{var z=TeaLeaf.Event.tlFormatXMLName(B);if(z==null){z=TeaLeaf.Client.tlGetXPathFromNode(y);z=TeaLeaf.Event.tlFormatXMLName(z)}var x=[TeaLeaf.$C("ValueIn"),z,z,y.value,TeaLeaf.$C("KeyCode"),v];s.tlAddData(x)}}s.tlSend()};TeaLeaf.Client.tlSendResize=function(){if(!TeaLeaf.Client.ResizeClientX&&!TeaLeaf.Client.ResizeClientY){return}var c=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("Resize"));var d=[TeaLeaf.$C("ClientX"),TeaLeaf.Client.ResizeClientX,TeaLeaf.$C("ClientY"),TeaLeaf.Client.ResizeClientY,TeaLeaf.$C("ScreenX"),TeaLeaf.Client.ResizeScreenX,TeaLeaf.$C("ScreenY"),TeaLeaf.Client.ResizeScreenY];c.tlAddData(d);TeaLeaf.Client.ResizeClientX=null;TeaLeaf.Client.ResizeClientY=null;TeaLeaf.Client.ResizeScreenX=null;TeaLeaf.Client.ResizeScreenY=null;c.tlSend()};TeaLeaf.Client.tlQueueScroll=function(b){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();if(!b){b=window.event}if(b.clientX){TeaLeaf.Client.ScrollClientX=b.clientX;TeaLeaf.Client.ScrollClientY=b.clientY;TeaLeaf.Client.ScrollScreenX=b.screenX;TeaLeaf.Client.ScrollScreenY=b.screenY}else{TeaLeaf.Client.ScrollHeight=b.target.scrollHeight;TeaLeaf.Client.ScrollWidth=b.target.scrollWidth;TeaLeaf.Client.ScrollTop=b.target.scrollTop;TeaLeaf.Client.ScrollLeft=b.target.scrollLeft}};TeaLeaf.Client.tlSendScroll=function(){if(!TeaLeaf.Client.ScrollClientX&&!TeaLeaf.Client.ScrollHeight){return}var c=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("Scroll"));var d=[TeaLeaf.$C("ClientX"),TeaLeaf.Client.ScrollClientX,TeaLeaf.$C("ClientY"),TeaLeaf.Client.ScrollClientY,TeaLeaf.$C("ScreenX"),TeaLeaf.Client.ScrollScreenX,TeaLeaf.$C("ScreenY"),TeaLeaf.Client.ScrollScreenY,TeaLeaf.$C("ScrollHeight"),TeaLeaf.Client.ScrollHeight,TeaLeaf.$C("ScrollWidth"),TeaLeaf.Client.ScrollWidth,TeaLeaf.$C("ScrollTop"),TeaLeaf.Client.ScrollTop,TeaLeaf.$C("ScrollLeft"),TeaLeaf.Client.ScrollLeft];c.tlAddData(d);TeaLeaf.Client.ScrollClientX=TeaLeaf.Client.ScrollClientY=null;TeaLeaf.Client.ScrollScreenX=TeaLeaf.Client.ScrollScreenY=null;TeaLeaf.Client.ScrollHeight=TeaLeaf.Client.ScrollWidth=null;TeaLeaf.Client.ScrollTop=TeaLeaf.Client.ScrollLeft=null;c.tlSend()};TeaLeaf.Client.tlFindAncestorByTag=function(d,f){var g=d.parentNode;while(g&&g!=window.document){if(g.nodeType!=1){continue}if(g.tagName==f){break}else{g=g.parentNode}}return g};TeaLeaf.Client.tlGetXPathFromNode=function(t){if(t==null){return null}var o=[];var j=t;var n=null;var i=null;for(var p in TeaLeaf.Client.Configuration.tlSpecialChildNodeTags){if(j.tagName.toString()==p){j=j.parentNode}}var q=false;for(q=TeaLeaf.Client.CheckIfIdValid(j);j!=window.document&&(!q);q=TeaLeaf.Client.CheckIfIdValid(j)){n=null;i=null;switch(j.tagName){case"TD":if(i=TeaLeaf.Client.tlFindAncestorByTag(j,"TR")){n=i.cells}break;case"TR":if(i=TeaLeaf.Client.tlFindAncestorByTag(j,"TABLE")){n=i.rows}break;case"OPTION":if(i=TeaLeaf.Client.tlFindAncestorByTag(j,"SELECT")){n=i.options}break;default:i=j.parentNode;if(!i){i=window.document}n=i.childNodes;break}if(n==null){return null}var r=0;for(var p=0;p<n.length;p++){if(n[p].nodeType==1&&n[p].tagName==j.tagName){if(n[p]==j){o[o.length]=[j.tagName.toUpperCase(),r];break}r++}}j=i}if(q){o[o.length]=[j.id]}var s=[];for(var p=o.length-1;p>=0;p--){if(o[p].length>1){s[s.length]="['"+o[p][0]+"',"+o[p][1]+"]"}else{s[s.length]="['"+o[p][0].toString().replace(/'/g,"\\'")+"']"}}return"["+s.join(",")+"]"};TeaLeaf.Client.CheckIfIdValid=function(f){if(f.id==null||typeof(f.id)!="string"||f.id==""){return false}var g=f.id;f.id=(new Date()).getTime()+"TeaLeaf_unique";try{if(!document.getElementById(g)){f.id=g;return true}f.id=g;return false}catch(d){return false}finally{f.id=g}};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.toUpperCase()==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.Private.tlPrevEvent;TeaLeaf.Private.setLastProcessedEvent=function(d){var c=TeaLeaf.Private;if(!c.tlPrevEvent){c.tlPrevEvent={}}c.tlPrevEvent.type=d.type;c.tlPrevEvent.button=d.button;c.tlPrevEvent.clientX=d.clientX;c.tlPrevEvent.clientY=d.clientY;if(typeof d.keyCode!=="undefined"){c.tlPrevEvent.keyCode=d.keyCode}if(typeof d.charCode!=="undefined"){c.tlPrevEvent.charCode=d.charCode}if(typeof d.timeStamp!=="undefined"){if(d.timeStamp.getTime){c.tlPrevEvent.timeStamp=d.timeStamp.getTime()}else{c.tlPrevEvent.timeStamp=d.timeStamp}}else{c.tlPrevEvent.timeStamp=new Date().getTime()}if(typeof d.target!=="undefined"){c.tlPrevEvent.target=d.target}if(typeof d.srcElement!=="undefined"){c.tlPrevEvent.srcElement=d.srcElement}};TeaLeaf.Private.getLastProcessedEvent=function(){return TeaLeaf.Private.tlPrevEvent};TeaLeaf.Client.isDuplicateEvent=function(g){var h=TeaLeaf.Private,i=h.getLastProcessedEvent();if(!i||!g){h.setLastProcessedEvent(g);return false}if(i.type!==g.type){h.setLastProcessedEvent(g);return false}if(i.target!==g.target){h.setLastProcessedEvent(g);return false}if(i.srcElement!==g.srcElement){h.setLastProcessedEvent(g);return false}if(i.button!==g.button){h.setLastProcessedEvent(g);return false}if(i.clientX!==g.clientX||i.clientY!==g.clientY){h.setLastProcessedEvent(g);return false}if(i.keyCode!==g.keyCode){h.setLastProcessedEvent(g);return false}if(i.charCode!==g.charCode){h.setLastProcessedEvent(g);return false}if(typeof g.timeStamp!=="undefined"){var f=g.timeStamp.getTime?g.timeStamp.getTime():g.timeStamp;if(i.timeStamp!==f){h.setLastProcessedEvent(g);return false}}else{g.timeStamp=new Date().getTime();if(Math.abs(g.timeStamp-i.timeStamp)>300){h.setLastProcessedEvent(g);return false}}h.setLastProcessedEvent(g);return true};TeaLeaf.Client.tlAddEvent=function(w){if(!w){w=window.event}var v=TeaLeaf.Client.tlGetEventSource(w);if(!v){return}TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!v.TeaLeafFocusTime){switch(w.type){case"keyup":case"change":case"click":case"dblclick":case"mousedown":v.TeaLeafFocusTime=new Date();break}}if(w.type=="blur"&&v.type=="application/x-shockwave-flash"){return}if(w.type=="click"&&TeaLeaf.Client.checkIsInput(v)){TeaLeaf.Event.Configuration.tlidoflastvisitedcontrol=TeaLeaf.Client.tlGetName(v)}if(w.type=="click"&&(v.tagName=="a"||v.tagName=="A")&&TeaLeaf.tlIsIE()){TeaLeaf.Client.Configuration.tlIEhref=false;var s=v.href;if(s=="#"){TeaLeaf.Client.Configuration.tlIEhref=true}else{var q="javascript:";var y=s.substr(0,q.length);if(y==q){TeaLeaf.Client.Configuration.tlIEhref=true}}}var p=new TeaLeaf.Event(TeaLeaf.$C("GUI"),w.type);var r=[TeaLeaf.$C("Name"),v.name,TeaLeaf.$C("Id"),v.id,TeaLeaf.$C("ElementType"),v.type,TeaLeaf.$C("TagName"),v.tagName,TeaLeaf.$C("AltKey"),w.altKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("CtrlKey"),w.ctrlKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("ShiftKey"),w.shiftKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("NodeName"),w.nodeName,TeaLeaf.$C("NodeValue"),w.nodeValue,TeaLeaf.$C("XPath"),TeaLeaf.Client.tlGetXPathFromNode(v)];p.tlAddData(r);var o=TeaLeaf.Client.tlGetName(v);if(w.type=="blur"&&v.TeaLeafFocusTime){var z=new Date();p.tlAddData([TeaLeaf.$C("TimeInControl"),TeaLeaf.Event.tlDateDiff(z,v.TeaLeafFocusTime)]);v.TeaLeafFocusTime=null}if(v.TeaLeafExclude){p.tlAddData([TeaLeaf.$C("Excluded"),TeaLeaf.$C("True")])}else{var x=TeaLeaf.Event.tlFormatXMLName(o);var t=v.TeaLeafReplace?TeaLeaf.Client.tlReplaceValue(v):v.value;var u=[TeaLeaf.$C("ValueIn"),x,x,t];if(v.type==="checkbox"||v.type==="radio"){u.push(TeaLeaf.$C("Checked"),v.checked?TeaLeaf.$C("True"):TeaLeaf.$C("False"))}p.tlAddData(u)}p.tlSend()};TeaLeaf.Client.tlHandleFormSubmit=function(x){TeaLeaf.Client.Configuration.tlactiontype="Submit";TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!x){x=window.event}var w=TeaLeaf.Client.tlGetEventSource(x);if(!w){return}var v;if(!w.name){var D=document.forms;for(v=0;v<D.length;v++){if(D[v]==w){w.name="Ordinal-"+v;break}}}if(!w.name){return}if(TeaLeaf.Client.tlIsReplace(w)){var t=TeaLeaf.Client.tlGetReplaceValue(w);var C=TeaLeaf.Client.tlGetName(w);var i=[TeaLeaf.$C("ValueIn"),C,C,t];r.tlAddData(i)}var r=new TeaLeaf.Event(TeaLeaf.$C("GUI"),x.type);var s=[TeaLeaf.$C("Name"),w.name,TeaLeaf.$C("Id"),w.id,TeaLeaf.$C("ElementType"),w.type,TeaLeaf.$C("TagName"),w.tagName,TeaLeaf.$C("AltKey"),x.altKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("CtrlKey"),x.ctrlKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("ShiftKey"),x.shiftKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("NodeName"),x.nodeName,TeaLeaf.$C("NodeValue"),x.nodeValue,TeaLeaf.$C("VisitOrder"),TeaLeaf.Event.Configuration.tlvisitorder];r.tlAddData(s);var z=w.getElementsByTagName("INPUT");r.tlAddData([TeaLeaf.$C("InputFieldCount"),z.length]);r.tlPushXML(TeaLeaf.$C("InputFields"));for(v=0;v<z.length;v++){var A=z[v];if(!A.name){continue}r.tlPushXML(TeaLeaf.$C("Field")+v);var B=[TeaLeaf.$C("Name"),A.name,TeaLeaf.$C("Id"),A.id,TeaLeaf.$C("ElementType"),A.type,TeaLeaf.$C("TagName"),A.tagName];r.tlAddData(B);if(TeaLeaf.Client.tlIsExcluded(C)){r.tlAddData([TeaLeaf.$C("Excluded"),TeaLeaf.$C("True")])}else{if(TeaLeaf.Client.tlIsReplace(A.name)){var t=TeaLeaf.Client.tlGetReplaceValue(A);var C=TeaLeaf.Client.tlGetName(A);var i=[TeaLeaf.$C("ValueIn"),C,C,t];r.tlAddData(i)}else{var y=TeaLeaf.Event.tlFormatXMLName(A.name);var u=[TeaLeaf.$C("ValueIn"),y,y,A.value];r.tlAddData(u)}}r.tlPopXML()}r.tlPopXML();r.tlSend();TeaLeaf.Event.Configuration.tlvisitorder=""};TeaLeaf.Client.tlQueueResize=function(b){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendScroll();if(!b){b=window.event}if(b.clientX){TeaLeaf.ResizeClientX=b.clientX;TeaLeaf.ResizeClientY=b.clientY;TeaLeaf.ResizeScreenX=b.screenX;TeaLeaf.ResizeScreenY=b.screenY}else{TeaLeaf.ResizeClientX=b.target.width;TeaLeaf.ResizeClientY=b.target.height}};TeaLeaf.Client.tlHandleFormReset=function(r){TeaLeaf.Client.tlSendKeys();TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!r){r=window.event}var q=TeaLeaf.Client.tlGetEventSource(r);if(!q){return}var p;if(!q.name){var t=document.forms;for(p=0;p<t.length;p++){if(t[p]==q){q.name="Ordinal-"+p;break}}}if(!q.name){return}if(TeaLeaf.Client.tlIsReplace(q)){var o=TeaLeaf.Client.tlGetReplaceValue(q);var s=TeaLeaf.Client.tlGetName(q);var i=[TeaLeaf.$C("ValueIn"),s,s,o];m.tlAddData(i)}var m=new TeaLeaf.Event(TeaLeaf.$C("GUI"),r.type);var n=[TeaLeaf.$C("Name"),q.name,TeaLeaf.$C("Id"),q.id,TeaLeaf.$C("ElementType"),q.type,TeaLeaf.$C("TagName"),q.tagName,TeaLeaf.$C("AltKey"),r.altKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("CtrlKey"),r.ctrlKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("ShiftKey"),r.shiftKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("NodeName"),r.nodeName,TeaLeaf.$C("NodeValue"),r.nodeValue,TeaLeaf.$C("VisitOrder"),TeaLeaf.Event.Configuration.tlvisitorder];m.tlAddData(n);m.tlSend();TeaLeaf.tlVisitOrder=""};TeaLeaf.Client.tlBeforeUnload=function(){if(TeaLeaf.Client.tlBeforeUnloadFired){return}TeaLeaf.Client.tlBeforeUnloadFired=true;if(TeaLeaf.Client.Configuration.tlIEhref){TeaLeaf.Client.Configuration.tlIEhref=false;return}if(typeof TeaLeaf.Cookie!="undefined"&&TeaLeaf.Client.Configuration.tlStoreQueueInCookie){var i=new Date();i.setTime(i.getTime()+300000);var d=TeaLeaf.Event.tlQueuedXML.replace(/(\r|\n)/g,"").replace(/;/g,"%3B");TeaLeaf.Cookie.tlSetCookieValue("tlQueuedXML",d,i,"/")}if(TeaLeaf.Client.Configuration.tlbeforeunloadflag==true){TeaLeaf.Event.Configuration.tllastdwelltime=new Date();TeaLeaf.Client.Configuration.tlunloadflag=false;var h=new TeaLeaf.Event(TeaLeaf.$C("PERFORMANCE"),TeaLeaf.$C("BeforeUnload"));TeaLeaf.Event.SetType=h.EventType;if(TeaLeaf.Event.SetSubType==""){TeaLeaf.Event.SetSubType=h.EventSubType}else{TeaLeaf.Event.SetSubType+="; "+h.EventSubType}TeaLeaf.Event.Configuration.tlbeforeunloadflag=true;var g=[TeaLeaf.$C("MouseMove"),TeaLeaf.Client.tlHasUserMovement?TeaLeaf.$C("True"):TeaLeaf.$C("False"),TeaLeaf.$C("Action"),TeaLeaf.Client.Configuration.tlactiontype,TeaLeaf.$C("VisitOrder"),TeaLeaf.Event.Configuration.tlvisitorder];h.tlAddData(g);TeaLeaf.Event.Configuration.tlasync=false;h.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 c=new TeaLeaf.Event(TeaLeaf.$C("PERFORMANCE"),TeaLeaf.$C("Unload"));TeaLeaf.Event.SetType=c.EventType;if(TeaLeaf.Event.SetSubType==""){TeaLeaf.Event.SetSubType=c.EventSubType}else{TeaLeaf.Event.SetSubType+="; "+c.EventSubType}var d=[TeaLeaf.$C("MouseMove"),TeaLeaf.Client.tlHasUserMovement?TeaLeaf.$C("True"):TeaLeaf.$C("False"),TeaLeaf.$C("Action"),TeaLeaf.Client.Configuration.tlactiontype,TeaLeaf.$C("VisitOrder"),TeaLeaf.Event.Configuration.tlvisitorder];c.tlAddData(d);TeaLeaf.Event.Configuration.tlasync=false;c.tlSend();TeaLeaf.Event.tlFlushQueue(true);TeaLeaf.Event.Configuration.tlvisitorder="";TeaLeaf.Client.tlDetachFromAllControls()}};TeaLeaf.Client.tlAttachToAllControls=function(){TeaLeaf.Client.Configuration.tlcontrolsattached=true;TeaLeaf.Event.tlAddHandler(window,"beforeunload",eval(TeaLeaf.Client.tlBeforeUnload),false);TeaLeaf.Event.tlAddHandler(window,"unload",eval(TeaLeaf.Client.tlUnload),false);TeaLeaf.Client.tlAttachToControls(window);try{var ind;for(ind=0;ind<window.frames.length;ind++){if(window==window.frames[ind]){continue}TeaLeaf.Client.tlAttachToControls(window.frames[ind])}}catch(e){}};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{var handlers=TeaLeaf.Client.Configuration.tlWindowHandlers;for(var i=0;i<handlers.length;i++){if(handlers[i].load){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){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){var i,handlers,item_name,lower_item_name,map_item;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){break}lower_item_name=item_name.toLowerCase();map_item=TeaLeaf.Client.Configuration.tlFieldBlockMap[lower_item_name];if(!map_item){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){handlers=TeaLeaf.Client.Configuration.tlDocumentHandlers;for(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(h){try{if(h.document){var g=h.document.getElementsByTagName("INPUT");for(var f=0;f<g.length;f++){TeaLeaf.Client.tlCheckAttach(g[f])}g=h.document.getElementsByTagName("SELECT");for(var f=0;f<g.length;f++){TeaLeaf.Client.tlCheckAttach(g[f])}g=h.document.getElementsByTagName("BODY");if(g.length>0){g=g[0].getElementsByTagName("*");for(var f=0;f<g.length;f++){TeaLeaf.Client.tlCheckAttach(g[f])}}}}catch(i){}};TeaLeaf.Client.tlProcessNode=function(l,p){var n,i,o,j;if(typeof(l)==="string"){l=document.getElementById(l)}if(!l){return}try{switch(l.tagName){case"INPUT":case"SELECT":case"TEXTAREA":TeaLeaf.Client.tlCheckAttach(l);break;default:if(TeaLeaf.Client.Configuration.tlUniversalAttach&&TeaLeaf.Client.tlTagNameAllowed(l.tagName)){TeaLeaf.Client.tlCheckAttach(l)}break}if(!p){o=["INPUT","SELECT","TEXTAREA"];for(n=0;n<o.length;n++){j=l.getElementsByTagName(o[n]);for(i=0;i<j.length;i++){TeaLeaf.Client.tlCheckAttach(j[i])}}if(TeaLeaf.Client.Configuration.tlUniversalAttach){if(TeaLeaf.Client.Configuration.tlExcludeTags){j=l.getElementsByTagName("*");for(n=0;n<j.length;n++){if(TeaLeaf.Client.tlTagNameAllowed(j[n].tagName)){TeaLeaf.Client.tlCheckAttach(j[n])}}}else{for(n in TeaLeaf.Client.Configuration.tlNodeTags){j=l.getElementsByTagName(n);for(i=0;i<j.length;i++){TeaLeaf.Client.tlCheckAttach(j[i])}}}}}}catch(m){}};TeaLeaf.Client.tlSetFocusTime=function(c){if(!c){c=window.event}var d=TeaLeaf.Client.tlGetEventSource(c);if(!d||d.type=="application/x-shockwave-flash"){return}var d=TeaLeaf.Client.tlGetEventSource(c);if(!d){return}if(!d.TeaLeafFocusTime){d.TeaLeafFocusTime=new Date()}if(TeaLeaf.Client.Configuration.tlsendfocus){TeaLeaf.Client.tlAddEvent(c)}};TeaLeaf.Client.tlHandleBlur=function(c){if(!c){c=window.event}var d=TeaLeaf.Client.tlGetEventSource(c);if(!d||d.type=="application/x-shockwave-flash"){return}TeaLeaf.Client.tlEndVisit(d);if(TeaLeaf.Client.checkIsInput(d)){TeaLeaf.Event.Configuration.tlidoflastvisitedcontrol=TeaLeaf.Client.tlGetName(d)}if(TeaLeaf.Client.Configuration.tlsendblur){TeaLeaf.Client.tlAddEvent(c)}};TeaLeaf.Client.tlEndVisit=function(i){if(i.TeaLeafFocusTime){var g=TeaLeaf.Client.tlGetName(i);if(!g){g=TeaLeaf.Client.tlGetAnchor(i,false);if(g){g="LEVEL"+g}else{g="unnamed"}}var h=TeaLeaf.Event.tlDateDiff(i.TeaLeafFocusTime,new Date());var f=g+":"+h;if(TeaLeaf.Event.Configuration.tlvisitorder!=""){TeaLeaf.Event.Configuration.tlvisitorder=TeaLeaf.Event.Configuration.tlvisitorder+";"+f}else{TeaLeaf.Event.Configuration.tlvisitorder=f}}};TeaLeaf.Client.tlDetachFromAllControls=function(){TeaLeaf.Client.Configuration.tlcontrolsattached=false;TeaLeaf.Client.tlDetachFromControls(window);try{var d;for(d=0;d<window.frames.length;d++){var f=window.frames[d];TeaLeaf.Client.tlDetachFromControls(f)}}catch(g){}};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(items[i],"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(items[i],"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(h){var g,i,j,l;TeaLeaf.Client.tlMakeFieldBlockMap();if(!h){h=document.getElementsByTagName("INPUT")}if(!h){return}for(g=0;g<h.length;g++){i=TeaLeaf.Client.tlGetName(h[g]);if(!i){continue}j=i.toLowerCase();l=TeaLeaf.Client.Configuration.tlFieldBlockMap[j];if(!l){continue}if(l.tlfieldname===i||(l.caseinsensitive&&l.tlfieldname===j)){h[g].TeaLeafExclude=l.eventnovalue;h[g].TeaLeafReplace=(l.eventvaluereplace.length>0)}}};TeaLeaf.Client.tlScanForAdditions=function(){if(!TeaLeaf.Client.Configuration.tlScheduledScan){return}TeaLeaf.Client.tlProcessNode(document.body);try{for(var d=0;d<window.frames.length;d++){var f=window.frames[d];TeaLeaf.Client.tlProcessNode(f.document.body)}}catch(g){}window.clearTimeout(TeaLeaf.Client.tlTimeoutID);TeaLeaf.Client.tlTimeoutID=window.setTimeout(TeaLeaf.Client.tlScanForAdditions,TeaLeaf.Client.Configuration.tlscanupdate)};TeaLeaf.Client.tlTagNameAllowed=function(d){if(d==null){return false}var c=TeaLeaf.Client.Configuration.tlNodeTags[d];if(c==null){c=false}if(TeaLeaf.Client.Configuration.tlExcludeTags){return !c}else{return c}};TeaLeaf.Client.tlMakeFieldBlockMap=function(){var g,f,d;if(TeaLeaf.Client.Configuration.tlFieldBlockMap){return}TeaLeaf.Client.Configuration.tlFieldBlockMap={};f=TeaLeaf.Client.Configuration.tlFieldBlock;for(g=0;g<f.length;g++){d=f[g].tlfieldname;if(!d){continue}else{d=d.toLowerCase()}if(f[g].caseinsensitive){f[g].tlfieldname=d}TeaLeaf.Client.Configuration.tlFieldBlockMap[d]=f[g]}};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(r,q){var m=new TeaLeaf.Event(TeaLeaf.$C("GUI"),q);var n=[TeaLeaf.$C("Name"),r.name,TeaLeaf.$C("Id"),r.id,TeaLeaf.$C("ElementType"),r.type];m.tlAddData(n);var p=TeaLeaf.Client.tlGetName(r);var j=TeaLeaf.Event.tlFormatXMLName(p);var l=r.TeaLeafReplace?TeaLeaf.Client.tlReplaceValue(r):r.value;var o=[TeaLeaf.$C("ValueIn"),j,j,l];m.tlAddData(o);m.tlSend()};TeaLeaf.Client.tlSetup=function(){if(typeof TeaLeaf.Cookie!="undefined"){var b=TeaLeaf.Cookie.tlGetCookieValue("tlQueuedXML");if(b!=null&&b!=""){TeaLeaf.Event.tlQueuedXML+=b.replace(/%3B/g,";")}}TeaLeaf.Client.tlAttachToAllControls();TeaLeaf.Client.tlSingleAttach();if(TeaLeaf.Event.Configuration.tlcatchpopups){TeaLeaf.SavedWindowOpen=window.open;window.open=function(t,s,q,p){var o="blocked";var r;if(typeof TeaLeaf.SavedWindowOpen=="function"){r=TeaLeaf.SavedWindowOpen.apply(this,arguments)}else{t=t?t:"";s=s?s:"";q=q?q:"";r=TeaLeaf.SavedWindowOpen(t,s,q,p)}try{if(!r.closed){o="visible"}}catch(a){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(a.name+": "+a.message+"\r\n\r\nPos 8")}}var m=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("WindowOpen"));var n=[TeaLeaf.$C("Status"),o,TeaLeaf.$C("URL"),escape(t),TeaLeaf.$C("Name"),s,TeaLeaf.$C("Features"),q,TeaLeaf.$C("Replace"),p];m.tlAddData(n);m.tlSend();return r}}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()}};

function enableCSS(c,b){var a=document.getElementById(c);a.disabled=true;a.disabled=false;if(b){a.title=b}a.rel="stylesheet"}enableCSS("jscss","default");if(document.cookie.indexOf("hicon=true")!=-1){enableCSS("hc")};
