"use strict";
/**
 * Dpc SuperTag for WebTrends v2.4
 *
 * @license Copyright (c) 2009 Direct Performance
 * jTag by Direct Performance (http://www.directperformance.com.br) is licensed under a Creative Commons Atribuicao-Uso Nao-Comercial-Compartilhamento pela mesma Licenca 2.5 Brasil License (http://creativecommons.org/licenses/by-nc-sa/2.5/br/).
 *
 * $Date: 2010/08/19 16:36:50 $
 * @fileoverview funcoes para auxiliar a implementacao do WebTrends
 * @author DirectPerformance -  http://www.directperformance.com.br/ <contato@directperformance.com.br>
 * @version $Revision: acf62451652f $
 */

var dpc_wt_conf = {
	version : '2.4',
	wt_account : "dcsijd0g000000go90ny5dkkg_6l4q", // gDcsId : xxxxxxxxxxxxxxxxxxxxxxxxxx_xxxx
	domain_name : "auto", // gFpcDom
	cookie_path : ['/'],
	sdc_source : "ww62.itau.com.br", // gDomain
	enable_auto_pageview : true,
	enable_jquery : false,
	link_track : []
};

var dpc_wt_custom = {
	hook_asap : function (url, ref) {},
	hook_set_account : function () {},
	hook_onload : function (url, ref) {},
	hook_onunload : function (url, ref) {},
	hook_track : function (DCS_dcsuri, WT_ti, WT_cl, WT_z_convert) {}
};

try{if(dpc_wt_conf.domain_name==="auto"){var dpc_hostname=window.location.hostname.toLowerCase();dpc_wt_conf.domain_name=dpc_hostname.indexOf("www.")>-1?dpc_hostname.substring(3):"."+dpc_hostname}for(var i=0;i<dpc_wt_conf.cookie_path.length;i++)if(document.location.pathname.indexOf(dpc_wt_conf.cookie_path[i])!==-1){dpc_wt_conf.cookie_path=dpc_wt_conf.cookie_path[i];break}if(typeof dpc_wt_conf.cookie_path!=="string")dpc_wt_conf.cookie_path=dpc_wt_conf.cookie_path[0];typeof dpc_wt_custom!=="undefined"&&
typeof dpc_wt_custom.hook_set_account==="function"&&dpc_wt_custom.hook_set_account();var gDcsId=String(dpc_wt_conf.wt_account),gDomain=String(dpc_wt_conf.sdc_source),gFpcDom=String(dpc_wt_conf.domain_name),gFpcPath=String(dpc_wt_conf.cookie_path),gFpc="WT_FPC",gService=false,gTimeZone=-3;if(document.cookie.indexOf(gFpc+"=")==-1&&document.cookie.indexOf("WTLOPTOUT=")==-1){var js_script_wtid=document.createElement("script");js_script_wtid.type="text/javascript";js_script_wtid.src="http://"+gDomain+
"/"+gDcsId+"/wtid.js";var js_script_wtid_aux=document.getElementsByTagName("script")[0];js_script_wtid_aux.parentNode.insertBefore(js_script_wtid,js_script_wtid_aux)}}catch(exception){if(typeof console!=="undefined"&&typeof console.error!=="undefined")console.error("Exception "+(exception.name||"Error"),exception.message||exception)};
