"use strict";
/**
 * Dpc Jtag v5.0
 *
 * @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: 2011/09/02 20:18:07 $
 * @fileoverview funcoes para auxiliar a implementacao do Google Analytics
 * @author DirectPerformance -  http://www.directperformance.com.br/ <contato@directperformance.com.br>
 * @version $Revision: 7a4a22a505a2 $
 * Release Version: facbe9897747
 */

var dpc_conf = {
	version : '5.0',
	ga_account : { dpc : 'UA-2724649-1'},
	campaign_cookie_timeout : undefined,
	enable_namespace : false,
	domain_name : ['.maxhaus.com.br', '.directtalk.com.br'],
	cookie_path : ['/'],
	allow_linker : true,
	allow_hash : false,
	allow_anchor : false,
	ignored_ref : ['maxhaus.com.br'],
	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)$')",
		external : "a:external, area:external",
		agende_uma_visita : "li.schedule-a-visit dt",
		max_haus_te_liga : "li.maxhaus-call-you dt",
		da_uma_ligada : "li.our-phone.title > a > span",
		ja_sou_cliente : ".already-customer.title"
	},
	link_track_pageview : {
		download : "a:hrefregex('.+\\.(docx?|od[fspt]|pdf|ppsx?|pptx?|ps|txt|xlsx?|xml)$')"
	},
	cookie_copy_href : ['directtalk\.com\.br'],
	tag_form_location : [(/.*/)],
	max_scroll_location : [],
	init_data : false,
	track_time_on_page : false,
	track_time_to_load : true,
	enable_auto_pageview : true,
	enable_meta_cluster : true,
	enable_meta_ecommerce : true
};

var dpc_custom = {
	hook_asap : function (url, ref) {
		// NAVEGG 
		var set_navegg_custom_var = function() {
			try{			
				if (typeof window.ltgc !== 'undefined') {
					var nvg_vars = [], send_vars = false;

					var nvg_gender = window.ltgc('navegg_gender');
					var nvg_age = window.ltgc('navegg_age');
					var nvg_education = window.ltgc('navegg_education');
					var nvg_interests = window.ltgc('navegg_interests');

					if (nvg_gender && nvg_age) {
						nvg_vars["nvg_gen:nvg_age"] = {
							"scope" : 1, "index" : 3,
							"val" : dpc_core.sanitize(nvg_gender)+":"+dpc_core.sanitize(nvg_age)
						};
						send_vars = true;
					}					
					if (nvg_education) {
						nvg_vars["nvg_edu"] = {
							"scope" : 1, "index" : 4,
							"val" : dpc_core.sanitize(nvg_education)
						};
						send_vars = true;
					}
					if (nvg_interests) {
						nvg_vars["nvg_int"] = {
							"scope": 1, "index" : 5,
							"val" : dpc_core.sanitize(nvg_interests)
						};
						send_vars = true;
					}
					if (send_vars) { dpc_cookie.set_custom_obj(nvg_vars); }
				}
			} catch(e) {
				dpc_core.track_error_event(e, 'Set Navegg CustomVar: ' + e.message);
			}
		};

		window.setTimeout( function() {
			dpc_custom.script_load("http://lt.navegg.com/lt.js?12679", set_navegg_custom_var, "navegg");
		}, 1);
		
		/*
		//Versão do GWO exibida ao user
		var dpc_menu, dpc_versao = dpc_cookie.get('utmx');
		dpc_versao = dpc_versao.charAt(dpc_versao.length-1);
		if(dpc_versao){
			if(dpc_versao == '1'){
				dpc_menu = 'aberto';
			}
			else if(dpc_versao == '0'){
				dpc_menu = 'fechado';
			}
			
			dpc_cookie.set_custom_var(2, 'versao_gwo', dpc_menu, 2);
		}
		*/
	},
	hook_set_account : function (tname) {},
	hook_onload : function (url, ref) {
		
		//--------------------http://www.maxhaus.com.br/escolha-o-seu/
		if(url.indexOf("/escolha-o-seu/") >=0 || url.indexOf("/escolha%2do%2dseu/") >=0){
			//Menu Detalhes - Empreendimentos
			jQuery("ul.current dl > dt").live('mousedown',function(){
				dpc_core.track_event("menu_detalhes_empreendimento", dpc_core.sPathname, dpc_core.sanitize(jQuery(this).text(), true));
			});
			//Botões Tour Virtual e Diferencial
			jQuery("ul.nav-anchors>li").mousedown(function(){
				dpc_core.track_event("btn-",dpc_core.sPathname,jQuery(this).text());
			});
			//Compartilhar - e-mail twitter e facebook
			jQuery("dd.email>a,dd.twitter>a,dd.facebook>a").mousedown(function(){
				dpc_core.track_event("btn-compartilhar",dpc_core.sPathname,jQuery(this).text());
			});
			//Diferenciar DT e Lopes
			jQuery("#ctl00_plcMainContent_linkAtendimento").mousedown(function(){
				var dpc_lopes = jQuery(".lp").get(0);
				var dpc_direct_talk = jQuery(".dt").get(0);
				if (dpc_lopes){
					dpc_core.track_pageview(dpc_core.sPathname +"/chat_bairro/"+ dpc_core.sanitize(jQuery(this).attr("title"),   true) + "/chat/lopes");
				}
				else if (dpc_direct_talk){
					dpc_core.track_pageview(dpc_core.sPathname +"/chat_bairro/"+ dpc_core.sanitize(jQuery(this).attr("title"), true) + "/chat/direct-talk");
				}
			});
		}		
		//--------------------http://www.maxhaus.com.br/diferenciais/
		else if(url.indexOf("/diferenciais/") >=0 ){
		//Botões principais
			jQuery("ul.d-menu>li").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});
			//Botão Assista o video
			jQuery("a.pop-video-autohaus.bt-pop").mousedown(function(){
				dpc_core.track_pageview( dpc_core.sPathname+'assistir-video-auto-haus/clique');
			});
			//Botões Diferenciais MaxDoor
			jQuery("div.fL > ul>li").mousedown(function(){
				dpc_core.track_event("btn_diferenciais_max_door", dpc_core.sPathname, jQuery(this).text());
			});
			//Assistir Video MaxDoor
			jQuery("div.fR img").mousedown(function(){
				dpc_core.track_pageview( dpc_core.sPathname+'assistir-video-max_door/clique');
			});
			//Assistir o Video Nova Cuba
			jQuery("li.mais-opcoes img").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname+'assistir-video-nova_cuba/clique');
			});
			//Assistir o filme Sua Cozinha do seu jeito
			jQuery("li.assista-video img").mousedown(function(){
				dpc_core.track_pageview( dpc_core.sPathname+'assistir-video-sua_cozinha/clique');
			});
			//Botões MaxBagno
			jQuery("div.left > ul>li>a").mousedown(function(){
				dpc_core.track_event("btn_diferenciais_max_bagno", dpc_core.sPathname, jQuery(this).attr('title'));
			});
			//Assistir o Video MaxBagno
			jQuery("div.min-video img").mousedown(function(){
				dpc_core.track_pageview( dpc_core.sPathname+'assistir-video-maxbagno/clique');
			});
		}

		//--------------------http://www.maxhaus.com.br/conceito/
		else if(url.indexOf("/conceito/") >=0 ){
			//Botão Mais diferenciais
			jQuery(".bt-differentials").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname+"btn/"+dpc_core.sanitize(jQuery(this).attr('title'), true));
			});
			// Testimonials - mailto
			jQuery("div.idealizers > ul>li[rel='mailto']").mousedown(function(){
				dpc_core.track_pageview('/idealizadores/seja-um/email-enviar');
			});
		}
		//--------------------http://www.maxhaus.com.br/maxchannel/
	
		else if(url.indexOf("/maxchannel/") >=0 ){
			
			jQuery("a.a-holder").live('mousedown', function(){
				if(url.indexOf("/#/") >=0 ){
					dpc_core.track_pageview(dpc_core.sPathname +location.hash +"/video/"+dpc_core.sanitize(jQuery(this).attr('title'),true));
				}
				else{
					dpc_core.track_pageview(dpc_core.sPathname + "video/" + dpc_core.sanitize(jQuery(this).attr('title'),true));
				}				
			});
		}		
	
		//--------------------http://www.maxhaus.com.br/contato/
		else if(url.indexOf("/contato/") >=0 ){
			//Captura da mensagem de erro nos campos do formulário
			jQuery("ul.list-form > li").mousedown(function(){
				jQuery(".erro label").each(function(){
					dpc_core.track_event("erro_no_campo",dpc_core.sPathname,jQuery(this).text());
			});
				});
			//botões - Assessoria de imprensa e trabalhe na max haus
			jQuery(".buttons-press-work>a").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname+"btn/"+dpc_core.sanitize(jQuery(this).text(), true));
			});
			//Atendimento Online - Posso falar com alguém agora?
			jQuery(".attendance-online.fale").mousedown(function(){
				dpc_core.track_pageview('/contato/posso-falar-com-alguem/atendimento-online/clique');
			});
			//Clique na aba Quero ligar, qual é o número?
			jQuery(".our-tel.fale").mousedown(function(){
				dpc_core.track_event("clique_aba", dpc_core.sPathname ,"quero_ligar_qual_e_o_numero");
			});
			//Clique na aba Nós ligamos para você
			jQuery(".we-call-you.fale").mousedown(function(){
				dpc_core.track_event("clique_aba", dpc_core.sPathname ,"quero_que_voces_me_liguem");
			});
			//Clique na aba Quero mostrar Max Haus para um amigo
			jQuery(".send-friend.fale").mousedown(function(){
				dpc_core.track_event("clique_aba", dpc_core.sPathname ,"quero_mostrar_max_haus_para_um_amigo");
			});
			//Clique nos botões Assessoria de Emprensa/Trabalhe na MaxHaus
			jQuery("li.buttons-press-work.fale > a").mousedown(function(){
				dpc_core.track_event(dpc_core.sPathname ,"clique_no_btn",jQuery(this).text());
			});
			//Botões - voltar para home, escolher um Maxhaus e Enviar uma mensagem
			jQuery("div.send-message > ul>li").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});

		}
		//--------------------http://www.maxhaus.com.br/brooklin/
		else if(url.indexOf("/brooklin/") >=0 ){
		//formulário de envio 
			jQuery(".btn-send").live("mousedown", function(){
				setTimeout( function() {
					if(jQuery("span.form-success").text() !== ''){
					if(jQuery("span.form-success").text().indexOf("sucesso") >= 0){
						dpc_core.track_pageview('brooklin/envio_contato/sucesso');
					}
			else if(jQuery("span.form-success").text().indexOf("obrigatórios") >= 0){
				dpc_core.track_event("Erro no form",dpc_core.sPathname,"Erro campo obrigatorio");
					}
			else if(jQuery("span.form-success").text().indexOf("Email inválido") >= 0){
				dpc_core.track_event("Erro no form",dpc_core.sPathname,"E-mail invalido");
				}
				}
				}, 1000);
			});
			//clique no botão Atendimento online
			jQuery("a.btn-att.rpc > span").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});			
			
			//Clique no botão Descubra
			jQuery("div.content-footer span").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});
			
			//clique no botão maxdoor
			jQuery(".maxdoor").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
				});
				
			//clique no botão autohaus
			jQuery(".autohaus").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});
			
			//clique no botão maxbagno
			jQuery(".maxbagno").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});
			
			//clique no botão maxdek
			jQuery(".maxdek").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});
			
			//clique no botão maxschindler
			jQuery(".maxschindler").mousedown(function(){
				dpc_core.track_event("btn",dpc_core.sPathname,jQuery(this).text());
			});
			
			//Botão Diferenciais - Próximo
			jQuery(".btn-next.rpc").mousedown(function(){
				dpc_core.track_event("Btn Diferenciais","Proximo",dpc_core.sPathname);
			});
			//Botão Diferenciais - Anterior
			jQuery(".btn-prev.rpc").mousedown(function(){
				dpc_core.track_event("Btn Diferenciais","Anterior",dpc_core.sPathname);
			});

		}

		//------------------------------PORTAL DO CLIENTE----------------------------------------------------------------------------------
		// http://www.maxhaus.com.br/portaldocliente/documentos/hora-do-repasse/
		else if(url.indexOf("/portaldocliente/documentos/hora-do-repasse/") >=0 || url.indexOf("/portaldocliente/documentos/hora%2ddo%2drepasse/") >=0 ){
			jQuery(".nav_interna.fL > ul > li > ol > li ").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname + dpc_core.sanitize(jQuery(this).text(), true));
			});
		}
		//http://www.maxhaus.com.br/portaldocliente/meu-maxhaus/estagio-de-obra/
		else if(url.indexOf("/portaldocliente/meu-maxhaus/estagio-de-obra/") >=0 ){	
			jQuery("div.nav-gallery.fL > ul > li > a").live("mousedown", function(){
				dpc_core.track_event("historico/" + jQuery("#titulo-bairro").text(), dpc_core.sPathname, jQuery(this).text());
			});		
		}
		//http://www.maxhaus.com.br/portaldocliente/maos-a-obra/
		else if(url.indexOf("/portaldocliente/maos-a-obra/") >=0 || url.indexOf("/portaldocliente/maos%2da%2dobra/") >=0 ){
			//Clique nos bot?es (imagens)
			jQuery(".list-categories>li>a").live('mousedown',function(){
				dpc_core.track_event(dpc_core.sPathname , "botao", dpc_core.sanitize(jQuery(this).text(), true));
			});
			//Clique nos links laterais referente servi?os e obras
			jQuery(".list-bottom-bg>ul>li>a").live('mousedown',function(){
				dpc_core.track_event(dpc_core.sPathname ,"link-lateral", dpc_core.sanitize(jQuery(this).text(), true));
			});
		}
		//------------------------------Site de MaxHaus Virtual----------------------------------------------------------------------------
		//http://www.maxhaus.com.br/virtual/
		else if(url.indexOf("/virtual/") >=0){
			//Clique no botão O que é Unity
			jQuery(".btn-o-que-e").mousedown(function () {
				dpc_core.track_pageview(dpc_core.sPathname + "btn_o_que_e_unity");
			});
			//Clique no botão Requisitos Minimos
			jQuery(".btn-requisitos-minimos").mousedown(function () {
				dpc_core.track_pageview(dpc_core.sPathname + "btn_req_minimos");
			});
			//Clique no botão Instalar plugins
			jQuery(".btn-instalar-plugins").mousedown(function () {
				dpc_core.track_pageview(dpc_core.sPathname + "btn_instalar_plugins");
			});
			//Clique no botão Entrar
			jQuery("a.bt-next > span").mousedown(function () {
				dpc_core.track_pageview(dpc_core.sPathname + "btn_entrar");
			});
			//Clique no Botão instalar o Flash Player
			jQuery("a.plugin_flash > img").mousedown(function(){
				dpc_core.track_pageview("/btn_instalar/flash_player");
			});
			//Clique para instalar o Unity
			jQuery("a.plugin_unity > img").mousedown(function(){
				dpc_core.track_pageview("/btn_instalar/unity");
			});
			//Menu inferior
			jQuery("ul>li>a").mousedown(function(){
				dpc_core.track_event("Menu Inferior",dpc_core.sPathname,jQuery(this).text());
			});
			//Baixar Agora Flash - Tela que linka para o site da Adobe
			jQuery("div#download_flash img").mousedown(function(){
				dpc_core.track_pageview("/flash/baixar_agora");
			});
			//Baixar Agora - Unity - Tela que linka para o site do Unity
			jQuery("div#download_unity img").mousedown(function(){
				dpc_core.track_pageview("/unity/baixar_agora");
			});
		}
		//O "else if" aqui não é usado como os demais, ou seja, "url.indexOf('pagina')" porque se trata de 03 pagina: basic, cobertura e kits, se usar 'indexOf' a maioria das urls entrará nesta condição, para resolver usamos o "location.pathname"
		else if(location.pathname=="/portaldocliente/meu-maxhaus/baixe-seu-projeto/maxhaus-basic/" || location.pathname== "/portaldocliente/meu-maxhaus/baixe-seu-projeto/cobertura/" || location.pathname=="/portaldocliente/meu-maxhaus/baixe-seu-projeto/kits/"){
		//http://www.maxhaus.com.br/portaldocliente/meu-maxhaus/baixe-seu-projeto/  (Maxhaus-basic,Cobertura e Kits)
			jQuery(".nav-pdf>a,.nav-dwg>a").mousedown(function(){
				aux1=jQuery(this).closest('li').find('h4:first').text();
				aux2=jQuery(this).closest('li.open').find('a').attr('title');
				dpc_core.track_event("download-pdf-dwg",dpc_core.sPathname,dpc_core.sanitize(aux2  + "-" +  aux1 + "/" + jQuery(this).text()),true);
			});
		}
		//--------Home
		else if(url.indexOf("/portaldocliente/") >=0 ){
			//Identificar ID do usuário
			jQuery("input[name='idUsuario']").each(function(){
				if (jQuery(this).val() !== ''){
					var id = jQuery(this).val().trim();
					dpc_cookie.set_custom_var (1, 'User_ID', id, 1);
				}
				return false;
			});
			//os 3 botões grandes abaixo do flash
			jQuery(".destaque_painel>li>dl>dt>a").mousedown(function(){
				dpc_core.track_event(dpc_core.sPathname ,"botoes-" + dpc_core.sanitize(jQuery(this).attr('title'), true));
			});
		}
		else{
			//Esta condição "senão" engloba seletores que se repetem em várias páginas, por exemplo: o rodapé
			//----------------------------- SITE INSTITUCIONAL 2011 -----------------------------------------------------
			//----------------- http://www.maxhaus.com.br/ - GERAL
			//Menu Superior
			jQuery(".nav-sitemap>li").mousedown(function(){
				dpc_core.track_pageview("/menu-superior/"+dpc_core.sanitize(jQuery(this).text(), true));
			});
			//Menu Inferior
			jQuery("div.nav-sitemap ul>li").mousedown(function(){
				dpc_core.track_event("/Menu-inferior/", dpc_core.sPathname,dpc_core.sanitize(jQuery(this).text(), true));
			});
			//Atendimento Online - Posso falar com alguém agora?
			jQuery("div#header li.on-att.title").mousedown(function(){
				dpc_core.track_pageview('/menu_superior/atendimento-online/clique');
			});
			//Redes Sociais
			jQuery(".nav-social-channels>li>a").mousedown(function(){
				dpc_core.track_pageview("/Redes Sociais/"+dpc_core.sanitize(jQuery(this).text(), true));
			});
			//Iniciar Atendimento (Tab Inferior)
			jQuery("span.c-left").live('mousedown',function(){
				dpc_core.track_pageview('/tab_inferior/iniciar_atendimento/clique');
			});
			jQuery("#ctl00_H1").mousedown(function(){
				dpc_core.track_pageview('/tab_inferior/atendimento_online/clique');
			});
			jQuery("a.online-att span.dt").mousedown(function(){
				dpc_core.track_pageview('/tab_inferior/duvidas_ou_infos/clique');
			});
			
			
			

			//----------------------http://www.maxhaus.com.br/  - HOME
			//Ver o video (Youtube)
			jQuery("div.border-img > img").mousedown(function(){
				var label = jQuery(this).parent().parent().children("strong").text();
				dpc_core.track_pageview("/ver-o-video/"+dpc_core.sanitize(label),true);
			});

			//Ultimas  - Noticias
			jQuery(".bar-nav>a,div.bar-nav > ul > li > a").mousedown(function(){
				dpc_core.track_event("btn_ultimas_noticias",dpc_core.sPathname,"clique");
			});
			//Clique no botão leia mais - parceiros
			jQuery(".parceiros>a").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname + "btn/leia_mais/parceiros/clicou");
			});
			//Clique no botão leia mais - hora do repasse
			jQuery(".hora-repasse>a").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname + "btn/leia_mais/hora_repasse/clicou");
			});
			//Clique no botão leia mais - Dicas
			jQuery(".noticias>a").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname + "btn/leia_mais/dicas/clicou");
			});
			//http://www.maxhaus.com.br/portaldocliente/maos-a-obra
			//clique no botão inclua novos fornecedores
			jQuery(".nav-add-new.rpc").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname + "incluir_fornecedores/clicou");
			});
			//http://www.maxhaus.com.br/portaldocliente/maos-a-obra/#/incluir-novo-fornecedor/
			//Formulário de erro ao incluir fornecedor
			jQuery(".nav-save-data.rpc").mousedown(function(){
				jQuery(".required.prev-fill.error").each(function() {
					dpc_core.track_event(dpc_core.sPathname,"Erro no formulário de cadastro",jQuery(this).attr('name'));
				});
				jQuery(".selectedServices.mulitselect.error>.error").each(function() {
					dpc_core.track_event(dpc_core.sPathname,"Erro no formulário de cadastro",jQuery(this).text());
				});
			});
			//Incluiu fornecedor com sucesso
			jQuery(".nav-ok.rpc").mousedown(function(){
				dpc_core.track_pageview(dpc_core.sPathname + dpc_core.sanitize("Incluiu fornecedor com Sucesso"),true);
			});
		
		}
	},
	hook_onunload : function (url, ref) {},
	hook_pageview : function (url) {
		if (url.toLowerCase().indexOf("/menu_superior/atendimento-online/clique")>=0 || url.toLowerCase().indexOf("/tab_inferior/iniciar_atendimento/clique")>=0 || url.toLowerCase().indexOf("/tab_inferior/duvidas_ou_infos/clique")>=0 || url.toLowerCase().indexOf("/tab_inferior/atendimento_online/clique")>=0){
			_gaq.push(['gwo._setAccount', 'UA-2724649-8']);
			_gaq.push(['gwo._setCampaignCookieTimeout', 31536000]);
			_gaq.push(['gwo._setDomainName', '.maxhaus.com.br']);
			_gaq.push(['gwo._setAllowLinker', true]);
			_gaq.push(['gwo._setAllowHash', false]);
			_gaq.push(['gwo._setAllowAnchor', false]);
			_gaq.push(['gwo._addIgnoredRef', 'maxhaus.com.br']);
			_gaq.push(['gwo._trackPageview', '/0065557171/goal']);				
		}
	},
	hook_event : function (category, action, label, num) {},
	hook_custom_var : function(index, name, val, opt_scope) {},
	hook_setvar : function (obj_cluster) {},
	hook_ecommerce_add_trans : function (obj_tran) {},
	hook_ecommerce_add_item : function (obj_item) {},
	hook_ecommerce_track_trans : function () {},
	dpc_plantas_carregou : function(param){
	    dpc_core.track_pageview("/portaldocliente/meu-maxhaus/plantas-decoradas/basicas/visualizou_planta/" + param);
	} ,

	script_load : function(url, callback, id) {
		var script = document.createElement("script");
		script.type = "text/javascript";
		script.async="true";
		script.src = url;
		if (id) { script.id = id; }

		if (callback) {
			if (script.readyState){ // for IE
				script.onreadystatechange = function() {
					if (script.readyState === "loaded" || script.readyState === "complete") {
						script.onreadystatechange = null;
						callback();
					}
				};
			} else {
				script.onload = function() {
					try{
						callback();
					} catch(e) {
						dpc_core.track_error_event(e, 'Run callback script_load: ' + e.message);
					}
				};
			}
		}

		var script_aux = document.getElementsByTagName('script')[0];
		script_aux.parentNode.insertBefore(script, script_aux);
	}
	
};


/* NÃO MEXA DAQUI PRA BAIXO */
var _gaq=_gaq||[],dpc_core={_setAccount:function(a,b){var c=0,d=-1,b=b?""+b+".":"";_gaq.push([b+"_setAccount",a]);if(typeof dpc_conf.domain_name!=="undefined"){if(dpc_conf.domain_name instanceof Array){for(c=0;c<dpc_conf.domain_name.length;c+=1){if(dpc_conf.domain_name[c]==="auto"||dpc_conf.domain_name[c]==="none"){dpc_conf.domain_name=dpc_conf.domain_name[c];break}if(("."+window.location.hostname).split(dpc_conf.domain_name[c]).pop()===""){dpc_conf.domain_name=dpc_conf.domain_name[c];break}}if(dpc_conf.domain_name instanceof
Array)dpc_conf.domain_name="auto"}_gaq.push([b+"_setDomainName",dpc_conf.domain_name])}try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_set_account!=="undefined"&&dpc_custom.hook_set_account(b)}catch(e){dpc_core.track_error_event(e,"hook_set_account: "+e.message)}typeof dpc_conf.campaign_cookie_timeout!=="undefined"&&_gaq.push([b+"_setCampaignCookieTimeout",parseInt(dpc_conf.campaign_cookie_timeout,10)]);dpc_conf.enable_namespace&&dpc_conf.enable_namespace===!0&&b!==""&&_gaq.push([b+"_setNamespace",
b.substr(0,b.length-1)]);typeof dpc_conf.allow_linker!=="undefined"&&_gaq.push([b+"_setAllowLinker",dpc_conf.allow_linker]);typeof dpc_conf.allow_hash!=="undefined"&&_gaq.push([b+"_setAllowHash",dpc_conf.allow_hash]);typeof dpc_conf.allow_anchor!=="undefined"&&_gaq.push([b+"_setAllowAnchor",dpc_conf.allow_anchor]);for(c=0;c<dpc_conf.ignored_ref.length;c+=1)_gaq.push([b+"_addIgnoredRef",dpc_conf.ignored_ref[c]]);if(dpc_conf.cookie_path&&dpc_conf.cookie_path.length>0){for(c=0;c<dpc_conf.cookie_path.length;c+=
1)if(document.location.pathname.split(dpc_conf.cookie_path[c])[0]===""){d=c;_gaq.push([b+"_setCookiePath",dpc_conf.cookie_path[c]]);break}d<0&&_gaq.push([b+"_setCookiePath","/"]);for(c=0;c<dpc_conf.cookie_path.length;c+=1)d!==c&&_gaq.push([b+"_cookiePathCopy",dpc_conf.cookie_path[c]])}_gaq.push([b+"_addOrganic","uol","q"],[b+"_addOrganic","igbusca","q"],[b+"_addOrganic","globo","query"],[b+"_addOrganic","aonde","keys"],[b+"_addOrganic","images.google","prev"],[b+"_addOrganic","twitter","q"],[b+"_addOrganic",
"clicrbs","q"],[b+"_addOrganic","babylon","q"],[b+"_addOrganic","google.com.br","q",!0]);dpc_conf.init_data&&_gaq.push([b+"_initData"])},clear_ga_get_params:function(a){var b,c,d,e="",f=["utm_campaign","utm_medium","utm_source","utm_term","utm_content","utm_id","utm_nooverride","__utma","__utmb","__utmc","__utmx","__utmz","__utmv","__utmk"];b=a.indexOf("?");if(b>=0){d=a.substring(b+1).split("&");a=a.substring(0,b);for(b=0;b<d.length;b+=1)(c=d[b].split("=")[0])&&jQuery.inArray(c,f)<0&&(e+=(e?"&":"?")+
d[b])}return a+e},get_location_params:function(){try{return dpc_core.clear_ga_get_params(document.location.search)}catch(a){return dpc_core.track_error_event(a,"clear_ga_get_params: "+a.message),document.location.search}},sUrl:document.location.href.toLowerCase(),sReferrer:document.referrer.toLowerCase(),sanitize:function(a,b){a=jQuery.trim(a).toLowerCase().replace(/\s+/g,"_").replace(/[\u00e1\u00e0\u00e2\u00e3\u00e5\u00e4\u00e6\u00aa]/g,"a").replace(/[\u00e9\u00e8\u00ea\u00eb\u0404\u20ac]/g,"e").replace(/[\u00ed\u00ec\u00ee\u00ef]/g,
"i").replace(/[\u00f3\u00f2\u00f4\u00f5\u00f6\u00f8\u00ba]/g,"o").replace(/[\u00fa\u00f9\u00fb\u00fc]/g,"u").replace(/[\u00e7\u00a2\u00a9]/g,"c");b===!0&&(a=a.replace(/[^a-z0-9\-]/g,"_").replace(/_+/g,"_"));return a},track_error_event:function(a,b){var c;typeof console!=="undefined"&&typeof console.error!=="undefined"&&console.error("Exception "+(a.name||"Error"),b||a.message||a,dpc_core.sPathname);for(c in dpc_conf.ga_account)_gaq.push([c+"._trackEvent","Exception "+(a.name||"Error"),b||a.message||
a,dpc_core.sPathname])},track_pageview:function(a){var b,c;try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_pageview!=="undefined"&&(b=dpc_custom.hook_pageview(a||dpc_core.sPathname))}catch(d){dpc_core.track_error_event(d,"hook_pageview: "+d.message)}typeof b!=="undefined"&&b&&(a=b);for(c in dpc_conf.ga_account)_gaq.push([c+"._trackPageview",a||dpc_core.sPathname])},track_event:function(a,b,c,d){var e;try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_event!=="undefined"&&dpc_custom.hook_event(a,
b,c,d)}catch(f){dpc_core.track_error_event(f,"hook_event: "+f.message)}for(e in dpc_conf.ga_account)d||d===0?_gaq.push([e+"._trackEvent",a,b,c||"",Math.round(d)]):_gaq.push([e+"._trackEvent",a,b,c||""])},set_var:function(a){for(var b in dpc_conf.ga_account)_gaq.push([b+"._setVar",a])},get_linker_url:function(a){for(var b in dpc_conf.ga_account){b=_gat._getTrackerByName(b);if(dpc_conf.allow_anchor)return b._getLinkerUrl(a,!0);return b._getLinkerUrl(a)}return a},encode:function(a){if(encodeURIComponent instanceof
Function)return encodeURIComponent(a);return escape(a)},decode:function(a){try{if(decodeURIComponent instanceof Function)return decodeURIComponent(a)}catch(b){if(b.name==="URIError")return unescape(a)}},open_link:function(a,b){_gaq.push(function(){a=dpc_core.get_linker_url(a);return b?window.open(a,b):(document.location.href=a,!1)})},get_identifier:function(a,b){var c;c=b!==!1?a.attr(b):a.attr("id")||a.text()||a.attr("href")||a.attr("name")||a.attr("alt")||a.attr("title")||a.attr("src")||a.attr("class")||
a[0].tagName.toLowerCase();return jQuery.trim(c).substring(0,100)},add_special_events:function(a){if(typeof a!=="object")return!1;var b,c,d;for(b in a)a.hasOwnProperty(b)&&(a[b]instanceof Array?(c=a[b][0],d=a[b][1]):(c=a[b],d=!1),jQuery(c).mousedown(function(a,b){return function(){var c=dpc_core.get_identifier(jQuery(this),b);dpc_core.track_event(a,dpc_core.sPathname,c)}}(b,d)))},add_special_pageviews:function(a){if(typeof a!=="object")return!1;var b,c,d;for(b in a)a.hasOwnProperty(b)&&(a[b]instanceof
Array?(c=a[b][0],d=a[b][1]):(c=a[b],d=!1),jQuery(c).mousedown(function(a,b){return function(){var c=dpc_core.get_identifier(jQuery(this),b);dpc_core.track_pageview(dpc_core.sPathname+"/"+a+"/"+c)}}(b,d)))},add_cookie_to_href:function(a){var b,c,d,e;d=jQuery([]);e=jQuery([]);for(b=0;b<a.length;b+=1)c=a[b],c instanceof RegExp?(c=c.toString(),c.indexOf("/")===0&&(c=c.substring(1,c.lastIndexOf("/"))),d=d.add("a:hrefregex('"+c+"')"),d=d.add("area:hrefregex('"+c+"')"),e=e.add("form:actionregex('"+c+"')")):
typeof c==="string"&&(d=d.add("a[href*='"+c+"']"),d=d.add("area[href*='"+c+"']"),e=e.add("form[action*='"+c+"']"));d=d.filter(":external");(function(a){_gaq.push(function(){a.mousedown(function(){jQuery(this).data("cookie_copied")||(jQuery(this).attr("href",function(){return dpc_core.get_linker_url(this.href)}),jQuery(this).data("cookie_copied",!0))})})})(d);e.each(function(){!jQuery(this).data("cookie_copied")&&this.action&&(function(a){_gaq.push(function(){jQuery(a).submit(function(){for(var a in dpc_conf.ga_account){a=
_gat._getTrackerByName(a);a._linkByPost(this,dpc_conf.allow_hash||!1);break}})})}(this),jQuery(this).data("cookie_copied",!0))})},write_img_tag:function(a,b){var c,d;b||(c=new Date,c=c.getTime(),a+=a.indexOf("?")>0?"&_dpc_cb="+c:"?_dpc_cb="+c);try{d=new Image(1,1),d.src=a}catch(e){jQuery('<img width="1" height="1" src="'+a+'"/>').appendTo("body")}}};
try{dpc_core.sPathname=document.location.pathname.toLowerCase()+dpc_core.get_location_params()}catch(e$$11){dpc_core.track_error_event(e$$11,"set Pathname: "+e$$11.message),dpc_core.sPathname=document.location.href}
var dpc_cookie={set:function(a,b,c){a=a+"="+dpc_core.encode(b);c!==!0&&(c=new Date((new Date).getTime()+dpc_conf.campaign_cookie_timeout*1E3),a+="; expires="+c.toGMTString());c=dpc_conf.domain_name;if(c==="none")c="";else{if(c==="auto")c=window.location.hostname,0===c.indexOf("www.")&&(c=c.substring(4));c=" ;domain="+c}a+=";path=/"+c;document.cookie=a},set_session:function(a,b){dpc_cookie.set(a,b,!0)},get:function(a){var b=document.cookie,c=b.indexOf(a+"="),d;if(c<0||a==="")return"";d=b.indexOf(";",
c);if(d<0)d=b.length;return dpc_core.decode(b.substring(c+a.length+1,d))},get_cluster:function(){var a=/^[^|]*\.(.*)/.exec(dpc_cookie.get("__utmv"));return a=a&&a[1]?a[1]:""},get_cluster_var:function(a){var b=dpc_cookie.get("__utmv");return a=(a=RegExp(a+"=([^|]*)","g").exec(b))&&a[1]?a[1]:!1},set_cluster_var:function(a){var b={},c,d,e,f=dpc_cookie.get_cluster(),f=f.split("|");for(d=0;d<f.length;d+=1)if((c=f[d].split("="))&&c.length===2)b[c[0]]=c[1],a[c[0]]||(a[c[0]]=c[1]);for(d in a)a.hasOwnProperty(d)&&
typeof a[d]==="string"&&(a[d]=a[d].replace(/[|=]/g,"-"));for(d in a)if(a.hasOwnProperty(d)&&typeof a[d]==="string"&&(!b[d]||b[d]!==a[d])){b="";for(e in a)a.hasOwnProperty(e)&&(b+="|"+e+"="+a[e]);try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_setvar!=="undefined"&&dpc_custom.hook_setvar(a)}catch(g){dpc_core.track_error_event(g,"hook_setvar: "+g.message)}dpc_core.set_var(b);return!0}return!1},set_custom_obj:function(a){for(var b in a)a.hasOwnProperty(b)&&dpc_cookie.set_custom_var(a[b].index,
b,a[b].val,a[b].scope);dpc_core.track_event("Load Custom Var",dpc_core.sPathname)},set_custom_var:function(a,b,c,d){c=dpc_core.sanitize(c,!0);try{dpc_custom.hook_custom_var(a,b,c,d)}catch(e){dpc_core.track_error_event(e,"hook_custom_var: "+e.message)}var f,g=64-dpc_core.encode(b).length;if(g<dpc_core.encode(c).length){for(c=dpc_core.encode(c).substr(0,g);c.length-c.lastIndexOf("%")<=3;)c=c.substring(0,c.length-1);c=dpc_core.decode(c)}for(f in dpc_conf.ga_account)_gaq.push([f+"._setCustomVar",parseInt(a,
10),b.toLowerCase(),c,parseInt(d,10)])},get_ga_visitnumber:function(){var a=/([^.]*$)/.exec(dpc_cookie.get("__utma"));return a=a&&a[1]?parseInt(a[1],10):1},get_ga_visitorid:function(){var a=/^(\^[^.]*[^:]*\:)?[^.]*\.([^.]*\.[^.]*)\.[^.]*\.[^.]*\.[^.]*/.exec(dpc_cookie.get("__utma"));return a=a&&a[2]?a[2]:0},get_ga_initialvisit:function(){var a=/^(\^[^.]*[^:]*\:)?[^.]*\.[^.]*\.([^.]*)\.[^.]*\.[^.]*\.[^.]*/.exec(dpc_cookie.get("__utma")),b=new Date,a=a&&a[2]?parseInt(a[2],10):0;b.setTime(a*1E3);return b},
get_ga_previousession:function(){var a=/^(\^[^.]*[^:]*\:)?[^.]*\.[^.]*\.[^.]*\.([^.]*)\.[^.]*\.[^.]*/.exec(dpc_cookie.get("__utma")),b=new Date,a=a&&a[2]?parseInt(a[2],10):0;b.setTime(a*1E3);return b},get_ga_currentsession:function(){var a=/^(\^[^.]*[^:]*\:)?[^.]*\.[^.]*\.[^.]*\.[^.]*\.([^.]*)\.[^.]*/.exec(dpc_cookie.get("__utma")),b=new Date,a=a&&a[2]?parseInt(a[2],10):0;b.setTime(a*1E3);return b},auto_meta_cluster:function(){var a={},b={};jQuery("meta[name^='DPC.CLUSTER.']").each(function(){a[this.name.toLowerCase().substring(12)]=
this.content}).each(function(){dpc_cookie.set_cluster_var(a);return!1});jQuery("meta[name^='DPC.CUSTOM_VAR.']").each(function(){var a=this.name.match(/\w+\.\w+\.(\d)\.(\d)\.(\w+)/);b[a[3]]={index:a[1],val:this.content,scope:a[2]}}).each(function(){dpc_cookie.set_custom_obj(b);return!1})}},dpc_ecommerce={add_trans:function(a){var b;try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_ecommerce_add_trans!=="undefined"&&dpc_custom.hook_ecommerce_add_trans(a)}catch(c){dpc_core.track_error_event(c,
"hook_ecommerce_add_trans: "+c.message)}for(b in dpc_conf.ga_account)_gaq.push([b+"._addTrans",a.orderid,a.storename||"",a.total,a.tax||"",a.shipping||"",a.city||"",a.state||"",a.country||""])},add_item:function(a){var b;try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_ecommerce_add_item!=="undefined"&&dpc_custom.hook_ecommerce_add_item(a)}catch(c){dpc_core.track_error_event(c,"hook_ecommerce_add_item: "+c.message)}for(b in dpc_conf.ga_account)_gaq.push([b+"._addItem",a.orderid,a.sku,a.productname||
"",a.category||"",a.unitprice,a.quantity])},track_trans:function(){var a;try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_ecommerce_track_trans!=="undefined"&&dpc_custom.hook_ecommerce_track_trans()}catch(b){dpc_core.track_error_event(b,"hook_ecommerce_track_trans: "+b.message)}for(a in dpc_conf.ga_account)_gaq.push([a+"._trackTrans"])},auto_meta:function(){var a,b=[],c=[];jQuery("meta[name^='DPC.ECOMMERCE.TRAN']").each(function(){var a=parseInt(this.name.substring(19),10);typeof b[a]!==
"object"&&(b[a]={});b[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);typeof c[a]!=="object"&&(c[a]={});c[a][this.name.substring(this.name.indexOf("]")+2).toLowerCase()]=this.content});if(b.length>0&&c.length>0){for(a in b)b.hasOwnProperty(a)&&dpc_ecommerce.add_trans(b[a]);for(a in c)c.hasOwnProperty(a)&&dpc_ecommerce.add_item(c[a]);dpc_ecommerce.track_trans()}}},dpc_form=
{form_index:0,add_fields_events:function(a){var a=jQuery(a),b,c,d,e;if(a.data("form_taged"))return!1;dpc_form.form_index+=1;b=a.attr("name")||a.attr("id")||""+dpc_form.form_index;a.data("form_taged",!0);c=function(a,c){var d=jQuery(c),d=d.attr("id")&&(jQuery('label[for="'+d.attr("id")+'"]').text()||d.attr("name")||d.attr("id")||d.attr("type")||"");dpc_core.track_event("Form",dpc_core.sPathname+" ("+jQuery.trim(b)+")",jQuery.trim(d)+" ("+a.type+")",e)};d=a.find(":button, :reset, :submit, :image").click(function(a){c(a,
this)});a.find(":input").not(d).focus(function(){e=(new Date).getTime()}).change(function(a){e=(new Date).getTime()-e;e<=0&&(e=null);c(a,this);e=0});a.find("label[for]").click(function(){var a=jQuery(this).text()||jQuery(this).attr("for");dpc_core.track_event("Form",dpc_core.sPathname+" ("+jQuery.trim(b)+")",jQuery.trim(a)+" (click on label)")});return a.submit(function(a){c(a,this)})},track_all:function(a){var b,c,d;d=!1;for(b=0;b<a.length;b+=1)if(c=a[b],c instanceof RegExp){if(c.test(dpc_core.sUrl)){d=
!0;break}}else if(typeof c==="string"&&dpc_core.sUrl.indexOf(c)>=0){d=!0;break}if(!d)return!1;return jQuery("form").each(function(){dpc_form.add_fields_events(this)})}},dpc_scroll={lastX:0,lastY:0,get_max_scroll:function(){var a,b,c,d,e,f;a=jQuery(document).width();b=jQuery(document).height();c=jQuery(window).width();d=jQuery(window).height();e=jQuery(window).scrollLeft();f=jQuery(window).scrollTop();a=(c+e)/(a/100);b=(d+f)/(b/100);if(a>dpc_scroll.lastX)dpc_scroll.lastX=a;if(b>dpc_scroll.lastY)dpc_scroll.lastY=
b},track_max_scroll:function(a){var b,c,d;d=!1;for(b=0;b<a.length;b+=1)if(c=a[b],c instanceof RegExp){if(c.test(dpc_core.sUrl)){d=!0;break}}else if(typeof c==="string"&&dpc_core.sUrl.indexOf(c)>=0){d=!0;break}if(!d)return!1;dpc_scroll.get_max_scroll();a=Math.ceil(dpc_scroll.lastY/10)*10;return dpc_core.track_event("MaxScroll-Y",dpc_core.sPathname,""+(a===0?0:""+a-9+"-"+a),Math.round(dpc_scroll.lastY))}};
try{var i;if(typeof dpc_conf.ga_account!=="object")dpc_conf.ga_account={dpc:dpc_conf.ga_account};for(i in dpc_conf.ga_account)dpc_conf.ga_account.hasOwnProperty(i)&&dpc_core._setAccount(dpc_conf.ga_account[i],i);dpc_conf.enable_auto_pageview&&dpc_core.track_pageview(dpc_core.sPathname);if(typeof jQuery==="function")jQuery.extend(jQuery.expr[":"],{regex:function(a,b,c){return RegExp(c[3],"i").test(jQuery(a).text())},hrefregex:function(a,b,c){if(!a.href)return!1;return RegExp(c[3],"i").test(a.href)},
actionregex:function(a,b,c){if(!a.action)return!1;return RegExp(c[3],"i").test(a.action)},external:function(a){if(!a.href||a.href.toLowerCase().indexOf("javascript:")===0||a.href.toLowerCase().indexOf("mailto:")===0)return!1;return a.hostname&&a.hostname!==document.location.hostname}});else throw Error("jQuery not available");try{typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_asap==="function"&&_gaq.push(function(){dpc_custom.hook_asap(dpc_core.sUrl,dpc_core.sReferrer)})}catch(e$$17){dpc_core.track_error_event(e$$17,
"hook_asap: "+e$$17.message)}var TimeTracker=window.TimeTracker=function(a,b){this.bucket_=b?b.sort(this.sortNumber):TimeTracker.DEFAULT_BUCKET;this.unity_=a?a:1};TimeTracker.DEFAULT_BUCKET=[100,500,1500,2500,5E3,7500,1E4,15E3,2E4,3E4];TimeTracker.prototype._getTimeDiff=function(){return Math.round((this.stopTime_-this.startTime_)/this.unity_)};TimeTracker.prototype.sortNumber=function(a,b){return a-b};TimeTracker.prototype._recordStartTime=function(a){this.startTime_=a!==void 0?a:(new Date).getTime()};
TimeTracker.prototype._recordEndTime=function(a){this.stopTime_=a!==void 0?a:(new Date).getTime()};TimeTracker.prototype._track=function(a,b,c){var d,e;if(this._getTimeDiff()<=0)return!1;if(this._getTimeDiff()>18E5/this.unity_)return!1;for(d=0;d<this.bucket_.length;d++)if(this._getTimeDiff()<this.bucket_[d]){e=d===0?"0-"+this.bucket_[0]:this.bucket_[d-1]+"-"+(this.bucket_[d]-1);break}e||(e=this.bucket_[d-1]+"+");return a._trackEvent(b||"TimeTracker",e,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(1E3);timeOnPage._setHistogramBuckets([1,2,5,10,20,30,40,50,60,120,180,300,600,900,1200,1500]);timeOnPage._recordStartTime();jQuery(window).unload(function(){dpc_cookie.get("__utmb")!==""&&_gaq.push(function(){var a,b;timeOnPage._recordEndTime();for(a in dpc_conf.ga_account)b=_gat._getTrackerByName(a),timeOnPage._track(b,"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(){_gaq.push(function(){var a,b;timeToLoad._recordEndTime();for(a in dpc_conf.ga_account)b=_gat._getTrackerByName(a),timeToLoad._track(b,"Time to Load(ms)",dpc_core.sPathname)})})}}jQuery(document).ready(function(){dpc_conf.enable_meta_ecommerce&&typeof dpc_ecommerce==="object"&&_gaq.push(function(){dpc_ecommerce.auto_meta()});dpc_conf.enable_meta_cluster&&typeof dpc_cookie==="object"&&_gaq.push(function(){dpc_cookie.auto_meta_cluster()});
typeof dpc_form==="object"&&_gaq.push(function(){dpc_form.track_all(dpc_conf.tag_form_location)});_gaq.push(function(){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{typeof dpc_custom!=="undefined"&&jQuery.isFunction(dpc_custom.hook_onload)&&_gaq.push(function(){dpc_custom.hook_onload(dpc_core.sUrl,dpc_core.sReferrer)})}catch(a){dpc_core.track_error_event(a,"hook_onload: "+
a.message)}});jQuery(window).unload(function(){if(dpc_cookie.get("__utmb")!==""){typeof dpc_scroll==="object"&&_gaq.push(function(){dpc_scroll.track_max_scroll(dpc_conf.max_scroll_location)});try{typeof dpc_custom!=="undefined"&&jQuery.isFunction(dpc_custom.hook_onunload)&&_gaq.push(function(){dpc_custom.hook_onunload(dpc_core.sUrl,dpc_core.sReferrer)})}catch(a){dpc_core.track_error_event(a,"hook_onunload: "+a.message)}}});typeof dpc_scroll==="object"&&jQuery(window).scroll(function(){dpc_scroll.get_max_scroll()})}catch(exception$$1){dpc_core.track_error_event(exception$$1)}
(function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();

try{
(function(){
	var ce = document.createElement('script'); ce.type = 'text/javascript'; ce.async = 'true';
	ce.src = ('https:' === document.location.protocol ? 'https://' : 'http://') + 'dnn506yrbagrg.cloudfront.net/pages/scripts/0010/8714.js';
	(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ce);
}());
}catch(exception){dpc_core.track_error_event(exception, 'CrazyEgg: '+e.message);}
