if(typeof TeaLeaf==="undefined"){TeaLeaf={};TeaLeaf.Private={};TeaLeaf.tlStartLoad=new Date();if(!TeaLeaf.Configuration){TeaLeaf.Configuration={"tlversion":"2010.12.22.1","tlinit":false,"tlSDK":false,"tlSetGUID":false,"tlGUIDCookie":{name:"TLGUID",valueLength:32,valueSet:"0123456789ABCDEF",path:"",domain:"",expires:0,secure:false},"tlurl":teaLeafTarget,"tlsecureurl":teaLeafTarget,"xhrAsync":true,"xd_CommonDomain":"","xd_iframeID":"","xd_iframeSrcURL":"","xd_iframeSrcURLSecure":""};
}}if(typeof TeaLeaf!=="undefined"&&((typeof TeaLeaf.replay==="function")?!TeaLeaf.replay():!TeaLeaf.replay)&&!TeaLeaf.Event){TeaLeaf.Event=function(c,a,d){this.date=new Date();if(a){this.EventType=c;
this.EventSubType=a;if(d){this.EventSource=d;}else{this.EventSource="";}}else{this.EventType="CUSTOM";this.EventSubType=c;}};if(typeof TeaLeaf.Event.Configuration=="undefined"){TeaLeaf.Event.Configuration={"tlinit":false,"tlqueueevents":true,"tlqueueeventstimer":30000,"tlqueueeventsmaxsz":8192,"tlshowexceptions":false,"tleventcount":0,"tlexceptioncount":0,"tlpageid":"","tlinitflag":false,"tlbeforeunloadflag":false,"tlusetopqueue":false,"tllastdwelltime":"","tlidoflastvisitedcontrol":"","tleventunloadflag":true,"tleventbeforeunloadflag":true,"tlcatcherrors":true,"tlcatchpopups":false,"tlCatchAlerts":false,"tlignoresendfailure":true,"tlasync":true,"tlvisitorder":"","t1970":0,"tlXP":"","tlXPCount":0,"tlXPTable":"","tlmaxeventcount":300,"tlmaxeventexception":10,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-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.Request.GetTotalDataLength()"},{"tlreqhttpheadername":"X-TeaLeaf-Page-Cui-Exceptions","tlsethttpheader":true,"tlreqhttpheadervalue":"TeaLeaf.Event.tlGetExceptionCount()"},{"tlreqhttpheadername":"X-TeaLeaf-Alert-Count","tlsethttpheader":true,"tlreqhttpheadervalue":"TeaLeaf.Event.tlGetAlertCount()"},{"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!=="undefined"&&((typeof TeaLeaf.replay==="function")?!TeaLeaf.replay():!TeaLeaf.replay)&&!TeaLeaf.Env){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!=="undefined"&&((typeof TeaLeaf.replay==="function")?!TeaLeaf.replay():!TeaLeaf.replay)&&!TeaLeaf.Client){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,"tlEnableAttr":false,"tlDiscardInvalidXPath":false,"tlUniqueIDCheckEnabled":false,tlScheduledScan:false,tlExcludeTags:true,tlUniversalAttach:false,tlStoreQueueInCookie:false,tlFieldBlock:[{"name":"pwd|password|change_pwd|confirmPassword|creditCardNumber|creditCardValidationCode|creditCardInfo.cardNumber|creditCardInfo.securityCode","caseinsensitive":true,"exclude":false,"mask":function(){return TeaLeaf.Client.PreserveMask.apply(this,arguments);
}}],tlPrivacyMask:{"upperChar":"X","lowerChar":"x","numericChar":"9","symbolChar":"#"},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":false,"tlhandler":"TeaLeaf.Client.tlQueueKey"},{"domevent":"mousedown","load":false,"tlhandler":"TeaLeaf.Client.tlAddEvent"},{"domevent":"mouseup","load":false,"tlhandler":"TeaLeaf.Client.tlAddEvent"},{"domevent":"mouseover","load":false,"tlhandler":"TeaLeaf.Client.tlAddEvent"},{"domevent":"mouseout","load":false,"tlhandler":"TeaLeaf.Client.tlAddEvent"},{"domevent":"mousemove","load":false,"tlhandler":"TeaLeaf.Client.tlUserMovement"}],tlSingleAttach:[{"domelementID":"","domevent":"mousedown","tlhandler":"TeaLeaf.Client.tlAddEvent"},{"domelementID":"","domevent":"mouseup","tlhandler":"TeaLeaf.Client.tlAddEvent"},{"domelementID":"","domevent":"mouseover","tlhandler":"TeaLeaf.Client.tlAddEvent"},{"domelementID":"","domevent":"mouseout","tlhandler":"TeaLeaf.Client.tlAddEvent"}],tlAttributeCapture:[{"tltagname":"a","tlattributename":"href","tlevent":"click"},{"tltagname":"button","tlattributename":"value","tlevent":"click"}],tlIDBlackList:[],tlIDWhiteList:[],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(typeof TeaLeaf!=="undefined"&&((typeof TeaLeaf.replay==="function")?!TeaLeaf.replay():!TeaLeaf.replay)&&TeaLeaf.Configuration&&!TeaLeaf.Configuration.tlinit){TeaLeaf.Configuration.tlinit=true;
if(!TeaLeaf.tlBrowser){TeaLeaf.tlBrowser={"UNKNOWN":true};}if(!TeaLeaf.$C){TeaLeaf.$C=function(a){return a;};}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.XHRFactory=(function(){var a;a=60000;function c(d){if((d>=200&&d<300)||d===304){return true;
}return false;}return{"createXHRObject":function(){var f,d,h;d=[function(){return new XMLHttpRequest();},function(){return new ActiveXObject("Msxml2.XMLHTTP.6.0");},function(){return new ActiveXObject("Microsoft.XMLHTTP");
}];for(f=0;f<d.length;f++){try{h=d[f]();}catch(g){continue;}if(h){this.createXHRObject=d[f];return h;}}return null;},"xhrRequest":function(l,n,d,m,q,o,p){var g,f;if(!l||!n){return null;
}l=l.toUpperCase();if(!p){p=this.createXHRObject();}if(!p){return null;}if(q){p.onreadystatechange=function(){var r,u;try{switch(p.readyState){case 0:break;case 1:break;case 2:if(o&&o.loaded){try{r=p.status;
u=p.statusText;}catch(t){if(!r){r=0;}if(!u){u="None";}}finally{o.loaded(r,u);}}break;case 3:break;case 4:if(c(p.status)){if(o&&o.success){o.success(p.responseText,p.responseXML);}}else{if(o&&o.failure){o.failure(p.status,p.statusText);
}}break;default:break;}}catch(t){}};}p.open(l,n,q);if(d){for(g=0;g<d.length;g++){p.setRequestHeader(d[g].name,d[g].value);}}if(l!=="POST"||!m){m=null;}p.send(m);try{f=setTimeout(function(){TeaLeaf.XHRFactory.deleteXHRObj(p);
},a);p.timeoutID=f;}catch(h){}return p;},"deleteXHRObj":function(d){if(d&&d.readyState!==4){if(d.abort){d.abort();}}if(d.timeoutID){clearTimeout(d.timeoutID);d.timeoutID=null;}d.onreadystatechange=function(){};
d=null;}};})();TeaLeaf.Request=function(){var c,d,f,a;c=d=a=null;f="POST";this.getUrl=function(){var n,l,h,m,g;if(a){return a;}n=TeaLeaf.Configuration;m=window.location;g=m.protocol;
h=g+"//"+m.host;if(g=="http:"){l=n.tlurl;}else{l=n.tlsecureurl;}if(l.substr(0,1)=="/"){h+=l;}else{h+=m.pathname.substr(0,m.pathname.lastIndexOf("/")+1)+l;}return h;};this.setUrl=function(g){a=g;
};this.getMethod=function(){return f;};this.setMethod=function(g){f=g;};this.getData=function(){return c;};this.setData=function(g){var h;c=g;if(c){h=TeaLeaf.Request.totalDataLength||0;
h+=c.length;TeaLeaf.Request.totalDataLength=h;}};this.getHeaders=function(){return d;};this.setHeaders=function(g){d=g;};this.clear=function(){c=d=a=null;};};TeaLeaf.Request.prototype={send:function(m){var a,d,c,f,l,h;
l=TeaLeaf.Configuration;if(!l.xd_iframeID){h=TeaLeaf.XHRFactory.xhrRequest(this.getMethod(),this.getUrl(),this.getHeaders(),this.getData(),l.xhrAsync,m);if(!h){if(m&&m.failure){m.failure(0,"XHR request failed!");
}return;}}else{try{a=document.getElementById(l.xd_iframeID);if(!a||!a.contentWindow){if(m&&m.failure){m.failure(0,"Could not retrive cross-domain iframe target!");}return;}d=a.contentWindow;
if(d.postMessage&&window.JSON&&0){alert("Not implemented!");}else{f=d.TeaLeaf;if(f&&f.Request){c=new f.Request();c.clear();this.setUrl(c.getUrl());c.setHeaders(this.getHeaders());c.setData(this.getData());
c.send(m);}}}catch(g){if(m&&m.failure){m.failure(0,(g.name?(g.name+": "+g.message):g.toString()));}return;}}}};TeaLeaf.Request.GetTotalDataLength=function(){var a;a=TeaLeaf.Request.totalDataLength||0;
return a;};TeaLeaf.settlSDK=function(){TeaLeaf.Configuration.tlSDK=true;};TeaLeaf.resettlSDK=function(){TeaLeaf.Configuration.tlSDK=false;};TeaLeaf.tlSetPostURL=function(a){TeaLeaf.Configuration.tlurl=a;
};TeaLeaf.tlGetPostURL=function(){return TeaLeaf.Configuration.tlurl;};TeaLeaf.makeRandomString=function(f,d){var c,a,g;if(!f||f<=0){return;}if(!d){d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@#$%^+-?";
}g="";for(c=0;c<f;c++){a=Math.floor(Math.random()*d.length);g+=d.charAt(a);}return g;};TeaLeaf.tLoadObjs=[];TeaLeaf.addOnLoad=function(c,a){if(arguments.length===1){TeaLeaf.tLoadObjs.push(c);
}else{if(arguments.length>1){TeaLeaf.tLoadObjs.push(c[a]);}}};TeaLeaf.tlSetCookie=function(c,f,a,h,d,g){if(!c){return;}document.cookie=c+"="+f+(a?(";expires="+a.toUTCString()):"")+";path="+(h?h:"/")+(d?(";domain="+d):"")+(g?";secure":"");
};TeaLeaf.tlGetCookieValue=function(d){var f,a,m,g,h,l;l=d+"=";h=null;g=document.cookie.split(";");for(f=0;f<g.length;f++){m=g[f];for(a=0;m.charAt(a)==" ";a++){}if(a){m=m.substring(a,m.length);
}if(m.indexOf(l)===0){h=m.substring(l.length,m.length);break;}}return h;};TeaLeaf.tlEraseCookie=function(c){var a;a=new Date(1970,1,1);TeaLeaf.tlSetCookie(c,"",a);};TeaLeaf.tlBrowserIsIE=function(){var a;
a=TeaLeaf.tlBrowser;if(a){return !!a["MSIE"];}return false;};TeaLeaf.tlBrowserIsMozilla=function(){var a;a=TeaLeaf.tlBrowser;if(a){return !!a["MOZILLA"];}return false;};TeaLeaf.tlBrowserIsWebKit=function(){var a;
a=TeaLeaf.tlBrowser;if(a){return !!a["WEBKIT"];}return false;};TeaLeaf.tlBrowserIsOpera=function(){var a;a=TeaLeaf.tlBrowser;if(a){return !!a["OPERA"];}return false;};TeaLeaf.tlBrowserIsUnknown=function(){var a;
a=TeaLeaf.tlBrowser;if(a){return !!a["UNKNOWN"];}return false;};TeaLeaf.PageSetup=function(){var g,p,d,m,o,c,f,n,l,a;if(document.readyState&&document.readyState!=="complete"){return;
}f=TeaLeaf;n=f.Configuration;l=n.tlGUIDCookie;if(f.PageSetup.Complete){return;}f.PageSetup.Complete=true;if(f.PageSetup.Cleanup){f.PageSetup.Cleanup();}f.tlBrowser["UNKNOWN"]=false;
a=navigator.userAgent.toLowerCase();if(/opera|presto/.test(a)){f.tlBrowser["OPERA"]=true;}else{if(/(apple)?webkit|safari|chrome/.test(a)){f.tlBrowser["WEBKIT"]=true;}else{if(/msie|trident/.test(a)){f.tlBrowser["MSIE"]=true;
}else{if(/^(?=.*?\b(mozilla|gecko|firefox)\b)((?!compatible).)*$/.test(a)){f.tlBrowser["MOZILLA"]=true;}else{f.tlBrowser["UNKNOWN"]=true;}}}}if(n.xd_CommonDomain){try{document.domain=n.xd_CommonDomain;
}catch(h){}}if(n.xd_iframeID){try{m=document.getElementById(n.xd_iframeID);if(!m){o=((window.location.protocol==="http:")?n.xd_iframeSrcURL:n.xd_iframeSrcURLSecure);if(o){m=document.createElement("IFRAME");
if(m){m.id=n.xd_iframeID;m.src=o;m.style.display="none";m.style.visibility="hidden";document.body.appendChild(m);}}}}catch(h){}}if(n.tlSetGUID){if(!l||!l.name){}else{if(!l.valueLength){l.valueLength=32;
}if(!l.valueSet){l.valueSet="0123456789ABCDEF";}p=f.tlGetCookieValue(l.name);if(!p){c=new Date();p=f.makeRandomString(l.valueLength,l.valueSet);d=l.expires?new Date(c.getTime()+l.expires*60*1000):null;
f.tlSetCookie(l.name,p,d,l.path,l.domain,l.secure);}}}if(!n.tlSDK){for(g=0;g<f.tLoadObjs.length;g++){f.tLoadObjs[g]();}}f.EndLoad=new Date();};if(document.readyState==="complete"){TeaLeaf.PageSetup();
}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",TeaLeaf.PageSetup,false);window.addEventListener("load",TeaLeaf.PageSetup,false);TeaLeaf.PageSetup.Cleanup=function(){var a;
a=TeaLeaf;document.removeEventListener("DOMContentLoaded",a.PageSetup,false);window.removeEventListener("load",a.PageSetup,false);};}else{if(document.attachEvent){document.attachEvent("onreadystatechange",TeaLeaf.PageSetup);
window.attachEvent("onload",TeaLeaf.PageSetup);TeaLeaf.PageSetup.Cleanup=function(){var a;a=TeaLeaf;document.detachEvent("onreadystatechange",a.PageSetup);window.detachEvent("onload",a.PageSetup);
};}else{if(typeof window.onload==="function"){TeaLeaf.OnLoad=window.onload;}else{TeaLeaf.OnLoad=null;}window.onload=function(){var a;a=TeaLeaf;a.PageSetup();window.onload=a.OnLoad;if(a.OnLoad){a.OnLoad();
}};}}}}if(typeof TeaLeaf!=="undefined"&&((typeof TeaLeaf.replay==="function")?!TeaLeaf.replay():!TeaLeaf.replay)&&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.tlWindowObjects=[{"tlWindowName":"","tlWindowObject":""}];TeaLeaf.Event.tlGetContentType=function(){var a="text/xml";
return a;};TeaLeaf.Event.tlGetTeaLeafXEvent=function(){var a=TeaLeaf.$C("ClientEvent");return a;};TeaLeaf.Event.tlEventType=function(){var a;a=TeaLeaf.Event.SetType;TeaLeaf.Event.SetType="";
return a;};TeaLeaf.Event.tlEventSubType=function(){var a;a=TeaLeaf.Event.SetSubType;TeaLeaf.Event.SetSubType="";return a;};TeaLeaf.Event.tlGetUrlPath=function(){var a=window.location.pathname;
return a;};TeaLeaf.Event.tlGetJSVersion=function(){return TeaLeaf.Configuration.tlversion;};TeaLeaf.Event.tlResolutionType=function(f,a){var d=TeaLeaf.Event.Configuration.tlResolution;
for(var c=0;c<d.length;c++){if(f<=d[c].width||a<=d[c].height){return d[c].type;}}return d[d.length-1].type;};TeaLeaf.Event.tlResolutionTypeBrowser=function(){var c=0;var a=0;if(window.innerWidth){c=window.innerWidth;
a=window.innerHeight;}else{if(document.documentElement&&document.documentElement.clientWidth){c=document.documentElement.clientWidth;a=document.documentElement.clientHeight;}else{if(document.body&&document.body.clientWidth){c=document.body.clientWidth;
a=document.body.clientHeight;}else{var d=document.getElementsByTagName("body");if(d.length>0){c=d[0].clientWidth;a=d[0].clientHeight;}}}}var f=TeaLeaf.Event.tlResolutionType(c,a);return f;
};TeaLeaf.Event.tlGetRenderTime=function(){return TeaLeaf.Event.PageLoadMilliSecs;};TeaLeaf.Event.tlGetElementCount=function(a){return document.getElementsByName(a).length;};TeaLeaf.Event.tlBadImageCount=function(){var d,g,f,a,c;
g=0;f=document.images;c=f.length;for(d=0;d<c;d++){a=f[d];if((!a)||(typeof a.complete==="boolean"&&!a.complete)||(typeof a.naturalWidth!=="undefined"&&a.naturalWidth===0)){g++;continue;
}}return g;};TeaLeaf.Event.tlFlashSend=function(d,c,g,a){var f=new TeaLeaf.Event(d,c);f.tlAddData(g.split(a));f.tlSend();};TeaLeaf.Event.tlShowFlashDebug=function(a,d){d+="<BR>";for(i=0;
i<TeaLeaf.Event.tlWindowObjects.length;i++){if(TeaLeaf.Event.tlWindowObjects[i].tlWindowName==a){if(TeaLeaf.Event.tlWindowObjects[i].tlWindowObject.closed){TeaLeaf.Event.tlWindowObjects[i].tlWindowObject=window.open("",a,"width=600,height=300,scrollbars=yes,resizable=yes");
}TeaLeaf.Event.tlWindowObjects[i].tlWindowObject.document.writeln(d.fontsize(2));TeaLeaf.Event.tlWindowObjects[i].tlWindowObject.scrollTo(0,50000);return;}}var c=window.open("",a,"width=600,height=300,scrollbars=yes,resizable=yes");
TeaLeaf.Event.tlWindowObjects.push({"tlWindowName":a,"tlWindowObject":c});c.document.writeln(d.fontsize(2));};TeaLeaf.Event.tlSetEventCount=function(a){TeaLeaf.Event.Configuration.tleventcount=a;
};TeaLeaf.Event.tlGetEventCount=function(){return TeaLeaf.Event.Configuration.tleventcount;};TeaLeaf.Event.tlGetSendStringBytes=function(a){return a.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,a){return Math.abs(c-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 g=d+"=";var f=c.indexOf("; "+g);if(f==-1){f=c.indexOf(g);if(f!=0){return"";}}else{f+=2;}var a=document.cookie.indexOf(";",f);
if(a==-1){a=c.length;}return unescape(c.substring(f+g.length,a));};TeaLeaf.Event.tlGetHTTPHeaders=function(tlheaderconfig){var i,headers,value;headers=[];for(i=0;i<tlheaderconfig.length;
i++){if(tlheaderconfig[i].tlsethttpheader){value=eval(tlheaderconfig[i].tlreqhttpheadervalue);if(value){headers.push({"name":tlheaderconfig[i].tlreqhttpheadername,"value":value});}}}return headers;
};TeaLeaf.Event.tlGetPageId=function(){if(TeaLeaf.Event.Configuration.tlpageid){return TeaLeaf.Event.Configuration.tlpageid;}if(TeaLeaf_PageID){TeaLeaf.Event.Configuration.tlpageid=TeaLeaf_PageID;
return TeaLeaf.Event.Configuration.tlpageid;}TeaLeaf.Event.Configuration.tlpageid="ID"+TeaLeaf.tlStartLoad.getHours()+"H"+TeaLeaf.tlStartLoad.getMinutes()+"M"+TeaLeaf.tlStartLoad.getSeconds()+"S"+TeaLeaf.tlStartLoad.getMilliseconds()+"R"+Math.random();
return TeaLeaf.Event.Configuration.tlpageid;};TeaLeaf.Event.tlSendFailure=function(a,n,m){var f,h,c,d;h=new Date();f=Date.UTC(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds());
if(TeaLeaf.tlStartLoad){d=TeaLeaf.Event.tlDateDiff(h,TeaLeaf.tlStartLoad);}TeaLeaf.Event.Configuration.tleventcount++;TeaLeaf.Event.Configuration.tlexceptioncount++;c="<"+TeaLeaf.$C("ClientEvent")+" "+TeaLeaf.$C("Count")+'="'+TeaLeaf.Event.Configuration.tleventcount+'" '+TeaLeaf.$C("Type")+'="'+TeaLeaf.$C("INFO")+'" '+TeaLeaf.$C("SubType")+'="'+TeaLeaf.$C("EXCEPTION")+'" '+TeaLeaf.$C("FailedUrl")+'="'+TeaLeaf.Event.tlFormatXML(n)+'" '+TeaLeaf.$C("Message")+'="'+TeaLeaf.Event.tlFormatXML(m)+'" '+TeaLeaf.$C("TimeDuration")+'="'+d+'" '+TeaLeaf.$C("DateSince1970")+'="'+f+'" '+TeaLeaf.$C("PageId")+'="'+TeaLeaf.Event.tlGetPageId()+'" '+" />\r\n";
try{TeaLeaf.Event.Configuration.tlasync=true;var g=new TeaLeaf.Event(TeaLeaf.$C("INFO"),TeaLeaf.$C("EXCEPTION"));g.tlSendXML(c,true);}catch(l){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(l.name+": "+l.message+"\r\n\r\nPos 4");
}}};TeaLeaf.Event.tlGetTransport=function(){var a;if(window.XMLHttpRequest){try{a=new XMLHttpRequest();}catch(c){a=null;}}else{if(window.ActiveXObject){try{a=new ActiveXObject("Msxml2.XMLHTTP");
}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP");}catch(c){a=null;}}}}return a;};TeaLeaf.Event.TransportArray=[];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(c){var a=0;for(;a<TeaLeaf.Event.TransportArray.length;a++){if(c==TeaLeaf.Event.TransportArray[a]){TeaLeaf.Event.TransportArray[a]=null;
}}};TeaLeaf.Event.tlAddHandler=function(c,g,f,d){try{if(!c){return;}if(c.addEventListener){c.addEventListener(g,f,d);}else{if(c.attachEvent){c.attachEvent("on"+g,f);}else{}}}catch(a){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(a.name+": "+a.message+"\r\n\r\nPos 4");
}}};TeaLeaf.Event.tlRemoveHandler=function(c,g,f,d){try{if(!c){return;}if(c.removeEventListener){c.removeEventListener(g,f,d);}else{if(c.detachEvent){c.detachEvent("on"+g,f);}}}catch(a){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(a.name+": "+a.message+"\r\n\r\nPos 5");
}}};TeaLeaf.Event.tlFlushQueue=function(g){var l=null;var c=TeaLeaf.Event.Configuration.tlqueueeventstimer;var f=c*3;if(TeaLeaf.Event.Configuration.tlusetopqueue){var d=new Date();var h=(d-top.TeaLeaf.Event.TimeSent);
if(top.TeaLeaf.Event.tlQueuedXML){if(g||h>=c){l=top.TeaLeaf.Event.tlQueuedXML;top.TeaLeaf.Event.tlQueuedXML="";top.TeaLeaf.Event.TimeSent=d;}}if(!l){if(!g&&h<(c/2)){if(c>=f){c=f;}else{c=(c*3)/2;
}}return c;}}else{if(!TeaLeaf.Event.tlQueuedXML){return c;}l=TeaLeaf.Event.tlQueuedXML;TeaLeaf.Event.tlQueuedXML="";}var a=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("QUEUED"));
a.tlSendXML(l);return c;};TeaLeaf.Event.prototype.tlPushXML=function(a,d){if(!this.XMLStack){this.XMLStack=[];}if(d){}else{var c="  <"+a+" ";if(this.XMLData){this.XMLData+=c;}else{this.XMLData=c;
}}};TeaLeaf.Event.prototype.tlPopXML=function(){if(this.XMLData){this.XMLData+="/>\r\n";}else{return false;}};TeaLeaf.Event.prototype.tlAddData=function(a){var h="";if(this.XMLStack){for(var f=0;
f<this.XMLStack.length;f++){h+="  ";}}var g=[];for(var f=0;f<a.length;f+=2){var d=a[f];var c=TeaLeaf.Event.tlFormatXML(a[f+1]);if(d&&c){g[g.length]=h+d+"="+'"'+c+'" ';}}if(!this.XMLData){this.XMLData="";
}this.XMLData+=g.join("");a=null;};TeaLeaf.Event.prototype.tlSendXML=function(a,c){var o,d,h;try{h=new TeaLeaf.Request();if(!h){return;}h.clear();var n=new Date();var f=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds());
var m="<"+TeaLeaf.$C("ClientEventSet")+" "+TeaLeaf.$C("PostTimeStamp")+'="'+f+'" >';a=m+a+"</"+TeaLeaf.$C("ClientEventSet")+">";TeaLeaf.Event.Configuration.tlignoresendfailure=c;h.setData(a);
d=[{"name":"X-TeaLeaf","value":"ClientEvent"}];d=d.concat(TeaLeaf.Event.tlGetHTTPHeaders(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet));if(TeaLeaf.Event.Configuration.tlinitflag&&!TeaLeaf.Event.InitHeadersSent){d=d.concat(TeaLeaf.Event.tlGetHTTPHeaders(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit));
TeaLeaf.Event.InitHeadersSent=true;}if(TeaLeaf.Event.Configuration.tlbeforeunloadflag&&!TeaLeaf.Event.UnloadHeadersSent){d=d.concat(TeaLeaf.Event.tlGetHTTPHeaders(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload));
TeaLeaf.Event.UnloadHeadersSent=true;}h.setHeaders(d);o={"loaded":function(p,q){if(TeaLeaf.tlGetCookieValue("tlQueuedXML")){TeaLeaf.tlEraseCookie("tlQueuedXML");}},"failure":function(p,q){if(!TeaLeaf.Event.Configuration.tlignoresendfailure){TeaLeaf.Event.Configuration.tlignoresendfailure=true;
TeaLeaf.Event.tlSendFailure(h.getUrl(),h.getUrl(),"Status "+p+": "+q);}},"success":function(p,q){TeaLeaf.Event.Configuration.tlignoresendfailure=false;}};h.send(o);}catch(l){var g;g=h?h.getUrl():"none";
if(TeaLeaf.Event.Configuration.tlshowexceptions){if(l.name){alert(l.name+": "+l.message+"\r\n\r\nURL: "+g+"\r\n\r\nPos 3 ");}else{alert(l+"\r\n\r\nURL: "+g+"\r\n\r\nPos 3 ");}}if(!TeaLeaf.Event.Configuration.tlignoresendfailure){TeaLeaf.Event.Configuration.tlignoresendfailure=true;
TeaLeaf.Event.tlSendFailure(g,g,l.name?(l.name+": "+l.message):l.toString());}}};TeaLeaf.Event.prototype.tlSend=function(a){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 c=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+'" ';}if(!a){sendStr+=this.XMLData;}if(TeaLeaf.tlStartLoad){sendStr+=TeaLeaf.$C("TimeDuration")+'="'+TeaLeaf.Event.tlDateDiff(this.date,TeaLeaf.tlStartLoad)+'" ';
}sendStr+=TeaLeaf.$C("DateSince1970")+'="'+c+'" ';sendStr+=TeaLeaf.$C("PageId")+'="'+TeaLeaf.Event.tlGetPageId()+'" ';if(a){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(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,c){if(a=="info"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersSet,true,c);
}else{if(a=="init"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalInit,true,c);}else{if(a=="beforeunload"){TeaLeaf.Event.tlEventJSONCfgUtil(TeaLeaf.Event.Configuration.tlHTTPRequestHeadersEvalBeforeUnload,true,c);
}}}};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.tlGetAlertCount=function(){var c,d,a;c=TeaLeaf;d=c.Event;a=d.getAlertCount?d.getAlertCount():0;return a;};TeaLeaf.Event.tlEventJSONCfgUtil=function(f,d,a){for(var c=0;
c<f.length;c++){if(a=="all"){f[c].load=d;}else{if(a==f[c].domevent){f[c].load=d;}}}};TeaLeaf.Event.tlErrorHandler=function(f,d,a){TeaLeaf.Event.Configuration.tlexceptioncount++;if(TeaLeaf.Event.Configuration.tlexceptioncount>TeaLeaf.Event.Configuration.tlmaxeventexception){return;
}if((typeof f!=="string")&&!d){return false;}var c=new Date();if(!a){a="-";}var h=new TeaLeaf.Event(TeaLeaf.$C("INFO"),TeaLeaf.$C("EXCEPTION"));var g=[TeaLeaf.$C("Message"),f,TeaLeaf.$C("URL"),escape(d),TeaLeaf.$C("Line"),a];
h.tlAddData(g);TeaLeaf.Event.Configuration.tlasync=true;h.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(){var T,TE,TECfg;
T=TeaLeaf;TE=T.Event;TECfg=TE.Configuration;if(TECfg.tlCatchAlerts){(function(){var alertCount,originalAlert,originalConfirm,originalPrompt;alertCount=0;if(window.alert&&window.alert.apply){originalAlert=window.alert;
window.alert=function(){var retVal;retVal=originalAlert.apply(window,arguments);alertCount++;return retVal;};}if(window.confirm&&window.confirm.apply){originalConfirm=window.confirm;
window.confirm=function(){var retVal;retVal=originalConfirm.apply(window,arguments);alertCount++;return retVal;};}if(window.prompt&&window.prompt.apply){originalPrompt=window.prompt;
window.prompt=function(){var retVal;retVal=originalPrompt.apply(window,arguments);alertCount++;return retVal;};}TE.getAlertCount=function(){return alertCount;};})();}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;};TeaLeaf.Event.tlAddCustomEvent=function(c,f){var g,h,d,a,l;if(!c||typeof c!=="string"){c="custom";}if(!f||typeof f!=="object"){return;
}l=new TeaLeaf.Event(TeaLeaf.$C("CUSTOM"),c);g=0;a=[];for(h in f){if(h&&f.hasOwnProperty(h)){a[g++]=TeaLeaf.Event.tlXMLEncode(h);a[g++]=f[h].toString();}}l.tlAddData(a);l.tlSend();};
if(TeaLeaf.Event.Configuration.tlinit==false){TeaLeaf.Event.Configuration.tlinit=true;TeaLeaf.Event.prototype.XMLData="";TeaLeaf.addOnLoad(TeaLeaf.Event.EventSetup);}}if(typeof TeaLeaf!=="undefined"&&((typeof TeaLeaf.replay==="function")?!TeaLeaf.replay():!TeaLeaf.replay)&&TeaLeaf.Env&&TeaLeaf.Env.Configuration){TeaLeaf.Env.tlSendPageSummary=function(){var d,a,c,f,l,g,h;
d=TeaLeaf;a=d.Configuration;c=d.Env;f=d.Event;l=c.Configuration;g=f.Configuration;if(a.tlSDK||!l.tlinitpost){return;}l.tlinitpost=false;h=new f(d.$C("PERFORMANCE"),d.$C("INIT"));f.PageLoadMilliSecs=f.tlDateDiff(d.tlStartLoad,h.date);
f.SetType=h.EventType;if(!f.SetSubType){f.SetSubType=h.EventSubType;}else{f.SetSubType+="; "+h.EventSubType;}g.tlinitflag=true;c.tlInfo(h);c.tlDOMDocumentInfo(h);c.tlDOMWindowInfo(h);
c.tlDOMScreenInfo(h);c.tlPluginInfo(h);h.tlSend(true);};TeaLeaf.Env.tlInfo=function(c){c.tlPushXML(TeaLeaf.$C("Info"));var a=[TeaLeaf.$C("PageLoadMilliSecs"),TeaLeaf.Event.tlGetRenderTime(),TeaLeaf.$C("Version"),TeaLeaf.Event.tlGetJSVersion(),TeaLeaf.$C("TimezoneOffset"),c.date.getTimezoneOffset()];
c.tlAddData(a);c.tlPopXML();};TeaLeaf.Env.tlDOMDocumentInfo=function(f){var d,c,a;a=TeaLeaf;f.tlPushXML(a.$C("Document"));d=[a.$C("Title"),document.title,a.$C("Referer"),document.referer,a.$C("ContentType"),document.contentType,a.$C("LastModified"),document.lastModified,a.$C("CharacterSet"),document.characterSet,a.$C("Height"),document.height,a.$C("Width"),document.width];
f.tlAddData(d);c=[a.$C("Anchors"),document.anchors.length,a.$C("Applets"),document.applets.length,a.$C("Embeds"),document.embeds.length,a.$C("Forms"),document.forms.length,a.$C("Images"),document.images.length,a.$C("BadImages"),(a.tlBrowserIsWebKit()?0:a.Event.tlBadImageCount()),a.$C("Links"),document.links.length,a.$C("Plugins"),document.plugins.length];
f.tlAddData(c);f.tlPopXML();};TeaLeaf.Env.tlDOMWindowInfo=function(h){var c,g,d,a;c=TeaLeaf;h.tlPushXML(c.$C("Window"));g=[c.$C("WindowHref"),escape(window.location.href),c.$C("WindowProtocol"),window.location.protocol,c.$C("WindowHost"),window.location.host,c.$C("WindowHostName"),window.location.hostname,c.$C("WindowPort"),window.location.port,c.$C("WindowPathName"),window.location.pathname];
h.tlAddData(g);if(window.innerHeight&&window.innerWidth){h.tlAddData([c.$C("ClientSize"),(window.innerHeight+"x"+window.innerWidth)]);}else{if(document.body){if(document.body.clientWidth&&document.body.clientHeight){h.tlAddData([c.$C("ClientSize"),(document.body.clientHeight+"x"+document.body.clientWidth)]);
}}}d=[c.$C("FullScreen"),navigator.fullScreen,c.$C("Frames"),window.frames.length];if(typeof window.sessionStorage==="object"){try{a=window.sessionStorage.TLTWID;if(a==null){a=c.makeRandomString(6);
window.sessionStorage.TLTWID=a;}}catch(f){a=null;}finally{h.tlAddData([c.$C("WindowId"),a]);}}h.tlAddData(d);h.tlPopXML();};TeaLeaf.Env.tlDOMNavigatorInfo=function(c){c.tlPushXML(TeaLeaf.$C("Navigator"));
var a=[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(a);c.tlPopXML();};TeaLeaf.Env.tlDOMScreenInfo=function(c){c.tlPushXML(TeaLeaf.$C("Screen"));var a=[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(a);c.tlPopXML();};TeaLeaf.Env.tlPluginInfo=function(m){if(window.ActiveXObject){for(var f=0;f<TeaLeaf.Env.Configuration.tlPlugins.length;f++){if(!TeaLeaf.Env.Configuration.tlPlugins[f].tlenable){continue;
}var c=TeaLeaf.Env.Configuration.tlPlugins[f].tlIEplugin;try{var a=new ActiveXObject(c);if(a){m.tlPushXML(TeaLeaf.$C("Plugin"));var l=[TeaLeaf.$C("Pluginname"),TeaLeaf.Env.Configuration.tlPlugins[f].tlpluginname,TeaLeaf.$C("Version"),TeaLeaf.Env.Configuration.tlPlugins[f].tlversion];
m.tlAddData(l);m.tlPopXML();}}catch(h){}}}else{for(var f=0;f<navigator.plugins.length;f++){for(var d=0;d<TeaLeaf.Env.Configuration.tlPlugins.length;d++){if(!TeaLeaf.Env.Configuration.tlPlugins[d].tlenable){continue;
}var g=navigator.plugins[f].name.substr(0,TeaLeaf.Env.Configuration.tlPlugins[d].tlpluginname.length);if(g==TeaLeaf.Env.Configuration.tlPlugins[d].tlpluginname){TeaLeaf.Env.Configuration.tlPlugins[d].tlenable=false;
m.tlPushXML(TeaLeaf.$C("Plugin"));var l=[TeaLeaf.$C("Pluginname"),TeaLeaf.Env.Configuration.tlPlugins[d].tlpluginname,TeaLeaf.$C("Version"),TeaLeaf.Env.Configuration.tlPlugins[d].tlversion];
m.tlAddData(l);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(typeof TeaLeaf!=="undefined"&&((typeof TeaLeaf.replay==="function")?!TeaLeaf.replay():!TeaLeaf.replay)&&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(c,a){if(c==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(c,a){if(c==window){TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlWindowHandlers,false,a);}else{TeaLeaf.Client.tlClientJSONCfgUtil(TeaLeaf.Client.Configuration.tlDocumentHandlers,false,a);
}};TeaLeaf.Client.tlClientJSONCfgUtil=function(f,d,a){for(var c=0;c<f.length;c++){if(a=="all"){f[c].load=d;}else{if(a==f[c].domevent){f[c].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(f){if((f.id&&f.id!="")||(f.name&&f.name!="")){return;
}var g=f.tagName;var h=TeaLeaf.Client.Configuration.tlIdCounter[g];if(h==undefined){TeaLeaf.Client.Configuration.tlIdCounter[g]=0;}var a="_TL_"+g+"_"+TeaLeaf.Client.Configuration.tlIdCounter[g];
var d=document.getElementById(a);var c=a;if(d){while(document.getElementById("_TL_"+g+"_"+TeaLeaf.Client.Configuration.tlIdCounter[g]++)){}}f.id=c;TeaLeaf.Client.Configuration.tlIdCounter[g]++;
};TeaLeaf.Client.tlFindinJSON=function(a,d){var f=TeaLeaf.Client.tlGetName(a);if(f){for(var c=0;c<d.length;c++){if(f==d[c].tlfieldname){return d[c];}}}};TeaLeaf.Client.EmptyMask=function(a){return"";
};TeaLeaf.Client.BasicMask=function(a){if(!a||!a.value){return null;}return"XXXXXX";};TeaLeaf.Client.PreserveMask=function(c){var a,d;if(!c||!c.value){return null;}a=TeaLeaf.Client.Configuration.tlPrivacyMask;
d=c.value;d=d.replace(/[A-Z]/g,a.upperChar);d=d.replace(/[a-z]/g,a.lowerChar);d=d.replace(/[0-9]/g,a.numericChar);d=d.replace(/[^A-Za-z0-9]/g,a.symbolChar);return d;};TeaLeaf.Client.getFieldBlockMatch=function(c){var a,d;
d=TeaLeaf.Client.Configuration.tlFieldBlock;if(typeof c==="string"){c=document.getElementById(c);}if(!c){return null;}for(a=0;a<d.length;a++){if(d[a].id){if(!d[a].idRE){d[a].idRE=new RegExp(d[a].id,(d[a].caseinsensitive?"i":""));
}if(d[a].idRE.test(c.id)){return d[a];}}if(d[a].name){if(!d[a].nameRE){d[a].nameRE=new RegExp(d[a].name,(d[a].caseinsensitive?"i":""));}if(d[a].nameRE.test(c.name)){return d[a];}}}return null;
};TeaLeaf.Client.tlIsReplace=function(a){if(typeof a==="string"){a=document.getElementById(a);}if(!a){return false;}if(TeaLeaf.Client.getFieldBlockMatch(a)){return true;}if(a.type==="password"){return TeaLeaf.Client.Configuration.tlpassword===2;
}return false;};TeaLeaf.Client.tlReplaceValue=function(a){var c;if(typeof a==="string"){a=document.getElementById(a);}if(!a){return null;}c=TeaLeaf.Client.getFieldBlockMatch(a);if(c){return c.mask(a);
}return a.value;};TeaLeaf.Client.tlIsExcluded=function(a){var c;if(typeof a==="string"){a=document.getElementById(a);}if(!a){return false;}c=TeaLeaf.Client.getFieldBlockMatch(a);if(c){return c.exclude;
}if(a.type==="password"){return TeaLeaf.Client.Configuration.tlpassword===2;}return false;};TeaLeaf.Client.tlGetName=function(d){if(d==null){return null;}var c=d.id;if(c&&c!=""){return c;
}var a=d.name;if(a&&a!=""){return a;}return null;};TeaLeaf.Client.tlGetEventSource=function(c){var a;a=null;if(!c){return null;}if(c.srcElement){a=c.srcElement;}else{a=c.target;if(!a){a=c.explicitOriginalTarget;
}if(!a){a=c.originalTarget;}}if(a&&!a.name){if(a.parentNode&&a.parentNode.tagName){if(a.parentNode.tagName=="A"||a.parentNode.tagName=="LINK"){a=a.parentNode;}}}if(!a||!a.tagName){a=window.document.body;
}return a;};TeaLeaf.Client.tlGetAnchor=function(d,c){if(d==null){return null;}if(d.name&&d.name!=""){return null;}var a;for(a=0;a<document.anchors.length;a++){if(document.anchors[a]==d){if(c){return"<AnchorElement>"+a+"</AnchorElement>\r\n";
}else{return"Anchor-"+a;}}}for(a=0;a<document.links.length;a++){if(document.links[a]==d){if(c){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(f){if(!f||f.length<=0){return null;}var c="";if(!TeaLeaf.Event.tlNameStartChar(f.charCodeAt(0))){c="_";
}var a=f.length;var d;for(d=0;d<a;d++){if(TeaLeaf.Event.tlNameChar(f.charCodeAt(d))){c=c+f.charAt(d);}else{c=c+"_";}}return c;};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.getNormalizedKeyCode=function(c){var a;if(!c||!c.keyCode||(c.keyCode<32&&c.keyCode!==8&&c.keyCode!==20)){return null;}a="";if(c.ctrlKey){a+="c-";}if(c.altKey){a+="a-";
}if(c.shiftKey){a+="s-";}if(!TeaLeaf.tlBrowserIsIE()){switch(c.keyCode){case 59:a+=186;break;default:a+=c.keyCode;break;}}else{a+=c.keyCode;}return a;};TeaLeaf.Client.tlQueueKey=function(l){var g,f,h,d,a,c;
d=TeaLeaf;a=d.Client;c=a.Configuration;a.tlSendResize();a.tlSendScroll();if(!l){l=window.event;}f=a.tlGetEventSource(l);if(!f){return;}if(!f.TeaLeafFocusTime){f.TeaLeafFocusTime=new Date();
}if(a.tlQueuedKeySource){if(a.tlQueuedKeySource!=f){if(a.tlQueuedKeys&&a.tlQueuedKeys.length>0){a.tlSendKeys();}a.tlQueuedKeySource=f;}}else{a.tlQueuedKeySource=f;}g=a.tlGetName(f);
if(!g){g=a.tlGetXPathFromNode(f);if(!g){if(!a.tlGetAnchor(f,false)){a.tlQueuedKeySource=null;}return;}else{a.tlQueuedKeySource=f;}}else{if(a.tlIsReplace(f)){a.tlQueuedKeysCount++;return;
}if(a.tlIsExcluded(f)){a.tlQueuedKeys=null;a.tlQueuedKeysCount++;return;}}h=a.getNormalizedKeyCode(l);if(h){if(a.tlQueuedKeys&&a.tlQueuedKeys.length>0){a.tlQueuedKeys+=";";}a.tlQueuedKeys+=h;
}};TeaLeaf.Client.tlSendKeys=function(){var r=TeaLeaf.Client,h,g;if(!r.tlQueuedKeySource||(!r.tlQueuedKeys&&!r.tlQueuedKeysCount)){return;}var f=r.tlQueuedKeySource;var n=r.tlQueuedKeys;
var v=r.tlQueuedKeysCount;r.tlQueuedKeySource=null;r.tlQueuedKeys="";r.tlQueuedKeysCount=0;g=r.tlGetXPathFromNode(f);if(!g&&r.Configuration.tlDiscardInvalidXPath){return;}var t=false;
if(TeaLeaf.Client.tlIsReplace(f)){t=true;return;}var p=false;if(TeaLeaf.Client.tlIsExcluded(f)){p=true;n=null;}var a=TeaLeaf.Client.tlGetName(f);var c=null;h=f.id;if(!TeaLeaf.Client.CheckIfIdValid(f)){h="";
}var q=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("KeyUp"));var o=[TeaLeaf.$C("Name"),f.name,TeaLeaf.$C("Id"),h,TeaLeaf.$C("Lev"),c,TeaLeaf.$C("ElementType"),f.type,TeaLeaf.$C("TagName"),f.tagName,TeaLeaf.$C("XPath"),g,TeaLeaf.$C("KeyCount"),v];
q.tlAddData(o);if(p){q.tlAddData([TeaLeaf.$C("Excluded"),TeaLeaf.$C("True")]);}else{if(t){var m=TeaLeaf.Client.tlGetReplaceValue(f);var u=[TeaLeaf.$C("ValueIn"),a,a,m,TeaLeaf.$C("KeyCode"),n];
q.tlAddData(u);}else{var d=TeaLeaf.Event.tlFormatXMLName(a);if(!d){d=g;d=TeaLeaf.Event.tlFormatXMLName(d);}var l=[TeaLeaf.$C("ValueIn"),d,d,f.value,TeaLeaf.$C("KeyCode"),n];q.tlAddData(l);
}}q.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 a=[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(a);TeaLeaf.Client.ResizeClientX=null;TeaLeaf.Client.ResizeClientY=null;TeaLeaf.Client.ResizeScreenX=null;TeaLeaf.Client.ResizeScreenY=null;c.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 c=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("Scroll"));
var a=[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(a);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(c,a){var d=c.parentNode;while(d&&d!=window.document){if(d.nodeType!=1){continue;
}if(d.tagName==a){break;}else{d=d.parentNode;}}return d;};TeaLeaf.Client.tlCheckBlackList=function(a){var f,d,c;if(!TeaLeaf.Client.Configuration.tlIDBlackList||!TeaLeaf.Client.Configuration.tlIDBlackList.length){return false;
}if(a){for(f=0;f<TeaLeaf.Client.Configuration.tlIDBlackList.length;f++){c=new RegExp(TeaLeaf.Client.Configuration.tlIDBlackList[f],"g");d=a.match(c);if(d){return true;}}}return false;
};TeaLeaf.Client.tlCheckWhiteList=function(a){var f,d,c;if(!TeaLeaf.Client.Configuration.tlIDWhiteList||!TeaLeaf.Client.Configuration.tlIDWhiteList.length){return true;}if(a){for(f=0;
f<TeaLeaf.Client.Configuration.tlIDWhiteList.length;f++){c=new RegExp(TeaLeaf.Client.Configuration.tlIDWhiteList[f],"g");d=a.match(c);if(d){return true;}}}return false;};TeaLeaf.Client.tlGetXPathFromNode=function(a){if(!a){return null;
}var h=[];var m=a;var l=null;var n=null;for(var g in TeaLeaf.Client.Configuration.tlSpecialChildNodeTags){if(m.tagName.toString()==g){m=m.parentNode;}}var f=false;for(f=TeaLeaf.Client.CheckIfIdValid(m);
m!=window.document&&(!f);f=TeaLeaf.Client.CheckIfIdValid(m)){l=null;n=null;switch(m.tagName){case"TD":if(n=TeaLeaf.Client.tlFindAncestorByTag(m,"TR")){l=n.cells;}break;case"TR":if(n=TeaLeaf.Client.tlFindAncestorByTag(m,"TABLE")){l=n.rows;
}break;case"OPTION":if(n=TeaLeaf.Client.tlFindAncestorByTag(m,"SELECT")){l=n.options;}break;default:n=m.parentNode;if(!n){n=window.document;}l=n.childNodes;break;}if(l==null){return null;
}var d=0;for(var g=0;g<l.length;g++){if(l[g].nodeType==1&&l[g].tagName==m.tagName){if(l[g]==m){h[h.length]=[m.tagName.toUpperCase(),d];break;}d++;}}m=n;}if(f){h[h.length]=[m.id];}if(!h.length){return null;
}var c=[];for(var g=h.length-1;g>=0;g--){if(h[g].length>1){c[c.length]="['"+h[g][0]+"',"+h[g][1]+"]";}else{c[c.length]="['"+h[g][0].toString().replace(/'/g,"\\'")+"']";}}return"["+c.join(",")+"]";
};TeaLeaf.Client.CheckIfIdValid=function(a){var d;if(!a||!a.id||typeof(a.id)!="string"){return false;}if(TeaLeaf.Client.tlCheckBlackList(a.id)===true){return false;}if(TeaLeaf.Client.tlCheckWhiteList(a.id)===false){return false;
}if(!TeaLeaf.Client.Configuration.tlUniqueIDCheckEnabled){return true;}d=a.id;a.id=(new Date()).getTime()+"_TeaLeaf";try{if(!document.getElementById(d)){a.id=d;return true;}else{a.id=d;
return false;}}catch(c){return false;}finally{a.id=d;}};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(c){var d=TeaLeaf.Private,a;
if(!c){return;}if(!d.tlPrevEvent){d.tlPrevEvent={};}d.tlPrevEvent.type=c.type;d.tlPrevEvent.button=c.button;d.tlPrevEvent.clientX=c.clientX;d.tlPrevEvent.clientY=c.clientY;if(typeof c.keyCode!=="undefined"){d.tlPrevEvent.keyCode=c.keyCode;
}else{d.tlPrevEvent.keyCode=a;}if(typeof c.charCode!=="undefined"){d.tlPrevEvent.charCode=c.charCode;}else{d.tlPrevEvent.charCode=a;}if(typeof c.timeStamp!=="undefined"){if(c.timeStamp.getTime){d.tlPrevEvent.timeStamp=c.timeStamp.getTime();
}else{d.tlPrevEvent.timeStamp=c.timeStamp;}}else{d.tlPrevEvent.timeStamp=new Date().getTime();}if(typeof c.target!=="undefined"){d.tlPrevEvent.target=c.target;}else{d.tlPrevEvent.target=a;
}if(typeof c.srcElement!=="undefined"){d.tlPrevEvent.srcElement=c.srcElement;}else{d.tlPrevEvent.srcElement=a;}};TeaLeaf.Private.getLastProcessedEvent=function(){return TeaLeaf.Private.tlPrevEvent;
};TeaLeaf.Client.isDuplicateEvent=function(a){var f=TeaLeaf.Private,d=f.getLastProcessedEvent();if(!d||!a){f.setLastProcessedEvent(a);return false;}if(d.type!==a.type){f.setLastProcessedEvent(a);
return false;}if(d.target!==a.target){f.setLastProcessedEvent(a);return false;}if(d.srcElement!==a.srcElement){f.setLastProcessedEvent(a);return false;}if(d.button!==a.button){f.setLastProcessedEvent(a);
return false;}if(d.clientX!==a.clientX||d.clientY!==a.clientY){f.setLastProcessedEvent(a);return false;}if(d.keyCode!==a.keyCode){f.setLastProcessedEvent(a);return false;}if(typeof a.timeStamp!=="undefined"){var c=a.timeStamp.getTime?a.timeStamp.getTime():a.timeStamp;
if(d.timeStamp!==c){f.setLastProcessedEvent(a);return false;}}else{a.timeStamp=new Date().getTime();if(Math.abs(a.timeStamp-d.timeStamp)>300){f.setLastProcessedEvent(a);return false;
}}f.setLastProcessedEvent(a);return true;};TeaLeaf.Client.tlCheckAttributes=function(h,l){var d=[];var c=TeaLeaf.Client.Configuration.tlAttributeCapture;for(var f=0;f<c.length;f++){if(c[f].tlevent==l.type){var m=c[f].tltagname.toLowerCase();
var g=h.tagName.toLowerCase();if(m==g){var a=h.getAttribute(c[f].tlattributename);if(a){d.push(c[f].tlattributename,escape(a));}}}}return d;};TeaLeaf.Client.tlAddEvent=function(a){var h=TeaLeaf,g=h.Client,w=g.Configuration,t,u,d,v,n,o,p,l,r,x,m,f,c,y,q;
if(!a){a=window.event;}u=g.tlGetEventSource(a);if(!u){return;}q=g.tlGetXPathFromNode(u);if(!q&&w.tlDiscardInvalidXPath){return;}o=[];if(w.tlEnableAttr){o=g.tlCheckAttributes(u,a);}g.tlSendKeys();
g.tlSendResize();g.tlSendScroll();if(!u.TeaLeafFocusTime){switch(a.type.toLowerCase()){case"keyup":case"change":case"click":case"dblclick":case"mousedown":u.TeaLeafFocusTime=new Date();
break;}}if(a.type.toLowerCase()==="blur"&&u.type&&u.type.toLowerCase()==="application/x-shockwave-flash"){return;}if(a.type.toLowerCase()==="click"&&g.checkIsInput(u)){h.Event.Configuration.tlidoflastvisitedcontrol=g.tlGetName(u);
}if(a.type.toLowerCase()==="click"&&(u.tagName.toUpperCase()==="A")&&h.tlBrowserIsIE()){w.tlIEhref=false;r=u.href;if(r==="#"){w.tlIEhref=true;}else{x="javascript:";p=r.substr(0,x.length);
if(p.toLowerCase()==x){w.tlIEhref=true;}}}l=new h.Event(h.$C("GUI"),a.type);f=g.tlGetName(u);c=u.id;if(!g.CheckIfIdValid(u)){c="";}v=[h.$C("Name"),u.name,h.$C("Id"),c,h.$C("ElementType"),u.type,h.$C("TagName"),u.tagName,h.$C("AltKey"),a.altKey?h.$C("True"):null,h.$C("CtrlKey"),a.ctrlKey?h.$C("True"):null,h.$C("ShiftKey"),a.shiftKey?h.$C("True"):null,h.$C("XPath"),q];
l.tlAddData(v);if(w.tlEnableAttr&&o&&o.length>0){l.tlAddData(o);}if(a.type.toLowerCase()==="blur"&&u.TeaLeafFocusTime){d=new Date();l.tlAddData([h.$C("TimeInControl"),h.Event.tlDateDiff(d,u.TeaLeafFocusTime)]);
u.TeaLeafFocusTime=null;}if(g.tlIsExcluded(u)){l.tlAddData([h.$C("Excluded"),h.$C("True")]);}else{y=null;m=null;n=[];if(!u.value&&a.type.toLowerCase()==="change"&&u.tagName.toUpperCase()==="SELECT"){t=u.selectedIndex;
if(t>=0&&t<u.options.length){y=escape(u.options[t].text);}}else{y=g.tlReplaceValue(u);}if(y){m=h.Event.tlFormatXMLName(f);if(!m){m=q;m=h.Event.tlFormatXMLName(m);}n=[h.$C("ValueIn"),m,m,y];
}if(u.type&&(u.type.toLowerCase()==="checkbox"||u.type.toLowerCase()==="radio")){n.push(h.$C("Checked"),u.checked?h.$C("True"):h.$C("False"));}l.tlAddData(n);}l.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 m=TeaLeaf.Client.tlGetEventSource(l);if(!m){return;}var n;if(!m.name){var a=document.forms;
for(n=0;n<a.length;n++){if(a[n]==m){m.name="Ordinal-"+n;break;}}}if(!m.name){return;}if(TeaLeaf.Client.tlIsReplace(m)){var p=TeaLeaf.Client.tlGetReplaceValue(m);var c=TeaLeaf.Client.tlGetName(m);
var t=[TeaLeaf.$C("ValueIn"),c,c,p];r.tlAddData(t);}var r=new TeaLeaf.Event(TeaLeaf.$C("GUI"),l.type);var q=[TeaLeaf.$C("Name"),m.name,TeaLeaf.$C("Id"),m.id,TeaLeaf.$C("ElementType"),m.type,TeaLeaf.$C("TagName"),m.tagName,TeaLeaf.$C("AltKey"),l.altKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("CtrlKey"),l.ctrlKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("ShiftKey"),l.shiftKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("NodeName"),l.nodeName,TeaLeaf.$C("NodeValue"),l.nodeValue,TeaLeaf.$C("VisitOrder"),TeaLeaf.Event.Configuration.tlvisitorder];
r.tlAddData(q);var g=m.getElementsByTagName("INPUT");r.tlAddData([TeaLeaf.$C("InputFieldCount"),g.length]);r.tlPushXML(TeaLeaf.$C("InputFields"));for(n=0;n<g.length;n++){var f=g[n];
if(!f.name){continue;}r.tlPushXML(TeaLeaf.$C("Field")+n);var d=[TeaLeaf.$C("Name"),f.name,TeaLeaf.$C("Id"),f.id,TeaLeaf.$C("ElementType"),f.type,TeaLeaf.$C("TagName"),f.tagName];r.tlAddData(d);
if(TeaLeaf.Client.tlIsExcluded(c)){r.tlAddData([TeaLeaf.$C("Excluded"),TeaLeaf.$C("True")]);}else{if(TeaLeaf.Client.tlIsReplace(f.name)){var p=TeaLeaf.Client.tlGetReplaceValue(f);var c=TeaLeaf.Client.tlGetName(f);
var t=[TeaLeaf.$C("ValueIn"),c,c,p];r.tlAddData(t);}else{var h=TeaLeaf.Event.tlFormatXMLName(f.name);var o=[TeaLeaf.$C("ValueIn"),h,h,f.value];r.tlAddData(o);}}r.tlPopXML();}r.tlPopXML();
r.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(d){TeaLeaf.Client.tlSendKeys();
TeaLeaf.Client.tlSendResize();TeaLeaf.Client.tlSendScroll();if(!d){d=window.event;}var f=TeaLeaf.Client.tlGetEventSource(d);if(!f){return;}var g;if(!f.name){var a=document.forms;for(g=0;
g<a.length;g++){if(a[g]==f){f.name="Ordinal-"+g;break;}}}if(!f.name){return;}if(TeaLeaf.Client.tlIsReplace(f)){var h=TeaLeaf.Client.tlGetReplaceValue(f);var c=TeaLeaf.Client.tlGetName(f);
var n=[TeaLeaf.$C("ValueIn"),c,c,h];m.tlAddData(n);}var m=new TeaLeaf.Event(TeaLeaf.$C("GUI"),d.type);var l=[TeaLeaf.$C("Name"),f.name,TeaLeaf.$C("Id"),f.id,TeaLeaf.$C("ElementType"),f.type,TeaLeaf.$C("TagName"),f.tagName,TeaLeaf.$C("AltKey"),d.altKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("CtrlKey"),d.ctrlKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("ShiftKey"),d.shiftKey?TeaLeaf.$C("True"):null,TeaLeaf.$C("NodeName"),d.nodeName,TeaLeaf.$C("NodeValue"),d.nodeValue,TeaLeaf.$C("VisitOrder"),TeaLeaf.Event.Configuration.tlvisitorder];
m.tlAddData(l);m.tlSend();TeaLeaf.tlVisitOrder="";};TeaLeaf.Client.tlBeforeUnload=function(){if(TeaLeaf.Client.tlBeforeUnloadFired){return;}if(TeaLeaf.Client.Configuration.tlIEhref){TeaLeaf.Client.Configuration.tlIEhref=false;
return;}TeaLeaf.Client.tlBeforeUnloadFired=true;if(!TeaLeaf.Configuration.xhrAsyncOnUnload){TeaLeaf.Configuration.xhrAsync=false;}if(TeaLeaf.Client.Configuration.tlStoreQueueInCookie){var f=new Date();
f.setTime(f.getTime()+300000);var c=TeaLeaf.Event.tlQueuedXML.replace(/(\r|\n)/g,"").replace(/;/g,"%3B");TeaLeaf.tlSetCookie("tlQueuedXML",c,f,"/");}if(TeaLeaf.Client.Configuration.tlbeforeunloadflag==true){TeaLeaf.Event.Configuration.tllastdwelltime=new Date();
TeaLeaf.Client.Configuration.tlunloadflag=false;var g=new TeaLeaf.Event(TeaLeaf.$C("PERFORMANCE"),TeaLeaf.$C("BeforeUnload"));TeaLeaf.Event.SetType=g.EventType;if(!TeaLeaf.Event.SetSubType){TeaLeaf.Event.SetSubType=g.EventSubType;
}else{TeaLeaf.Event.SetSubType+="; "+g.EventSubType;}TeaLeaf.Event.Configuration.tlbeforeunloadflag=true;var a=[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,TeaLeaf.$C("Alerts"),TeaLeaf.Event.tlGetAlertCount()];
g.tlAddData(a);TeaLeaf.Event.Configuration.tlasync=false;g.tlSend();TeaLeaf.Event.tlFlushQueue(true);TeaLeaf.Event.Configuration.tlvisitorder="";}setTimeout(function(){TeaLeaf.Client.tlBeforeUnloadFired=false;
TeaLeaf.Configuration.xhrAsync=true;},1000);};TeaLeaf.Client.tlUnload=function(){var d,a,c,l,f,g,h;d=TeaLeaf;a=d.Client;c=a.Configuration;l=d.Event;f=l.Configuration;a.tlDetachFromAllControls();
if(!a.tlBeforeUnloadFired&&c.tlunloadflag){f.tllastdwelltime=new Date();c.tlbeforeunloadflag=false;h=new l(d.$C("PERFORMANCE"),d.$C("Unload"));l.SetType=h.EventType;if(!l.SetSubType){l.SetSubType=h.EventSubType;
}else{l.SetSubType+="; "+h.EventSubType;}g=[d.$C("MouseMove"),a.tlHasUserMovement?d.$C("True"):d.$C("False"),d.$C("Action"),c.tlactiontype,d.$C("VisitOrder"),f.tlvisitorder];h.tlAddData(g);
d.Configuration.xhrAsync=false;h.tlSend();l.tlFlushQueue(true);f.tlvisitorder="";}};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;if(control.TeaLeaf||control.TeaLeafExclude){return;}control.TeaLeaf=true;if(TeaLeaf.Client.Configuration.tlassignTLID){TeaLeaf.Client.tlAddIdToControl(control);
}switch(control.tagName){case"INPUT":case"SELECT":case"TEXTAREA":TeaLeaf.Event.tlAddHandler(control,"focus",TeaLeaf.Client.tlSetFocusTime,false);TeaLeaf.Event.tlAddHandler(control,"blur",TeaLeaf.Client.tlHandleBlur,false);
TeaLeaf.Event.tlAddHandler(control,"change",TeaLeaf.Client.tlAddEvent,false);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(f){try{if(f.document){var a=f.document.getElementsByTagName("INPUT");
for(var c=0;c<a.length;c++){TeaLeaf.Client.tlCheckAttach(a[c]);}a=f.document.getElementsByTagName("SELECT");for(var c=0;c<a.length;c++){TeaLeaf.Client.tlCheckAttach(a[c]);}a=f.document.getElementsByTagName("BODY");
if(a.length>0){a=a[0].getElementsByTagName("*");for(var c=0;c<a.length;c++){TeaLeaf.Client.tlCheckAttach(a[c]);}}}}catch(d){}};TeaLeaf.Client.tlProcessNode=function(l,d){var g,c,f,a;
if(typeof(l)==="string"){l=document.getElementById(l);}if(!l){l=window.document.body;}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(!d){f=["INPUT","SELECT","TEXTAREA"];
for(g=0;g<f.length;g++){a=l.getElementsByTagName(f[g]);for(c=0;c<a.length;c++){TeaLeaf.Client.tlCheckAttach(a[c]);}}if(TeaLeaf.Client.Configuration.tlUniversalAttach){if(TeaLeaf.Client.Configuration.tlExcludeTags){a=l.getElementsByTagName("*");
for(g=0;g<a.length;g++){if(TeaLeaf.Client.tlTagNameAllowed(a[g].tagName)){TeaLeaf.Client.tlCheckAttach(a[g]);}}}else{for(g in TeaLeaf.Client.Configuration.tlNodeTags){a=l.getElementsByTagName(g);
for(c=0;c<a.length;c++){TeaLeaf.Client.tlCheckAttach(a[c]);}}}}}}catch(h){}};TeaLeaf.Client.tlSetFocusTime=function(c){if(!c){c=window.event;}var a=TeaLeaf.Client.tlGetEventSource(c);
if(!a||a.type=="application/x-shockwave-flash"){return;}var a=TeaLeaf.Client.tlGetEventSource(c);if(!a){return;}if(!a.TeaLeafFocusTime){a.TeaLeafFocusTime=new Date();}if(TeaLeaf.Client.Configuration.tlsendfocus){TeaLeaf.Client.tlAddEvent(c);
}};TeaLeaf.Client.tlHandleBlur=function(c){if(!c){c=window.event;}var a=TeaLeaf.Client.tlGetEventSource(c);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(c);
}a.TeaLeafFocusTime=null;};TeaLeaf.Client.tlEndVisit=function(d){if(d.TeaLeafFocusTime){var a=TeaLeaf.Client.tlGetName(d);if(!a){a=TeaLeaf.Client.tlGetAnchor(d,false);if(a){a="LEVEL"+a;
}else{a="unnamed";}}var f=TeaLeaf.Event.tlDateDiff(d.TeaLeafFocusTime,new Date());var c=a+":"+f;if(TeaLeaf.Event.Configuration.tlvisitorder!=""){TeaLeaf.Event.Configuration.tlvisitorder=TeaLeaf.Event.Configuration.tlvisitorder+";"+c;
}else{TeaLeaf.Event.Configuration.tlvisitorder=c;}}};TeaLeaf.Client.tlDetachFromAllControls=function(){TeaLeaf.Client.Configuration.tlcontrolsattached=false;TeaLeaf.Client.tlDetachFromControls(window);
try{var c;for(c=0;c<window.frames.length;c++){var a=window.frames[c];TeaLeaf.Client.tlDetachFromControls(a);}}catch(d){}};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.tlScanForAdditions=function(){if(!TeaLeaf.Client.Configuration.tlScheduledScan){return;
}TeaLeaf.Client.tlProcessNode(document.body);try{for(var c=0;c<window.frames.length;c++){var a=window.frames[c];TeaLeaf.Client.tlProcessNode(a.document.body);}}catch(d){}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 c=TeaLeaf.Client.Configuration.tlNodeTags[a];if(c==null){c=false;}if(TeaLeaf.Client.Configuration.tlExcludeTags){return !c;}else{return c;}};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(d,f){var m=new TeaLeaf.Event(TeaLeaf.$C("GUI"),f);
var l=[TeaLeaf.$C("Name"),d.name,TeaLeaf.$C("Id"),d.id,TeaLeaf.$C("ElementType"),d.type];m.tlAddData(l);var g=TeaLeaf.Client.tlGetName(d);var c=TeaLeaf.Event.tlFormatXMLName(g);var a=TeaLeaf.Client.tlReplaceValue(d);
var h=[TeaLeaf.$C("ValueIn"),c,c,a];m.tlAddData(h);m.tlSend();};TeaLeaf.Client.tlSetup=function(){var a=TeaLeaf.tlGetCookieValue("tlQueuedXML");if(a){TeaLeaf.Event.tlQueuedXML+=a.replace(/%3B/g,";");
}TeaLeaf.Client.tlAttachToAllControls();TeaLeaf.Client.tlSingleAttach();if(TeaLeaf.Event.Configuration.tlcatchpopups){TeaLeaf.SavedWindowOpen=window.open;window.open=function(c,d,g,h){var l="blocked";
var f;if(typeof TeaLeaf.SavedWindowOpen=="function"){f=TeaLeaf.SavedWindowOpen.apply(this,arguments);}else{c=c?c:"";d=d?d:"";g=g?g:"";f=TeaLeaf.SavedWindowOpen(c,d,g,h);}try{if(!f.closed){l="visible";
}}catch(o){if(TeaLeaf.Event.Configuration.tlshowexceptions){alert(o.name+": "+o.message+"\r\n\r\nPos 8");}}var n=new TeaLeaf.Event(TeaLeaf.$C("GUI"),TeaLeaf.$C("WindowOpen"));var m=[TeaLeaf.$C("Status"),l,TeaLeaf.$C("URL"),escape(c),TeaLeaf.$C("Name"),d,TeaLeaf.$C("Features"),g,TeaLeaf.$C("Replace"),h];
n.tlAddData(m);n.tlSend();return f;};}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();}}var custom_var,O_tmoff=360000,_sp="%3A\\/\\/",_rp="%3A//",_poE=0,_poX=0,_fb=0,_xs,_ys,_sticky=0,_sticky_x=0,_sticky_y=0,_top=0,_stop=0,_sH=screen.height,_d=document,_w=window,_ua=navigator.userAgent.toLowerCase(),_uav=0,_ht=escape(_w.location.href),_hr=_d.referrer,_tm=(new Date()).getTime(),_kp=0,_sW=screen.width,_vS="visible",_vH="hidden",_hdn=0,_rz=0,O_pxc,O_pyc,_ofx=_d.all?-34:-65+(_ua.indexOf("safari")>-1?31:15),_ofy=-52,_alk='<a href=\'javascript:{_fW(_ht,1);_hdn=1;O_LC();_Sh("O_c",0)}\' onMouseOver=\'_Ps("O_c",_Gd("O_o",0)-91,_Gd("O_o",1)-39);_Sh("O_o",0);_Sh("O_c",1)\' onMouseOut=\'_Sh("O_c",0);_Sh("O_o",1);return 1\'>';
_w.onresize=O_Rz;function O_Rz(){O_Move(1);}_d.onkeypress=_fK;function _fK(a){if(!a){a=_w.event;}var c=(typeof a.which=="number")?a.which:a.keyCode;if((_kp==15&&c==12)){_w.open("https://dashboard.opinionlab.com/pv_controlboard.html?url="+_fC(_ht),"PageViewer","height=529,width=705,screenX="+((_sW-705)/2)+",screenY="+((_sH-529)/2)+",top="+((_sH-529)/2)+",left="+((_sW-705)/2)+",status=yes,toolbar=no,menubar=no,location=no,resizable=yes");
}_kp=c;}function _fC(_u){_aT=_sp+",\\/,\\.,-,_,"+_rp+",%2F,%2E,%2D,%5F";_aA=_aT.split(",");for(i=0;i<5;i++){eval("_u=_u.replace(/"+_aA[i]+"/g,_aA[i+5])");}return _u;}function O_LC(){_w.open("https://secure.opinionlab.com/ccc01/comment_card.asp?time1="+_tm+"&time2="+(new Date()).getTime()+"&prev="+_fC(escape(_hr))+"&referer="+_fC(_ht)+"&height="+_sH+"&width="+_sW+"&custom_var="+custom_var,"comments","width=535,height=192,screenX="+((_sW-535)/2)+",screenY="+((_sH-192)/2)+",top="+((_sH-192)/2)+",left="+((_sW-535)/2)+",resizable=yes,copyhistory=yes,scrollbars=no");
}function _fPe(){if(Math.random()>=1-_poE&&_fR(_MD4(_ht))==""){_fW(_ht,1);O_LC();_poX=0;}}function _fPx(){if(Math.random()>=1-_poX&&_fR(_MD4(_ht))==""){_fW(_ht,1);O_LC();}}window.onunload=_fPx;
function _Pd(a){return _d.getElementById?_d.getElementById(a):(_d.all?_d.all[a]:(_d.layers?_d.layers[a]:null));}if(_d.all){_b=_d.body;strict=false;var _td=document.doctype;strict=(document.compatMode=="CSS1Compat");
strict=(_td&&_td.systemId?(_td.systemId.indexOf("strict")>-1?true:(_td.publicId.indexOf("transitional")>-1?true:false)):(_td&&_td.publicId.indexOf("transitional")==-1?true:strict));
strict=(_td&&_td.name.indexOf(".dtd")>-1)?true:strict;if(strict){_b=_d.documentElement;}}function _Gd(a,c){g2=_Pd(a);if(g2){if(c){return g2.offsetTop;}else{return g2.offsetLeft+(_uav<1?1:0)+(_uav<=1.4?10:0)+(_uav==1.4?-1:0);
}}}function _Sh(a,c){g2=_Pd(a);if(g2){a=c?(_hdn?_vH:_vS):_vH;_d.getElementById?(g2.style.visibility=a):(_d.all?g2.style.display=a:(_d.layers?g2.visibility=a:null));}}function _Ps(d,a,f){var c=_Pd(d);
if(c){_d.getElementById?(c.style.left=a+"px")&&(c.style.top=f+"px"):(_d.all?(c.style.left=a)&&(c.style.top=f):(_d.layers?(c.left=a)&&(c.top=f):null));}}function O_PosW(a,c){ly_w=0;if(!_d.all){return(_sticky&&_sticky_x!=-1?_sticky_x:(_w.innerWidth+self.pageXOffset))+a-ly_w;
}else{return(_sticky&&_sticky_x!=-1?_sticky_x:(_b.clientWidth+_b.scrollLeft))+a;}}function O_PosH(a,c){ly_h=0;if(!_d.all){return(_sticky&&_sticky_y!=-1?_sticky_y:(_w.innerHeight+self.pageYOffset))+a-ly_h;
}else{return(_sticky&&_sticky_y!=-1?_sticky_y:(_b.clientHeight+_b.scrollTop))+a;}}function O_Moved(){if(_d.all){O_rc=((_b.scrollLeft!=O_pxc)||(_b.scrollTop!=O_pyc));O_pxc=_b.scrollLeft;
O_pyc=_b.scrollTop;return O_rc;}else{O_rc=((self.pageXOffset!=O_pxc)||(self.pageYOffset!=O_pyc));O_pxc=self.pageXOffset;O_pyc=self.pageYOffset;return O_rc;}}function O_Move(a){if(O_Moved()||a){_Ps("O_o",O_PosW((_fb?-50+_ofx:_ofx),_d.O_o),O_PosH(_ofy,_d.O_o));
}otimerID=setTimeout("O_Move(0)",100);}function O_GoC(a){if(_ua.indexOf("gecko")){_uav=parseFloat(_ua.substr(_ua.indexOf("; rv:")+5,_ua.indexOf(") gecko/")-_ua.indexOf("; rv:")+5));
}if((navigator.userAgent.indexOf("Opera 6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)||(navigator.appVersion.indexOf("MSIE 4.")!=-1)||document.layers||(_ua.indexOf("mac_powerpc")>-1&&_ua.indexOf("msie")>-1)){return;
}_xs=_top?91:(_fb?91:119);_ys=_top?0:39;if(!_d.layers){if(_fR(_MD4(escape(_w.location.href)))==""){_d.write("<div id='O_o' style='position:absolute;z-index:999;visibility:"+(_hdn?_vH:_vS)+'\' onMouseOver=\'_Ps("O_c",_Gd("O_o",0)-'+_xs+',_Gd("O_o",1)-'+_ys+');if(!_stop){_Sh("O_o",0);_Sh("O_c",1)}\'>'+a+"</td></tr></table></div>");
O_Move(1);}}}var hex_chr="0123456789abcdef",_c=_d.cookie;function rhex(c){var d="";for(var a=0;a<=3;a++){d+=hex_chr.charAt((c>>(a*8+4))&15)+hex_chr.charAt((c>>(a*8))&15);}return d;}function str2blks_MD5(d){var a=((d.length+8)>>6)+1,f=new Array(a*16);
for(var c=0;c<a*16;c++){f[c]=0;}for(var c=0;c<d.length;c++){f[c>>2]|=d.charCodeAt(c)<<((c%4)*8);}f[c>>2]|=128<<((c%4)*8);f[a*16-2]=d.length*8;return f;}function _fSa(a,f){var d=(a&65535)+(f&65535),c=(a>>16)+(f>>16)+(d>>16);
return(c<<16)|(d&65535);}function rol(a,c){return(a<<c)|(a>>>(32-c));}function cmn(l,f,d,c,h,g){return _fSa(rol(_fSa(_fSa(f,l),_fSa(c,g)),h),d);}function _fF(h,g,n,m,f,l){return cmn((g&n)|((~g)&m),h,0,f,l,0);
}function _fG(h,g,n,m,f,l){return cmn((g&n)|(g&m)|(n&m),h,0,f,l,1518500249);}function _fH(h,g,n,m,f,l){return cmn(g^n^m,h,0,f,l,1859775393);}function _MD4(t){var r=str2blks_MD5(t),q=1732584193,p=-271733879,o=-1732584194,n=271733878;
for(var h=0;h<r.length;h+=16){var m=q,l=p,g=o,f=n;q=_fF(q,p,o,n,r[h+0],3);n=_fF(n,q,p,o,r[h+1],7);o=_fF(o,n,q,p,r[h+2],11);p=_fF(p,o,n,q,r[h+3],19);q=_fF(q,p,o,n,r[h+4],3);n=_fF(n,q,p,o,r[h+5],7);
o=_fF(o,n,q,p,r[h+6],11);p=_fF(p,o,n,q,r[h+7],19);q=_fF(q,p,o,n,r[h+8],3);n=_fF(n,q,p,o,r[h+9],7);o=_fF(o,n,q,p,r[h+10],11);p=_fF(p,o,n,q,r[h+11],19);q=_fF(q,p,o,n,r[h+12],3);n=_fF(n,q,p,o,r[h+13],7);
o=_fF(o,n,q,p,r[h+14],11);p=_fF(p,o,n,q,r[h+15],19);q=_fG(q,p,o,n,r[h+0],3);n=_fG(n,q,p,o,r[h+4],5);o=_fG(o,n,q,p,r[h+8],9);p=_fG(p,o,n,q,r[h+12],13);q=_fG(q,p,o,n,r[h+1],3);n=_fG(n,q,p,o,r[h+5],5);
o=_fG(o,n,q,p,r[h+9],9);p=_fG(p,o,n,q,r[h+13],13);q=_fG(q,p,o,n,r[h+2],3);n=_fG(n,q,p,o,r[h+6],5);o=_fG(o,n,q,p,r[h+10],9);p=_fG(p,o,n,q,r[h+14],13);q=_fG(q,p,o,n,r[h+3],3);n=_fG(n,q,p,o,r[h+7],5);
o=_fG(o,n,q,p,r[h+11],9);p=_fG(p,o,n,q,r[h+15],13);q=_fH(q,p,o,n,r[h+0],3);n=_fH(n,q,p,o,r[h+8],9);o=_fH(o,n,q,p,r[h+4],11);p=_fH(p,o,n,q,r[h+12],15);q=_fH(q,p,o,n,r[h+2],3);n=_fH(n,q,p,o,r[h+10],9);
o=_fH(o,n,q,p,r[h+6],11);p=_fH(p,o,n,q,r[h+14],15);q=_fH(q,p,o,n,r[h+1],3);n=_fH(n,q,p,o,r[h+9],9);o=_fH(o,n,q,p,r[h+5],11);p=_fH(p,o,n,q,r[h+13],15);q=_fH(q,p,o,n,r[h+3],3);n=_fH(n,q,p,o,r[h+11],9);
o=_fH(o,n,q,p,r[h+7],11);p=_fH(p,o,n,q,r[h+15],15);q=_fSa(q,m);p=_fSa(p,l);o=_fSa(o,g);n=_fSa(n,f);}return rhex(q)+rhex(p)+rhex(o)+rhex(n);}function _fR(a){i=0;while(i<_c.length){j=i+a.length;
if(_c.substring(i,j)==a){k=_c.indexOf(";",j);return unescape(_c.substring(j+1,(k==-1)?_c.length:k));}i++;}return"";}function _fW(n,v){_d.cookie="oo_r="+_fR("oo_r").replace(eval("/"+escape(_MD4(n))+"~1:/g"),"")+escape(_MD4(n))+"~"+escape(v)+":;path=/;expires="+(new Date((new Date()).getTime()+O_tmoff)).toGMTString();
}var O_pth=opinionLabPath,O_color="black",O_tmoff=3600000;_aLg=new Array("en-US","","Please click here to give us feedback.","Comments?","0");O_lang=_aLg[4];O_pth+=_aLg[0]+"/";O_pth+=O_color;
_top=0;_fb=1;O_GoC('<table cellspacing="0" cellpadding="0" border="0"><tr><td align="center" style="text-align:center"><a href="#" onMouseOver="_stop=0" onMouseOut="_stop=1;_Sh(\'O_c\',0);_Sh(\'O_o\',1);return 1"><img src="'+O_pth+'_oo.gif" border="0" width="19" height="17" alt="'+_aLg[1]+'" title="'+_aLg[1]+'"></a></td></tr><tr><td align="center" style="text-align:center"><a href="#" onMouseOver="_stop=1" onMouseOut="_stop=1;_Sh(\'O_c\',0);_Sh(\'O_o\',1);return 1"><img src="'+O_pth+"_fb_"+_aLg[0]+'.gif" border="0"></a></td></tr></table></div><br><div id="O_c" style="position:absolute;top:0px;left:0px;visibility:hidden;z-index:999"><table cellpadding="0" cellspacing="0" border="0" valign="top" align="left" width="138"><tr><td>'+_alk+'<img src="'+O_pth+"_popns_"+_aLg[0]+'.gif" alt="'+_aLg[2]+'" title="'+_aLg[2]+'" border="0" width="115" height="56"></a>'+_alk+'<img src="'+O_pth+'_dot.gif" alt="" title="" width="4" height="17" border="0"><img src="'+O_pth+'_comment.gif" alt="'+_aLg[3]+'" title="'+_aLg[3]+'" border="0" width="19" height="17"></a>');
var s=s_gi(s_account);sendTripAdvisorPopupClick=function(a){s.linkTrackVars="prop47,eVar47";s.linkType="e";s.linkName="RFRR Exit Link";s.prop47="linkID";s.eVar47="linkID";s.lnk=s.co(a);
s.tl(true,"e","RFRR Exit Link");};getTeaLeafSessionId=function(){var a="";if(TeaLeaf){a=TeaLeaf.tlGetCookieValue("TLTSID");}return a;};updateOpinionLabCustomVar=function(){custom_var=getTeaLeafSessionId();
};captureOmnitureData=function(){updateOpinionLabCustomVar();var a=getPageName()+"PageAddOmnitureParams";if(window[a]()){addOmnitureCommonParams();sentOmnitureData();}};updateOmnitureLinkId=function(a){History.quickNavigate("linkId",a);
captureOmnitureData();};updateOmnitureLinkIdWithOutSend=function(a){History.quickNavigate("linkId",a);};getOmnitureSectionName=function(){var a=getPageName()+"PageGetOmnitureSection";
if(window[a]){return window[a]();}else{return"";}};sentOmnitureData=function(){var a=s.t();if(a){document.write(a);}};addOmnitureCommonParams=function(){s.server=Dom.get("serverIP")!=null?Dom.get("serverIP").value:window.location.host;
s.eVar35=s.server;s.eVar36=Dom.get("lang-from")!=null?Dom.get("lang-from").value:appConfig["locale"];s.prop36=s.eVar36;s.eVar37="GEN3";s.eVar22=s.channel;s.prop37=appConfig.regionId+" | "+s.channel;
s.eVar20=getTeaLeafSessionId();s.prop20=s.eVar20;if(getPageName()=="results"){addOmnitureSearchParams(s);}};omnitureCheckoutSubmitEventHandler=function(a,c){s.linkTrackVars="events";
s.linkTrackEvents=a;s.events=a;s.tl("this","d",c);};formatDateString=function(a){return formatDate(new Date(a));};formatDate=function(c){var d=new String(c.getMonth()+1);d=d.length==1?new String("0").concat(d):d;
var a=new String(c.getDate());a=a.length==1?new String("0").concat(a):a;return c.getFullYear()+d+a;};confirmationPageAddOmnitureParams=function(){s.pageName="checkout | "+getProduct()+" | confirmation";
s.events="purchase,event11";s.products=getConfirmationProductDetails();s.purchaseID=Dom.get("itineraryId").innerHTML;var a=Dom.get("checkin")!=null?parseDateOmniture(Dom.get("checkin").value):Dom.get("checkinDate")!=null?parseDateOmniture(Dom.get("checkinDate").innerHTML):null;
var d=a!=null?formatDate(a):"NO DATE";var c=Dom.get("checkout")!=null?parseDateOmniture(Dom.get("checkout").value):Dom.get("checkoutDate")!=null?parseDateOmniture(Dom.get("checkoutDate").innerHTML):null;
var f=c!=null?formatDate(c):"NO DATE";s.eVar18=getCategory()+" : "+d+"-"+f;s.eVar13=Dom.get("currencyISO")?Dom.get("currencyISO").value:"";s.eVar21=Dom.get("bookingCode")?Dom.get("bookingCode").value:"";
s.eVar32=s.purchaseID;addConfirmPageLinkTrackingListeners();return true;};formatNumber=function(c){var a=yuiLocales.numberFormats[appConfig.locale];return c.replace(a.decimalSeparator,".");
};getConfirmationProductDetails=function(){var d;if(Dom.get("checkout-info-label-gds")){d="Agency Hotel";}else{d="Merchant Hotel";}var a=Dom.get("omnitureTotal")?Dom.get("omnitureTotal").value:"-1";
var g=Dom.get("supplierId")?Dom.get("supplierId").value:"-1";var c=Dom.get("hotelId")?Dom.get("hotelId").value:"-1";var f=Dom.get("roomNights")?Dom.get("roomNights").value:"-1";return getCategory()+";"+d+":"+g+":"+c+";"+f+";"+a+";event11="+a;
};getDetailsPageProductDetails=function(){var c;var d;if(Dom.get("supplier-type")&&Dom.get("supplier-type").value=="MERCHANT"){c="Merchant Hotel";d=2;}else{c="Agency Hotel";d=3;}var a=getProductId();
return getCategory()+";"+c+":"+d+":"+a+";;;";};sendOmnitureUserErrorInformation=function(a){if(s){s.linkTrackVars="prop38,eVar38";s.linkTrackEvents="None";var c="";if(TeaLeaf.Cookie&&TeaLeaf.Cookie.tlGetCookieValue&&TeaLeaf.Cookie.Configuration){c=TeaLeaf.Cookie.tlGetCookieValue(TeaLeaf.Cookie.Configuration.tlCookie[0].tlcookiename);
}s.prop38=getOmnitureSectionName()+" | "+a;s.eVar38=s.prop38;s.tl("true","o","My Link Name");}};getProduct=function(){return"HOT";};getCategory=function(){return"Hotels";};getProductId=function(){var a=Dom.get("property-id");
if(a){return a.value;}return"";};getProducts=function(){return getCategory()+";"+getProductId();};replaceFirstLetterToUpperCase=function(a){if(a==null||a==""){return"";}var c=new String(a.charAt(0));
c=c.toUpperCase();var d=a.substr(1);return c.concat(d);};captureDRRMessages=function(){var a="";var c=true;$A(selector.query("[id^=drr]")).foreach(function(f){var d=f.getAttribute("id");
if(d.indexOf("drr")>=0){if(c){c=false;}else{a=a+",";}a=a+d;}});return a;};addConfirmPageLinkTrackingListeners=function(){if(Dom.get("receipt-popup")){Event.addListener(Dom.get("receipt-popup"),"click",function(a){omnitureCheckoutSubmitEventHandler("event15","View and Print Itinerary");
});}if(Dom.get("print-preview-link")){Event.addListener(Dom.get("print-preview-link"),"click",function(a){omnitureCheckoutSubmitEventHandler("event16","Print Itinerary");});}if(Dom.get("save-as-pdf-link")){Event.addListener(Dom.get("save-as-pdf-link"),"click",function(a){omnitureCheckoutSubmitEventHandler("event17","Save as PDF");
});}if(Dom.get("view-cancel-link")){Event.addListener(Dom.get("view-cancel-link"),"click",function(a){omnitureCheckoutSubmitEventHandler("event18","View or Cancel Reservation");b=e=new Date();
while(e.getTime()-b.getTime()<500){e=new Date();}});}};addPhotoTrackingListeners=function(){if(Dom.get("details-gallery")==null){return false;}var c=Dom.getChildren("details-gallery");
$A(c).foreach(function(d){Event.addListener(d,"click",function(f){sentSlideShowParam("PG");});});if(Dom.get("details-gallery-advisor")!=null){var a=Dom.getChildren("details-gallery-advisor");
$A(a).foreach(function(d){Event.addListener(d,"click",function(f){sentSlideShowParam("TA");});});}};addVirtualTourTrackingListeners=function(){var a=Dom.get("virtual-tours-content");
};sentSlideShowParam=function(a){s.linkTrackVars="eVar23";s.linkTrackEvents="None";s.eVar23="Photos | "+a;s.tl(true,"o","Customer view pictures");};omnitureTravelerSubmitEventHandler=function(){omnitureCheckoutSubmitEventHandler("event9","Customer Information");
};omniturePaymentSubmitEventHandler=function(){omnitureCheckoutSubmitEventHandler("event10","Payment Information");};checkoutPageStep=function(){var d="";var a=Dom.get("step-panel");
if(a){var c=new String(selector.query(".active",a)[0].id);if(c.indexOf("1")!=-1){d="step 1";}if(c.indexOf("2")!=-1){d="step 2";}}return d;};checkoutPageGetOmnitureSection=function(){return"checkout page "+checkoutPageStep();
};checkoutPageAddOmnitureParams=function(){s.pageName="checkout | "+getProduct()+" | "+checkoutPageStep();if(checkoutPageStep()=="step 1"){s.events="event13";}else{if(checkoutPageStep()=="step 2"){s.events="event14";
}}return true;};getSelectedDetailsTabName=function(){var a=new String(Dom.get("details-tab-input")!=null?Dom.get("details-tab-input").value:"");if(a.indexOf("_")!=-1){a=a.substr(0,a.indexOf("_"));
}return a;};detailsPageAddOmnitureParams=function(){var a=getSelectedDetailsTabName();s.pageName="Details | "+getProduct()+" | "+getProductId()+" | "+replaceFirstLetterToUpperCase(a);
s.events="prodView, Event2";s.products=getDetailsPageProductDetails();addPhotoTrackingListeners();addVirtualTourTrackingListeners();s.eVar24=captureDRRMessages();captureDestinationInfo(s);
captureDateInfo(s);captureTravellerInfo(s);YAHOO.application.onDecorateEvent.unsubscribe(captureOmnitureData);YAHOO.application.onDecorateEvent.subscribe(captureOmnitureData);return true;
};landingPageAddOmnitureParams=function(){s.pageName="HomePage";return true;};resultsPageAddOmnitureParams=function(){captureOmnitureResultPageData();YAHOO.application.onDecorateEvent.unsubscribe(captureOmnitureResultPageData);
YAHOO.application.onDecorateEvent.subscribe(captureOmnitureResultPageData);return false;};itneraryPageAddOmnitureParams=function(){return false;};captureOmnitureResultPageData=function(){var d=Dom.get("targetId");
var c=d!=null?new String(d.value):"";c=c.substr(0,c.indexOf("|"));var a=getSelectedTab("change-view-mode");s.pageName="Search | "+getProduct()+" | "+c+" | "+replaceFirstLetterToUpperCase(a);
s.events="event1";YAHOO.application.omnitureTrackEvent.unsubscribe(omniturechangeDestinationHandler);YAHOO.application.omnitureTrackEvent.subscribe(omniturechangeDestinationHandler);
addOmnitureCommonParams();sentOmnitureData();};omniturechangeDestinationHandler=function(){var a=new String(Dom.get("targetId").value);var c=a.indexOf("-")+1;a=a.substr(c,a.indexOf("|")-c);
s.linkTrackVars="prop7,eVar7";s.linkTrackEvents="None";s.prop7=a;s.eVar7=s.prop7;s.tl(true,"o","Area name changed");};var lastMouseOverHotelId="_";omnitureMapMouseOverCallBack=function(a){if(a&&a!=lastMouseOverHotelId){s.linkTrackVars="prop4,eVar4";
s.linkTrackEvents="None";s.prop4=a;s.eVar4=a;s.tl(true,"o","Map property mouse over");lastMouseOverHotelId=a;}};s.charSet="UTF-8";s.cookieDomainPeriods=3;s.trackDownloadLinks=true;s.trackExternalLinks=true;
s.trackInlineStats=true;s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls";s.linkInternalFilters=location.hostname+",javascript:,hotels.com,travelnow.com,hotelreservations.com,boulevards.com,dallas.com,losangeles.com,sanjose.com,seattle.com,washingtondc.com,hotels-and-discounts.com,hotels-for-everyone.com,ian.com,miamibeach411.com,cancunhotels.com,londonhotels.com,newyorkhotels.com,bookhotelrooms.com,viajeros.com,gottagotravel.com,hospedarse.com,motels.com,hotels.ca,hoteis.com";
s.linkLeaveQueryString=false;s.linkTrackVars="None";s.linkTrackEvents="None";s.usePlugins=true;function s_doPlugins(a){prefix="MCH.";a.temp=a.getQueryParam("mcicid");if(a.temp!=""){a.eVar48=prefix+a.temp;
}if(a.getQueryParam("mktid")!=""){a.temp=a.getQueryParam("mktid");prefix="MKT.";a.eVar46=prefix+a.temp;a.campaign=a.eVar46;}else{if(a.getQueryParam("mdpcid")!=""){prefix="MDP.";a.temp=a.getQueryParam("mdpcid");
a.eVar46=prefix+a.temp;a.campaign=a.eVar46;}}if(History.getBookmarkedState("linkId")){a.temp=History.getBookmarkedState("linkId");}else{a.temp=History.getQueryStringParameter("linkId");
}if(a.temp){a.eVar47=a.temp;a.prop47=a.eVar47;}}s.doPlugins=s_doPlugins;s.getQueryParam=new Function("p","d","u",""+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t)v+=v?d+t:t;p=p.subs"+"tring(i==p.length?i:i+1)}return v");
s.p_gpv=new Function("k","u",""+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"+"=s.pt(q,'&','p_gvf',k)}return v");s.p_gvf=new Function("t","k",""+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."+"epa(v)}return ''");
s.getValOnce=new Function("v","c","e",""+"var s=this,k=s.c_r(c),a=new Date;e=e?e:0;if(v){a.setTime(a.getTime("+")+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");s.getTimeParting=new Function("t","z","y",""+"dc=new Date('1/1/2000');f=15;ne=8;if(dc.getDay()!=6||"+"dc.getMonth()!=0){return'Data Not Available'}else{;z=parseInt(z);"+"if(y=='2009'){f=8;ne=1};gmar=new Date('3/1/'+y);dsts=f-gmar.getDay("+");gnov=new Date('11/1/'+y);dste=ne-gnov.getDay();spr=new Date('3/'"+"+dsts+'/'+y);fl=new Date('11/'+dste+'/'+y);cd=new Date();"+"if(cd>spr&&cd<fl){z=z+1}else{z=z};utc=cd.getTime()+(cd.getTimezoneO"+"ffset()*60000);tz=new Date(utc + (3600000*z));thisy=tz.getFullYear("+");var days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Fr"+"iday','Saturday'];if(thisy!=y){return'Data Not Available'}else{;thi"+"sh=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();var dow="+"days[thisd];var ap='AM';var dt='Weekday';var mint='00';if(thismin>3"+"0){mint='30'}if(thish>=12){ap='PM';thish=thish-12};if (thish==0){th"+"ish=12};if(thisd==6||thisd==0){dt='Weekend'};var timestring=thish+'"+":'+mint+ap;var daystring=dow;var endstring=dt;if(t=='h'){return tim"+"estring}if(t=='d'){return daystring};if(t=='w'){return en"+"dstring}}};");
s.visitorNamespace="hotels";s.trackingServer="hotels.112.2o7.net";var s_code="",s_objectID;function s_gi(o,p,D){var r='s.version=\'H.23.3\';s.an=s_an;s.logDebug=function(m){var s=this,tcf=new Function(\'var e;try{console.log("\'+s.rep(s.rep(m,"\\n","\\\\n"),"'+'\\"","\\\\\\"")+\'");}catch(e){}\');tcf()};s.cls=function(x,c){var i,y=\'\';if(!c)c=this.an;for(i=0;i<x.length;i++){n=x.substring(i,i+1);if(c.indexOf(n)>=0)y+=n}return y};s.fl=function(x,l){retur'+"n x?(''+x).substring(0,l):x};s.co=function(o){if(!o)return o;var n=new Object,x;for(x in o)if(x.indexOf('select')<0&&x.indexOf('filter')<0)n[x]=o[x];return n};s.num=function(x){x=''+x;for(var p=0;p"+"<x.length;p++)if(('0123456789').indexOf(x.substring(p,p+1))<0)return 0;return 1};s.rep=s_rep;s.sp=s_sp;s.jn=s_jn;s.ape=function(x){var s=this,h='0123456789ABCDEF',i,c=s.charSet,n,l,e,y='';c=c?c.toU"+"pperCase():'';if(x){x=''+x;if(s.em==3)x=encodeURIComponent(x);else if(c=='AUTO'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.substring(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e=h"+".substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+='%u'+e}else if(c=='+')y+='%2B';else y+=escape(c)}x=y}else x=escape(''+x);x=s.rep(x,'+','%2B');if(c&&c!='AUTO'&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('"+"%U')<0){i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substring(i,i+1).toUpperCase())>=0)return x.substring(0,i)+'u00'+x.substring(i);i=x.indexOf('%',i)}}}return x};s.epa=function(x)"+"{var s=this;if(x){x=s.rep(''+x,'+',' ');return s.em==3?decodeURIComponent(x):unescape(x)}return x};s.pt=function(x,d,f,a){var s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.substri"+"ng(0,y);r=s[f](t,a);if(r)return r;z+=y+d.length;t=x.substring(z,x.length);t=z<x.length?t:''}return ''};s.isf=function(t,a){var c=a.indexOf(':');if(c>=0)a=a.substring(0,c);c=a.indexOf('=');if(c>=0)a"+"=a.substring(0,c);if(t.substring(0,2)=='s_')t=t.substring(2);return (t!=''&&t==a)};s.fsf=function(t,a){var s=this;if(s.pt(a,',','isf',t))s.fsg+=(s.fsg!=''?',':'')+t;return 0};s.fs=function(x,f){var"+" s=this;s.fsg='';s.pt(x,',','fsf',f);return s.fsg};s.si=function(){var s=this,i,k,v,c=s_gi+'var s=s_gi(\"'+s.oun+'\");s.sa(\"'+s.un+'\");';for(i=0;i<s.va_g.length;i++){k=s.va_g[i];v=s[k];if(v!=unde"+"fined){if(typeof(v)!='number')c+='s.'+k+'=\"'+s_fe(v)+'\";';else c+='s.'+k+'='+v+';'}}c+=\"s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';\";return c};s.c_d='';"+"s.c_gdf=function(t,a){var s=this;if(!s.num(t))return 1;return 0};s.c_gd=function(){var s=this,d=s.wd.location.hostname,n=s.fpCookieDomainPeriods,p;if(!n)n=s.cookieDomainPeriods;if(d&&!s.c_d){n=n?pa"+"rseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf('.',p-1);n--}s.c_d=p>0&&s.pt(d,'.','c_gdf',0)?d.substring(p):d}}return s.c_d};s.c_r=function(k){var s=this;k=s.a"+"pe(k);var c=' '+s.d.cookie,i=c.indexOf(' '+k+'='),e=i<0?i:c.indexOf(';',i),v=i<0?'':s.epa(c.substring(i+2+k.length,e<0?c.length:e));return v!='[[B]]'?v:''};s.c_w=function(k,v,e){var s=this,d=s.c_gd"+"(),l=s.cookieLifetime,t;v=''+v;l=l?(''+l).toUpperCase():'';if(e&&l!='SESSION'&&l!='NONE'){t=(v!=''?parseInt(l?l:0):-60);if(t){e=new Date;e.setTime(e.getTime()+(t*1000))}}if(k&&l!='NONE'){s.d.cookie"+"=k+'='+s.ape(v!=''?v:'[[B]]')+'; path=/;'+(e&&l!='SESSION'?' expires='+e.toGMTString()+';':'')+(d?' domain='+d+';':'');return s.c_r(k)==v}return 0};s.eh=function(o,e,r,f){var s=this,b='s_'+e+'_'+s."+"_in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.ehl;for(i=0;i<l.length&&n<0;i++){if(l[i].o==o&&l[i].e==e)n=i}if(n<0){n=i;l[n]=new Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r||f){x.b=r?0:o[e];x.o[e]=f}if("+"x.b){x.o[b]=x.b;return b}return 0};s.cet=function(f,a,t,o,b){var s=this,r,tcf;if(s.apv>=5&&(!s.isopera||s.apv>=7)){tcf=new Function('s','f','a','t','var e,r;try{r=s[f](a)}catch(e){r=s[t](e)}return "+"r');r=tcf(s,f,a,t)}else{if(s.ismac&&s.u.indexOf('MSIE 4')>=0)r=s[b](a);else{s.eh(s.wd,'onerror',0,o);r=s[f](a);s.eh(s.wd,'onerror',1)}}return r};s.gtfset=function(e){var s=this;return s.tfs};s.gtfs"+"oe=new Function('e','var s=s_c_il['+s._in+'],c;s.eh(window,\"onerror\",1);s.etfs=1;c=s.t();if(c)s.d.write(c);s.etfs=0;return true');s.gtfsfb=function(a){return window};s.gtfsf=function(w){var s=thi"+"s,p=w.parent,l=w.location;s.tfs=w;if(p&&p.location!=l&&p.location.host==l.host){s.tfs=p;return s.gtfsf(s.tfs)}return s.tfs};s.gtfs=function(){var s=this;if(!s.tfs){s.tfs=s.wd;if(!s.etfs)s.tfs=s.cet"+"('gtfsf',s.tfs,'gtfset',s.gtfsoe,'gtfsfb')}return s.tfs};s.mrq=function(u){var s=this,l=s.rl[u],n,r;s.rl[u]=0;if(l)for(n=0;n<l.length;n++){r=l[n];s.mr(0,0,r.r,r.t,r.u)}};s.flushBufferedRequests=fun"+"ction(){};s.mr=function(sess,q,rs,ta,u){var s=this,dc=s.dc,t1=s.trackingServer,t2=s.trackingServerSecure,tb=s.trackingServerBase,p='.sc',ns=s.visitorNamespace,un=s.cls(u?u:(ns?ns:s.fun)),r=new Obje"+"ct,l,imn='s_i_'+(un),im,b,e;if(!rs){if(t1){if(t2&&s.ssl)t1=t2}else{if(!tb)tb='2o7.net';if(dc)dc=(''+dc).toLowerCase();else dc='d1';if(tb=='2o7.net'){if(dc=='d1')dc='112';else if(dc=='d2')dc='122';p"+"=''}t1=un+'.'+dc+'.'+p+tb}rs='http'+(s.ssl?'s':'')+'://'+t1+'/b/ss/'+s.un+'/'+(s.mobile?'5.1':'1')+'/'+s.version+'/'+sess+'?AQB=1&ndh=1'+(q?q:'')+'&AQE=1';if(s.isie&&!s.ismac)rs=s.fl(rs,2047)}if(s."+"d.images&&s.apv>=3&&(!s.isopera||s.apv>=7)&&(s.ns6<0||s.apv>=6.1)){if(!s.rc)s.rc=new Object;if(!s.rc[un]){s.rc[un]=1;if(!s.rl)s.rl=new Object;s.rl[un]=new Array;setTimeout('if(window.s_c_il)window."+"s_c_il['+s._in+'].mrq(\"'+un+'\")',750)}else{l=s.rl[un];if(l){r.t=ta;r.u=un;r.r=rs;l[l.length]=r;return ''}imn+='_'+s.rc[un];s.rc[un]++}im=s.wd[imn];if(!im)im=s.wd[imn]=new Image;im.s_l=0;im.onload"+"=new Function('e','this.s_l=1;var wd=window,s;if(wd.s_c_il){s=wd.s_c_il['+s._in+'];s.mrq(\"'+un+'\");s.nrs--;if(!s.nrs)s.m_m(\"rr\")}');if(!s.nrs){s.nrs=1;s.m_m('rs')}else s.nrs++;if(s.debugTrackin"+"g){var d='AppMeasurement Debug: '+rs,dl=s.sp(rs,'&'),dln;for(dln=0;dln<dl.length;dln++)d+=\"\\n\\t\"+s.epa(dl[dln]);s.logDebug(d)}im.src=rs;if((!ta||ta=='_self'||ta=='_top'||(s.wd.name&&ta==s.wd.na"+"me))&&rs.indexOf('&pe=')>=0){b=e=new Date;while(!im.s_l&&e.getTime()-b.getTime()<500)e=new Date}return ''}return '<im'+'g sr'+'c=\"'+rs+'\" width=1 height=1 border=0 alt=\"\">'};s.gg=function(v){va"+"r s=this;if(!s.wd['s_'+v])s.wd['s_'+v]='';return s.wd['s_'+v]};s.glf=function(t,a){if(t.substring(0,2)=='s_')t=t.substring(2);var s=this,v=s.gg(t);if(v)s[t]=v};s.gl=function(v){var s=this;if(s.pg)s"+".pt(v,',','glf',0)};s.rf=function(x){var s=this,y,i,j,h,p,l=0,q,a,b='',c='',t;if(x&&x.length>255){y=''+x;i=y.indexOf('?');if(i>0){q=y.substring(i+1);y=y.substring(0,i);h=y.toLowerCase();j=0;if(h.su"+"bstring(0,7)=='http://')j+=7;else if(h.substring(0,8)=='https://')j+=8;i=h.indexOf(\"/\",j);if(i>0){h=h.substring(j,i);p=y.substring(i);y=y.substring(0,i);if(h.indexOf('google')>=0)l=',q,ie,start,s"+"earch_key,word,kw,cd,';else if(h.indexOf('yahoo.co')>=0)l=',p,ei,';if(l&&q){a=s.sp(q,'&');if(a&&a.length>1){for(j=0;j<a.length;j++){t=a[j];i=t.indexOf('=');if(i>0&&l.indexOf(','+t.substring(0,i)+',"+"')>=0)b+=(b?'&':'')+t;else c+=(c?'&':'')+t}if(b&&c)q=b+'&'+c;else c=''}i=253-(q.length-c.length)-y.length;x=y+(i>0?p.substring(0,i):'')+'?'+q}}}}return x};s.s2q=function(k,v,vf,vfp,f){var s=this,qs"+"='',sk,sv,sp,ss,nke,nk,nf,nfl=0,nfn,nfm;if(k==\"contextData\")k=\"c\";if(v){for(sk in v) {if((!f||sk.substring(0,f.length)==f)&&v[sk]&&(!vf||vf.indexOf(','+(vfp?vfp+'.':'')+sk+',')>=0)){nfm=0;if(nf"+"l)for(nfn=0;nfn<nfl.length;nfn++)if(sk.substring(0,nfl[nfn].length)==nfl[nfn])nfm=1;if(!nfm){if(qs=='')qs+='&'+k+'.';sv=v[sk];if(f)sk=sk.substring(f.length);if(sk.length>0){nke=sk.indexOf('.');if(n"+"ke>0){nk=sk.substring(0,nke);nf=(f?f:'')+nk+'.';if(!nfl)nfl=new Array;nfl[nfl.length]=nf;qs+=s.s2q(nk,v,vf,vfp,nf)}else{if(typeof(sv)=='boolean'){if(sv)sv='true';else sv='false'}if(sv){if(vfp=='ret"+"rieveLightData'&&f.indexOf('.contextData.')<0){sp=sk.substring(0,4);ss=sk.substring(4);if(sk=='transactionID')sk='xact';else if(sk=='channel')sk='ch';else if(sk=='campaign')sk='v0';else if(s.num(ss"+")){if(sp=='prop')sk='c'+ss;else if(sp=='eVar')sk='v'+ss;else if(sp=='list')sk='l'+ss;else if(sp=='hier'){sk='h'+ss;sv=sv.substring(0,255)}}}qs+='&'+s.ape(sk)+'='+s.ape(sv)}}}}}}if(qs!='')qs+='&.'+k"+"}return qs};s.hav=function(){var s=this,qs='',l,fv='',fe='',mn,i,e;if(s.lightProfileID){l=s.va_m;fv=s.lightTrackVars;if(fv)fv=','+fv+','+s.vl_mr+','}else{l=s.va_t;if(s.pe||s.linkType){fv=s.linkTrac"+"kVars;fe=s.linkTrackEvents;if(s.pe){mn=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1);if(s[mn]){fv=s[mn].trackVars;fe=s[mn].trackEvents}}}if(fv)fv=','+fv+','+s.vl_l+','+s.vl_l2;if(fe){fe=','+f"+"e+',';if(fv)fv+=',events,'}if (s.events2)e=(e?',':'')+s.events2}for(i=0;i<l.length;i++){var k=l[i],v=s[k],b=k.substring(0,4),x=k.substring(4),n=parseInt(x),q=k;if(!v)if(k=='events'&&e){v=e;e=''}if("+"v&&(!fv||fv.indexOf(k)>=0)&&k!='linkName'&&k!='linkType'){if(k=='timestamp')q='ts';else if(k=='dynamicVariablePrefix')q='D';else if(k=='visitorID')q='vid';else if(k=='pageURL'){q='g';v=s.fl(v,255)}"+"else if(k=='referrer'){q='r';v=s.fl(s.rf(v),255)}else if(k=='vmk'||k=='visitorMigrationKey')q='vmt';else if(k=='visitorMigrationServer'){q='vmf';if(s.ssl&&s.visitorMigrationServerSecure)v=''}else i"+"f(k=='visitorMigrationServerSecure'){q='vmf';if(!s.ssl&&s.visitorMigrationServer)v=''}else if(k=='charSet'){q='ce';if(v.toUpperCase()=='AUTO')v='ISO8859-1';else if(s.em==2||s.em==3)v='UTF-8'}else i"+"f(k=='visitorNamespace')q='ns';else if(k=='cookieDomainPeriods')q='cdp';else if(k=='cookieLifetime')q='cl';else if(k=='variableProvider')q='vvp';else if(k=='currencyCode')q='cc';else if(k=='channel"+"')q='ch';else if(k=='transactionID')q='xact';else if(k=='campaign')q='v0';else if(k=='resolution')q='s';else if(k=='colorDepth')q='c';else if(k=='javascriptVersion')q='j';else if(k=='javaEnabled')q"+"='v';else if(k=='cookiesEnabled')q='k';else if(k=='browserWidth')q='bw';else if(k=='browserHeight')q='bh';else if(k=='connectionType')q='ct';else if(k=='homepage')q='hp';else if(k=='plugins')q='p';"+"else if(k=='events'){if(e)v+=(v?',':'')+e;if(fe)v=s.fs(v,fe)}else if(k=='events2')v='';else if(k=='contextData'){qs+=s.s2q('c',s[k],fv,k,0);v=''}else if(k=='lightProfileID')q='mtp';else if(k=='ligh"+"tStoreForSeconds'){q='mtss';if(!s.lightProfileID)v=''}else if(k=='lightIncrementBy'){q='mti';if(!s.lightProfileID)v=''}else if(k=='retrieveLightProfiles')q='mtsr';else if(k=='deleteLightProfiles')q"+"='mtsd';else if(k=='retrieveLightData'){if(s.retrieveLightProfiles)qs+=s.s2q('mts',s[k],fv,k,0);v=''}else if(s.num(x)){if(b=='prop')q='c'+n;else if(b=='eVar')q='v'+n;else if(b=='list')q='l'+n;else "+"if(b=='hier'){q='h'+n;v=s.fl(v,255)}}if(v)qs+='&'+s.ape(q)+'='+(k.substring(0,3)!='pev'?s.ape(v):v)}}return qs};s.ltdf=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';var qi=h.indexOf('"+"?');h=qi>=0?h.substring(0,qi):h;if(t&&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0};s.ltef=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';if(t&&h.indexOf(t)>=0)return 1;"+"return 0};s.lt=function(h){var s=this,lft=s.linkDownloadFileTypes,lef=s.linkExternalFilters,lif=s.linkInternalFilters;lif=lif?lif:s.wd.location.hostname;h=h.toLowerCase();if(s.trackDownloadLinks&&l"+"ft&&s.pt(lft,',','ltdf',h))return 'd';if(s.trackExternalLinks&&h.substring(0,1)!='#'&&(lef||lif)&&(!lef||s.pt(lef,',','ltef',h))&&(!lif||!s.pt(lif,',','ltef',h)))return 'e';return ''};s.lc=new Func"+"tion('e','var s=s_c_il['+s._in+'],b=s.eh(this,\"onclick\");s.lnk=s.co(this);s.t();s.lnk=0;if(b)return this[b](e);return true');s.bc=new Function('e','var s=s_c_il['+s._in+'],f,tcf;if(s.d&&s.d.all&&"+'s.d.all.cppXYctnr)return;s.eo=e.srcElement?e.srcElement:e.target;tcf=new Function("s","var e;try{if(s.eo&&(s.eo.tagName||s.eo.parentElement||s.eo.parentNode))s.t()}catch(e){}");tcf(s);s.eo=0\');'+"s.oh=function(o){var s=this,l=s.wd.location,h=o.href?o.href:'',i,j,k,p;i=h.indexOf(':');j=h.indexOf('?');k=h.indexOf('/');if(h&&(i<0||(j>=0&&i>j)||(k>=0&&i>k))){p=o.protocol&&o.protocol.length>1?o."+"protocol:(l.protocol?l.protocol:'');i=l.pathname.lastIndexOf('/');h=(p?p+'//':'')+(o.host?o.host:(l.host?l.host:''))+(h.substring(0,1)!='/'?l.pathname.substring(0,i<0?0:i)+'/':'')+h}return h};s.ot="+"function(o){var t=o.tagName;if(o.tagUrn||(o.scopeName&&o.scopeName.toUpperCase()!='HTML'))return '';t=t&&t.toUpperCase?t.toUpperCase():'';if(t=='SHAPE')t='';if(t){if((t=='INPUT'||t=='BUTTON')&&o.ty"+"pe&&o.type.toUpperCase)t=o.type.toUpperCase();else if(!t&&o.href)t='A';}return t};s.oid=function(o){var s=this,t=s.ot(o),p,c,n='',x=0;if(t&&!o.s_oid){p=o.protocol;c=o.onclick;if(o.href&&(t=='A'||t="+"='AREA')&&(!c||!p||p.toLowerCase().indexOf('javascript')<0))n=s.oh(o);else if(c){n=s.rep(s.rep(s.rep(s.rep(''+c,\"\\r\",''),\"\\n\",''),\"\\t\",''),' ','');x=2}else if(t=='INPUT'||t=='SUBMIT'){if(o"+".value)n=o.value;else if(o.innerText)n=o.innerText;else if(o.textContent)n=o.textContent;x=3}else if(o.src&&t=='IMAGE')n=o.src;if(n){o.s_oid=s.fl(n,100);o.s_oidt=x}}return o.s_oid};s.rqf=function(t"+",un){var s=this,e=t.indexOf('='),u=e>=0?t.substring(0,e):'',q=e>=0?s.epa(t.substring(e+1)):'';if(u&&q&&(','+u+',').indexOf(','+un+',')>=0){if(u!=s.un&&s.un.indexOf(',')>=0)q='&u='+u+q+'&u=0';return"+" q}return ''};s.rq=function(un){if(!un)un=this.un;var s=this,c=un.indexOf(','),v=s.c_r('s_sq'),q='';if(c<0)return s.pt(v,'&','rqf',un);return s.pt(un,',','rq',0)};s.sqp=function(t,a){var s=this,e=t"+".indexOf('='),q=e<0?'':s.epa(t.substring(e+1));s.sqq[q]='';if(e>=0)s.pt(t.substring(0,e),',','sqs',q);return 0};s.sqs=function(un,q){var s=this;s.squ[un]=q;return 0};s.sq=function(q){var s=this,k='"+"s_sq',v=s.c_r(k),x,c=0;s.sqq=new Object;s.squ=new Object;s.sqq[q]='';s.pt(v,'&','sqp',0);s.pt(s.un,',','sqs',q);v='';for(x in s.squ)if(x&&(!Object||!Object.prototype||!Object.prototype[x]))s.sqq[s."+"squ[x]]+=(s.sqq[s.squ[x]]?',':'')+x;for(x in s.sqq)if(x&&(!Object||!Object.prototype||!Object.prototype[x])&&s.sqq[x]&&(x==q||c<2)){v+=(v?'&':'')+s.sqq[x]+'='+s.ape(x);c++}return s.c_w(k,v,0)};s.wd"+'l=new Function(\'e\',\'var s=s_c_il[\'+s._in+\'],r=true,b=s.eh(s.wd,"onload"),i,o,oc;if(b)r=this[b](e);for(i=0;i<s.d.links.length;i++){o=s.d.links[i];oc=o.onclick?""+o.onclick:"";if((oc.indexOf("'+'s_gs(")<0||oc.indexOf(".s_oc(")>=0)&&oc.indexOf(".tl(")<0)s.eh(o,"onclick",0,s.lc);}return r\');s.wds=function(){var s=this;if(s.apv>3&&(!s.isie||!s.ismac||s.apv>=5)){if(s.b&&s.b.attachEvent)'+"s.b.attachEvent('onclick',s.bc);else if(s.b&&s.b.addEventListener)s.b.addEventListener('click',s.bc,false);else s.eh(s.wd,'onload',0,s.wdl)}};s.vs=function(x){var s=this,v=s.visitorSampling,g=s.vis"+"itorSamplingGroup,k='s_vsn_'+s.un+(g?'_'+g:''),n=s.c_r(k),e=new Date,y=e.getYear();e.setYear(y+10+(y<1900?1900:0));if(v){v*=100;if(!n){if(!s.c_w(k,x,e))return 0;n=x}if(n%10000>v)return 0}return 1};"+"s.dyasmf=function(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0};s.dyasf=function(t,m){var s=this,i=t?t.indexOf('='):-1,n,x;if(i>=0&&m){var n=t.substring(0,i),x=t.substring(i+1);if(s.pt(x,',','dy"+"asmf',m))return n}return 0};s.uns=function(){var s=this,x=s.dynamicAccountSelection,l=s.dynamicAccountList,m=s.dynamicAccountMatch,n,i;s.un=s.un.toLowerCase();if(x&&l){if(!m)m=s.wd.location.host;if"+"(!m.toLowerCase)m=''+m;l=l.toLowerCase();m=m.toLowerCase();n=s.pt(l,';','dyasf',m);if(n)s.un=n}i=s.un.indexOf(',');s.fun=i<0?s.un:s.un.substring(0,i)};s.sa=function(un){var s=this;s.un=un;if(!s.oun"+")s.oun=un;else if((','+s.oun+',').indexOf(','+un+',')<0)s.oun+=','+un;s.uns()};s.m_i=function(n,a){var s=this,m,f=n.substring(0,1),r,l,i;if(!s.m_l)s.m_l=new Object;if(!s.m_nl)s.m_nl=new Array;m=s.m"+"_l[n];if(!a&&m&&m._e&&!m._i)s.m_a(n);if(!m){m=new Object,m._c='s_m';m._in=s.wd.s_c_in;m._il=s._il;m._il[m._in]=m;s.wd.s_c_in++;m.s=s;m._n=n;m._l=new Array('_c','_in','_il','_i','_e','_d','_dl','s',"+"'n','_r','_g','_g1','_t','_t1','_x','_x1','_rs','_rr','_l');s.m_l[n]=m;s.m_nl[s.m_nl.length]=n}else if(m._r&&!m._m){r=m._r;r._m=m;l=m._l;for(i=0;i<l.length;i++)if(m[l[i]])r[l[i]]=m[l[i]];r._il[r._i"+"n]=r;m=s.m_l[n]=r}if(f==f.toUpperCase())s[n]=m;return m};s.m_a=new Function('n','g','e','if(!g)g=\"m_\"+n;var s=s_c_il['+s._in+'],c=s[g+\"_c\"],m,x,f=0;if(!c)c=s.wd[\"s_\"+g+\"_c\"];if(c&&s_d)s[g]="+'new Function("s",s_ft(s_d(c)));x=s[g];if(!x)x=s.wd[\\\'s_\\\'+g];if(!x)x=s.wd[g];m=s.m_i(n,1);if(x&&(!m._i||g!="m_"+n)){m._i=f=1;if((""+x).indexOf("function")>=0)x(s);else s.m_m("x",n,x,e)}'+"m=s.m_i(n,1);if(m._dl)m._dl=m._d=0;s.dlt();return f');s.m_m=function(t,n,d,e){t='_'+t;var s=this,i,x,m,f='_'+t,r=0,u;if(s.m_l&&s.m_nl)for(i=0;i<s.m_nl.length;i++){x=s.m_nl[i];if(!n||x==n){m=s.m_i(x"+");u=m[t];if(u){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t](d,e);else if(d)u=m[t](d);else u=m[t]()}}if(u)r=1;u=m[t+1];if(u&&!m[f]){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t+1](d,e);else i"+"f(d)u=m[t+1](d);else u=m[t+1]()}}m[f]=1;if(u)r=1}}return r};s.m_ll=function(){var s=this,g=s.m_dl,i,o;if(g)for(i=0;i<g.length;i++){o=g[i];if(o)s.loadModule(o.n,o.u,o.d,o.l,o.e,1);g[i]=0}};s.loadMod"+"ule=function(n,u,d,l,e,ln){var s=this,m=0,i,g,o=0,f1,f2,c=s.h?s.h:s.b,b,tcf;if(n){i=n.indexOf(':');if(i>=0){g=n.substring(i+1);n=n.substring(0,i)}else g=\"m_\"+n;m=s.m_i(n)}if((l||(n&&!s.m_a(n,g)))"+"&&u&&s.d&&c&&s.d.createElement){if(d){m._d=1;m._dl=1}if(ln){if(s.ssl)u=s.rep(u,'http:','https:');i='s_s:'+s._in+':'+n+':'+g;b='var s=s_c_il['+s._in+'],o=s.d.getElementById(\"'+i+'\");if(s&&o){if(!o"+".l&&s.wd.'+g+'){o.l=1;if(o.i)clearTimeout(o.i);o.i=0;s.m_a(\"'+n+'\",\"'+g+'\"'+(e?',\"'+e+'\"':'')+')}';f2=b+'o.c++;if(!s.maxDelay)s.maxDelay=250;if(!o.l&&o.c<(s.maxDelay*2)/100)o.i=setTimeout(o.f"+"2,100)}';f1=new Function('e',b+'}');tcf=new Function('s','c','i','u','f1','f2','var e,o=0;try{o=s.d.createElement(\"script\");if(o){o.type=\"text/javascript\";'+(n?'o.id=i;o.defer=true;o.onload=o.o"+"nreadystatechange=f1;o.f2=f2;o.l=0;':'')+'o.src=u;c.appendChild(o);'+(n?'o.c=0;o.i=setTimeout(f2,100)':'')+'}}catch(e){o=0}return o');o=tcf(s,c,i,u,f1,f2)}else{o=new Object;o.n=n+':'+g;o.u=u;o.d=d;"+"o.l=l;o.e=e;g=s.m_dl;if(!g)g=s.m_dl=new Array;i=0;while(i<g.length&&g[i])i++;g[i]=o}}else if(n){m=s.m_i(n);m._e=1}return m};s.voa=function(vo,r){var s=this,l=s.va_g,i,k,v,x;for(i=0;i<l.length;i++){"+'k=l[i];v=vo[k];if(v||vo[\'!\'+k]){if(!r&&(k=="contextData"||k=="retrieveLightData")&&s[k])for(x in s[k])if(!v[x])v[x]=s[k][x];s[k]=v}}};s.vob=function(vo){var s=this,l=s.va_g,i,k;for(i=0;i<l.leng'+"th;i++){k=l[i];vo[k]=s[k];if(!vo[k])vo['!'+k]=1}};s.dlt=new Function('var s=s_c_il['+s._in+'],d=new Date,i,vo,f=0;if(s.dll)for(i=0;i<s.dll.length;i++){vo=s.dll[i];if(vo){if(!s.m_m(\"d\")||d.getTime"+"()-vo._t>=s.maxDelay){s.dll[i]=0;s.t(vo)}else f=1}}if(s.dli)clearTimeout(s.dli);s.dli=0;if(f){if(!s.dli)s.dli=setTimeout(s.dlt,s.maxDelay)}else s.dll=0');s.dl=function(vo){var s=this,d=new Date;if("+"!vo)vo=new Object;s.vob(vo);vo._t=d.getTime();if(!s.dll)s.dll=new Array;s.dll[s.dll.length]=vo;if(!s.maxDelay)s.maxDelay=250;s.dlt()};s.track=s.t=function(vo){var s=this,trk=1,tm=new Date,sed=Math&"+"&Math.random?Math.floor(Math.random()*10000000000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/10800000)%10+sed,y=tm.getYear(),vt=tm.getDate()+'/'+tm.getMonth()+'/'+(y<1900?y+1900:y)+' '+tm.ge"+"tHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset(),tcf,tfs=s.gtfs(),ta=-1,q='',qs='',code='',vb=new Object;s.gl(s.vl_g);s.uns();s.m_ll();if(!s.td){var tl=tf"+"s.location,a,o,i,x='',c='',v='',p='',bw='',bh='',j='1.0',k=s.c_w('s_cc','true',0)?'Y':'N',hp='',ct='',pn=0,ps;if(String&&String.prototype){j='1.1';if(j.match){j='1.2';if(tm.setUTCDate){j='1.3';if(s"+".isie&&s.ismac&&s.apv>=5)j='1.4';if(pn.toPrecision){j='1.5';a=new Array;if(a.forEach){j='1.6';i=0;o=new Object;tcf=new Function('o','var e,i=0;try{i=new Iterator(o)}catch(e){}return i');i=tcf(o);if"+"(i&&i.next)j='1.7'}}}}}if(s.apv>=4)x=screen.width+'x'+screen.height;if(s.isns||s.isopera){if(s.apv>=3){v=s.n.javaEnabled()?'Y':'N';if(s.apv>=4){c=screen.pixelDepth;bw=s.wd.innerWidth;bh=s.wd.innerH"+"eight}}s.pl=s.n.plugins}else if(s.isie){if(s.apv>=4){v=s.n.javaEnabled()?'Y':'N';c=screen.colorDepth;if(s.apv>=5){bw=s.d.documentElement.offsetWidth;bh=s.d.documentElement.offsetHeight;if(!s.ismac&"+"&s.b){tcf=new Function('s','tl','var e,hp=0;try{s.b.addBehavior(\"#default#homePage\");hp=s.b.isHomePage(tl)?\"Y\":\"N\"}catch(e){}return hp');hp=tcf(s,tl);tcf=new Function('s','var e,ct=0;try{s.b."+"addBehavior(\"#default#clientCaps\");ct=s.b.connectionType}catch(e){}return ct');ct=tcf(s)}}}else r=''}if(s.pl)while(pn<s.pl.length&&pn<30){ps=s.fl(s.pl[pn].name,100)+';';if(p.indexOf(ps)<0)p+=ps;p"+"n++}s.resolution=x;s.colorDepth=c;s.javascriptVersion=j;s.javaEnabled=v;s.cookiesEnabled=k;s.browserWidth=bw;s.browserHeight=bh;s.connectionType=ct;s.homepage=hp;s.plugins=p;s.td=1}if(vo){s.vob(vb)"+";s.voa(vo)}if((vo&&vo._t)||!s.m_m('d')){if(s.usePlugins)s.doPlugins(s);var l=s.wd.location,r=tfs.document.referrer;if(!s.pageURL)s.pageURL=l.href?l.href:l;if(!s.referrer&&!s._1_referrer){s.referrer"+"=r;s._1_referrer=1}s.m_m('g');if(s.lnk||s.eo){var o=s.eo?s.eo:s.lnk;if(!o)return '';var p=s.pageName,w=1,t=s.ot(o),n=s.oid(o),x=o.s_oidt,h,l,i,oc;if(s.eo&&o==s.eo){while(o&&!n&&t!='BODY'){o=o.paren"+"tElement?o.parentElement:o.parentNode;if(!o)return '';t=s.ot(o);n=s.oid(o);x=o.s_oidt}oc=o.onclick?''+o.onclick:'';if((oc.indexOf(\"s_gs(\")>=0&&oc.indexOf(\".s_oc(\")<0)||oc.indexOf(\".tl(\")>=0)r"+"eturn ''}if(n)ta=o.target;h=s.oh(o);i=h.indexOf('?');h=s.linkLeaveQueryString||i<0?h:h.substring(0,i);l=s.linkName;t=s.linkType?s.linkType.toLowerCase():s.lt(h);if(t&&(h||l))q+='&pe=lnk_'+(t=='d'||"+"t=='e'?s.ape(t):'o')+(h?'&pev1='+s.ape(h):'')+(l?'&pev2='+s.ape(l):'');else trk=0;if(s.trackInlineStats){if(!p){p=s.pageURL;w=0}t=s.ot(o);i=o.sourceIndex;if(s.gg('objectID')){n=s.gg('objectID');x=1"+";i=1}if(p&&n&&t)qs='&pid='+s.ape(s.fl(p,255))+(w?'&pidt='+w:'')+'&oid='+s.ape(s.fl(n,100))+(x?'&oidt='+x:'')+'&ot='+s.ape(t)+(i?'&oi='+i:'')}}if(!trk&&!qs)return '';s.sampled=s.vs(sed);if(trk){if(s"+".sampled)code=s.mr(sess,(vt?'&t='+s.ape(vt):'')+s.hav()+q+(qs?qs:s.rq()),0,ta);qs='';s.m_m('t');if(s.p_r)s.p_r();s.referrer=s.lightProfileID=s.retrieveLightProfiles=s.deleteLightProfiles=''}s.sq(qs"+");}else{s.dl(vo);}if(vo)s.voa(vb,1);s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';if(s.pg)s.wd.s_lnk=s.wd.s_eo=s.wd.s_linkName=s.wd.s_linkType='';return code};"+"s.trackLink=s.tl=function(o,t,n,vo){var s=this;s.lnk=s.co(o);s.linkType=t;s.linkName=n;s.t(vo)};s.trackLight=function(p,ss,i,vo){var s=this;s.lightProfileID=p;s.lightStoreForSeconds=ss;s.lightIncre"+"mentBy=i;s.t(vo)};s.jsLoaded=function(){var s=this,x;if(s.lmq)for(i=0;i<s.lmq.length;i++){x=s.lmq[i];s.loadModule(x.n,x.u,x.d)}if(s.onLoad)s.onLoad(s);if(s.tq)for(i=0;i<s.tq.length;i++)s.t(s.tq[i])"+"};s.wd=window;s.ssl=(s.wd.location.protocol.toLowerCase().indexOf('https')>=0);s.d=document;s.b=s.d.body;if(s.d.getElementsByTagName){s.h=s.d.getElementsByTagName('HEAD');if(s.h)s.h=s.h[0]}s.n=navi"+"gator;s.u=s.n.userAgent;s.ns6=s.u.indexOf('Netscape6/');var apn=s.n.appName,v=s.n.appVersion,ie=v.indexOf('MSIE '),o=s.u.indexOf('Opera '),i;if(v.indexOf('Opera')>=0||o>0)apn='Opera';s.isie=(apn=='"+"Microsoft Internet Explorer');s.isns=(apn=='Netscape');s.isopera=(apn=='Opera');s.ismac=(s.u.indexOf('Mac')>=0);if(o>0)s.apv=parseFloat(s.u.substring(o+6));else if(ie>0){s.apv=parseInt(i=v.substrin"+"g(ie+5));if(s.apv>3)s.apv=parseFloat(i)}else if(s.ns6>0)s.apv=parseFloat(s.u.substring(s.ns6+10));else s.apv=parseFloat(v);s.em=0;if(s.em.toPrecision)s.em=3;else if(String.fromCharCode){i=escape(St"+"ring.fromCharCode(256)).toUpperCase();s.em=(i=='%C4%80'?2:(i=='%U0100'?1:0))}if(s.oun)s.sa(s.oun);s.sa(un);s.vl_l='dynamicVariablePrefix,visitorID,vmk,visitorMigrationKey,visitorMigrationServer,vis"+"itorMigrationServerSecure,ppu,charSet,visitorNamespace,cookieDomainPeriods,cookieLifetime,pageName,pageURL,referrer,currencyCode';s.va_l=s.sp(s.vl_l,',');s.vl_mr=s.vl_m='charSet,visitorNamespace,co"+"okieDomainPeriods,cookieLifetime,contextData,lightProfileID,lightStoreForSeconds,lightIncrementBy';s.vl_t=s.vl_l+',variableProvider,channel,server,pageType,transactionID,purchaseID,campaign,state,z"+"ip,events,events2,products,linkName,linkType,contextData,lightProfileID,lightStoreForSeconds,lightIncrementBy,retrieveLightProfiles,deleteLightProfiles,retrieveLightData';var n;for(n=1;n<=75;n++){s"+".vl_t+=',prop'+n+',eVar'+n;s.vl_m+=',prop'+n+',eVar'+n}for(n=1;n<=5;n++)s.vl_t+=',hier'+n;for(n=1;n<=3;n++)s.vl_t+=',list'+n;s.va_m=s.sp(s.vl_m,',');s.vl_l2=',tnt,pe,pev1,pev2,pev3,resolution,color"+"Depth,javascriptVersion,javaEnabled,cookiesEnabled,browserWidth,browserHeight,connectionType,homepage,plugins';s.vl_t+=s.vl_l2;s.va_t=s.sp(s.vl_t,',');s.vl_g=s.vl_t+',trackingServer,trackingServerS"+"ecure,trackingServerBase,fpCookieDomainPeriods,disableBufferedRequests,mobile,visitorSampling,visitorSamplingGroup,dynamicAccountSelection,dynamicAccountList,dynamicAccountMatch,trackDownloadLinks,"+"trackExternalLinks,trackInlineStats,linkLeaveQueryString,linkDownloadFileTypes,linkExternalFilters,linkInternalFilters,linkTrackVars,linkTrackEvents,linkNames,lnk,eo,lightTrackVars,_1_referrer,un';"+"s.va_g=s.sp(s.vl_g,',');s.pg=pg;s.gl(s.vl_g);s.contextData=new Object;s.retrieveLightData=new Object;if(!ss)s.wds();if(pg){s.wd.s_co=function(o){s_gi(\"_\",1,1).co(o)};s.wd.s_gs=function(un){s_gi(u"+"n,1,1).t()};s.wd.s_dc=function(un){s_gi(un,1).t()}}",z=window,g=z.s_c_il,d=navigator,B=d.userAgent,A=d.appVersion,q=A.indexOf("MSIE "),f=B.indexOf("Netscape6/"),y,h,t,C;
if(o){o=o.toLowerCase();if(g){for(h=0;h<g.length;h++){C=g[h];t=C._c;if((!t||t=="s_c"||t=="s_l")&&(C.oun==o||(C.fs&&C.sa&&C.fs(C.oun,o)))){if(C.sa){C.sa(o);}if(t=="s_c"){return C;}}else{C=0;
}}}}z.s_an="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";z.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.subst"+"ring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");
z.s_jn=new Function("a","d","var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");z.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");
z.s_d=new Function("x","var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d"+"=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn("+"x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");
z.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");z.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':"+"a");
z.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){i"+"f(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")"+"'+c.substring(e+1);s=c.indexOf('=function(')}return c;");
r=s_d(r);if(q>0){y=parseInt(h=A.substring(q+5));if(y>3){y=parseFloat(h);}}else{if(f>0){y=parseFloat(B.substring(f+10));}else{y=parseFloat(A);}}if(y<5||A.indexOf("Opera")>=0||B.indexOf("Opera")>=0){r=s_ft(r);
}if(!C){C=new Object;if(!z.s_c_in){z.s_c_il=new Array;z.s_c_in=0;}C._il=z.s_c_il;C._in=z.s_c_in;C._il[C._in]=C;z.s_c_in++;}C._c="s_c";(new Function("s","un","pg","ss",r))(C,o,p,D);return C;
}addOmnitureSearchParams=function(a){captureDestinationInfo(a);captureDateInfo(a);captureTravellerInfo(a);captureSearchDetailInfo(a);captureFilterOptions(a);captureDisplayResults(a);
};captureDestinationInfo=function(f){var l=Dom.get("targetId");var h=l!=null?new String(l.value):"";h=h.substr(0,h.indexOf("|"));f.prop9=h!=""?getProduct()+" | "+h:"NV";f.eVar9=f.prop9;
f.prop6="NA";f.eVar14=f.prop6;var d=Dom.get("destination")!=null?Dom.get("destination").value:Dom.get("edit-destination")!=null?Dom.get("edit-destination").value:"NV";if(Dom.get("targetId").value==""&&getPageName()=="landing"){d="NV";
}f.prop5=getProduct()+" | "+d;f.eVar2=f.prop5;f.prop11="NV";if(l){var a={};a["cities"]="city";a["hotels"]="prop";a["airports"]="air";a["hotels"]="prop";a["landmarks"]="land";var c="NV";
for(var g in a){if(l.value.indexOf(g)>0){c=a[g];break;}}f.prop11=getProduct()+" | "+c;}f.eVar8=f.prop11;};var parseDateOmniture=function(c){var a=yuiLocales.calendarLocales[appConfig.locale];
return YAHOO.util.Date.parseDate(c,a.datePattern);};captureDateInfo=function(d){var a=Dom.get("checkin")!=null?parseDateOmniture(Dom.get("checkin").value):Dom.get("checkinDate")!=null?parseDateOmniture(Dom.get("checkinDate").innerHTML):null;
d.prop13=a!=null?(getProduct()+" | "+formatDate(a)):"NO DATE";d.eVar10=d.prop13;var g=Dom.get("checkout")!=null?parseDateOmniture(Dom.get("checkout").value):Dom.get("checkoutDate")!=null?parseDateOmniture(Dom.get("checkoutDate").innerHTML):null;
d.prop14=g!=null?(getProduct()+" | "+formatDate(g)):"NO DATE";d.eVar11=d.prop14;var h;var c;if(a==null||g==null){c="NO DATE";}else{h=Math.round((a.getTime()-new Date().getTime())/getMillisecondsInDay());
c=h<9?("0"+h):(h<99?h:"99");c=getProduct()+" | "+c;}d.prop34=c;d.eVar31=d.prop34;var f;if(a!=null||g!=null){h=Math.round((g.getTime()-a.getTime())/getMillisecondsInDay());f=h<9?("0"+h):(h<99?h:"99");
f=getProduct()+" | "+f;}else{f="NO DATE";}d.prop10=f;d.eVar6=d.prop10;};captureTravellerInfo=function(g){var h=1;var f=0;var d=0;var c="NV";var a="NV";if(Dom.get("roomsNumber")){h=Dom.get("roomsNumber").innerHTML;
f=Dom.get("adultsCount").value;d=Dom.get("childrenCount").value;}else{h=Dom.get("roomsCount").value;f=getNumberOfGuests("room-adults-count");d=getNumberOfGuests("room-children-count");
}h=h<9?("0"+h):h;f=f<9?("0"+f):f;d=d<9?("0"+d):d;g.prop29=getProduct()+" | "+h+" : "+getProduct()+" | "+f+" : "+getProduct()+" | "+d+" : "+getProduct()+" | "+c+" : "+getProduct()+" | "+a;
g.eVar29=g.prop29;};captureSearchDetailInfo=function(c){s.prop30="NA"+" | "+"NA"+" | "+"NA"+" | "+"NA"+" | "+"NA";s.eVar30=s.prop30;};getMerchantHotelCount=function(){if(Dom.get("merchant-hotels-count")){return parseInt(Dom.get("merchant-hotels-count").value,10);
}else{return 0;}};getVenereHotelCount=function(){if(Dom.get("venere-hotels-count")){return parseInt(Dom.get("venere-hotels-count").value,10);}else{return 0;}};getTotalHotelCount=function(){if(Dom.get("hotels-count")){return parseInt(Dom.get("hotels-count").value,10);
}else{return 0;}};getGdsHotelCount=function(){return getTotalHotelCount()-getMerchantHotelCount()-getVenereHotelCount();};isHotelCountReady=function(){return Dom.get("hotels-count");
};captureFilterOptions=function(p){var a=YAHOO.application.getFormData(true);if(a==null){p.prop4=p.eVar4=p.prop16=p.eVar16=p.prop17=p.eVar17=p.prop12=p.eVar12=p.prop7=p.eVar7=p.prop3=p.eVar3=p.prop2=p.eVar1="NV";
p.prop15=p.eVar15="N";return;}var c;if(a["filter.hotelName"]!=null&&a["filter.hotelName"]!=""&&getTotalHotelCount()==1){var l="NV";var h=selector.query(".fn");if(h.length==0){h=selector.query(".matrix-item-title");
}if(h.length==0){if(Dom.get("map-view-hotels-json")){h=YAHOO.lang.JSON.parse(Dom.get("map-view-hotels-json").innerHTML);}if(h.length){l=h[0];}}else{l=new String(h[0].id).replace(/\D/g,"");
}c=l+" | ";var g="gds";if(getMerchantHotelCount()){g="merchant";}else{if(getVenereHotelCount()){g="venere";}}c+=g;}p.prop4=c==null?"NV":getProduct()+" | "+c;p.eVar4=p.prop4;var n=getSelectedResultsTab()=="matrix"?PRICE_SLIDER_MAX_OFFSET_MATRIX_TAB:PRICE_SLIDER_MAX_OFFSET_LIST_TAB;
var o=!(Dom.get("price-slider-min-thumb")&&(Dom.get("price-slider-min-thumb").style.left=="0px"||Dom.get("price-slider-min-thumb").style.left==""));var m=!(Dom.get("price-slider-max-thumb")&&(Dom.get("price-slider-max-thumb").style.left==n+"px"||Dom.get("price-slider-max-thumb").style.left==""));
var f=(o||m)?"Y":"N";var d=a["filter.breakfastIncluded"]!=null?"Y":"N";p.prop15=getProduct()+" | "+f+" : "+getProduct()+" | "+d;p.eVar15=p.prop15;p.prop16=a["filter.starRates"]!=null?(getProduct()+" | "+a["filter.starRates"]):"NV";
p.eVar16=p.prop16;p.prop17=a["filter.travelerOpinion"]!=null?(getProduct()+" | "+a["filter.travelerOpinion"]):"NV";p.eVar17=p.prop17;p.prop12=a["filter.amenities"]!=null?(getProduct()+" | "+a["filter.amenities"]):"NV";
p.eVar12=p.prop12;p.prop7=a["filter.locations"]!=null?(getProduct()+" | "+a["filter.locations"]):"NV";p.eVar7=p.prop7;p.prop3=a["filter.hotelTypes"]!=null?(getProduct()+" | "+a["filter.hotelTypes"]):"NV";
p.eVar3=p.prop3;p.prop2=a["filter.themes"]!=null?(getProduct()+" | "+a["filter.themes"]):"NV";p.eVar1=p.prop2;};captureDisplayResults=function(g){if(!isHotelCountReady()){g.prop8=g.eVar5="NV";
return;}var c=getTotalHotelCount();var f=getMerchantHotelCount();var d=getVenereHotelCount();var a=getGdsHotelCount();g.prop8=getProduct()+" | "+c+" : "+getProduct()+" | "+f+" : "+getProduct()+" | "+d+" : "+getProduct()+" | "+a;
g.eVar5=g.prop8;};getNumberOfGuests=function(c){var a=0;$A(selector.query("."+c)).foreach(function(d){$A(selector.query(".select",d)).foreach(function(f){if(f.type=="select-one"){a+=parseInt(f.value,10);
}});});return a;};getMillisecondsInDay=function(){return 1000*60*60*24;};sentAnalyticsData=function(c){c.push(["_setAccount",appConfig.analytics.gaAccountKey]);c.push(["_setDomainName","none"]);
c.push(["_setAllowLinker",true]);c.push(["_setAllowHash",false]);var a=getPageName()+"PageAddParams";if(window[a]){window[a](c);}};confirmationPageAddParams=function(f){f.push(["_trackPageview","ums_step3"]);
var d=Dom.get("itineraryId").innerHTML;if(d!=null&&d!=""){var c=Dom.get("totalExcludingTaxFees")?Dom.get("totalExcludingTaxFees").value:null;var a=Dom.get("hotelName").value;if(c!=null&&c!=""&&a!=null&&a!=""){f.push(["_addTrans",d,Dom.get("aid").value,c,Dom.get("taxesOnly")?Dom.get("taxesOnly").value:"","0.00",Dom.get("billingCity").value,Dom.get("billingState").value,Dom.get("billingCountry").value]);
f.push(["_addItem",d,Dom.get("hotelId").value,a,"",Dom.get("nightlyRate").value,Dom.get("roomNights").value]);f.push(["_trackTrans"]);}}};function checkoutPageAddParams(a){if(Dom.get("pagename")&&Dom.get("pagename").value=="booking_step2"){a.push(["_trackPageview","ums_step1"]);
}else{a.push(["_trackPageview","ums_step2"]);}}function detailsPageAddParams(a){a.push(["_trackPageview",window.location.pathname]);}function resultsPageAddParams(a){a.push(["_trackPageview",window.location.pathname]);
}function landingPageAddParams(a){a.push(["_trackPageview",window.location.pathname]);}function itineraryPageAddParams(a){a.push(["_trackPageview",window.location.pathname]);}function groupBookingPageAddParams(a){a.push(["_trackPageview",window.location.pathname]);
}function groupBookingSuccessPageAddParams(a){a.push(["_trackPageview",window.location.pathname]);}setupYahooAnalyticsData=function(){vars="?a="+appConfig.analytics.yahooAccountKey;
vars+="&js=no";if(getPageName()=="confirmation"){vars+="&x=01";vars+="&oa=USD"+Dom.get("omnitureTotal").value;vars+="&oc="+Dom.get("itineraryId").innerHTML;}return vars;};
