// JavaScript Document
var ruta="http://www.amiab.com/nuevawebsocial/"

$("#marco").ready(function() {
	shortcut.add("Ctrl+e", function() {
		//Grupo empresarial
		location.href="http://www.amiab.com/nuevawebempresa/";
	});
	shortcut.add("Ctrl+f", function() {
		//Fin Social
		location.href=ruta;
	});
	shortcut.add("Ctrl+d", function() {
		//¿Donde estamos?
		location.href=ruta+"/index.php?option=com_content&task=view&id=16&Itemid=38";
	});
	shortcut.add("Ctrl+a", function() {
		//Actualidad
		location.href=ruta+"/index.php?option=com_content&task=category&sectionid=1&id=1&Itemid=92";
	});
	shortcut.add("Alt+s", function() {
		//Hazte socio
		location.href=ruta+"/templates/amiabsocial_capas/haztesocio.php";
	});
	shortcut.add("Alt+d", function() {
		//Club Deportivo
		location.href=ruta+"/index.php?option=com_content&task=view&id=14&Itemid=37";
	});
	shortcut.add("Alt+e", function() {
		//Enlaces
		location.href=ruta+"/index.php?option=com_weblinks&Itemid=23";
	});
	shortcut.add("Ctrl+p", function() {
		//Zona privada
		location.href=ruta+"/index2.php";
	});
	shortcut.add("Alt+v", function() {
		//Hazte voluntario
		location.href=ruta+"/templates/rhuk_solarflare_ii/haztevoluntario.php";
	});
	shortcut.add("Ctrl+c", function() {
		//Consultar
		location.href=ruta+"/templates/rhuk_solarflare_ii/email.php";
	});
	shortcut.add("Ctrl+q", function() {
		//¿Quienes somos?
		location.href=ruta+"/index.php?option=com_content&task=view&id=12&Itemid=27";
	});
	shortcut.add("Ctrl+s", function() {
		//Servicios sociales
		location.href=ruta+"/index.php?option=com_content&task=view&id=52&Itemid=83";
	});
	shortcut.add("Alt+c", function() {
		//Colaboradores
		location.href=ruta+"/index.php?option=com_content&task=view&id=24&Itemid=51";
	});
	shortcut.add("Alt+a", function() {
		//Aviso legal
		window.open(ruta+"/templates/amiabsocial_capas/aviso_legal.php","Aviso legal","location=0,status=0,scrollbars=1,width=650,height=550"); 
	});
	shortcut.add("Alt+p", function() {
		//Politica de privacidad
		window.open(ruta+"/templates/amiabsocial_capas/privacidad.php","Política de privacidad","location=0,status=0,scrollbars=1,width=650,height=550");
	});
	shortcut.add("F10", function() {
		//Ayuda
		location.href=ruta+"/index.php?option=com_content&task=view&id=109&Itemid=93";
	});
});
