/* 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 || "/files/pres/js";
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.tc_extra_info_from_analytics",{init:function(_8){if(!_8.extraInfoFromAnalytics){return _8;}var _9="",_a=_8.extraInfoFromAnalytics;_8.extra_info=_8.extra_info||"";_a.source=_a.source||omtr.data;_a.propList=_a.propList||window.undefined;if(typeof _a.encode!="boolean"){_a.encode=true;}if(typeof omtr.data==("object")&&typeof omtr.data.serialize==("function")){_9=omtr.data.serialize(_a.propList,_a.encode);_8.extra_info+=_9;return _8;}var _b,_c=_a.source,_d=(typeof encodeURIComponent!="undefined"?encodeURIComponent:escape);for(_b in _c){if((typeof (_c[_b])!=("function"))&&(typeof (_c[_b])!=("array"))&&(typeof (_c[_b])!=("object"))&&(typeof (_c[_b])!=("undefined"))&&((_c[_b])!=(""))&&((_c[_b])!=(null))){_9+="&"+_d(_b.toString())+"="+_d(_c[_b]);}}_8.extra_info+=_9;return _8;}});(omtr.extend("omtr.tc.plugin.swf_content",{count:0,tc_swf2_home:"tc_swf2_home",tc_swf2_placeholder:"tc_swf2_placeholder",run:function(_e){var _f=omtr.tc.plugin.swf_content;if(!document.getElementById(_f.tc_swf2_home)){var _10=document.getElementsByTagName("body")[0];var _11=_10&&_10.firstChild?_10.firstChild:false;if(_10&&_11){var _12=document.createElement("DIV");_12.id=_f.tc_swf2_home;_12.style.display="none";_10.insertBefore(_12,_11);}else{document.writeln("<div id='"+_f.tc_swf2_home+"' style='display:none'></div>");}}},init:function(_13){return _13;},render:function(_14,_15){var _16=omtr.tc.plugin.swf_content;var _17=_14;var _18=_15;if(!_17||!(typeof _17=="object")){return _18;}if(!_17.swf||!_17.width||!_17.height){return _18;}_16.count=_16.count+1;_17.id=_17.id||"tnt-flash-content-"+_16.count;_17.name=_17.name||_17.id;_17.version=_17.version||"6.0.65";_17.backgroundColor=_17.backgroundColor||"#FFFFFF";if(window.swfobject&&swfobject.embedSWF&&swfobject.createSWF){if(!swfobject.getFlashPlayerVersion().major>0){return _18;}if(_17.version){if(!swfobject.hasFlashPlayerVersion(_17.version)){return _18;}delete _17.version;}var _19=document.getElementById(_16.tc_swf2_home);if(!_19){return _18;}var _1a=document.createElement("DIV");_1a.id=_16.tc_swf2_placeholder;_19.appendChild(_1a);var _1b={};_1b.data=_17.swf;delete _17.swf;_1b.width=_17.width;delete _17.width;_1b.height=_17.height;delete _17.height;_1b.id=_17.id;delete _17.id;_1b.name=_17.name;delete _17.name;var _1c={};_1c.bgcolor=_17.backgroundColor;delete _17.backgroundColor;if(_17.vars&&typeof _17.vars=="object"){var _1d=window.encodeURIComponent||escape;var a=[];for(var i=0;i<_17.vars.length;i++){if(typeof _17.vars[i]=="string"){a[i]=_17.vars[i].split("=");var key=(a[i][0]).replace(/^\s*/,"").replace(/\s*$/,"");var val=(a[i][1]).replace(/^\s*/,"").replace(/\s*$/,"");if(-1<(_1b.data).indexOf("?")){_1b.data+="&"+_1d(key)+"="+_1d(val);}else{_1b.data+="?"+_1d(key)+"="+_1d(val);}}}delete _17.vars;}for(var m in _17){if(_17[m]!=Object.prototype[m]){_1c[m]=_17[m];}}var _23=swfobject.createSWF(_1b,_1c,_16.tc_swf2_placeholder);if(_23.id&&_23.id==_16.tc_swf2_placeholder){_23.removeAttribute("id");}var _24=_19.innerHTML;_19.innerHTML="";return _24;}else{if(typeof deconcept=="object"&&typeof deconcept.SWFObject=="function"){var _25=new deconcept.SWFObject(_17.swf,_17["id"],_17.width,_17.height,_17.version,_17.backgroundColor,false,_17["quality"],false,_17["detectKey"],_17["detection"]);if(!_25.installedVer.versionIsValid(_25.getAttribute("version"))){return _18;}if(_17.vars&&typeof _17.vars=="object"){var a=[];for(var i=0;i<_17.vars.length;i++){if(typeof _17.vars[i]=="string"){a[i]=_17.vars[i].split("=");var key=(a[i][0]).replace(/^\s*/,"").replace(/\s*$/,"");var val=(a[i][1]).replace(/^\s*/,"").replace(/\s*$/,"");_25.addVariable(key,val);}}}return _25.getSWFHTML();}else{return _18;}}}})).run(window.tc||{});omtr.tc.plugin.tc_swf_content=omtr.tc.plugin.swf_content.render;window.tc_swf_content=omtr.tc.plugin.tc_swf_content;omtr.extend("omtr.tc",{Version:"5.3",Vendor:"Omniture",Product:"TouchClarity"});(function(){var _26=function(){var _27="undefined";var api=this;var _29=window.location;var _2a={timeout:5,site_id:425,server_hostname:"tagging-qa.touchclarity.com",active:true,base_url:_29.href,products:"",referrer:(function(){if(typeof document.referrer==_27){return _27;}if(document.referrer===null){return "null";}if(document.referrer===""){return "empty";}return document.referrer;})(),log_path:"/touchclarity",containers:new function(){var _2b=function(id,_2d){this.id=id;this.rendered=false;this.displayed=false;this.defaulted=false;this.error=false;this.content="";this.default_content=_2d;this.timeout_id=null;this.coids=[];};var ccs={};this.add=function(_2f){var cc=new _2b(_2f,"");ccs[_2f]=cc;return cc;};this.get=function(_31){var cc=ccs[_31];if(!cc){cc=this.add(_31);cc.error=true;}return cc;};this.getAll=function(){var _33=[];for(var id in ccs){if(ccs[id].constructor==_2b){_33.push(ccs[id]);}}return _33;};this.getIDs=function(){var ids=[];for(var id in ccs){if(ccs[id].constructor==_2b){ids.push(id);}}return ids;};}()};var _37=new function(){var _38=encodeURIComponent||escape;this.getLogURL=function(_39,_3a,_3b,_3c,_3d){var _3e=function(url){if(typeof url==_27||url===""||url===null){return _2a.base_url;}url=""+url;if(url.substring(0,4)!="http"&&url.substring(0,1)!="/"){url=_29.pathname.substring(0,_29.pathname.lastIndexOf("/")+1)+url;}if(url.substring(0,1)=="/"){url=api.logger.http+_29.host+url;}return url;};var _40=function(_41){_41=(typeof _41!=_27?_41:_2a.base_url);if(_41.indexOf("?")>0){_41=_41.substring(0,_41.indexOf("?"));}var al=(_41!=api.logger.http+_29.host+_29.pathname);return al;};if(typeof _39==_27){_39="i";}_3a=_3e(_3a);var url=api.logger.http+_2a.server_hostname+"/"+_39+"?siteID="+_2a.site_id;var _44=new Date().getTime();url+="&ts="+(typeof _3c!=_27?_3c:_44);var _45=_2a.containers.getIDs();if(_45.length>0){for(var cc=0;cc<_45.length;cc++){url+="&ccID="+_38(_45[cc]);}}if(_39=="c"){url+="&log=no";}var al=_40(_3a);if(al){url+="&alias=true";if(_29.search){var _48=""+_29;var _49=_48.substring(_48.indexOf("?")+1,_48.length);var _4a=-1<_3a.indexOf("?")?"&":"?";_3a+=_4a+_49;}}if(_3b&&_3b.length){url+="&prod="+_38(_3b);}if(typeof _3d!=_27){url+=_3d;}_3a=_38(_3a);while(_3a.length>1999-url.length){_3a=_3a.substring(0,_3a.lastIndexOf(_38("&")));}url+="&location="+_3a;if(_2a.usePlugins){var _4b=new RequestAPI();var _4c=_4b.create(url);if(_4c.parseError){}else{var err=false;try{_2a.doPlugins(_4c);}catch(e){err=true;}if(!err){url=_4b.serialize(_4c);}}_4c=null;}var dg={};dg.tagv=_38(omtr.tc.Version);dg.tz=0-(new Date().getTimezoneOffset());dg.r=_38(_2a.referrer);dg.title=""+_38(document.title);if(al){dg.aliased=_38(_29.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 _50="&"+key+"="+dg[key];if(url.length+_50.length<2000){url+=_50;}else{break;}}}return url;};}();function RequestAPI(){this.create=function(url){var _re=/(^http[s]?|^file):\/\/\/?([^\/]+)\/([^?]+)\??(.*)$/;var _53="";var _54="";var _55="";var _56="";var _57="";function getProperties(_58){var tnt={};var _5a=_58.split("&");for(var i=0;i<_5a.length;i++){var _5c=(_5a[i]).split("=");var key=_5c&&_5c[0]?_5c[0]:"";var val=_5c&&_5c[1]?_5c[1]:"";if(!key||!val){continue;}val=unescape(val);if(!tnt[key]){if(key=="siteID"){_53=val;continue;}if(key=="location"){tnt.location={};var res=/^([^?]+)\??(.*)?$/.exec(val);var _60=res&&res[1]?res[1]:"";var _61=res&&res[2]?res[2]:"";tnt.location.base=_60;tnt.location.params=getProperties(_61);}else{tnt[key]=val;}}else{if(typeof tnt[key]=="string"){tnt[key]=[tnt[key]];}tnt[key][tnt[key].length]=val;}}return tnt;}var _62=_re.exec(url);if(_62){_54=_62[1]?_62[1]:"";_55=_62[2]?_62[2]:"";_56=_62[3]?_62[3]:"";_57=_62[4]?_62[4]:"";}else{return {"parseError":true};}var _63=getProperties(_57);_63.siteID=_53;_63.protocol=_54;_63.server_hostname=_55;_63.request_type=_56;_63.getParameter=function(k){return (this.location.params[k]||"");};_63.setParameter=function(k,v){var _67=typeof v!="undefined"?""+v:"";if(_67){this.location.params[k]=_67;}else{}return (this.location.params[k]?true:false);};_63.deleteParameter=function(k){if(this.location.params[k]){delete this.location.params[k];}return typeof this.location.params[k]=="undefined";};return _63;};this.serialize=function(tnt){var url="";var _6b="";var _6c=window.encodeURIComponent||escape;var _6d={};_6d.protocol=_6d.server_hostname=_6d.request_type=_6d.siteID=1;url+=tnt.protocol||(document.location.protocol=="http:"?"http:":"https:");url+="://";url+=tnt.server_hostname||"tagging-qa.touchclarity.com";url+="/"+tnt.request_type||"i";url+="?siteID="+tnt.siteID||"425";function normalize(obj){var _6f=[];for(var key in obj){if(_6d[key]){continue;}if(obj[key]===Object.prototype[key]){continue;}var _71=obj[key];if(typeof _71==="function"){continue;}if(typeof _71==="object"&&_71.sort){for(var i=0;i<_71.length;i++){_6f[_6f.length]=key+"="+_6c(_71[i]);}continue;}if(key=="location"){var _73=normalize(_71.params);_6b=_6c(_71.base+"?"+_73);}else{_6f[_6f.length]=key+"="+_6c(_71);}}return _6f.join("&");}url=url+"&"+normalize(tnt);while(_6b.length>1999-url.length){_6b=_6b.substring(0,_6b.lastIndexOf(_6c("&")));}return (url+"&location="+_6b);};}this.logger=new function(){var _74=this;this.loaded=true;this.http="http"+(_29.href.substring(0,6)=="https:"?"s":"")+"://";var _75=false;var _76=false;var _77=[];var _78=function(_79,url,_7b,_7c,_7d){if(typeof url==_27||url===""){return false;}if(_2a.active){var _7e=new Image();_7e.src=_37.getLogURL("i",_7b,_7d,new Date().getTime());_77.push(_7e);}if(typeof _7c==_27){return window.open(url,_79);}else{return window.open(url,_79,_7c);}};var _7f=function(_80,_81,_82){if(!_2a.active){return null;}var _83=new Image();_83.src=_37.getLogURL("i",_80,_81,new Date().getTime(),_82);_77.push(_83);return _83;};var _84=function(_85,url,_87,_88,_89,_8a){var _8b=null;if(typeof url==_27||url===""){return;}if(typeof _8a==_27||_8a===""){_8a="window.location.href='"+url+"'";}if(typeof _87==_27){_87=url;}if(typeof _85==_27||_85===""||_85=="_self"||_85=="_parent"||_85=="_top"){if(_2a.active){_8b=new Image();_8b.timeout_id=setTimeout(_8a,(_2a.timeout*1000));_8b.onload=function(){eval(_8a);clearTimeout(_8b.timeout_id);};_8b.onerror=function(){eval(_8a);clearTimeout(_8b.timeout_id);};_8b.src=_37.getLogURL("i",_87,_89,new Date().getTime());_77.push(_8b);}else{eval(_8a);}}else{if(typeof _85=="object"&&_85.document){if(_2a.active){_8b=new Image();_8b.src=_37.getLogURL("i",_87,_89);_77.push(_8b);}_85.location.href=url;}else{_78(_85,url,_87,_88,_89);}}};var _8c=function(_8d){if(_8d.containers){return null;}else{var _8e=null;if(_2a.active&&!_76){_8e=_7f();_8e.onload=function(){_75=true;};}_76=true;return _8e;}};this.init=function(_8f){if(_76){return;}if(typeof _8f!="object"){if(typeof window.tc=="object"){_8f=window.tc;}else{_8f={};}}if(_8f.active===false||_8f.active==="false"||_8f.active===0){_2a.active=false;}if(_8f.site_id){_2a.site_id=_8f.site_id;}if(_8f.server_hostname){_2a.server_hostname=_8f.server_hostname;}if(_8f.page_alias){_2a.base_url=_8f.page_alias;}if(_8f.extra_info){_2a.base_url+=(_2a.base_url.indexOf("?")>0?"&":"?")+_8f.extra_info;}if(_8f.timeout){_2a.timeout=_8f.timeout;}if(_8f.products){_2a.products=_8f.products;}if(_8f.referrer){_2a.referrer=_8f.referrer;}if(_8f.usePlugins===true||_8f.usePlugins==="true"||_8f.usePlugins===1){if(typeof _8f.doPlugins!=="function"){}else{_2a.usePlugins=true;_2a.doPlugins=_8f.doPlugins;}}_8c(_8f);};api.log=_7f;api.redirect=_84;}();this.targeter=new function(){this.loaded=true;this.content_url="";var _90=false;var _91=false;var _92=function(){return (!document.getElementById&&!document.all);};var _93=function(){if(_91===true){return 0;}var cc,_95=_2a.containers.getAll(),_96="",_97=0,_98=0,_99=0;for(var i=0;i<_95.length;i++){cc=_95[i];if(cc.error){_96+="&error="+cc.id;_97++;}}if(_97>0){api.log(null,null,_96);_91=true;return 3;}for(var i=0;i<_95.length;i++){cc=_95[i];if(!cc.displayed&&!cc.defaulted){return 0;}if(cc.defaulted){_96+="&default="+cc.id;_98++;}else{for(var co=0;co<cc.coids.length;co++){_96+="&displayed="+cc.coids[co];_99++;}}}api.log(null,null,_96);_91=true;var _9c=1;if(_98>0&&_99==0){_9c=2;}if(_98>0&&_99>0){_9c=3;}return _9c;};api.report=_93;var _9d=function(cc){return (function(){if(!cc.displayed){cc.defaulted=true;document.getElementById("tc_content_"+cc.id).innerHTML=cc.default_content;}omtr.tc.report();});};var _9f=function(id,_a1){var _a2=function(_a3){document.write("<span id='tc_content_"+id+"'>"+_a3+"</span>");};if(_92()){_a2(_a1);return;}var cc=_2a.containers.get(id);cc.default_content=_a1;if(_2a.active===false){_a2(_a1);}else{if(cc.error===true){_a2(_a1);}else{if(cc.content!==""){if(cc.content=="__default__"){_a2(cc.default_content);}else{_a2(cc.content);}cc.displayed=true;}else{_a2("");cc.rendered=true;if(cc.default_content){var _a5=_9d(cc);cc.timeout_id=setTimeout(_a5,_2a.timeout*1000);}}}}omtr.tc.report();};var _a6=function(_a7,_a8,_a9){var cc=_2a.containers.get(_a7);if(cc.defaulted){return;}cc.coids.push(_a8);if(cc.rendered){if(_a9=="__default__"){_a9=cc.default_content;}document.getElementById("tc_content_"+_a7).innerHTML+=_a9;cc.displayed=true;}else{cc.content+=_a9;}};this.init=function(_ab){if(_90){return;}if(typeof _ab.containers=="string"){_2a.containers.add(_ab.containers);}else{if(_ab.containers&&_ab.containers.length){for(var i=0;i<_ab.containers.length;i++){_2a.containers.add(_ab.containers[i]);}}else{return;}}if(_ab.log_path){_2a.log_path=_ab.log_path;}if(_2a.active&&!_92()){var _ad=_ab.test?_ab.test:_37.getLogURL("c");this.content_url="<scr"+"ipt src='"+_ad+"'></scr"+"ipt>";document.writeln("<iframe id='tc_iframe' src='"+_2a.log_path+"/tc_targeting.html' width=0 height=0 style='display:none'></iframe>");}_90=true;};api.optimize=_9f;api.set_content=_a6;}();var _ae=function(_af){if(omtr.tc.plugin){for(var _b0 in omtr.tc.plugin){if(omtr.tc.plugin[_b0].init){try{omtr.tc.plugin[_b0].init(_af);}catch(e){}}}}};var _b1=false;this.init=function(_b2){if(_b1){return;}if(typeof _b2!="object"){if(typeof window.tc=="object"){_b2=window.tc;}else{_b2={};}}_ae(_b2);this.logger.init(_b2);this.targeter.init(_b2);_b1=true;};};omtr.extend("omtr.tc",new _26());if(window.tc&&window.tc.autoStart){omtr.tc.init(tc);}})();


