(function(){function trackEvt(a,b,c){if(pageTracker&&pageTracker._trackEvent){if(document.location.search.indexOf('ga-debug=true')!==-1){alert(a+'\n'+b+'\n'+c);} pageTracker._trackEvent(a,b,c);}};function getXpertString(){var msg='',str='',arr=[],key,val,i;str=document.location.search.substring(1);str=str.replace(/%20/g,' ');arr=str.split('&');for(i=0;arr[i];i+=1){key=arr[i].split('=')[0].toLowerCase();val=arr[i].split('=')[1];if(!val||val===''){val='Undefined';} if(key==='i'||key==='r'||key==='c'){msg+=val+'-';}} msg=msg.substring(0,msg.length-1);return msg;};function getXpertiseSearchParameters(){var industry,region,customerSolution;region=window.document.getElementById("Region").value;industry=window.document.getElementById("Industry").value;customerSolution=window.document.getElementById("CustomerSolution").value;console.log("industry, region, customerSolution",industry,region,customerSolution);return industry+"-"+region+"-"+customerSolution;} function docDownload(){var url=document.location.href,elName=this.title,sections;url=url.split('/').slice(4).join('-');sections=url.substring(0,url.indexOf('.'));trackEvt(sections,'Download pdf',elName);} var Main={lookup:{'ga-thumb':{'on':'click','action':function(){var elName,section,url;elName=this.title;section='';if(!elName||elName===''){elName=this.textContent||this.innerText;} if(window.document.body.className.match('homepage')){section='Homepage';}else{url=document.location.href;elName=this.title;url=url.split('/').slice(4);section=url[0].split('.')[0];} trackEvt(section,'Thumbnail click',elName);}},'ga-xengine-save':{'on':'click','action':function(){var msg=getXpertString();trackEvt('Xpertise engine','Save',msg);}},'ga-xengine-print':{'on':'click','action':function(){var msg=getXpertString();trackEvt('Xpertise engine','Print',msg);}},'ga-xengine-search':{'on':'click','action':function(){var msg=getXpertiseSearchParameters();trackEvt('Xpertise engine','Search',msg);}},'ga-xengine-help':{'on':'click','action':function(){trackEvt('Xpertise engine','Help');}},'ga-print-generic':{'on':'click','action':function(){if(!document.location.href.match(/xpertise-results.aspx/)){var url=document.location.href,sections;section=url.split('/').slice(4)[0],trackEvt(section.split('.')[0],'Print',url);}}},'ga-pdf':{'on':'click','action':docDownload},'ga-doc-download':{'on':'click','action':docDownload},'ga-hero-thumb':{'on':'click','action':function(){var url=document.location.href,elName=this.title,sections;url=url.split('/').slice(4),section=url[0];trackEvt(section,'Thumbnail click',elName);}},'ga-ihtml':{'on':'click','action':function(){var elName=this.textContent||this.innerText;trackEvt('Investor Relations-Annual Reports','Interactive html',elName);}},'ga-generic-form-confirmation':{'on':'load','action':function(){pageTracker._trackPageview(document.location.pathname+'/confirmation');}},'ga-contact-us':{'on':'click','action':function(){trackEvt('Contact Us','Additional Information Pane');}},'ga-print-results':{'on':'click','action':function(){var url=document.location.href,url=url.split('/').slice(4),sections;section=url[0];trackEvt(section,'Print',document.location);}},'ga-video-play':{'on':'click','action':function(){var url=document.location.href,elName=this.title,url=url.split('/').slice(4),sections;section=url[0];trackEvt(section,'Video Play',elName);}},'ga-video-pause':{'on':'click','action':function(){var url=document.location.href,elName=this.title,url=url.split('/').slice(4),sections;section=url[0];trackEvt(section,'Video Pause',elName);}},'ga-video-completed':{'on':'click','action':function(){var url=document.location.href,elName=this.title,url=url.split('/').slice(4),sections;section=url[0];trackEvt(section,'Video Completed',elName);}},'ga-tabs':{'on':'click','action':function(e){e=e||event;var target=YAHOO.util.Event.getTarget(e),tName=target.nodeName.toUpperCase(),tabName="";if(tName==="LI"){target=target.getElementsByTagName("a")[0];tabName=target.innerText||target.textContent;}else if(tName==="A"){tabName=target.innerText||target.textContent;} if(tabName!==""){trackEvt('Homepage','Tab click',tabName);}}},'ga-goto-website':{'on':'click','action':function(e){e=e||event;var url=document.location.href,elName=this.title,url=url.split('/').slice(4),sections;section=url[0];trackEvt(section,'Outgoing links',this.href);}},'ga-additional-info':{'on':'click','action':function(e){if(!YAHOO.util.Dom.hasClass(this,'clicked')){YAHOO.util.Dom.addClass(this,'clicked');trackEvt('Contact Us','Additional Information Pane','');}}}},init:function(){var elems=document.getElementsByTagName('*'),lookup=this.lookup,classes,c,el,i,j;for(i=0;elems[i];i+=1){el=elems[i];classes=el.className.split(' ');for(j=0;classes[j];j+=1){c=classes[j];if(lookup[c]){if(lookup[c].on==='load'){lookup[c].fn.call(this);}else{YAHOO.util.Event.on(el,lookup[c].on,lookup[c].action);}}}}}} if(typeof GoogleAnalyticsWrapper==='undefined'||!GoogleAnalyticsWrapper){GoogleAnalyticsWrapper=Main;}})();GoogleAnalyticsWrapper.init();