/* 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 || 437;
tc.log_path = tc.log_path || "/personal/finance/assets/core/js/tracking";
//tc.server_hostname = tc.server_hostname || "test2.tc-prelive.com";
tc.server_hostname = tc.server_hostname || "adserve.tescofinance.com";
tc.autoStart = tc.autoStart || true;

/************************** PLUGINS SECTION *************************/

tc.carousel = tc.carousel || 0;
function tesco_init(status){
  if(tc.carousel && status != "Default")
  {
    window.createSlideshow();
    window.document.getElementById("loading").style.display = "none";
  }
  else if(tc.carousel)
  {
    window.document.getElementById("loading").style.display = "none";
  }
}

$(document).ready(function(){
	
	$(".eq-1").vjustify(); 
	
});

/************* 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.tesco_ajax",{observers:[],ready:false,serveData:null,init:function(_8){this.doStandardReport=omtr.tc.report;omtr.tc.report=this.sendReport;},add:function(_9){this.observers.push(_9);if(omtr.tc.plugin.tesco_ajax.ready){if(typeof (_9)=="function"){_9.apply(this,[omtr.tc.serveData]);}}else{}},sendReport:function(_a){if(typeof _a=="object"){omtr.tc.plugin.tesco_ajax.serveData=_a;}else{_a=omtr.tc.plugin.tesco_ajax.serveData;}var _b=omtr.tc.plugin.tesco_ajax.doStandardReport();if((_b===0)||(typeof _b==="undefined"&&!_a)){return;}else{if(_b===2){tesco_init("Default");}else{if(_b===3){tesco_init("Default");}else{if(_a!==null&&typeof _a=="object"){tesco_init("Normal");}else{tesco_init("Default");}}}}omtr.tc.plugin.tesco_ajax.ready=true;}});(omtr.extend("omtr.tc.plugin.tc_lazyload",{run:function(_c){if(omtr.tc.lazyload&&omtr.tc.optimize){delete (omtr.tc.optimize);_c.lazyloaded=true;}},init:function(_d){if(_d.lazyloaded){var _e=omtr.tc.lazyload.queuedContainers;if(typeof _e=="object"&&_e.length){for(var i=0;i<_e.length;i++){var _10=_e[i];if(typeof _10=="object"&&_10.length&&(_10.length==2||_10.length==3)){var _11=_10[0];var _12=_10[1];var _13=_10[2]||"";if(typeof _11=="string"&&typeof _12=="string"&&typeof _13=="string"){omtr.tc.configuration.containers.add(_11);omtr.tc.optimize.apply(this,_10);}else{}}else{}}}else{}}else{}}})).run(window.tc||{});omtr.extend("omtr.tc.plugin.tc_page_alias_from_params",{init:function(_14){if(_14.page_alias){return;}if(typeof _14.pageAliasFromParams=="string"){_14.pageAliasFromParams=[_14.pageAliasFromParams];}if(!_14.pageAliasFromParams){return;}var _15=new omtr.tc.plugin.tc_page_alias_from_params.Query(),_16=_14.pageAliasFromParams,_17="",i;for(i=0;i<_16.length;i++){if(_15.params&&typeof _15.params[_16[i]]!="undefined"){_17+="/"+_16[i]+"/"+_15.params[_16[i]];}}if(_17!==""){_17=_17.substring(1)+"?"+_15.queryString;_14.page_alias=_17;}},Query:function(_19){var q="",_1b;if(typeof _19=="boolean"||typeof _19=="number"||typeof _19=="undefined"){q=_19?document.referrer.replace(/^[^\?]+\??/,""):document.location.search.replace(/^\?/,"");}else{if(typeof _19=="string"){q=_19;}}q=q.replace(/#[^#]*$/,"");this.queryString=q;this.params={};_1b=this.queryString.split(/[&;]/);for(var i=0;i<_1b.length;i++){var _1d=_1b[i].split("=");if(!_1d.length==2){continue;}if(!(_1d[0]||_1d[1])){continue;}var key=unescape(_1d[0]);var val=unescape(_1d[1]);val=val.replace(/\+/g," ");this.params[key]=val;}}});omtr.extend("omtr.tc.plugin.backwards_compatibility",{init:function(_20){var win=window;win.tc_log=omtr.tc.log;win.tc_redirect=omtr.tc.redirect;win.tc_open_window=omtr.tc.open_window;win.tc_optimise=omtr.tc.optimize;var i,_23,_24="undefined",_25=["active","site_id","timeout","page_alias","extra_info","referrer","products","containers","log_path"];for(i=0;i<_25.length;i++){_23=_25[i];if(typeof win["tc_"+_23]!==_24){_20[_23]=win["tc_"+_23];}}if(typeof win.tc_server_url!==_24){_20.server_hostname=win.tc_server_url;}}});omtr.extend("omtr.tc.plugin.swf_content",{init:function(_26){},render:function(_27,_28){if(!_27||!(typeof _27=="object")){return _28;}if(typeof deconcept!="object"||typeof deconcept.SWFObject!="function"){return _28;}_27.id=_27.id||"tc-flash-content";_27.version=_27.version||"6.0.65";_27.backgroundColor=_27.backgroundColor||"#FFFFFF";if(!_27.swf||!_27.width||!_27.height){return _28;}var _29=new deconcept.SWFObject(_27.swf,_27["id"],_27.width,_27.height,_27.version,_27.backgroundColor,false,_27["quality"],false,_27["detectKey"],_27["detection"]);if(_27.vars&&typeof _27.vars=="object"){var a=[];for(var i=0;i<_27.vars.length;i++){if(typeof _27.vars[i]=="string"){a[i]=_27.vars[i].split("=");_29.addVariable(a[i][0],a[i][1]);}}}if(_29.installedVer.versionIsValid(_29.getAttribute("version"))){return _29.getSWFHTML();}else{return _28;}}});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(){if(!Function.prototype.apply){Function.prototype.apply=function(o,a){var r;if(!o){o={};}o.___apply=this;for(var i=0,s="";i<a.length;i++){if(i!=0){s+=",";}s+="a["+i+"]";}r=eval("o.___apply("+s+")");o.__apply=null;return r;};}if(!Function.prototype.call){Function.prototype.call=function(o){var _32=new Array(arguments.length-1);for(var i=1;i<arguments.length;i++){_32[i-1]=arguments[i];}return this.apply(o,_32);};}if(!Array.prototype.push){Array.prototype.push=function(){for(var i=0;i<arguments.length;i++){this[this.length]=arguments[i];}return this.length;};}Object.hasOwnProperty=(function(){if(Object.prototype.hasOwnProperty){return function(_35,_36){return Object.prototype.hasOwnProperty.call(_35,_36);};}var _37={};var _38="__proto__";if(_37[_38]){return function(_39,_3a){var _3b;var _3c=_39[_38];_39[_38]=null;_3b=_39[_3a]?true:false;_39[_38]=_3c;return _3b;};}return function(_3d,_3e){return _3d.constructor&&_3d.constructor.prototype[_3e]!==_3d[_3e];};})();var _3f=function(){var _40="undefined";var api=this;var _42=window.location;var _43={timeout:5,site_id:425,server_hostname:"tagging-qa.touchclarity.com",active:true,base_url:_42.href,products:"",referrer:(function(){if(typeof document.referrer==_40){return _40;}if(document.referrer===null){return "null";}if(document.referrer===""){return "empty";}return document.referrer;})(),log_path:"/touchclarity",containers:new function(){function CampaignContainer(id,_45){this.id=id;this.rendered=false;this.displayed=false;this.defaulted=false;this.error=false;this.content="";this.default_content=_45;this.timeout_id=null;this.coids=[];}var ccs={};this.add=function(_47){if(ccs[_47]){return ccs[_47];}else{var cc=new CampaignContainer(_47,"");ccs[_47]=cc;return cc;}};this.get=function(_49){var cc=ccs[_49];if(!cc){cc=this.add(_49);cc.error=true;}return cc;};this.getAll=function(){var _4b=[];for(var id in ccs){if(ccs[id].constructor==CampaignContainer){_4b.push(ccs[id]);}}return _4b;};this.getIDs=function(){var ids=[];for(var id in ccs){if(ccs[id].constructor==CampaignContainer){ids.push(id);}}return ids;};}()};this.configuration=_43;var _4f=new function(){var _50=typeof encodeURIComponent!="undefined"?((navigator.vendor&&navigator.vendor.toLowerCase()=="netscape6")?escape:encodeURIComponent):escape;this.getLogURL=function(_51,_52,_53,_54,_55){var _56=function(url){if(typeof url==_40||url===""||url===null){return _43.base_url;}url=""+url;if(url.substring(0,4)!="http"&&url.substring(0,1)!="/"){url=_42.pathname.substring(0,_42.pathname.lastIndexOf("/")+1)+url;}if(url.substring(0,1)=="/"){url=api.logger.http+_42.host+url;}return url;};var _58=function(_59){_59=(typeof _59!=_40?_59:_43.base_url);if(_59.indexOf("?")>0){_59=_59.substring(0,_59.indexOf("?"));}var al=(_59!=api.logger.http+_42.host+_42.pathname);return al;};if(typeof _51==_40){_51="i";}_52=_56(_52);var url=api.logger.http+_43.server_hostname+"/"+_51+"?siteID="+_43.site_id;var _5c=new Date().getTime();url+="&ts="+(typeof _54!=_40?_54:_5c);var _5d=_43.containers.getIDs();if(_5d.length>0){for(var cc=0;cc<_5d.length;cc++){url+="&ccID="+_50(_5d[cc]);}}if(_51=="c"){url+="&log=no";}var al=_58(_52);if(al){url+="&alias=true";}if(_53&&_53.length){url+="&prod="+_50(_53);}if(typeof _55!=_40){url+=_55;}_52=_50(_52);while(_52.length>1999-url.length){_52=_52.substring(0,_52.lastIndexOf(_50("&")));}url+="&location="+_52;var dg={};dg.tagv=_50(omtr.tc.Version);dg.tz=0-(new Date().getTimezoneOffset());dg.r=_50(_43.referrer);dg.title=""+_50(document.title);if(al){dg.aliased=_50(_42.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(!Object.hasOwnProperty(dg,key)){continue;}if((typeof (dg[key])!=("function"))&&(typeof (dg[key])!=("array"))&&(typeof (dg[key])!=("object"))){var _62="&"+key+"="+dg[key];if(url.length+_62.length<2000){url+=_62;}else{break;}}}return url;};}();var _63=new function(){var _64;var _65;this.write=function(id,_67,_68){if(_69()){return false;}var _6a=document.getElementById(_68);if(!_6a){return false;}var _6b="<span id=\"tc_content_"+id+"\" name=\"tc_content_"+id+"\">"+_67+"</span>";_6a.innerHTML=_6a.innerHTML+_6b;return true;};this.createIframe=function(_6c,_6d){if(_69()){return false;}if(typeof document.getElementsByTagName("body")[0]=="undefined"){return false;}var _6e=document.getElementsByTagName("body")[0];var _6f=_6e.firstChild;if(!_65){var _70=_6c;var _71=_6d;var _72=document.createElement("DIV");_72.id="tc_iframe_container";_72.style.width=_72.style.height=_72.style.border=_72.style.margin=_72.style.padding=0;_72.style.visibility="hidden";var _73="<iframe src=\""+_71+"\" id=\""+_70+"\" name=\""+_70+"\"></iframe>";_72.innerHTML=_73;if(_6e&&_6f){_6e.insertBefore(_72,_6f);}else{return false;}_65={};_65.document={};_65.document.location={};_65.document.location.iframe=document.getElementById(_70);_65.document.location.replace=function(_74){this.iframe.src=_74;};}var _75=_65.document.location.iframe;_75.style.top=_75.style.left=_75.style.width=_75.style.height=_75.style.border=_75.style.margin=_75.style.padding=0;_75.style.zIndex="-1";_75.style.overflow="hidden";_75.style.position="absolute";if(_64){_75.style.filter="alpha(opacity=0)";_75.frameBorder=0;}else{_75.style.opacity="0";}_75.style.visibility="hidden";return true;};var _69=function(){var _76=(!document.getElementById&&!document.all);return _76;};}();api.DOMfactory=_63;this.logger=new function(){var _77=this;this.loaded=true;this.http="http"+(_42.href.substring(0,6)=="https:"?"s":"")+"://";var _78=false;var _79=false;var _7a=[];var _7b=function(_7c,url,_7e,_7f,_80){if(typeof url==_40||url===""){return false;}if(_43.active){var _81=new Image();_81.src=_4f.getLogURL("i",_7e,_80,new Date().getTime());_7a.push(_81);}if(typeof _7f==_40){return window.open(url,_7c);}else{return window.open(url,_7c,_7f);}};var _82=function(_83,_84,_85){if(!_43.active){return null;}var _86=new Image();_86.src=_4f.getLogURL("i",_83,_84,new Date().getTime(),_85);_7a.push(_86);return _86;};var _87=function(_88,url,_8a,_8b,_8c,_8d){var _8e=null;if(typeof url==_40||url===""){return;}if(typeof _8d==_40||_8d===""){_8d="window.location.href='"+url+"'";}if(typeof _8a==_40){_8a=url;}if(typeof _88==_40||_88===""||_88=="_self"||_88=="_parent"||_88=="_top"){if(_43.active){_8e=new Image();_8e.timeout_id=setTimeout(_8d,(_43.timeout*1000));_8e.onload=function(){eval(_8d);clearTimeout(_8e.timeout_id);};_8e.onerror=function(){eval(_8d);clearTimeout(_8e.timeout_id);};_8e.src=_4f.getLogURL("i",_8a,_8c,new Date().getTime());_7a.push(_8e);}else{eval(_8d);}}else{if(typeof _88=="object"&&_88.document){if(_43.active){_8e=new Image();_8e.src=_4f.getLogURL("i",_8a,_8c);_7a.push(_8e);}_88.location.href=url;}else{_7b(_88,url,_8a,_8b,_8c);}}};var _8f=function(_90){if(_90.containers){return null;}else{var _91=null;if(_43.active&&!_79){_91=_82();_91.onload=function(){_78=true;};}_79=true;return _91;}};this.init=function(_92){if(_79){return;}if(typeof _92!="object"){if(typeof window.tc=="object"){_92=window.tc;}else{_92={};}}if(_92.active===false||_92.active==="false"||_92.active===0){_43.active=false;}if(_92.site_id){_43.site_id=_92.site_id;}if(_92.server_hostname){_43.server_hostname=_92.server_hostname;}if(_92.page_alias){_43.base_url=_92.page_alias;}if(_92.extra_info){_43.base_url+=(_43.base_url.indexOf("?")>0?"&":"?")+_92.extra_info;}if(_92.timeout){_43.timeout=_92.timeout;}if(_92.products){_43.products=_92.products;}if(_92.referrer){_43.referrer=_92.referrer;}_8f(_92);};api.log=_82;api.redirect=_87;}();this.targeter=new function(){this.loaded=true;this.content_url="";var _93=false;var _94=false;var _95=function(){return (!document.getElementById&&!document.all);};api.isUnsupportedBrowser=_95;var _96=function(){if(_94===true){return 0;}var cc,_98=_43.containers.getAll(),_99="",_9a=0,_9b=0,_9c=0;for(var i=0;i<_98.length;i++){cc=_98[i];if(cc.error){_99+="&error="+cc.id;_9a++;}}if(_9a>0){api.log(null,null,_99);_94=true;return 3;}for(var i=0;i<_98.length;i++){cc=_98[i];if(!cc.displayed&&!cc.defaulted){return 0;}if(cc.defaulted){_99+="&default="+cc.id;_9b++;}else{for(var co=0;co<cc.coids.length;co++){_99+="&displayed="+cc.coids[co];_9c++;}}}api.log(null,null,_99);_94=true;var _9f=1;if(_9b>0&&_9c==0){_9f=2;}if(_9b>0&&_9c>0){_9f=3;}return _9f;};api.report=_96;var _a0=function(_a1){var cc=omtr.tc.configuration.containers.get(_a1);if(!cc.displayed){cc.defaulted=true;document.getElementById("tc_content_"+cc.id).innerHTML=cc.default_content;}omtr.tc.report();};api.timeoutFunction=_a0;var _a3=function(id,_a5,_a6){var _a7=function(_a8){var _a9=false;if(_a6){_a9=omtr.tc.DOMfactory.write(id,_a8,_a6);}if(!_a6||!_a9){if(!_a6){}document.write("<span id='tc_content_"+id+"'>"+_a8+"</span>");return;}};if(omtr.tc.isUnsupportedBrowser()){_a7(_a5);return;}var cc=_43.containers.get(id);cc.default_content=_a5;if(_43.active===false){_a7(_a5);}else{if(cc.error===true){_a7(_a5);}else{if(cc.content!==""){if(cc.content=="__default__"){_a7(cc.default_content);}else{_a7(cc.content);}cc.displayed=true;}else{_a7("");cc.rendered=true;if(cc.default_content){(function(){var _cc=cc;_cc.timeout_id=setTimeout("omtr.tc.timeoutFunction(\""+_cc.id+"\")",_43.timeout*1000);})();}}}}omtr.tc.report();};var _ac=function(_ad,_ae,_af){var cc=_43.containers.get(_ad);if(cc.defaulted){return;}cc.coids.push(_ae);if(cc.rendered){if(_af=="__default__"){_af=cc.default_content;}document.getElementById("tc_content_"+_ad).innerHTML+=_af;cc.displayed=true;}else{cc.content+=_af;}};this.init=function(_b1){if(_93){return;}if(typeof _b1.containers=="string"){_43.containers.add(_b1.containers);}else{if(_b1.containers&&_b1.containers.length){for(var i=0;i<_b1.containers.length;i++){_43.containers.add(_b1.containers[i]);}}else{return;}}if(_b1.log_path){_43.log_path=_b1.log_path;}if(_43.active&&!_95()){var _b3=_b1.test?_b1.test:_4f.getLogURL("c");this.content_url="<scr"+"ipt src='"+_b3+"'></scr"+"ipt>";var _b4=_63.createIframe("tc_iframe",_43.log_path+"/tc_targeting.html");if(!_b4){document.writeln("<iframe id='tc_iframe' src='"+_43.log_path+"/tc_targeting.html' width=0 height=0 style='display:none'></iframe>");return;}}_93=true;};api.optimize=_a3;api.set_content=_ac;}();var _b5=function(_b6){if(omtr.tc.plugin){for(var _b7 in omtr.tc.plugin){if(omtr.tc.plugin[_b7].init){omtr.tc.plugin[_b7].init(_b6);}}}};var _b8=false;this.init=function(_b9){if(_b8){return;}if(typeof _b9!="object"){if(typeof window.tc=="object"){_b9=window.tc;}else{_b9={};}}_b5(_b9);this.logger.init(_b9);this.targeter.init(_b9);_b8=true;};};omtr.extend("omtr.tc",new _3f());if(window.tc&&window.tc.autoStart){omtr.tc.init(tc);}})();
