﻿/* Omniture Optimization Suite
 * Copyright (c) Omniture 2001-2008. All rights reserved. Patent Pending.
 * Privacy Policy at http://www.omniture.com/privacy/
 */
/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here. */

var tc = window.tc || {};
tc.site_id = tc.site_id || 452;
tc.log_path = tc.log_path || "/scripts";
tc.server_hostname = tc.server_hostname || "tc.autoanything.com";

/************************** PLUGINS SECTION *************************/

// #628 backward-compatibility plugin
if (typeof tc.autoStart == 'undefined') { tc.autoStart = true; }

// #511 extra info from analytics
tc.extraInfoFromAnalytics = ({
   source: 'omtr.data',
   encode: true
});

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
window.undefined=window.undefined;var omtr=window.omtr||{};omtr.extend=function(_1,_2,_3){var _4=_1.split("."),_5=window;if(typeof _3!="boolean"){_3=false;}for(var i=0;i<_4.length;i++){_5[_4[i]]=_5[_4[i]]||{};_5=_5[_4[i]];}for(var _7 in _2){if(_3||typeof _5[_7]=="undefined"){_5[_7]=_2[_7];}}return _5;};omtr.extend("omtr.tc.plugin.backwards_compatibility",{init:function(_8){var _9=window;_9.tc_log=omtr.tc.log;_9.tc_redirect=omtr.tc.redirect;_9.tc_open_window=omtr.tc.open_window;_9.tc_optimise=omtr.tc.optimize;var i,_b,_c="undefined",_d=["active","site_id","timeout","page_alias","extra_info","referrer","products","containers","log_path"];for(i=0;i<_d.length;i++){_b=_d[i];if(typeof _9["tc_"+_b]!==_c){_8[_b]=_9["tc_"+_b];}}if(typeof _9.tc_server_url!==_c){_8.server_hostname=_9.tc_server_url;}}});omtr.extend("omtr.tc.plugin.tc_extra_info_from_analytics",{init:function(_e){if(!_e.extraInfoFromAnalytics){return _e;}var _f="",_10=_e.extraInfoFromAnalytics;_e.extra_info=_e.extra_info||"";_10.source=_10.source||omtr.data;_10.propList=_10.propList||window.undefined;if(typeof _10.encode!="boolean"){_10.encode=true;}if(typeof omtr.data==("object")&&typeof omtr.data.serialize==("function")){_f=omtr.data.serialize(_10.propList,_10.encode);_e.extra_info+=_f;return _e;}var _11,_12=_10.source,_13=(typeof encodeURIComponent!="undefined"?encodeURIComponent:escape);for(_11 in _12){if((typeof (_12[_11])!=("function"))&&(typeof (_12[_11])!=("array"))&&(typeof (_12[_11])!=("object"))&&(typeof (_12[_11])!=("undefined"))&&((_12[_11])!=(""))&&((_12[_11])!=(null))){_f+="&"+_13(_11.toString())+"="+_13(_12[_11]);}}_e.extra_info+=_f;return _e;}});omtr.extend("omtr.tc.plugin.sitecatalyst_reporting",{observers:[],ready:false,serveData:null,init:function(_14){this.doStandardReport=omtr.tc.report;omtr.tc.report=this.sendReport;},add:function(ele){this.observers.push(ele);if(omtr.tc.plugin.sitecatalyst_reporting.ready){if(typeof (ele)=="function"){ele.apply(this,[omtr.tc.serveData]);}}else{}},notify:function(_16){for(var i=0;i<this.observers.length;i++){var _18=this.observers[i];if(typeof (_18)=="function"){_18.apply(this,[_16]);}}},sendReport:function(_19){if(typeof _19=="object"){omtr.tc.plugin.sitecatalyst_reporting.serveData=_19;}else{_19=omtr.tc.plugin.sitecatalyst_reporting.serveData;}var _1a=omtr.tc.plugin.sitecatalyst_reporting.doStandardReport();if((_1a===0)||(typeof _1a==="undefined"&&!_19)){return;}else{if(_1a===2){omtr.tc.serveData={visitor:"Page Default"};}else{if(_1a===3){omtr.tc.serveData={visitor:"Page Error"};}else{if(_19!==null&&typeof _19=="object"){omtr.tc.serveData=_19;}else{omtr.tc.serveData={visitor:"No Data From Server"};}}}}omtr.tc.plugin.sitecatalyst_reporting.ready=true;omtr.tc.plugin.sitecatalyst_reporting.notify(omtr.tc.serveData);}});omtr.extend("omtr.tc.plugin",{tc_swf_content:function(_1b,_1c){if(!_1b||!(typeof _1b=="object")){return _1c;}if(typeof deconcept!="object"||typeof deconcept.SWFObject!="function"){return _1c;}_1b.id=_1b.id||"tc-flash-content";_1b.version=_1b.version||"6.0.65";_1b.backgroundColor=_1b.backgroundColor||"#FFFFFF";if(!_1b.swf||!_1b.width||!_1b.height){return _1c;}var _1d=new deconcept.SWFObject(_1b.swf,_1b["id"],_1b.width,_1b.height,_1b.version,_1b.backgroundColor,false,_1b["quality"],false,_1b["detectKey"],_1b["detection"]);if(_1b.vars&&typeof _1b.vars=="object"){var a=[];for(var i=0;i<_1b.vars.length;i++){if(typeof _1b.vars[i]=="string"){a[i]=_1b.vars[i].split("=");_1d.addVariable(a[i][0],a[i][1]);}}}if(_1d.installedVer.versionIsValid(_1d.getAttribute("version"))){return _1d.getSWFHTML();}else{return _1c;}}});window.tc_swf_content=omtr.tc.plugin.tc_swf_content;omtr.extend("omtr.tc",{Version:"5.1",Vendor:"Omniture",Product:"TouchClarity"});(function(){var _20=function(){var _21="undefined";var api=this;var _23=window.location;var _24={timeout:5,site_id:425,server_hostname:"tagging-qa.touchclarity.com",active:true,base_url:_23.href,products:"",referrer:(function(){if(typeof document.referrer==_21){return _21;}if(document.referrer===null){return "null";}if(document.referrer===""){return "empty";}return document.referrer;})(),log_path:"/touchclarity",containers:new function(){var _25=function(id,_27){this.id=id;this.rendered=false;this.displayed=false;this.defaulted=false;this.error=false;this.content="";this.default_content=_27;this.timeout_id=null;this.coids=[];};var ccs={};this.add=function(_29){var cc=new _25(_29,"");ccs[_29]=cc;return cc;};this.get=function(_2b){var cc=ccs[_2b];if(!cc){cc=this.add(_2b);cc.error=true;}return cc;};this.getAll=function(){var _2d=[];for(var id in ccs){if(ccs[id].constructor==_25){_2d.push(ccs[id]);}}return _2d;};this.getIDs=function(){var ids=[];for(var id in ccs){if(ccs[id].constructor==_25){ids.push(id);}}return ids;};}()};var _31=new function(){var _32=encodeURIComponent||escape;this.getLogURL=function(_33,_34,_35,_36,_37){var _38=function(url){if(typeof url==_21||url===""||url===null){return _23.href;}url=""+url;if(url.substring(0,4)!="http"&&url.substring(0,1)!="/"){url=_23.pathname.substring(0,_23.pathname.lastIndexOf("/")+1)+url;}if(url.substring(0,1)=="/"){url=api.logger.http+_23.host+url;}return url;};var _3a=function(_3b){_3b=(typeof _3b!=_21?_3b:_24.base_url);if(_3b.indexOf("?")>0){_3b=_3b.substring(0,_3b.indexOf("?"));}var al=(_3b!=api.logger.http+_23.host+_23.pathname);return al;};if(typeof _33==_21){_33="i";}if(typeof _34==_21){_34=_24.base_url;}_34=_38(_34);var url=api.logger.http+_24.server_hostname+"/"+_33+"?siteID="+_24.site_id;var _3e=new Date().getTime();url+="&ts="+(typeof _36!=_21?_36:_3e);var _3f=_24.containers.getIDs();if(_3f.length>0){for(var cc=0;cc<_3f.length;cc++){url+="&ccID="+_32(_3f[cc]);}}if(_33=="c"){url+="&log=no";}var al=_3a(_34);if(al){url+="&alias=true";}if(_35&&_35.length){url+="&prod="+_32(_35);}if(typeof _37!=_21){url+=_37;}_34=_32(_34);while(_34.length>1999-url.length){_34=_34.substring(0,_34.lastIndexOf(_32("&")));}url+="&location="+_34;var dg={};dg.tagv=_32(omtr.tc.Version);dg.tz=0-(new Date().getTimezoneOffset());dg.r=_32(_24.referrer);dg.title=""+_32(document.title);if(al){dg.aliased=_32(_23.href);}if(screen){dg.cd=screen.colorDepth;dg.ah=screen.availHeight;dg.aw=screen.availWidth;dg.sh=screen.height;dg.sw=screen.width;dg.pd=screen.pixelDepth;}for(var key in dg){if((typeof (dg[key])!=("function"))&&(typeof (dg[key])!=("array"))&&(typeof (dg[key])!=("object"))){var _44="&"+key+"="+dg[key];if(url.length+_44.length<2000){url+=_44;}else{break;}}}return url;};}();this.logger=new function(){var _45=this;this.loaded=true;this.http="http"+(_23.href.substring(0,6)=="https:"?"s":"")+"://";var _46=false;var _47=false;var _48=[];var _49=function(_4a,url,_4c,_4d,_4e){if(typeof url==_21||url===""){return false;}if(_24.active){var _4f=new Image();_4f.src=_31.getLogURL("i",_4c,_4e,new Date().getTime());_48.push(_4f);}if(typeof _4d==_21){return window.open(url,_4a);}else{return window.open(url,_4a,_4d);}};var _50=function(_51,_52,_53){if(!_24.active){return null;}var _54=new Image();_54.src=_31.getLogURL("i",_51,_52,new Date().getTime(),_53);_48.push(_54);return _54;};var _55=function(_56,url,_58,_59,_5a,_5b){var _5c=null;if(typeof url==_21||url===""){return;}if(typeof _5b==_21||_5b===""){_5b="window.location.href='"+url+"'";}if(typeof _58==_21){_58=url;}if(typeof _56==_21||_56===""||_56=="_self"){if(_24.active){_5c=new Image();_5c.timeout_id=setTimeout(_5b,(_24.timeout*1000));_5c.onload=function(){eval(_5b);clearTimeout(_45.image.timeout_id);};_5c.onerror=function(){eval(_5b);clearTimeout(_45.image.timeout_id);};_5c.src=_31.getLogURL("i",_58,_5a,new Date().getTime());_48.push(_5c);}else{eval(_5b);}}else{if(typeof _56=="object"&&_56.document){if(_24.active){_5c=new Image();_5c.src=_31.getLogURL("i",_58,_5a);_48.push(_5c);}_56.location.href=url;}else{_49(_56,url,_58,_59,_5a);}}};var _5d=function(_5e){if(_5e.containers){return null;}else{var _5f=null;if(_24.active&&!_47){_5f=_50();_5f.onload=function(){_46=true;};}_47=true;return _5f;}};this.init=function(_60){if(_47){return;}if(typeof _60!="object"){if(typeof window.tc=="object"){_60=window.tc;}else{_60={};}}if(_60.active===false||_60.active==="false"||_60.active===0){_24.active=false;}if(_60.site_id){_24.site_id=_60.site_id;}if(_60.server_hostname){_24.server_hostname=_60.server_hostname;}if(_60.page_alias){_24.base_url=_60.page_alias;}if(_60.extra_info){_24.base_url+=(_24.base_url.indexOf("?")>0?"&":"?")+_60.extra_info;}if(_60.products){_24.products=_60.products;}if(_60.referrer){_24.referrer=_60.referrer;}_5d(_60);};api.log=_50;api.redirect=_55;}();this.targeter=new function(){this.loaded=true;this.content_url="";var _61=false;var _62=false;var _63=function(){return (!document.getElementById&&!document.all);};var _64=function(){if(_62===true){return 0;}var cc,_66=_24.containers.getAll(),_67="",_68=0,_69=0,_6a=0;for(var i=0;i<_66.length;i++){cc=_66[i];if(cc.error){_67+="&error="+cc.id;_68++;}}if(_68>0){api.log(null,null,_67);_62=true;return 3;}for(var i=0;i<_66.length;i++){cc=_66[i];if(!cc.displayed&&!cc.defaulted){return 0;}if(cc.defaulted){_67+="&default="+cc.id;_69++;}else{for(var co=0;co<cc.coids.length;co++){_67+="&displayed="+cc.coids[co];_6a++;}}}api.log(null,null,_67);_62=true;var _6d=1;if(_69>0&&_6a==0){_6d=2;}if(_69>0&&_6a>0){_6d=3;}return _6d;};api.report=_64;var _6e=function(cc){return (function(){if(!cc.displayed){cc.defaulted=true;document.getElementById("tc_content_"+cc.id).innerHTML=cc.default_content;}omtr.tc.report();});};var _70=function(id,_72){var _73=function(_74){document.write("<span id='tc_content_"+id+"'>"+_74+"</span>");};if(_63()){_73(_72);return;}var cc=_24.containers.get(id);cc.default_content=_72;if(cc.error===true){_73(_72);}else{if(cc.content!==""){if(cc.content=="__default__"){_73(cc.default_content);}else{_73(cc.content);}cc.displayed=true;}else{_73("");cc.rendered=true;if(cc.default_content){var _76=_6e(cc);cc.timeout_id=setTimeout(_76,_24.timeout*1000);}}}omtr.tc.report();};var _77=function(_78,_79,_7a){var cc=_24.containers.get(_78);if(cc.defaulted){return;}cc.coids.push(_79);if(cc.rendered){if(_7a=="__default__"){_7a=cc.default_content;}document.getElementById("tc_content_"+_78).innerHTML+=_7a;cc.displayed=true;}else{cc.content+=_7a;}};this.init=function(_7c){if(_61){return;}if(typeof _7c.containers=="string"){_24.containers.add(_7c.containers);}else{if(_7c.containers&&_7c.containers.length){for(var i=0;i<_7c.containers.length;i++){_24.containers.add(_7c.containers[i]);}}else{return;}}if(_7c.log_path){_24.log_path=_7c.log_path;}if(_24.active&&!_63()){var _7e=_7c.test?_31.fixURL(_7c.test):_31.getLogURL("c");this.content_url="<scr"+"ipt src='"+_7e+"'></scr"+"ipt>";if(_7c.test){document.writeln(this.content_url);}else{document.writeln("<iframe id='tc_iframe' src='"+_24.log_path+"/tc_targeting.html' width=0 height=0 style='display:none'></iframe>");}}_61=true;};api.optimize=_70;api.set_content=_77;}();var _7f=function(_80){if(omtr.tc.plugin){for(var _81 in omtr.tc.plugin){if(omtr.tc.plugin[_81].init){omtr.tc.plugin[_81].init(_80);}}}};var _82=false;this.init=function(_83){if(_82){return;}if(typeof _83!="object"){if(typeof window.tc=="object"){_83=window.tc;}else{_83={};}}_7f(_83);this.logger.init(_83);this.targeter.init(_83);_82=true;};};omtr.extend("omtr.tc",new _20());if(window.tc&&window.tc.autoStart){omtr.tc.init(tc);}})();

