<!--
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
//-->	
	function escribeMenuInf() {
		//Escribe el menu inferior.
		
		document.write ("<div align='center' class='menuInf'>");
		document.write ("<p><strong><a href='nosotros.html' target='_self' class='enlacesB'>NOSOTROS</a> | <a href='destinosGranada.html' target='_self' class='enlacesB'>DESTINOS</a> | <a href='gruposViajes.html' target='_self' class='enlacesB'>GRUPOS</a> | <a href='ofertas.php' target='_self' class='enlacesB'>OFERTAS</a> | <a href='serviciosCCI.html' target='_self' class='enlacesB'>SERVICIOS</a> | <a href='eventos.php' target='_self' class='enlacesB'>EVENTOS</a> | <a href='noticias.php' target='_self' class='enlacesB'>NOTICIAS</a> | <a href='contacto.html' target='_self' class='enlacesB'>CONTACTO</a></strong></p>");
   		document.write ("</div>");				
	}
	function selectorFecha (cual) {
		//Dispone en pantalla el selector de fecha, compuesto por tres select
		
		//Dias
		document.write ("<select name='selectorDia"+cual+"' id='selectorDia"+cual+"'><option value='defecto'>---</option>");
		for (var cont=1; cont<=31; cont++) 
			if (cont<10) document.write ("<option value='0"+cont+"'>0"+cont+"</option>");
			else document.write ("<option value='"+cont+"'>"+cont+"</option>");
		document.write ("</select>");
		document.write ("&nbsp;/&nbsp;&nbsp;");
		//Mes
		document.write ("<select name='selectorMes"+cual+"' id='selectorMes"+cual+"'><option value='defecto'>---</option>");
		for (var cont=1; cont<=12; cont++) 
			if (cont<10) document.write ("<option value='0"+cont+"'>0"+cont+"</option>");
			else document.write ("<option value='"+cont+"'>"+cont+"</option>");
		document.write ("</select>");
		document.write ("&nbsp;/&nbsp;&nbsp;20");
		//Año
		document.write ("<select name='selectorAnio"+cual+"' id='selectorAnio"+cual+"'><option value='defecto'>---</option>");
		for (var cont=7; cont<=12; cont++) 
			if (cont<10) document.write ("<option value='0"+cont+"'>0"+cont+"</option>");
			else document.write ("<option value='"+cont+"'>"+cont+"</option>");
		document.write ("</select>");
		
	}
	function validarNumero(numero) {
		//Solo comprueba que el dato recibido sea un numero
		
			if ((numero>0) && (numero<99)) return true;
			else return false;
	}
	function compruebaFormContacto () {
		
		var valido=true;
		
		if ((valido) && (document.formContacto.telefono.value=="") && (document.formContacto.correo.value=="")) {
			alert ("Debe indicar algun medio de contacto.");
			valido=false;
		}
		if ((valido) && (document.formContacto.nombre.value=="")) {
			alert ("Por favor indique un nombre de contacto.");
			valido=false;
		}
		
		if (valido) document.formContacto.submit();	
	}
	function abreFoto (contador,idEvento,titulo) {
		//Abre la foto que se le pincha en una nueva ventana
		
		var titulo="";
		var enlace="fotoAmpliada.php?contador="+contador+"&idEvento="+idEvento;
		var parametros="fullscreen,toolbar=NO,location=NO,directories=NO,status=NO,resizable=YES";
		window.open(enlace,titulo,parametros);
	}
	function escribeMenu(seccion) {
		//Escribe el menu.
		//Recibe por parametro la seccion en la que se encuentra para poder marcar el boton
		
		var ruta="images/menus/";
		
		document.write ("<table border='0' align='left' cellpadding='0' cellspacing='0'><tr>");
		document.write ("<td valign='top'><img src='"+ruta+"nosotros.jpg' alt='nosotros' name='nosotros' width='95' height='31' border='0' id='nosotros' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('nosotros','','"+ruta+"nosotros_p.jpg',1)\" onclick='window.location=\"nosotros.html\"' style='cursor:pointer'></td>");
		document.write ("<td><img src='"+ruta+"destinos.jpg' alt='destinos' name='destinos' width='95' height='31' border='0' id='destinos' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('destinos','','"+ruta+"destinos_p.jpg',1)\" onclick='window.location=\"destinosGranada.html\"' style='cursor:pointer'></td>");
		document.write ("<td><img src='"+ruta+"grupos.jpg' alt='grupos' name='grupos' width='95' height='31' border='0' id='grupos' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('grupos','','"+ruta+"grupos_p.jpg',1)\" onclick='window.location=\"gruposViajes.html\"' style='cursor:pointer'></td>");
        document.write ("<td><img src='"+ruta+"ofertas.jpg' alt='ofertas' name='ofertas' width='95' height='31' border='0' id='ofertas' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('ofertas','','"+ruta+"ofertas_p.jpg',1)\" onclick='window.location=\"ofertas.php\";' style='cursor:pointer'></td>");
        document.write ("<td><img src='"+ruta+"servicios.jpg' alt='servicios' name='servicios' width='95' height='31' border='0' id='servicios' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('servicios','','"+ruta+"servicios_p.jpg',1)\" onclick='window.location=\"serviciosCCI.html\"' style='cursor:pointer'></td>");
        document.write ("<td><img src='"+ruta+"eventos.jpg' alt='eventos' name='eventos' width='95' height='31' border='0' id='eventos' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('eventos','','"+ruta+"eventos_p.jpg',1)\" onclick='window.location=\"eventos.php\"' style='cursor:pointer'></td>");
        document.write ("<td><img src='"+ruta+"noticias.jpg' alt='noticias' name='noticias' width='95' height='31' border='0' id='noticias' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('noticias','','"+ruta+"noticias_p.jpg',1)\" onclick='window.location=\"noticias.php\"' style='cursor:pointer'></td>");
		document.write ("<td><img src='"+ruta+"contacto.jpg' alt='contacta' name='contacta' width='95' height='31' border='0' id='contacta' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('contacta','','"+ruta+"contacto_p.jpg',1)\" onclick='window.location=\"contacto.html\";' style='cursor:pointer'></td>");
		document.write ("</tr></table>");
		//Ahora ponemos el boton de la seccion en la que estemos como pulsado
		if (seccion!="index") document.getElementById(seccion).src=""+ruta+""+seccion+"_p.jpg";
	}
	function menuGrupos () {
		document.write ("<a href='gruposViajes.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Viajes de Incentivos</a><br>");
		document.write ("<a href='accionesPromocionales.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Acciones Promocionales</a><br>");		
		document.write ("<a href='gruposConferenciasConvenc.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Conferencias/Convenciones</a><br>");
		document.write ("<a href='gruposCulturales.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Grupos Culturales</a><br>");
	}
	function menuDestinos() {		
		document.write ("<a href='destinosGranada.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Granada</a><br>");
		document.write ("<a href='destinosSierra.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Sierra Nevada</a><br>");
		document.write ("<a href='destinosGuadix.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Guadix</a><br>");
		document.write ("<a href='destinosAlpujarra.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Alpujarra</a><br>");
		document.write ("<a href='destinosCostaTropical.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Costa Tropical</a><br>");
		document.write ("<a href='destinosUbeda.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Úbeda y Baeza</a><br>");
		document.write ("<a href='destinosCordoba.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Córdoba</a><br>");
		document.write ("<a href='destinosSevilla.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Sevilla</a><br>");		
	}
	function menuServicios() {		
		document.write ("<a href='serviciosCCI.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Para Empresas/Agencias CCi</a><br>");
		document.write ("<a href='serviciosAgencias.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Para Agencias/Clientes</a><br>");
		document.write ("<a href='serviciosOtros.html' target='_self' class='enlaceIzq' onMouseOver='this.style.textDecoration=\"underline\";' onMouseOut='this.style.textDecoration=\"none\";'>Otros Servicios	</a><br>");
	}
	function escribeIdiomas () {
		
		document.write ("<td width='288px'><div align='right'><a href='ingles/index.php' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage(\"english version\",\"\",\"images/idiomas/english_version_p.gif\",0)'><img src='images/idiomas/english_version.gif' alt='English Version' name='english version' border='0' id='english version' /></a></div></td>");				
		document.write ("<td width='288px'><div align='center'><img src='images/voluta_inferior.gif'/></div></td>");            								
		document.write ("<td width='288px'><div align='left'><a href='aleman/index.php' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage(\"version aleman\",\"\",\"images/idiomas/deutsche_version_p.gif\",0)'><img src='images/idiomas/deutsche_version.gif' alt='Version Aleman' name='Deutsche Version' border='0' id='version aleman' /></a></div></td>");
	}