/*
This code was developed at DirectPerformance (www.directperformance.com.br) and is distributed under the Creative Commons - Attribution-NonCommercial 3.0. More details: http://creativecommons.org/licenses/by-nc/3.0/legalcode
You can freely share, transmit and adapt, but you must attribute the work to the original author information and can not use for commercial purposes.
Original Author: DirectPerformance - Website: www.directperformance.com.br - E-mail: contato@directperformance.com.br
*/

// Functions
// Le cluster vars do meta que comecem com DPC.CLUSTER.
//XXX: Need Test
function dpc_meta_var(){
	var arrCluster = new Array();
	//Set cluster vars
	jQuery("meta[name^=DPC.CLUSTER.]").each(function(){
		arrCluster.push(this.name.toLowerCase().substring(12), this.content);
	});
	if(arrCluster.length>0) dpc_cluster_array(arrCluster);
}
var dpc_location_pathname = location.pathname;
if (dpc_location_pathname) dpc_location_pathname=dpc_location_pathname.toLowerCase();

//Flash
function dpcOpenSite(url, nome){
	if (dpc_pageview) dpc_pageview(nome);
	if (dpcTracker&&dpcTracker._getLinkerUrl)
		location.href=dpcTracker._getLinkerUrl(url);
	else
		location.href=url;
}

//
jQuery(document).ready(function(){
	dpc_meta_var(); 

	var sUrl = document.location.href.toLowerCase();
	var sReferer = document.referrer.toLowerCase();

	jQuery(".thickbox").click(function (e) {     
    dpc_pageview(dpc_location_pathname+"/"+dpc_encode(jQuery(this).attr('title'))+"/clique");
    });	
//passar os parametros para os outros sites
		jQuery("a[href*='metalifepilates'],[href*='pilatesstudiofit'],[href*='negociopilates']").click(function () {
            var _url = dpcTracker._getLinkerUrl(jQuery(this).attr("href"));
	    jQuery(this).attr("href",  _url);
});
});









