/*! 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. */

window.tc = window.tc || {};
tc.site_id = tc.site_id || 496;
tc.log_path = tc.log_path || "/touchclarity";
tc.server_hostname = tc.server_hostname || "gmac.tcliveus.com";

/************************** PLUGINS SECTION *************************/
// Read SiteCatalyst variables
tc.extraInfoFromAnalytics = {};

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
window.undefined=window.undefined;window.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.swf2_content",{tc_swf2_home:"tc_swf2_home",tc_swf2_placeholder:"tc_swf2_placeholder",run:function(_8){var _9=omtr.tc.plugin.swf2_content;if(!document.getElementById(_9.tc_swf2_home)){var _a=document.getElementsByTagName("body")[0];var _b=_a.firstChild;if(_a&&_b){var _c=document.createElement("DIV");_c.id=_9.tc_swf2_home;_c.style.display="none";_a.insertBefore(_c,_b);}else{document.writeln("<div id='"+_9.tc_swf2_home+"' style='display:none'></div>");}}},init:function(_d){return _d;},render:function(_e,_f){var _10=omtr.tc.plugin.swf2_content;if(!_e||!(typeof _e=="object")){return _f;}if(!_e.swf||!_e.width||!_e.height){return _f;}if(!window.swfobject){return _f;}if(swfobject.embedSWF&&swfobject.createSWF&&!swfobject.getFlashPlayerVersion().major>0){return _f;}if(_e.version){if(!swfobject.hasFlashPlayerVersion(_e.version)){return _f;}delete _e.version;}var _11=document.getElementById(_10.tc_swf2_home);var _12=document.createElement("DIV");_12.id=_10.tc_swf2_placeholder;_11.appendChild(_12);var _13={};_13.data=_e.swf;delete _e.swf;_13.width=_e.width;delete _e.width;_13.height=_e.height;delete _e.height;if(_e.id){_13.id=_e.id;delete _e.id;}var _14={};if(_e.backgroundColor){_14.bgcolor=_e.backgroundColor;delete _e.backgroundColor;}else{_14.bgcolor="#FFFFFF";}if(_e.vars&&typeof _e.vars=="object"){var _15=encodeURIComponent||escape;var a=[];for(var i=0;i<_e.vars.length;i++){if(typeof _e.vars[i]=="string"){a[i]=_e.vars[i].split("=");var key=(a[i][0]).replace(/^\s*/,"").replace(/\s*$/,"");var val=(a[i][1]).replace(/^\s*/,"").replace(/\s*$/,"");if(-1<(_13.data).indexOf("?")){_13.data+="&"+_15(key)+"="+_15(val);}else{_13.data+="?"+_15(key)+"="+_15(val);}}}delete _e.vars;}for(var m in _e){if(_e[m]!=Object.prototype[m]){_14[m]=_e[m];}}var _1b=swfobject.createSWF(_13,_14,_10.tc_swf2_placeholder);if(_1b.id&&_1b.id==_10.tc_swf2_placeholder){_1b.removeAttribute("id");}var _1c=_11.innerHTML;_11.innerHTML="";return _1c;}})).run(window.tc||{});omtr.tc.plugin.tc_swf2_content=omtr.tc.plugin.swf2_content.render;omtr.extend("omtr.tc.plugin.tc_extra_info_from_analytics",{init:function(_1d){if(!_1d.extraInfoFromAnalytics){return _1d;}var _1e="",_1f=_1d.extraInfoFromAnalytics;_1d.extra_info=_1d.extra_info||"";_1f.source=_1f.source||omtr.data;_1f.propList=_1f.propList||window.undefined;if(typeof _1f.encode!="boolean"){_1f.encode=true;}if(typeof omtr.data==("object")&&typeof omtr.data.serialize==("function")){_1e=omtr.data.serialize(_1f.propList,_1f.encode);_1d.extra_info+=_1e;return _1d;}var _20,_21=_1f.source,_22=(typeof encodeURIComponent!="undefined"?encodeURIComponent:escape);for(_20 in _21){if((typeof (_21[_20])!=("function"))&&(typeof (_21[_20])!=("array"))&&(typeof (_21[_20])!=("object"))&&(typeof (_21[_20])!=("undefined"))&&((_21[_20])!=(""))&&((_21[_20])!=(null))){_1e+="&"+_22(_20.toString())+"="+_22(_21[_20]);}}_1d.extra_info+=_1e;return _1d;}});omtr.extend("omtr.tc",{Version:"5.3",Vendor:"Omniture",Product:"TouchClarity"});(function(){var _23=function(){var _24="undefined";var api=this;var _26=window.location;var _27={timeout:5,site_id:496,server_hostname:"gmac.tcliveus.com",active:true,base_url:_26.href,products:"",referrer:(function(){if(typeof document.referrer==_24){return _24;}if(document.referrer===null){return "null";}if(document.referrer===""){return "empty";}return document.referrer;})(),log_path:"/touchclarity",containers:new function(){var _28=function(id,_2a){this.id=id;this.rendered=false;this.displayed=false;this.defaulted=false;this.error=false;this.content="";this.default_content=_2a;this.timeout_id=null;this.coids=[];};var ccs={};this.add=function(_2c){var cc=new _28(_2c,"");ccs[_2c]=cc;return cc;};this.get=function(_2e){var cc=ccs[_2e];if(!cc){cc=this.add(_2e);cc.error=true;}return cc;};this.getAll=function(){var _30=[];for(var id in ccs){if(ccs[id].constructor==_28){_30.push(ccs[id]);}}return _30;};this.getIDs=function(){var ids=[];for(var id in ccs){if(ccs[id].constructor==_28){ids.push(id);}}return ids;};}()};var _34=new function(){var _35=encodeURIComponent||escape;this.getLogURL=function(_36,_37,_38,_39,_3a){var _3b=function(url){if(typeof url==_24||url===""||url===null){return _27.base_url;}url=""+url;if(url.substring(0,4)!="http"&&url.substring(0,1)!="/"){url=_26.pathname.substring(0,_26.pathname.lastIndexOf("/")+1)+url;}if(url.substring(0,1)=="/"){url=api.logger.http+_26.host+url;}return url;};var _3d=function(_3e){_3e=(typeof _3e!=_24?_3e:_27.base_url);if(_3e.indexOf("?")>0){_3e=_3e.substring(0,_3e.indexOf("?"));}var al=(_3e!=api.logger.http+_26.host+_26.pathname);return al;};if(typeof _36==_24){_36="i";}_37=_3b(_37);var url=api.logger.http+_27.server_hostname+"/"+_36+"?siteID="+_27.site_id;var _41=new Date().getTime();url+="&ts="+(typeof _39!=_24?_39:_41);var _42=_27.containers.getIDs();if(_42.length>0){for(var cc=0;cc<_42.length;cc++){url+="&ccID="+_35(_42[cc]);}}if(_36=="c"){url+="&log=no";}var al=_3d(_37);if(al){url+="&alias=true";}if(_38&&_38.length){url+="&prod="+_35(_38);}if(typeof _3a!=_24){url+=_3a;}_37=_35(_37);while(_37.length>1999-url.length){_37=_37.substring(0,_37.lastIndexOf(_35("&")));}url+="&location="+_37;var dg={};dg.tagv=_35(omtr.tc.Version);dg.tz=0-(new Date().getTimezoneOffset());dg.r=_35(_27.referrer);dg.title=""+_35(document.title);if(al){dg.aliased=_35(_26.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 _47="&"+key+"="+dg[key];if(url.length+_47.length<2000){url+=_47;}else{break;}}}return url;};}();this.logger=new function(){var _48=this;this.loaded=true;this.http="http"+(_26.href.substring(0,6)=="https:"?"s":"")+"://";var _49=false;var _4a=false;var _4b=[];var _4c=function(_4d,url,_4f,_50,_51){if(typeof url==_24||url===""){return false;}if(_27.active){var _52=new Image();_52.src=_34.getLogURL("i",_4f,_51,new Date().getTime());_4b.push(_52);}if(typeof _50==_24){return window.open(url,_4d);}else{return window.open(url,_4d,_50);}};var _53=function(_54,_55,_56){if(!_27.active){return null;}var _57=new Image();_57.src=_34.getLogURL("i",_54,_55,new Date().getTime(),_56);_4b.push(_57);return _57;};var _58=function(_59,url,_5b,_5c,_5d,_5e){var _5f=null;if(typeof url==_24||url===""){return;}if(typeof _5e==_24||_5e===""){_5e="window.location.href='"+url+"'";}if(typeof _5b==_24){_5b=url;}if(typeof _59==_24||_59===""||_59=="_self"||_59=="_parent"||_59=="_top"){if(_27.active){_5f=new Image();_5f.timeout_id=setTimeout(_5e,(_27.timeout*1000));_5f.onload=function(){eval(_5e);clearTimeout(_5f.timeout_id);};_5f.onerror=function(){eval(_5e);clearTimeout(_5f.timeout_id);};_5f.src=_34.getLogURL("i",_5b,_5d,new Date().getTime());_4b.push(_5f);}else{eval(_5e);}}else{if(typeof _59=="object"&&_59.document){if(_27.active){_5f=new Image();_5f.src=_34.getLogURL("i",_5b,_5d);_4b.push(_5f);}_59.location.href=url;}else{_4c(_59,url,_5b,_5c,_5d);}}};var _60=function(_61){if(_61.containers){return null;}else{var _62=null;if(_27.active&&!_4a){_62=_53();_62.onload=function(){_49=true;};}_4a=true;return _62;}};this.init=function(_63){if(_4a){return;}if(typeof _63!="object"){if(typeof window.tc=="object"){_63=window.tc;}else{_63={};}}if(_63.active===false||_63.active==="false"||_63.active===0){_27.active=false;}if(_63.site_id){_27.site_id=_63.site_id;}if(_63.server_hostname){_27.server_hostname=_63.server_hostname;}if(_63.page_alias){_27.base_url=_63.page_alias;}if(_63.extra_info){_27.base_url+=(_27.base_url.indexOf("?")>0?"&":"?")+_63.extra_info;}if(_63.timeout){_27.timeout=_63.timeout;}if(_63.products){_27.products=_63.products;}if(_63.referrer){_27.referrer=_63.referrer;}_60(_63);};api.log=_53;api.redirect=_58;}();this.targeter=new function(){this.loaded=true;this.content_url="";var _64=false;var _65=false;var _66=function(){return (!document.getElementById&&!document.all);};var _67=function(){if(_65===true){return 0;}var cc,_69=_27.containers.getAll(),_6a="",_6b=0,_6c=0,_6d=0;for(var i=0;i<_69.length;i++){cc=_69[i];if(cc.error){_6a+="&error="+cc.id;_6b++;}}if(_6b>0){api.log(null,null,_6a);_65=true;return 3;}for(var i=0;i<_69.length;i++){cc=_69[i];if(!cc.displayed&&!cc.defaulted){return 0;}if(cc.defaulted){_6a+="&default="+cc.id;_6c++;}else{for(var co=0;co<cc.coids.length;co++){_6a+="&displayed="+cc.coids[co];_6d++;}}}api.log(null,null,_6a);_65=true;var _70=1;if(_6c>0&&_6d==0){_70=2;}if(_6c>0&&_6d>0){_70=3;}return _70;};api.report=_67;var _71=function(cc){return (function(){if(!cc.displayed){cc.defaulted=true;document.getElementById("tc_content_"+cc.id).innerHTML=cc.default_content;}omtr.tc.report();});};var _73=function(id,_75){var _76=function(_77){document.write("<span id='tc_content_"+id+"'>"+_77+"</span>");};if(_66()){_76(_75);return;}var cc=_27.containers.get(id);cc.default_content=_75;if(_27.active===false){_76(_75);}else{if(cc.error===true){_76(_75);}else{if(cc.content!==""){if(cc.content=="__default__"){_76(cc.default_content);}else{_76(cc.content);}cc.displayed=true;}else{_76("");cc.rendered=true;if(cc.default_content){var _79=_71(cc);cc.timeout_id=setTimeout(_79,_27.timeout*1000);}}}}omtr.tc.report();};var _7a=function(_7b,_7c,_7d){var cc=_27.containers.get(_7b);if(cc.defaulted){return;}cc.coids.push(_7c);if(cc.rendered){if(_7d=="__default__"){_7d=cc.default_content;}document.getElementById("tc_content_"+_7b).innerHTML+=_7d;cc.displayed=true;}else{cc.content+=_7d;}};this.init=function(_7f){if(_64){return;}if(typeof _7f.containers=="string"){_27.containers.add(_7f.containers);}else{if(_7f.containers&&_7f.containers.length){for(var i=0;i<_7f.containers.length;i++){_27.containers.add(_7f.containers[i]);}}else{return;}}if(_7f.log_path){_27.log_path=_7f.log_path;}if(_27.active&&!_66()){var _81=_7f.test?_7f.test:_34.getLogURL("c");this.content_url="<scr"+"ipt src='"+_81+"'></scr"+"ipt>";document.writeln("<iframe id='tc_iframe' src='"+_27.log_path+"/tc_targeting.html' width=0 height=0 style='display:none'></iframe>");}_64=true;};api.optimize=_73;api.set_content=_7a;}();var _82=function(_83){if(omtr.tc.plugin){for(var _84 in omtr.tc.plugin){if(omtr.tc.plugin[_84].init){omtr.tc.plugin[_84].init(_83);}}}};var _85=false;this.init=function(_86){if(_85){return;}if(typeof _86!="object"){if(typeof window.tc=="object"){_86=window.tc;}else{_86={};}}_82(_86);this.logger.init(_86);this.targeter.init(_86);_85=true;};};omtr.extend("omtr.tc",new _23());if(window.tc&&window.tc.autoStart){omtr.tc.init(tc);}})();

