var redURL;
function callHitAndGETURL(key, pSiteSection, pURL){

	var wURL = document.location.href;
	var partes = wURL.split('/'); 
	if(partes[2].split('.')[0] == "des2")
	{
		alert("Omniture Key: " + key + " SiteSection: " + pSiteSection);
		TrackInterno('http://www.e-volution.com/pixel.gif');
	}
	else if(partes[2].split('.')[0] == "testingdc" && partes[2].split('.')[1] == "disney-la")
	{
		//alert("Omniture Key: " + key);
		TrackInterno('http://www.e-volution.com/pixel.gif');
	}
	else if(partes[2].split('.')[0] == "dev")
	{
		TrackInterno('http://www.e-volution.com/pixel.gif?key=' + key);
	}
	else if(partes[2].split('.')[0] == "disney-la")
	{
		TrackInterno('http://www.e-volution.com/pixel.gif?key=' + key);
	}
	else
	{
		if (cto != undefined){
			cto.pageName=key;
			cto.siteSection=pSiteSection;
			cto.trackFlashPV();
		}
	}

	redURL = pURL;
	setTimeout(redirect, 300);

}

function redirect(){
	window.location = redURL;
}

function track(key)
{
	try
	{
		var wURL = document.location.href;
		var partes = wURL.split('/'); 
		if(partes[2].split('.')[0] == "des")
		{
			alert("Omniture Key: " + key);
			TrackInterno('http://www.e-volution.com/pixel.gif');
		}
		else if(partes[2].split('.')[0] == "staging" && partes[2].split('.')[1] == "disney-int")
		{
			alert("Omniture Key: " + key);
			TrackInterno('http://www.e-volution.com/pixel.gif');
		}
		else if(partes[2].split('.')[0] == "dev")
		{
			TrackInterno('http://www.e-volution.com/pixel.gif?key=' + key);
		}
		else
		{
			_hbflash(key,null,null,null)
		}
	}
	catch(e)
	{
//		alert(e.name +': '+ e.message);
	}
}

function TrackInterno(urlJ)
{   
		var randomnumber=Math.floor(Math.random()*1000)
		Image1= new Image(1,1);
		Image1.src = urlJ + "?&rdn=" + randomnumber;
}
