
// === AUTOS ===
function A_LigaAutos(strClaveGen) {
	switch(strClaveGen){
		case "COMP12": strFolder = "compass-2012"; break;
		case "WRAN12": strFolder = "wrangler-2012"; break;
		case "WRAU12": strFolder = "wrangler-unlimited-2012"; break;
		case "CHER12": strFolder = "cherokee-2012"; break;
		case "GCHE12": strFolder = "grand-cherokee-2012"; break;
	}
	var strLiga = strRutaBase + "/autos-nuevos/"+ strFolder + "/inicio.asp";
	//alert("auto = "+strClaveGen+"   |   liga = "+strLiga);
	location.href = strLiga;
}


function A_LigasAutosHome(strClaveGen, strTipo){
	switch (strClaveGen){
		case "COMP12": strFolder = "compass-2012"; break;
		case "WRAN12": strFolder = "wrangler-2012"; break;
		case "WRAU12": strFolder = "wrangler-unlimited-2012"; break;
		case "CHER12": strFolder = "cherokee-2012"; break;
		case "GCHE12": strFolder = "grand-cherokee-2012"; break;
	}
	switch(strTipo){
		case "ENTRA": strLiga = strRutaBase + "/autos-nuevos/"+ strFolder + "/inicio.asp"; location.href = strLiga; break;
		case "FICHA": strLiga = strRutaBase + "/autos-nuevos/"+ strFolder + "/ficha-tecnica.asp"; location.href = strLiga; break;
		case "COLOR": strLiga = strRutaBase + "/autos-nuevos/"+ strFolder + "/colores.asp"; location.href = strLiga;  break;
		case "VISTA": strLiga = strRutaBase + "/autos-nuevos/"+ strFolder + "/vista-360.asp"; location.href = strLiga;  break;
	}
}

// === LIGAS GENERALES ===

function A_ProcesaClave(strClave){
	//alert(strClave);
	switch(strClave){
		case "HOMEPAGE":
			strLiga = strRutaBase;
			location.href = strLiga;
		break;
		case "INFO4x4":
			strLiga = strRutaBase + "/informacion-4x4/";
			location.href = strLiga;
		break;
		case "CONCESIONARIOS":
			strLiga = strRutaBase + "/concesionarios/";
			location.href = strLiga;
		break;
		case "EVENTOS":
			strLiga = strRutaBase + "/eventos/";
			location.href = strLiga;
		break;
		case "WRANGLER":
			A_LigaAutos('WRAN12');
		break;
		case "GRAND_CHEROKEE":
			A_LigaAutos('GCHE12');
		break;

		case "WALLPAPERS":
			strLiga = strRutaBase + "/Wallpapers/";
			location.href = strLiga;
		break;
		case "COMUNICADOS":
			strLiga = strRutaBase + "/comunicados/compass2011.asp";
			location.href = strLiga;
		break;

		case "PROMOCIONES":
			strLiga = strRutaBase + "/promociones/wrangler.asp";
			location.href = strLiga;
		break;

		case "NOTICIAS":
			strLiga = strRutaBase + "/noticias/";
			location.href = strLiga;
		break;
		case "ACCESORIOS":
			strLiga = strRutaBase + "/accesorios/";
			location.href = strLiga;
		break;
		case "TWITTER":
			strLiga = "http://twitter.com/ManadaJeep";
			A_AbreVentana(strLiga);
		break;
		case "FACEBOOK":
			strLiga = "http://www.facebook.com/soypartedelamanadajeep";
			A_AbreVentana(strLiga);
		break;
		case "CONTACTO":
			strLiga = strRutaBase + "/contacto/";
			location.href = strLiga;
		break;
		case "ACT_DATOS":
			strLiga = strRutaBase + "/actualizar-datos/";
			location.href = strLiga;
		break;
		case "HISTORIA":
			strLiga = strRutaBase + "/historia/";
			location.href = strLiga;
		break;
		case "MANADA_REGISTRO":
			strLiga = strRutaBase + "/manada/";
			location.href = strLiga;
		break;
		case "MANADA_CONDICIONES":
			strLiga = strRutaBase + "/manada/condiciones.asp";
			location.href = strLiga;
		break;
		case "MANADA_COMUNICADO":
			strLiga = strRutaBase + "/manada/comunicado.asp";
			location.href = strLiga;
		break;
		case "MANADA_GANADORES":
			strLiga = strRutaBase + "/manada/ganadores.asp";
			location.href = strLiga;
		break;
		case "CORP_CH":
			strLiga = "http://www.chrysler.com.co";
			A_AbreVentana(strLiga);
		break;
		case "CORP_DG":
			strLiga = "http://www.dodge.com.co";
			A_AbreVentana(strLiga);
		break;
		case "CORP_JP":
			strLiga = "http://www.jeep.com.co";
			A_AbreVentana(strLiga);
		break;
		case "CORP_RM":
			strLiga = "http://www.ram.com.co";
			A_AbreVentana(strLiga);
		break;

	}
}
