﻿"use strict";
/** 
 * Dpc Jtag v4.0
 * 
 * http://directperformance.com.br/
 * Copyright (c) 2009 Direct Performance
 * jTag by Direct Performance (http://www.directperformance.com.br) is licensed under a Creative Commons Atribuição-Uso Não-Comercial-Compartilhamento pela mesma Licença 2.5 Brasil License (http://creativecommons.org/licenses/by-nc-sa/2.5/br/).
 *
 * $Date: 2009-08-28 14:39:25 -0300 (sex, 28 ago 2009) $
 * @author DirectPerformance -  http://www.directperformance.com.br/ <contato@directperformance.com.br>
 * @version $Revision: 401 $
 */

var dpc_conf = {
	version : '4.0',
	ga_account : 'UA-4027511-1',
	cookie_timeout : '31536000',
	domain_name : 'auto',
	cookie_path : ['/'],
	allow_linker : true,
	allow_hash : false,
	ignored_ref : ['www.cocacola.com.br'],
	init_data : false,
	link_track_event : {
		js : "a:hrefregex('^javascript:')",
		email : "a:hrefregex('^mailto:')",		
		download : "a:hrefregex('.+\\.(7z|aac|avi|[ct]sv|docx?|exe|flv|gif|gz|jpe?g|js|mp[34]|mpe?g|mov|od[fspt]|pdf|phps|png|ppsx?|pptx?|ps|rar|sit|swf|tar|torrent|txt|wm[av]|xlsx?|xml|zip)(\\?.*)?$')",
		
		menu_abre : ".menu h5 a",
		titulo : "h1 a",
		conteudo_links : ".content-bottom a"
	},
	link_track_pageview : {	
		download : "a:hrefregex('.+\\.(7z|aac|avi|[ct]sv|docx?|exe|flv|gif|gz|jpe?g|js|mp[34]|mpe?g|mov|od[fspt]|pdf|phps|png|ppsx?|pptx?|ps|rar|sit|swf|tar|torrent|txt|wm[av]|xlsx?|xml|zip)(\\?.*)?$')",
		youtube : "a:hrefregex('youtube\\.com')",
		facebook : "a:hrefregex('facebook\\.com')",
		
		menu_marcas : "#menu li a",
		menu_paises : "div#menu-right > ul > li > a",
		rodape : "div.footer.clearfix a",
		
		conteudo_banner: ".content-top a",
		paper_screen_icone : "#jwallpaper li > a img",
		viva_positivamente : "div#box4 > p > a",
		compartilhe_icone : "p#box2 a img"
	},
	cookie_copy_href : [],
	tag_form_location : [/.*/],
	max_scroll_location : [/.*/],
	link_prefix_raw_url : "",
    track_time_on_page : true,
    track_time_to_load : true,
	enable_auto_pageview : true,
    enable_meta_cluster : false,
    enable_meta_ecommerce : false
};

var dpc_custom = {	
	hook_asap : function(url,ref) {},
	hook_onload : function(url,ref) {
		// LIVE - banner_carrossel
		jQuery("div.container > div > div.jcarousel-next, div.container > div > div.jcarousel-prev").live("mousedown", function(){
			dpc_core.track_pageview(dpc_core.sPathname + "/banner_carrossel/" + jQuery(this).attr("class"));
		});
		// LIVE - paper_screen_carrossel 
		jQuery("div#box4 > div > div.jcarousel-prev, div#box4 > div > div.jcarousel-next").live("mousedown", function(){
			dpc_core.track_pageview(dpc_core.sPathname + "/paper_screen_carrossel/" + jQuery(this).attr("class"));
		});
		// LIVE - na_rede_carrossel
		jQuery("div#box2 > div > div.jcarousel-next, div#box2 > div > div.jcarousel-prev").live("mousedown", function(){
			dpc_core.track_pageview(dpc_core.sPathname + "/na_rede_carrossel/" + jQuery(this).attr("class"));
		});
		// LIVE - wallpaper
		jQuery("li.jcarousel-item a.link").live("mousedown", function(){
			dpc_core.track_pageview(dpc_core.sPathname + "/wallpaper/" + jQuery(this).attr("href"));
		});
		// LIVE - screensaver
		jQuery("#screensaver div a").live("mousedown", function(){
			dpc_core.track_pageview(dpc_core.sPathname + "/screensaver/" + jQuery(this).attr("class"));
		});

		// emoticon
		jQuery("#box4 img.left").click(function(){
			dpc_core.track_pageview(dpc_core.sPathname + "/emoticon/" + jQuery(this).attr("src"));
		});
	},
	hook_onunload : function(url,ref) {},
	hook_pageview : function(url) {},
	hook_event : function(category,action,label,num) {},
	hook_setvar : function(obj_cluster) {},
	hook_ecommerce_add_trans : function(obj_tran) {},
	hook_ecommerce_add_item : function(obj_item) {},
	hook_ecommerce_track_trans : function() {}
};

/* NÃO MEXA DAQUI PRA BAIXO */
var dpcTracker;var dpc_core={_getTracker:function(a){var i,dpc_ao,tracker;tracker=_gat._getTracker(a);if(typeof dpc_conf.cookie_timeout!=='undefined'){tracker._setCookieTimeout(dpc_conf.cookie_timeout)}if(typeof dpc_conf.domain_name!=='undefined'){tracker._setDomainName(dpc_conf.domain_name)}if(typeof dpc_conf.allow_linker!=='undefined'){tracker._setAllowLinker(dpc_conf.allow_linker)}if(typeof dpc_conf.allow_hash!=='undefined'){tracker._setAllowHash(dpc_conf.allow_hash)}if(typeof dpc_conf.allow_anchor!=='undefined'){tracker._setAllowAnchor(dpc_conf.allow_anchor)}for(i=0;i<dpc_conf.ignored_ref.length;i++){tracker._addIgnoredRef(dpc_conf.ignored_ref[i])}if(dpc_conf.cookie_path&&dpc_conf.cookie_path.length>0){tracker._setCookiePath(dpc_conf.cookie_path[0]);for(i=1;i<dpc_conf.cookie_path.length;i++){tracker._cookiePathCopy(dpc_conf.cookie_path[i])}}dpc_ao=tracker._addOrganic;dpc_ao("uol","q");dpc_ao("igbusca","q");dpc_ao("globo","query");dpc_ao("aonde","keys");dpc_ao("images.google","prev");dpc_ao("twitter","q");dpc_ao("clicrbs","q");dpc_ao("babylon","q");if(dpc_conf.init_data){tracker._initData()}return tracker},clear_ga_get_params:function(a){var i,name_param,old_params,new_params='',cParams="utm_campaign|utm_medium|utm_source|utm_term|utm_content|utm_id|utm_nooverride|__utma|__utmb|__utmc|__utmx|__utmz|__utmv|__utmk";i=a.indexOf("?");if(i>=0){old_params=a.substring(i+1).split('&');a=a.substring(0,i);for(i=0;i<old_params.length;i++){name_param=old_params[i].split("=")[0];if(name_param&&cParams.indexOf(name_param)==-1){new_params+=(new_params?"&":"?")+old_params[i]}}}return a+new_params},get_location_params:function(){return dpc_core.clear_ga_get_params(document.location.search)},sUrl:document.location.href.toLowerCase(),sReferrer:document.referrer.toLowerCase(),track_error_event:function(a,b){if(typeof console!=='undefined'&&typeof console.error!=='undefined'){console.error('Exception '+(a.name||'Error'),b||a.message||a,dpc_core.sPathname)}if(typeof dpcTracker!=='undefined'&&typeof dpcTracker._trackEvent!=='undefined'){dpcTracker._trackEvent('Exception '+(a.name||'Error'),b||a.message||a,dpc_core.sPathname)}},track_pageview:function(a){var b;try{if(typeof dpc_custom!=='undefined'&&typeof dpc_custom.hook_pageview!=='undefined'){b=dpc_custom.hook_pageview(a||dpc_core.sPathname)}}catch(e){dpc_core.track_error_event(e,'hook_pageview: '+e.message)}if(typeof b!=='undefined'&&b){a=b}return dpcTracker._trackPageview(a||dpc_core.sPathname)},track_event:function(a,b,c,d){try{if(typeof dpc_custom!=='undefined'&&typeof dpc_custom.hook_event!=='undefined'){dpc_custom.hook_event(a,b,c,d)}}catch(e){dpc_core.track_error_event(e,'hook_event: '+e.message)}if(!dpcTracker._trackEvent(a,b,c,d)){dpc_core.track_error_event('_trackEvent')}},encode:function(s){if(encodeURIComponent instanceof Function){return encodeURIComponent(s)}return escape(s)},decode:function(s){if(decodeURIComponent instanceof Function){return decodeURIComponent(s)}return unescape(s)},open_link:function(a,b){a=dpcTracker._getLinkerUrl(a);if(b){document.open(a,b)}else{document.location.href=a}return a},add_special_events:function(c){if(typeof c!=='object'){return false}var i;for(i in c){if(c.hasOwnProperty(i)){jQuery(c[i]).mousedown(function(j){return function(){var a=jQuery(this);var b=a.text()||a.attr('id')||a.attr('href')||a.attr('alt')||a.attr('title')||a.attr('src')||a.attr('class')||this.tagName;b=dpc_core.encode(jQuery.trim(b)).substring(0,100);dpc_core.track_event(j,dpc_core.sPathname,b)}}(i))}}},add_special_pageviews:function(c){if(typeof c!=='object'){return false}var i;for(i in c){if(c.hasOwnProperty(i)){jQuery(c[i]).mousedown(function(j){return function(){var a=jQuery(this);var b=a.text()||a.attr('id')||a.attr('href')||a.attr('alt')||a.attr('title')||a.attr('src')||a.attr('class')||this.tagName;b=dpc_core.encode(jQuery.trim(b)).substring(0,100);dpc_core.track_pageview(dpc_core.sPathname+'/'+j+'/'+b)}}(i))}}},add_cookie_to_href:function(a){var i,v,el,form_el;el=jQuery('#empty').not('#empty');form_el=jQuery('#empty').not('#empty');for(i=0;i<a.length;i++){v=a[i];if(v instanceof RegExp){v=v.toString();if(v.indexOf('/')===0){v=v.substring(1,v.lastIndexOf('/'))}el=el.add("a:hrefregex('"+v+"')");el=el.add("area:hrefregex('"+v+"')");form_el=form_el.add("form:actionregex('"+v+"')")}else if(typeof v==='string'){el=el.add("a[href*='"+v+"']");el=el.add("area[href*='"+v+"']");form_el=form_el.add("form[action*='"+v+"']")}}el.mousedown(function(){if(!jQuery(this).data('cookie_copied')){jQuery(this).attr('href',function(){return dpcTracker._getLinkerUrl(this.href)});jQuery(this).data('cookie_copied',true)}});form_el.each(function(){if(!jQuery(this).data('cookie_copied')&&this.action){jQuery(this).attr('action',function(){return dpcTracker._getLinkerUrl(this.action)});jQuery(this).data('cookie_copied',true)}})},write_img_tag:function(a){try{var i=new Image(1,1);i.src=a}catch(e){jQuery('<img width="1" height="1" src="'+a+'"/>').appendTo('body')}}};dpc_core.sPathname=document.location.pathname.toLowerCase()+dpc_core.get_location_params();var dpc_cookie={get_cookie:function(a){var b=""+document.cookie,ind=b.indexOf(a),ind1;if(ind==-1||a===""){return""}ind1=b.indexOf(';',ind);if(ind1==-1){ind1=b.length}return dpc_core.decode(b.substring(ind+a.length+1,ind1))},get_cluster:function(){var a=this.get_cookie("__utmv"),cluster=/^[^.]*\.(.*)/.exec(a);cluster=cluster&&cluster[1]?cluster[1]:'';return cluster},get_cluster_var:function(a){var b=this.get_cookie("__utmv"),re=new RegExp('.*'+a+'=([^|]*).*','g'),cluster_var=re.exec(b);cluster_var=cluster_var&&cluster_var[1]?cluster_var[1]:false;return cluster_var},set_cluster_var:function(a){var b={},v,i,j,ret,itemSeparator='|',itemValueToken='=',getVar=this.get_cluster();getVar=getVar.split(itemSeparator);for(i=0;i<getVar.length;i++){v=getVar[i].split(itemValueToken);if(v&&v.length==2){b[v[0]]=v[1];if(!a[v[0]]){a[v[0]]=v[1]}}}for(i in a){if(a.hasOwnProperty(i)&&typeof a[i]==='string'){a[i]=a[i].replace(/[|=]/g,'-')}}for(i in a){if(a.hasOwnProperty(i)&&typeof a[i]==='string'){if(!b[i]||b[i]!=a[i]){ret='';for(j in a){if(a.hasOwnProperty(j)){ret+=itemSeparator+j+itemValueToken+a[j]}}try{if(typeof dpc_custom!=='undefined'&&typeof dpc_custom.hook_setvar!=='undefined'){dpc_custom.hook_setvar(a)}}catch(e){dpc_core.track_error_event(e,'hook_setvar: '+e.message)}return dpcTracker._setVar(ret)}}}return false},get_ga_visitnumber:function(){var a=this.get_cookie("__utma"),vnumber=/[^.]*\.[^.]*\.[^.]*\.[^.]*\.[^.]*\.([^.]*)/.exec(a);vnumber=vnumber&&vnumber[1]?parseInt(vnumber[1],10):1;return vnumber},get_ga_visitorid:function(){var a=this.get_cookie("__utma"),visitorid=/[^.]*\.([^.]*\.[^.]*)\.[^.]*\.[^.]*\.[^.]*/.exec(a);visitorid=visitorid&&visitorid[1]?visitorid[1]:0;return visitorid},get_ga_initialvisit:function(){var a=this.get_cookie("__utma"),initialvisit=/[^.]*\.[^.]*\.([^.]*)\.[^.]*\.[^.]*\.[^.]*/.exec(a),rDate=new Date();initialvisit=initialvisit&&initialvisit[1]?parseInt(initialvisit[1],10):0;rDate.setTime(initialvisit*1000);return rDate},get_ga_previousession:function(){var a=this.get_cookie("__utma"),previousession=/[^.]*\.[^.]*\.[^.]*\.([^.]*)\.[^.]*\.[^.]*/.exec(a),rDate=new Date();previousession=previousession&&previousession[1]?parseInt(previousession[1],10):0;rDate.setTime(previousession*1000);return rDate},get_ga_currentsession:function(){var a=this.get_cookie("__utma"),currentsession=/[^.]*\.[^.]*\.[^.]*\.[^.]*\.([^.]*)\.[^.]*/.exec(a),rDate=new Date();currentsession=currentsession&&currentsession[1]?parseInt(currentsession[1],10):0;rDate.setTime(currentsession*1000);return rDate},auto_meta_cluster:function(){var a={};jQuery("meta[name^=DPC.CLUSTER.]").each(function(){a[this.name.toLowerCase().substring(12)]=this.content}).each(function(){dpc_cookie.set_cluster_var(a);return false})}};var dpc_ecommerce={add_trans:function(a,b,c,d,f,g,h,i){var j;if(typeof(a)!=='object'){j={orderid:a,storename:b,total:c,tax:d,shipping:f,city:g,state:h,country:i}}else{j=a}try{if(typeof dpc_custom!=='undefined'&&typeof dpc_custom.hook_ecommerce_add_trans!=='undefined'){dpc_custom.hook_ecommerce_add_trans(j)}}catch(e){dpc_core.track_error_event(e,'hook_ecommerce_add_trans: '+e.message)}return dpcTracker._addTrans(j.orderid,j.storename||"",j.total,j.tax||"",j.shipping||"",j.city||"",j.state||"",j.country||"")},add_item:function(a,b,c,d,f,g){var h;if(typeof(a)!=='object'){h={orderid:a,sku:b,productname:c,category:d,unitprice:f,quantity:g}}else{h=a}try{if(typeof dpc_custom!=='undefined'&&typeof dpc_custom.hook_ecommerce_add_item!=='undefined'){dpc_custom.hook_ecommerce_add_item(h)}}catch(e){dpc_core.track_error_event(e,'hook_ecommerce_add_item: '+e.message)}return dpcTracker._addItem(h.orderid,h.sku,h.productname||"",h.category||"",h.unitprice,h.quantity)},track_trans:function(){try{if(typeof dpc_custom!=='undefined'&&typeof dpc_custom.hook_ecommerce_track_trans!=='undefined'){dpc_custom.hook_ecommerce_track_trans()}}catch(e){dpc_core.track_error_event(e,'hook_ecommerce_track_trans: '+e.message)}return dpcTracker._trackTrans()},auto_meta:function(){var i,arrTran=[],arrItem=[];jQuery("meta[name^=DPC.ECOMMERCE.TRAN]").each(function(){var a=parseInt(this.name.substring(19),10);if(typeof(arrTran[a])!='object'){arrTran[a]={}}arrTran[a][this.name.substring(this.name.indexOf(']')+2).toLowerCase()]=this.content});jQuery("meta[name^=DPC.ECOMMERCE.ITEM]").each(function(){var a=parseInt(this.name.substring(19),10);if(typeof(arrItem[a])!='object'){arrItem[a]={}}arrItem[a][this.name.substring(this.name.indexOf(']')+2).toLowerCase()]=this.content});if(arrTran.length>0&&arrItem.length>0){for(i in arrTran){if(arrTran.hasOwnProperty(i)){dpc_ecommerce.add_trans(arrTran[i])}}for(i in arrItem){if(arrItem.hasOwnProperty(i)){dpc_ecommerce.add_item(arrItem[i])}}dpc_ecommerce.track_trans()}}};var dpc_form={form_index:0,add_fields_events:function(e){var f=jQuery(e),form_name,tag_element,click_elements;if(f.data('form_taged')){return false}form_name=f.attr('name')||f.attr('id')||''+(++dpc_form.form_index);f.data('form_taged',true);tag_element=function(a,b){var c=jQuery(b);var d=c.attr('id')&&jQuery('label[for="'+c.attr('id')+'"]').text()||c.attr('name')||c.attr('id')||c.attr('type')||'';dpc_core.track_event('Form',dpc_core.sPathname+' ('+jQuery.trim(form_name)+')',jQuery.trim(d)+' ('+a.type+')')};click_elements=f.find(":button, :reset, :submit, :image").click(function(a){tag_element(a,this)});f.find(":input").focus(function(a){dpc_core.form_change_time=a.timeStamp;tag_element(a,this)}).not(click_elements).change(function(a){if(dpc_core.form_change_time){dpc_core.form_change_time=a.timeStamp-dpc_core.form_change_time}var b=jQuery(this);var c=b.attr('id')&&jQuery('label[for="'+b.attr('id')+'"]').text()||b.attr('name')||b.attr('id')||b.attr('type')||'';dpc_core.track_event('Form',dpc_core.sPathname+' ('+jQuery.trim(form_name)+')',jQuery.trim(c)+' (change)',dpc_core.form_change_time);dpc_core.form_change_time=0});f.find("label[for]").click(function(){var a=jQuery(this).text()||jQuery(this).attr('for');dpc_core.track_event('Form',dpc_core.sPathname+' ('+jQuery.trim(form_name)+')',jQuery.trim(a)+' (click on label)')});return f.submit(function(a){tag_element(a,this)})},track_all:function(a){var i,v,teste;teste=false;for(i=0;i<a.length;i++){v=a[i];if(v instanceof RegExp){if(v.test(dpc_core.sUrl)){teste=true;break}}else if(typeof v=='string'){if(dpc_core.sUrl.indexOf(v)>=0){teste=true;break}}}if(!teste){return false}return jQuery('form').each(function(){dpc_form.add_fields_events(this)})}};var dpc_scroll={lastX:0,lastY:0,get_max_scroll:function(){var a,__ypos,__xsize,__ysize,oDoc,_xPct,_yPct;if(!(window.innerWidth||window.innerHeight)){oDoc=document.documentElement&&document.documentElement.clientWidth?document.documentElement:document.body;a=oDoc&&oDoc.scrollLeft?oDoc.scrollLeft:0;__ypos=oDoc&&oDoc.scrollTop?oDoc.scrollTop:0;__xsize=oDoc&&oDoc.scrollWidth?oDoc.scrollWidth-oDoc.clientWidth:a;__ysize=oDoc&&oDoc.scrollHeight?oDoc.scrollHeight-oDoc.clientHeight:__ypos}else{a=window.pageXOffset?window.pageXOffset:0;__ypos=window.pageYOffset?window.pageYOffset:0;__xsize=window.scrollMaxX?window.scrollMaxX:a;__ysize=window.scrollMaxY?window.scrollMaxY:__ypos}_xPct=parseInt((a/__xsize)*100,10);_yPct=parseInt((__ypos/__ysize)*100,10);if(_xPct>this.lastX){this.lastX=_xPct}if(_yPct>this.lastY){this.lastY=_yPct}},track_max_scroll:function(a){var i,v,teste;teste=false;for(i=0;i<a.length;i++){v=a[i];if(v instanceof RegExp){if(v.test(dpc_core.sUrl)){teste=true;break}}else if(typeof v==='string'){if(dpc_core.sUrl.indexOf(v)>=0){teste=true;break}}}if(!teste){return false}this.get_max_scroll();return dpc_core.track_event("Page","MaxScroll-Y",dpc_core.sPathname,this.lastY)}};try{dpcTracker=dpc_core._getTracker(dpc_conf.ga_account);if(dpc_conf.enable_auto_pageview){dpc_core.track_pageview(dpc_core.sPathname)}if(typeof jQuery=='function'){jQuery.extend(jQuery.expr[':'],{regex:function(a,i,m,r){var b=new RegExp(m[3],'i');return b.test(jQuery(a).text())},hrefregex:function(a,i,m,r){if(!a.href){return false}var b=new RegExp(m[3],'i');return b.test(a.href)},actionregex:function(a,i,m,r){if(!a.action){return false}var b=new RegExp(m[3],'i');return b.test(a.action)},external:function(a,i,m){if(!a.href){return false}return a.hostname&&(a.hostname!==document.location.hostname||dpc_conf.domain_name&&a.hostname.indexOf(dpc_conf.domain_name)<0)}})}else{throw new Error('JQuery not available');}try{if(typeof dpc_custom!=='undefined'&&typeof dpc_custom.hook_asap==='function'){dpc_custom.hook_asap(dpc_core.sUrl,dpc_core.sReferrer)}}catch(e){dpc_core.track_error_event(e,'hook_asap: '+e.message)}var TimeTracker=window.TimeTracker=function(a,b){if(b){this.bucket_=b.sort(this.sortNumber)}else{this.bucket_=TimeTracker.DEFAULT_BUCKET}if(a){this.unity_=a}else{this.unity_=1}};TimeTracker.prototype.startTime_;TimeTracker.prototype.stopTime_;TimeTracker.prototype.bucket_;TimeTracker.DEFAULT_BUCKET=[100,500,1500,2500,5000];TimeTracker.prototype._getTimeDiff=function(){return Math.floor((this.stopTime_-this.startTime_)/this.unity_)};TimeTracker.prototype.sortNumber=function(a,b){return(a-b)};TimeTracker.prototype._recordStartTime=function(a){if(a!==undefined){this.startTime_=a}else{this.startTime_=(new Date()).getTime()}};TimeTracker.prototype._recordEndTime=function(a){if(a!==undefined){this.stopTime_=a}else{this.stopTime_=(new Date()).getTime()}};TimeTracker.prototype._track=function(a,b,c){var i;var d;for(i=0;i<this.bucket_.length;i++){if((this._getTimeDiff())<this.bucket_[i]){if(i===0){d="0-"+(this.bucket_[0]);break}else{d=this.bucket_[i-1]+"-"+(this.bucket_[i]-1);break}}}if(!d){d=this.bucket_[i-1]+"+"}a._trackEvent(b||'TimeTracker',d,c,this._getTimeDiff())};TimeTracker.prototype._setHistogramBuckets=function(a){this.bucket_=a.sort(this.sortNumber)};if(typeof TimeTracker==='function'){if(dpc_conf.track_time_on_page){var timeOnPage=new TimeTracker(1000);timeOnPage._setHistogramBuckets([0.5,1,2,5,10,20,30,40,50,60,120,180,300,600]);timeOnPage._recordStartTime();jQuery(window).unload(function(){timeOnPage._recordEndTime();timeOnPage._track(dpcTracker,'Time on Page(s)',dpc_core.sPathname)})}if(dpc_conf.track_time_to_load){var timeToLoad=new TimeTracker(1);timeToLoad._recordStartTime();jQuery(window).load(function(){timeToLoad._recordEndTime();timeToLoad._track(dpcTracker,'Time to Load(ms)',dpc_core.sPathname)})}}jQuery(document).ready(function(){if(dpc_conf.enable_meta_ecommerce&&typeof dpc_ecommerce==='object'){dpc_ecommerce.auto_meta()}if(dpc_conf.enable_meta_cluster&&typeof dpc_cookie==='object'){dpc_cookie.auto_meta_cluster()}if(typeof dpc_form==='object'){dpc_form.track_all(dpc_conf.tag_form_location)}dpc_core.add_cookie_to_href(dpc_conf.cookie_copy_href);dpc_core.add_special_pageviews(dpc_conf.link_track_pageview);dpc_core.add_special_events(dpc_conf.link_track_event);try{if(typeof dpc_custom!=='undefined'&&jQuery.isFunction(dpc_custom.hook_onload)){dpc_custom.hook_onload(dpc_core.sUrl,dpc_core.sReferrer)}}catch(e){dpc_core.track_error_event(e,'hook_onload: '+e.message)}});jQuery(window).unload(function(){if(typeof dpc_scroll==='object'){dpc_scroll.track_max_scroll(dpc_conf.max_scroll_location)}try{if(typeof dpc_custom!=='undefined'&&jQuery.isFunction(dpc_custom.hook_onunload)){dpc_custom.hook_onunload(dpc_core.sUrl,dpc_core.sReferrer)}}catch(e){dpc_core.track_error_event(e,'hook_onunload: '+e.message)}});if(typeof dpc_scroll==='object'){jQuery(window).scroll(function(){dpc_scroll.get_max_scroll()})}}catch(exception){dpc_core.track_error_event(exception)}var pageTracker={};pageTracker._trackPageview=dpc_core.track_pageview;pageTracker._trackEvent=dpc_core.track_event;pageTracker._link=dpcTracker._link;pageTracker._setVar=function(a){return dpc_cookie.set_cluster_var({_setvar:a})};pageTracker._addTrans=dpc_ecommerce.add_trans;pageTracker._addItem=dpc_ecommerce.add_item;pageTracker._trackTrans=dpc_ecommerce.track_trans;var urchinTracker=dpc_core.track_pageview;