<!--
var est_idcateg='BOD';
var est_idpag='LISTAS DE BODA:';

//Verifica en qué entorno estamos para que se ejecute o no la función de producción de coremetrics ******************
function verificarDominio(est_Entorno){
	var WWWDesPre = "www.ws.";
	var checkDominio = est_Entorno.indexOf(WWWDesPre);
	
	if (checkDominio >= 0){
		//Es dominio PRE O DES
		return false;
	}else{
		return true;
	}
}
		
switch (est_NombrePag)
{
	case "default":
	{
		est_idpag=est_idpag + 'Pagina inicial';
		est_idcateg=est_idcateg + 'INICIAL';
		break;
	}
	case "celebracion":
	{
		est_idpag=est_idpag + 'Acceso para novios';
		est_idcateg=est_idcateg + 'ACCNOVIOS';
		break;
	}
	case "resumen":
	{
		est_idpag=est_idpag + 'Resumen lista de regalos';
		est_idcateg=est_idcateg + 'LISRESUMEN'
		break;
	}
	case "adquiridos":
	{
		est_idpag=est_idpag + 'Regalos adquiridos';
		est_idcateg=est_idcateg + 'REGALOSADQ';
		break;
	}
	case "reservados":
	{
		est_idpag=est_idpag + 'Regalos reservados';
		est_idcateg=est_idcateg + 'REGALOSRES';
		break;
	}
	case "disponibles":
	{
		est_idpag=est_idpag + 'Regalos disponibles';
		est_idcateg=est_idcateg + 'REGALOSDISP';
		break;
	}
	case "invitados":
	{
		est_idpag=est_idpag + 'Acceso para invitados';
		est_idcateg=est_idcateg + 'ACCINVITADOS';
		break;
	}
	case "listado":
	{
		est_idpag=est_idpag + 'Listado de regalos para invitados';
		est_idcateg=est_idcateg + 'REGINVITADOS';
		break;
	}
	case "cesta":
	{
		est_idpag=est_idpag + 'Cesta de regalos';
		est_idcateg=est_idcateg + 'CESTAREGALOS';
		break;
	}
	case "identificacion":
	{
		est_idpag=est_idpag + 'Identificacion para compra';
		est_idcateg=est_idcateg + 'BODIDENTIFCOMPRA';
		break;
	}
	case "pagos":
	{
		est_idpag=est_idpag + 'Pagos';
		est_idcateg=est_idcateg + 'BODPAGOS';
		break;
	}
	case "tramitado":
	{
		est_idpag=est_idpag + 'Pedido tramitado';
		est_idcateg=est_idcateg + 'BODPEDTRAMITADO';
		break;
	}	
	case "comoaccederlista":
	{
		est_idpag=est_idpag + 'Informacion:Como acceder a lista';
		est_idcateg=est_idcateg + 'INFOLISTA';
		break;
	}
	case "comocomprarregalo":
	{
		est_idpag=est_idpag + 'Informacion:Como comprar';
		est_idcateg=est_idcateg + 'INFOCOMPRA';
		break;
	}
	case "comopagar":
	{
		est_idpag=est_idpag + 'Informacion:Como pagar';
		est_idcateg=est_idcateg + 'INFOPAGO';
		break;
	}
	case "datoscliente":
	{
		est_idpag=est_idpag + 'Informacion:Datos del cliente';
		est_idcateg=est_idcateg + 'INFODATOS';
		break;
	}
	case "garantiayseguridad":
	{
		est_idpag=est_idpag + 'Informacion:Seguridad de los datos';
		est_idcateg=est_idcateg + 'INFOSEGURIDAD';
		break;
	}
	case "bonificaciones":
	{
		est_idpag=est_idpag + 'Informacion:Ventajas';
		est_idcateg=est_idcateg + 'INFOVENTAJAS';
		break;
	}	
	case "preguntas":
	{
		est_idpag=est_idpag + 'Informacion:Preguntas frecuentes';
		est_idcateg=est_idcateg + 'INFOFAQ';
		break;
	}
	case "atencioncliente":
	{
		est_idpag=est_idpag + 'Informacion:Contacto';
		est_idcateg=est_idcateg + 'INFOCONTACTO';
		break;
	}
	case "demo":
	{
		est_idpag=est_idpag + 'Demo:Pagina inicial';
		est_idcateg=est_idcateg + 'DEMOINICIO';
		break;
	}
	case "demoaccnovios":
	{
		est_idpag=est_idpag + 'Demo:Acceso novios';
		est_idcateg=est_idcateg + 'DEMOACCNOVIOS';
		break;
	}
	case "demolistnovi":
	{
		est_idpag=est_idpag + 'Demo:Resumen lista de regalos';
		est_idcateg=est_idcateg + 'DEMOLISRESUMEN';
		break;
	}
	case "demoadquir":
	{
		est_idpag=est_idpag +'Demo:Regalos adquiridos';
		est_idcateg=est_idcateg + 'DEMOREGALOSADQ';
		break;
	}
	case "demoreserv":
	{
		est_idpag=est_idpag + 'Demo:Regalos reservados';
		est_idcateg=est_idcateg + 'DEMOREGALOSRES';
		break;
	}
	case "demodispo":
	{
		est_idpag=est_idpag + 'Demo:Regalos disponibles';
		est_idcateg=est_idcateg + 'DEMOREGALOSDISP';
		break;
	}
	case "demoaccinv":
	{
		est_idpag=est_idpag + 'Demo:Acceso para invitados';
		est_idcateg=est_idcateg + 'DEMOACCINVITADOS';
		break;
	}	
	case "demolistainv":
	{
		est_idpag=est_idpag + 'Demo:Lista para invitados';
		est_idcateg=est_idcateg + 'DEMOLISINVITADOS';
		break;
	}
	case "demoidentifica":
	{
		est_idpag=est_idpag + 'Demo:Identificacion';
		est_idcateg=est_idcateg + 'DEMOIDENTIFICACION';
		break;
	}
	case "demoformulario":
	{
		est_idpag=est_idpag + 'Demo:Formulario compra';
		est_idcateg=est_idcateg + 'DEMOFORCOMPRA';
		break;
	}
	case "demopedidotra":
	{
		est_idpag=est_idpag + 'Demo:Pedido tramitado';
		est_idcateg=est_idcateg + 'DEMOTRAMITADO';
		break;
	}
	case "MsgError":
		{
			est_idpag=est_idpag + 'Error';
			est_idcateg=est_idcateg + 'ERROR';
			break;
		}
}
	
	if(est_NombrePag=="MsgError"){
		//alert(verificarDominio(est_Entorno));	
		//alert("IDPAG: " + est_idpag+" IDCATEG: " + est_idcateg);
		if (verificarDominio(est_Entorno)){cmSetProduction();}
		cmCreateErrorTag(est_idpag, est_idcateg);
	}else{
		//alert(verificarDominio(est_Entorno));	
		//alert("IDPAG: " + est_idpag+" IDCATEG: " + est_idcateg);
		if (verificarDominio(est_Entorno)){cmSetProduction();}
		cmCreatePageviewTag(est_idpag, est_idcateg);
	}
		
// -->