//Tag Youtube iframe
var sindexOf=String.prototype.indexOf;function _ytStateChange(a){var b="";switch(a.data){case 0:b="finish";break;case 1:b="play";break;case 2:b="pause"}b&&_gaq.push(["_trackEvent","YouTube Video",a.target.getVideoUrl(),b])}function _ytError(a){_gaq.push(["_trackEvent","YouTube Video","error ("+a.data+")",a.target.getVideoUrl()])}
function _trackYoutube(){var a=[];a.push(document.getElementById("fancybox-frame"));if(null!==a[0]&&0<a.length)for(var b,c=0;c<a.length;c++)b=new window.YT.Player(a[c]),b.addEventListener("onStateChange",_ytStateChange),b.addEventListener("onError",_ytError)};

//Tag Youtube SWFObject
var YoutubeTrackerGlobal=window.YoutubeTrackerGlobal={};YoutubeTrackerGlobal.bucket_=[];YoutubeTrackerGlobal.objects=[];YoutubeTrackerGlobal.timeout=-1;YoutubeTrackerGlobal.seekTimeout=-1;YoutubeTrackerGlobal.callbackTracker=function(){};
var YoutubeTracker=window.YoutubeTracker=function(b,a,c){YoutubeTrackerGlobal.bucket_=b?b.sort(YoutubeTrackerGlobal.sortNumber):YoutubeTracker.DEFAULT_BUCKET;if(a)YoutubeTrackerGlobal.callbackTracker=a;else try{YoutubeTrackerGlobal.callbackTracker=_gat._getTrackerByName()._trackEvent}catch(f){YoutubeTrackerGlobal.callbackTracker=pageTracker._trackEvent}if(c)YoutubeTrackerGlobal.callbackTracker_=YoutubeTrackerGlobal.callbackTracker,YoutubeTrackerGlobal.callbackTracker=function(a,b,c,f){YoutubeTrackerGlobal.callbackTracker_(a,
b,c,f)}};YoutubeTrackerGlobal.sortNumber=function(b,a){return b-a};YoutubeTrackerGlobal._setHistogramBuckets=function(b){YoutubeTrackerGlobal.bucket_=b.sort(this.sortNumber)};YoutubeTracker.DEFAULT_BUCKET=[10,30,60,180,600];
YoutubeTrackerGlobal.getBucket=function(b){var a,c;for(a=0;a<YoutubeTrackerGlobal.bucket_.length;a++)if(b<YoutubeTrackerGlobal.bucket_[a]){c=0===a?"0-"+YoutubeTrackerGlobal.bucket_[0]:YoutubeTrackerGlobal.bucket_[a-1]+"-"+(YoutubeTrackerGlobal.bucket_[a]-1);break}c||(c=YoutubeTrackerGlobal.bucket_[a-1]+"+");return c};
YoutubeTrackerGlobal.trackMaxTime=function(){var b,a,c;for(c in YoutubeTrackerGlobal.objects)if(YoutubeTrackerGlobal.objects[c]&&(b=YoutubeTrackerGlobal.getBucket(YoutubeTrackerGlobal.objects[c].maxTime),a=document.getElementById(YoutubeTrackerGlobal.objects[c].id)))a=a._YoutubeTracker_cod_video,YoutubeTrackerGlobal.callbackTracker("YouTube Video",a,"max-time:"+b,YoutubeTrackerGlobal.objects[c].maxTime)};
YoutubeTrackerGlobal.updatetimer=function(){var b,a,c,f,g;for(g in YoutubeTrackerGlobal.objects)if(YoutubeTrackerGlobal.objects[g]&&(a=document.getElementById(YoutubeTrackerGlobal.objects[g].id))&&a.getCurrentTime){b=parseInt(a.getCurrentTime(),10);a._YoutubeTracker_last_posicao=b;if(b>YoutubeTrackerGlobal.objects[g].maxTime)YoutubeTrackerGlobal.objects[g].maxTime=b;if(1==a.getPlayerState()&&(f=YoutubeTrackerGlobal.getBucket(b),f!=a._YoutubeTracker_lastBucket))c=a._YoutubeTracker_cod_video,YoutubeTrackerGlobal.callbackTracker("YouTube Video",
c,"view-range:"+f,b),a._YoutubeTracker_lastBucket=f}};
window.onYouTubePlayerReady=function(b){var a=document.getElementById(b);if(a){var c=/(v=|v\/|p\/)([^&?]+)/.exec(a.getVideoUrl()),c=(c&&c[2]?c[2]:a.getVideoUrl())||b;a._YoutubeTracker_cod_video="youtube-video:"+c;YoutubeTrackerGlobal.objects.push({id:b,maxTime:0,cod:c});a._YoutubeTracker_sendaction=function(b){var c=this._YoutubeTracker_cod_video;posicao=parseInt(this.getCurrentTime(),10);var d=b;switch(b){case -1:d="nunstarted";break;case 0:d="ended";break;case 1:d="playing";break;case 2:d="paused";
break;case 3:d="buffering";break;case 5:d="cued"}posicao<a._YoutubeTracker_last_posicao-1?d="rewind":posicao>a._YoutubeTracker_last_posicao+1&&(d="fast-forward");var e=!1;"playing"==d&&(posicao<a._YoutubeTracker_last_posicao_paused-1?(d="rewind",e=!0):posicao>a._YoutubeTracker_last_posicao_paused+1&&(d="fast-forward",e=!0));if("buffering"!=d&&d!=a._YoutubeTracker_last_action){a._YoutubeTracker_last_action=d;b=a._YoutubeTracker_last_posicao;if(e)b=a._YoutubeTracker_last_posicao_paused;a._YoutubeTracker_last_posicao=
posicao;"paused"==d?(a._YoutubeTracker_last_posicao_paused=posicao,e=YoutubeTrackerGlobal.getBucket(posicao),YoutubeTrackerGlobal.seekTimeout=setTimeout("YoutubeTrackerGlobal.callbackTracker('YouTube Video','"+c+"','"+d+":"+e+"',0"+posicao+");",300)):"rewind"==d||"fast-forward"==d?(clearTimeout(YoutubeTrackerGlobal.seekTimeout),e=YoutubeTrackerGlobal.getBucket(b),YoutubeTrackerGlobal.callbackTracker("YouTube Video",c,d+":from "+e,b),e=YoutubeTrackerGlobal.getBucket(posicao),YoutubeTrackerGlobal.callbackTracker("YouTube Video",
c,d+":to "+e,posicao)):(e=YoutubeTrackerGlobal.getBucket(posicao),YoutubeTrackerGlobal.callbackTracker("YouTube Video",c,d+":"+e,posicao))}};a.addEventListener("onStateChange","document.getElementById('"+b+"')._YoutubeTracker_sendaction");a._YoutubeTracker_senderror=function(a){YoutubeTrackerGlobal.callbackTracker(this._YoutubeTracker_cod_video,"error",a)};a.addEventListener("onError","document.getElementById('"+b+"')._YoutubeTracker_senderror")}YoutubeTrackerGlobal.timeout=setInterval(YoutubeTrackerGlobal.updatetimer,
500)};
try{var yt_callback=function(b,a,c,f){_gaq.push(["_trackEvent",b,a,c,f])},ytTracker=new YoutubeTracker(false,yt_callback,true)}catch(e$$6){};

//Tag GA
"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/04/11 14:47:32 $
 * @fileoverview funcoes para auxiliar a implementacao do Google Analytics
 * @author DirectPerformance -  http://www.directperformance.com.br/ <contato@directperformance.com.br>
 * @version $Revision: f0dd0bd5e197 $
 **/

var dpc_conf = {
	version : '5.0',
	ga_account : 'UA-25834022-1',
	domain_name : 'auto',

	campaign_cookie_timeout : undefined,
	cookie_path : ['/'],
	ignored_ref : [],
	allow_anchor : false,

	enable_auto_pageview : true,
	link_track_event : {
		js : "a[href^='javascript:']",
		email : "a[href^='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", "href"]
	},
	link_track_pageview : {
		// download : "a:hrefregex('.+\\.(docx?|od[fspt]|pdf|ppsx?|pptx?|ps|txt|xlsx?|xml)$')"
	},

	allow_linker : true,
	allow_hash : false,
	cookie_copy_href : [],

	tag_form_location : [(/.*/)],
	max_scroll_location : [(/.*/)],
	track_time_on_page : false,
	track_time_to_load : false,
	track_page_load_time : true,
	enable_window_track_error : true,

	enable_meta_cluster : false,
	enable_meta_ecommerce : false,

	enable_namespace : false,
	init_data : false
};

var dpc_custom = {
	hook_asap : function (/*url, ref*/) {
		jQuery('div#diagonal-scroll li a.replacement').live('mousedown',function(){ //Home - Personas
			dpc_core.track_pageview("/" + dpc_core.sanitize(jQuery(this).text(), true));
		});
		jQuery('ul#by-geography .subLink>a').live('mousedown', function(){ //Menu Geography
			var obj = jQuery(this);
			var sub = "";
			if(obj.parents('li.subItem').children('a').text() !== ""){
				sub = "/" + dpc_core.sanitize(obj.parents('li.subItem').children('a').text(), true);
			}
			dpc_core.track_pageview("menu/geography/" + dpc_core.sanitize(obj.parents('li[id^=item]').children('a').text(), true) + sub + "/" + dpc_core.sanitize(obj.text(), true));
		});
		jQuery('ul#by-segment .subLink>a').live('mousedown', function(){ //Menu Segment
			var obj = jQuery(this);
			var sub = "";
			if(obj.parents('li.subItem').children('a').text() !== ""){
				sub = "/" + dpc_core.sanitize(obj.parents('li.subItem').children('a').text(), true);
			}
			dpc_core.track_pageview("menu/segment/" + dpc_core.sanitize(obj.parents('li[id^=item]').children('a').text(), true) + sub + "/" + dpc_core.sanitize(obj.text(), true));
		});		
		jQuery('ul#ul-share a').live('mousedown',function(){ //Shares
			dpc_core.track_event('Share', jQuery(this).text(), dpc_core.sPathname);
		});
		jQuery('div.country-pin').live('mousedown',function(){ // Pin contact us
			dpc_core.track_event('Contato', jQuery(this).attr('id'));
		});
		jQuery('#more-videos a, span#fancybox-right-ico, span#fancybox-left-ico').live('mousedown',function(){ //more-videos tracking
			setTimeout(_trackYoutube,2000);
		});

	},
//	hook_set_account : function (tname) {},
	hook_pathname : function (pathname) {
		if (pathname === "/index.html"){
			return "/";
		}
	},
	hook_onload : function (url, ref) {
		// load the youtube player api
		var tag = document.createElement('script');
		tag.src = 'http://www.youtube.com/player_api';
		tag.type = 'text/javascript';
		tag.async = true;
		var firstScriptTag = document.getElementsByTagName('script')[0];
		firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
	}
/*	
	hook_onunload : function (url, ref) {},
	hook_pageview : function (url) {},
	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 () {} */
}; 

/* NÃO MEXA DAQUI PRA BAIXO */
var _gaq=_gaq||[],dpc_core={_setAccount:function(a,b){var c=0,d=-1;_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])}if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_set_account==="function")try{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===true&&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","busca","query"],[b+"_addOrganic","pesquisa","q"],[b+"_addOrganic","uol","q"],[b+"_addOrganic","ig","q",true],[b+"_addOrganic","globo","query",true],[b+"_addOrganic","r7","q"],[b+"_addOrganic",
"clicrbs","q"],[b+"_addOrganic","twitter","q"],[b+"_addOrganic","real","query"],[b+"_addOrganic","mywebsearch","searchfor"],[b+"_addOrganic","esnips","searchQurey"],[b+"_addOrganic","topbuscas","search"],[b+"_addOrganic","google.com.br","q",true]);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".split(",");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===true&&(a=a.replace(/[^a-z0-9\-]/g,"_").replace(/_+/g,"_"));return a},track_error_event:function(a,b){try{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)dpc_conf.ga_account.hasOwnProperty(c)&&_gaq.push([c+"_trackEvent","Exception "+(a.name||"Error"),b||a.message||a,dpc_core.sPathname,0,true])}catch(d){}},track_pageview:function(a){var b,c;if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_pageview==="function"){try{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)dpc_conf.ga_account.hasOwnProperty(c)&&_gaq.push([c+"_trackPageview",a||dpc_core.sPathname])},track_event:function(a,b,c,d,e){var f;if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_event==="function")try{dpc_custom.hook_event(a,b,c,d,e)}catch(g){dpc_core.track_error_event(g,"hook_event: "+g.message)}for(f in dpc_conf.ga_account)dpc_conf.ga_account.hasOwnProperty(f)&&(!isNaN(d)&&(d||d===0)?_gaq.push([f+"_trackEvent",a,b,c||"",Math.round(d),!!e]):_gaq.push([f+
"_trackEvent",a,b,c||""]))},set_var:function(a){for(var b in dpc_conf.ga_account)dpc_conf.ga_account.hasOwnProperty(b)&&_gaq.push([b+"_setVar",a])},get_linker_url:function(a){var b=_gat._getTrackerByName(dpc_conf.tracker_name[0]);return dpc_conf.allow_anchor?b._getLinkerUrl(a,true):b._getLinkerUrl(a)},encode:function(a){return encodeURIComponent instanceof Function?encodeURIComponent(a):escape(a)},decode:function(a){try{return decodeURIComponent instanceof Function?decodeURIComponent(a):unescape(a)}catch(b){if(b.name===
"URIError")return unescape(a)}return 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,false)})},get_identifier:function(a,b){var c;c=b!==false?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 false;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=false),jQuery(c).bind("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 false;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=false),jQuery(c).bind("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.charAt(0)==="/"&&(c=c.substring(1,c.length-1)),d=d.add("a:hrefregex('"+c+"'):external, area:hrefregex('"+c+"'):external"),e=e.add("form:actionregex('"+c+"')")):typeof c==="string"&&(d=d.add("a[href*='"+c+"']:external, area[href*='"+c+"']:external"),e=e.add("form[action*='"+c+"']"));(function(a){_gaq.push(function(){a.bind("mousedown",function(){var a=
jQuery(this);a.data("cookie_copied")||a.attr("href",function(){return dpc_core.get_linker_url(this.href)}).data("cookie_copied",true)})})})(d);e.each(function(){!jQuery(this).data("cookie_copied")&&this.action&&(function(a){_gaq.push(function(){jQuery(a).submit(function(){_gat._getTrackerByName(dpc_conf.tracker_name[0])._linkByPost(this,dpc_conf.allow_hash||false)})})}(this),jQuery(this).data("cookie_copied",true))})},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+dpc_core.get_location_params()}catch(e$$12){dpc_core.sPathname=document.location.pathname+document.location.search,dpc_core.track_error_event(e$$12,"set Pathname: "+e$$12.message)}
if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_pathname==="function")try{var dpc_hook_pathname_aux=dpc_custom.hook_pathname(dpc_core.sPathname);if(dpc_hook_pathname_aux&&typeof dpc_hook_pathname_aux==="string")dpc_core.sPathname=dpc_hook_pathname_aux}catch(e$$13){dpc_core.track_error_event(e$$13,"hook_pathname: "+e$$13.message)}
var dpc_cookie={set:function(a,b,c){a=a+"="+dpc_core.encode(b);c!==true&&(c=parseInt(dpc_conf.campaign_cookie_timeout,10),isNaN(c)&&(c=63072E6),c=new Date((new Date).getTime()+c),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,true)},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]:false},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]);if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_setvar==="function")try{dpc_custom.hook_setvar(a)}catch(g){dpc_core.track_error_event(g,"hook_setvar: "+g.message)}dpc_core.set_var(b);return true}return false},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,true);if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_custom_var==="function")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)dpc_conf.ga_account.hasOwnProperty(f)&&_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 false});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 false})}},dpc_ecommerce=
{add_trans:function(a){var b;if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_ecommerce_add_trans==="function")try{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)dpc_conf.ga_account.hasOwnProperty(b)&&_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;if(typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_ecommerce_add_item===
"function")try{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)dpc_conf.ga_account.hasOwnProperty(b)&&_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==="function"&&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)dpc_conf.ga_account.hasOwnProperty(a)&&_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});if(b.length>0&&(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}),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 false;dpc_form.form_index+=1;b=" ("+jQuery.trim(a.attr("name")||a.attr("id")||String(dpc_form.form_index))+")";a.data("form_taged",true);
c=function(a,c){var d=jQuery(c),k=d.attr("type"),h=d.attr("id"),h=jQuery.trim(h&&jQuery('label[for="'+h+'"]').text()||d.attr("name")||h||k||"");if(k==="radio"||k==="check")h=d.attr("name")+": "+h;dpc_core.track_event("Form",dpc_core.sPathname+b,h+" ("+a.type+")",e)};d=a.find(":button, :reset, :submit, :image").bind("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]").bind("click",
function(){var a=jQuery.trim(jQuery(this).text()||jQuery(this).attr("for"))+" (click on label)";dpc_core.track_event("Form",dpc_core.sPathname+b,a)});return a.submit(function(a){c(a,this)})},track_all:function(a){var b,c,d;d=false;for(b=0;b<a.length;b+=1)if(c=a[b],c instanceof RegExp){if(c.test(dpc_core.sUrl)){d=true;break}}else if(typeof c==="string"&&dpc_core.sUrl.indexOf(c)>=0){d=true;break}return!d?false: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=false;for(b=0;b<a.length;b+=1)if(c=a[b],c instanceof RegExp){if(c.test(dpc_core.sUrl)){d=true;break}}else if(typeof c==="string"&&dpc_core.sUrl.indexOf(c)>=
0){d=true;break}if(!d)return false;dpc_scroll.get_max_scroll();a=Math.ceil(dpc_scroll.lastY/10)*10;return dpc_core.track_event("MaxScroll-Y",dpc_core.sPathname,String(a===0?0:a-9+"-"+a),Math.round(dpc_scroll.lastY),true)}};
try{var ga_account_aux={},i;dpc_conf.tracker_name=[];if(typeof dpc_conf.ga_account!=="object")dpc_conf.ga_account={"":dpc_conf.ga_account};if(typeof dpc_conf.gwo_namespace!=="string"||dpc_conf.gwo_namespace.length===0)dpc_conf.gwo_namespace=false;for(i in dpc_conf.ga_account)if(dpc_conf.ga_account.hasOwnProperty(i)){i!==dpc_conf.gwo_namespace&&dpc_conf.tracker_name.push(i);var j=i.length>0?i+".":i;ga_account_aux[j]=dpc_conf.ga_account[i]}dpc_conf.ga_account=ga_account_aux;for(i in dpc_conf.ga_account)dpc_conf.ga_account.hasOwnProperty(i)&&
dpc_core._setAccount(dpc_conf.ga_account[i],i);dpc_conf.gwo_namespace&&delete dpc_conf.ga_account[dpc_conf.gwo_namespace+"."];dpc_conf.enable_auto_pageview&&dpc_core.track_pageview(dpc_core.sPathname);if(dpc_conf.track_page_load_time)for(i in dpc_conf.ga_account)dpc_conf.ga_account.hasOwnProperty(i)&&_gaq.push([i+"_trackPageLoadTime"]);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){return!a.href?
false:RegExp(c[3],"i").test(a.href)},actionregex:function(a,b,c){return!a.action?false:RegExp(c[3],"i").test(a.action)},external:function(a){var b=String(a.href).toLowerCase();return!a.href||b.indexOf("javascript:")===0||b.indexOf("mailto:")===0?false:a.hostname&&a.hostname!==document.location.hostname}});else throw Error("jQuery not available");typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_asap==="function"&&_gaq.push(function(){try{dpc_custom.hook_asap(dpc_core.sUrl,dpc_core.sReferrer)}catch(a){dpc_core.track_error_event(a,
"hook_asap: "+a.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 false;if(this._getTimeDiff()>18E5/this.unity_)return false;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=0;a<dpc_conf.tracker_name.length;a++)b=_gat._getTrackerByName(dpc_conf.tracker_name[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=0;a<dpc_conf.tracker_name.length;a++)b=_gat._getTrackerByName(dpc_conf.tracker_name[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)});typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_onload==="function"&&_gaq.push(function(){try{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(){dpc_cookie.get("__utmb")!==""&&(typeof dpc_scroll==="object"&&_gaq.push(function(){dpc_scroll.track_max_scroll(dpc_conf.max_scroll_location)}),typeof dpc_custom!=="undefined"&&typeof dpc_custom.hook_onunload==="function"&&_gaq.push(function(){try{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()});if(dpc_conf.enable_window_track_error&&!window.onerror)window.onerror=function(a,b,c){try{return dpc_core.track_event("JS Exception Error",a,b+" ("+c+")",0,true),true}catch(d){return dpc_core.track_error_event(d,"window_track_error: "+d.message),true}}}catch(exception$$1){dpc_core.track_error_event(exception$$1)}
(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;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)})();
 
