
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU GENERAL
//
// Parámetros:
//
//	nOpcionMenuSuperior: Indica la opción actualmente seleccionada en la primera barra del menú principal. En caso de que 
//                       este parámetro contenga el valor 0 se considera que no hay niguna opción seleccionada por el 
//                       usuario (HOME PRINCIPAL)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU GENERAL - FILA 2
//
// Parámetros:
//
//	nMenuInferior:       Indica cual es el menú desplegado en la segunda barra del menú principal. 
//
//	nOpcionMenuInferior: Indica la opción actualmente seleccionada en la segunda barra. En caso de que este parámetro contenga
//                       el valor 0 se considera que no hay niguna opción seleccionada por el usuario (HOME SECUDARIA)
//                       NOTA: ESTE PARAMETRO NO SE UTILIZA ACTUALMENTE.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU DE SECCIONES GLOBALES
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU SECUNDARIO DE LA WEB
//
// Parámetros:
//
//	nPosicion: Indica la posición donde se ubica en menu secundario
//              1 --> Cabecera página
//              2 --> Pie página
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU PRINCIPAL DE LA WEB SITUADO EN EL PIE DE LAS PAGINAS
//
// Parámetros:
//
//	nPosicion: Indica la posición donde se ubica en menu secundario
//              1 --> Cabecera página
//              2 --> Pie página
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ENLACES PIE DE PAGINA
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// RÓTULO SUSCRIPCIÓN
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// RÓTULO ACCESIBILIDAD
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// RÓTULO PIE DE PAGINA
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCIONES GENERALES
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                    FUNCIONES DE CAMBIO DE TAMAÑO DURANTE LA NAVEGACIÓN                                        //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                   FUNCIONES QUE ESTABLECEN LA HOJA DE ESTILO A UTILIZAR                                       //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE CAMBIA EL TAÑANO DE FUENTE DURANTE LA NAVEGACIÓN
//
// Parámetros:
//
//	nOpcion: Valor númerico que permite aumnetar o disminuir la fuente actual.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                            FUNCIONES QUE GESTIONAN LAS COOKIES                                                //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//-------------------------------------------------------------------------------------------------------------------------------//



//
//Definición de constantes generales.
//
var OPCION_MENU_HOME = 0;
var OPCION_MENU_CONSELLERIA = 1;
var OPCION_MENU_ECONOMIA = 2;
var OPCION_MENU_HACIENDA = 3;
var OPCION_MENU_TRABAJO = 4;
var OPCION_MENU_TRIBUTOS = 5;
var OPCION_MENU_GENERALES = 6;

var AUMENTAR_FUENTE = 1;
var DISMINUIR_FUENTE = -1;
var MAX_FUENTE = 3;

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU GENERAL
//
// Parámetros:
//
//	nOpcionMenuSuperior: Indica la opción actualmente seleccionada en la primera barra del menú principal. En caso de que 
//                       este parámetro contenga el valor 0 se considera que no hay niguna opción seleccionada por el 
//                       usuario (HOME PRINCIPAL)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function MenuGeneral(nOpcionMenuSuperior)
{
	//Definición de constantes del menú.
	var ESPACIO_SUPERIOR = 7;
	var ESPACIO_INFERIOR = 5;
	var OPCIONES_MENU = 8;

	var ENLACE_OPCION_CONSELLERIA = "subhome_LaConselleria_v.htm";
	var ENLACE_OPCION_ECONOMIA = "subhome_Economia_v.htm";
	var ENLACE_OPCION_HACIENDA = "subhome_Hacienda_v.htm";
	var ENLACE_OPCION_TRABAJO = "subhome_Trabajo_v.htm";
	var ENLACE_OPCION_TRIBUTOS = "subhome_Tributos_v.htm";
	var ENLACE_OPCION_GENERALES = "subhome_ServiciosGenerales_v.htm";
	var ENLACE_OPCION_NOTICIAS = "LaConselleria_InfoGeneral_NotasPrensa_v.htm";
	var ENLACE_OPCION_NOVEDADES= "home_v.htm#novedades";

	var TEXTO_OPCION_CONSELLERIA = "La Conselleria";
	var TEXTO_OPCION_ECONOMIA = "Economia";
	var TEXTO_OPCION_HACIENDA = "Hisenda";
	var TEXTO_OPCION_TRABAJO = "Treball";
	var TEXTO_OPCION_TRIBUTOS = "Portal Tributari";
	var TEXTO_OPCION_GENERALES = "Servicis Generals";
	var TEXTO_OPCION_NOTICIAS = "Notícies";
	var TEXTO_OPCION_NOVEDADES = "Novetats";
	
	var IMAGEN_SEPARADOR = "http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_blanca.gif";

	// Definición de la tabla MENU
	document.write("<table width='753' border='0' align='right' cellpadding='0' cellspacing='0'>");
	
	//
	// Fila de separación superior.
	//

	document.write("<tr>");

	for (i = 1; i <= OPCIONES_MENU * 2; i++) {

		if (i == ((nOpcionMenuSuperior * 2) - 1))
			cabeceraOpcionSeleccionada(ESPACIO_SUPERIOR);
		else
			document.write("<td height='" + ESPACIO_SUPERIOR + "' valign='bottom'></td>");		
	}
	
	document.write("</tr>");

	//
	// FILA OPCIONES MENU
	//
	document.write("<tr>");

	 // LA CONSELLERIA
	if (nOpcionMenuSuperior == 1)
		document.write("<td width='80' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_CONSELLERIA + "' class='menu_principal'>" + TEXTO_OPCION_CONSELLERIA + "</a></span></div></td>");
	else
		document.write("<td width='80'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_CONSELLERIA + "' class='menu_principal'>" + TEXTO_OPCION_CONSELLERIA + "</a></span></div></td>");

	document.write("<td width='20'><div align='center'><span class='menu_principal'><img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='10' /></span></div></td>");

	// ECONOMIA
	if (nOpcionMenuSuperior == 2)
		document.write("<td width='60' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_ECONOMIA + "' class='menu_principal'>" + TEXTO_OPCION_ECONOMIA + "</a></span></div></td>");
	else
		document.write("<td width='60'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_ECONOMIA + "' class='menu_principal'>" + TEXTO_OPCION_ECONOMIA + "</a></span></div></td>");
    
	document.write("<td width='20'><div align='center'><span class='menu_principal'><img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='10' /></span></div></td>");
    
	// HACIENDA
	if (nOpcionMenuSuperior == 3)
		document.write("<td width='60' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_HACIENDA + "' class='menu_principal'>" + TEXTO_OPCION_HACIENDA + "</a></span></div></td>");
	else
		document.write("<td width='60'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_HACIENDA + "' class='menu_principal'>" + TEXTO_OPCION_HACIENDA + "</a></span></div></td>");    
	
	document.write("<td width='20'><div align='center'><span class='menu_principal'><img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='10' /></span></div></td>");
    
	// EMPLEO
	if (nOpcionMenuSuperior == 4)
		document.write("<td width='55' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_TRABAJO + "' class='menu_principal'>" + TEXTO_OPCION_TRABAJO + "</a></span></div></td>");
     else
		document.write("<td width='55'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_TRABAJO + "' class='menu_principal'>" + TEXTO_OPCION_TRABAJO + "</a></span></div></td>");	
	
	document.write("<td width='20'><div align='center'><span class='menu_principal'><img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='10' /></span></div></td>");

	// TRIBUTOS
	if (nOpcionMenuSuperior == 5)  
		document.write("<td width='100' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_TRIBUTOS + "' class='menu_principal'>" + TEXTO_OPCION_TRIBUTOS + "</a></span></div></td>");
	else
	    document.write("<td width='100'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_TRIBUTOS + "' class='menu_principal'>" + TEXTO_OPCION_TRIBUTOS + "</a></span></div></td>");

	document.write("<td width='20'><div align='center'><span class='menu_principal'><img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='10' /></span></div></td>");

	// SERVICIOS GENERALES
	if (nOpcionMenuSuperior == 6)
		document.write("<td width='110' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_GENERALES + "' class='menu_principal'>" + TEXTO_OPCION_GENERALES + "</a></span></div></td>");
	else
		document.write("<td width='110'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_GENERALES + "' class='menu_principal'>" + TEXTO_OPCION_GENERALES + "</a></span></div></td>");
    
        document.write("<td width='20'><div align='center'><span class='menu_principal'><img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='10' /></span></div></td>");
        
        // NOTICIAS
	if (nOpcionMenuSuperior == 7)
		document.write("<td width='60' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_NOTICIAS + "' class='menu_principal'>" + TEXTO_OPCION_NOTICIAS + "</a></span></div></td>");
	else
		document.write("<td width='60'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_NOTICIAS + "' class='menu_principal'>" + TEXTO_OPCION_NOTICIAS + "</a></span></div></td>");

        document.write("<td width='20'><div align='center'><span class='menu_principal'><img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='10' /></span></div></td>");
        
        // NOVEDADES
	if (nOpcionMenuSuperior == 8)
		document.write("<td width='70' bgcolor='#F1F1F1'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_NOVEDADES + "' class='menu_principal'>" + TEXTO_OPCION_NOVEDADES + "</a></span></div></td>");
	else
		document.write("<td width='70'><div align='center'><span class='menu_principal'><a href='" + ENLACE_OPCION_NOVEDADES + "' class='menu_principal'>" + TEXTO_OPCION_NOVEDADES + "</a></span></div></td>");
  
    
    
	document.write("<td>&nbsp;</td>");
  
	document.write("</tr>");
 
	//
	// Fila de separación inferior.
	//
 	document.write("<tr>");
	
	for (i = 1; i <= OPCIONES_MENU * 2; i++) {

		if (i == ((nOpcionMenuSuperior * 2) - 1))
			document.write("<td height='" + ESPACIO_INFERIOR + "' valign='bottom' bgcolor='#F1F1F1'></td>");
		else
			document.write("<td height='" + ESPACIO_INFERIOR + "' valign='bottom'></td>");		
	}	

 	document.write("</tr>");

	//Fin tabla MEMU
	document.write("</table>");
}

function cabeceraOpcionSeleccionada(ESPACIO_SUPERIOR)
{
	
	document.write("<td height='" + ESPACIO_SUPERIOR + "' valign='bottom'>");
	document.write("<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#F1F1F1'>");
	document.write("<tr>");
	document.write("<td width='50%'><img src='http://portales.gva.es/c_economia/web/imagenes/img_muescaizq_menuselec.gif' alt='' width='5' height='2' /></td>");
	document.write("<td width='50%'><div align='right'><img src='http://portales.gva.es/c_economia/web/imagenes/img_muescader_menuselec.gif' alt='' width='5' height='2' /></div></td>");
	document.write("</tr>");
	document.write("</table></td>");
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU GENERAL - FILA 2
//
// Parámetros:
//
//	nMenuInferior:       Indica cual es el menú desplegado en la segunda barra del menú principal. 
//
//	nOpcionMenuInferior: Indica la opción actualmente seleccionada en la segunda barra. En caso de que este parámetro contenga
//                       el valor 0 se considera que no hay niguna opción seleccionada por el usuario (HOME SECUDARIA)
//                       NOTA: ESTE PARAMETRO NO SE UTILIZA ACTUALMENTE.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function SubMenuGeneral(nMenuInferior, nOpcionMenuInferior)
{
	
	var IMAGEN_SEPARADOR = "http://portales.gva.es/c_economia/web/imagenes/img_lineasep_menu_gris.gif";
	
	
	document.write("<table width='753' border='0' align='right' cellpadding='0' cellspacing='0'>");
	document.write("<tr><td><span class='menu_principal'>");

	switch (nMenuInferior) {
		
		// LA CONSELLERIA
		case 1:
			document.write(" <a href='LaConselleria_InfoGeneral_v.htm'>Informació General</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='home_TramitesAyudas_v.htm'>Servicis i Tràmits</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='home_Publicaciones_v.htm'>Publicacions</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='home_Modelos_v.htm'>Models</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("  <a href='home_Normativa_v.htm'>Normativa</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("  <a href='LaConselleria_InventarioEntes_v.htm'>Inventari de Ens</a> ");
	
		break;

		// ECONOMIA
		case 2:
			document.write("<a href='Economia_InfoGeneral_v.htm'>Informació General</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");		
			document.write(" <a href='Economia_TramitesAyudas_v.htm'>Tràmits i Ajudes</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='Economia_Publicaciones_v.htm'>Publicacions</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='Economia_Modelos_v.htm'>Models</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='Economia_InfoGeneral_FondosE_PRegCohUE_v.htm'>Fons Europeus</a> ");
			
		break;

		// HACIENDA
		case 3:			
			<!--document.write(" <a href='Hacienda_BeneficiosFiscales2007_indice_v.htm'>Beneficis Fiscals 2007</a> ");-->
<!--			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");-->
			document.write(" <a href='Hacienda_Beneficios_Fiscales_v.htm'>Beneficis Fiscals 2010</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='Hacienda_Certificados_v.htm'>Certificats de IRPF</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
				document.write(" <a href='Hacienda_PresupuestosAnteriores_v.htm'>Pressupostos Anuals</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write(" <a href='Hacienda_Publicaciones_v.htm'>Publicacions</a> ");
		
		break;

		// EMPLEO
		case 4:
			document.write("<a href='Trabajo_InfoGeneral_v.htm'>Informació General</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='http://www.gva.es/ListadoArbolHome/htdocs/redirector.jsp?buscador=tramites&buscar=buscar&pal=21.02&activo=on&chidioma=VA' target='_blank'>Servicis, Tràmits i Ajudes</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='Trabajo_Publicaciones_v.htm'>Publicacions</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='Trabajo_Modelos_v.htm'>Models</a> ");
  		    document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='Trabajo_InfoGeneral_REA_v.htm'>REA</a> ");
		break;

		// TRIBUTOS
		case 5:
			document.write("<a href='Tributos_InfoGeneral_v.htm'>Informació General</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='Tributos_Servicios_sin_v.htm'>Servicis sense certificat digital</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");			
			document.write("<a href='Tributos_Servicios_con_v.htm'>Servicis amb certificat digital</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");			
			document.write("<a href='Tributos_Impuestos_v.htm'>Impostos en línia</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='Tributos_Modelos_Tributarios_v.htm'>Models Tributaris</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='Tributos_Impuestos_Declaraciones_Tasas_v.htm'>Taxes</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='home_Normativa_Monografias_Tributaria_v.htm'>Normativa</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='Tributos_Novedades_v.htm'>Novetats</a> ");	
		break;

		// SERVICIOS GENERALES
		case 6:
			document.write("<a href='ServiciosGenerales_InfoGeneral_v.htm'>Informació General</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='http://www.gva.es/ListadoArbolHome/htdocs/redirector.jsp?buscador=tramites&buscar=buscar&pal=07.11&activo=on&chidioma=VA' target='_blank'>Servicis, Tràmits i Ajudes</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='ServiciosGenerales_InfoGeneral_Comision_Memorias_v.htm'>Publicacions</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='ServiciosGenerales_InfoGeneral_Comision_Modelos_v.htm'>Models</a> ");
			document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='12' />");
			document.write("<a href='ServiciosGenerales_InfoGeneral_Junta_Normativa_v.htm'>Normativa</a> ");
		break;

	}

	document.write("</span></td></tr>");
	document.write("</table>");
	
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU DE SECCIONES GLOBALES
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function MenuSeccionesGlobales()
{

	var ENLACE_OPCION_TRAMITES = "home_TramitesAyudas_v.htm";
	var ENLACE_OPCION_PUBLICACIONES = "home_Publicaciones_v.htm";
	var ENLACE_OPCION_MODELOS = "home_Modelos_v.htm";
	var ENLACE_OPCION_NORMATIVA = "home_Normativa_v.htm";
	var ENLACE_OPCION_ENLACES = "home_EnlacesInteres_v.htm";
	var ENLACE_OPCION_CONTACTO = "LaConselleria_InfoGeneral_Contactar_v.htm#contactar";
	var ENLACE_OPCION_TELEADMINISTRACION = "home_AdminElectronica_v.htm";
	var ENLACE_OPCION_DEMO = "home_DemoWeb_v.htm";
		var ENLACE_OPCION_QUEJAS = "home_Quejas_Sugerencias_v.htm";
	
	document.write("<tr><td class='menu_enlaces_dir'>");
		document.write("<a href='" + ENLACE_OPCION_TRAMITES + "'>Ajudes i altres procediments</a>");
		document.write("<a href='" + ENLACE_OPCION_PUBLICACIONES + "'>Publicacions</a>");
		document.write("<a href='" + ENLACE_OPCION_MODELOS + "'>Models</a>");
		document.write("<a href='" + ENLACE_OPCION_NORMATIVA + "'>Normativa</a>");
		// document.write("<a href='" + ENLACE_OPCION_ENLACES + "'>Enllaços d'interés</a>");
		document.write("<a href='" + ENLACE_OPCION_CONTACTO + "'>On podem atendre'l?</a>");
		document.write("<a href='" + ENLACE_OPCION_TELEADMINISTRACION + "'>Administració electrònica</a>");
		document.write("<a href='" + ENLACE_OPCION_DEMO + "'>Demostracions d'ús</a>");
		document.write("<a href='" + ENLACE_OPCION_QUEJAS + "'>Queixes i suggeriments</a>");
	document.write("</td></tr>");

}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU SECUNDARIO DE LA WEB
//
// Parámetros:
//
//	nPosicion: Indica la posición donde se ubica en menu secundario
//              1 --> Cabecera página
//              2 --> Pie página
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function MenuSecundario(nPosicion)
{

	var IMAGEN_SEPARADOR, ALTURA_COL;
	
	if (nPosicion == 1) {
		IMAGEN_SEPARADOR = "http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_blanca.gif";
		ALTURA_COL = 10;
	} else {
		IMAGEN_SEPARADOR = "http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_azul.gif"; 
		ALTURA_COL = 11;
	}

	//Opción VOLVER HOME
	document.write("<a href='home_v.htm'>inici</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");
	
	//Opción MAPA WEB
	document.write("<a href='home_MapaWeb_v.htm'>mapa web</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");	

	//Opción FAQ'S
// 06-06-06	document.write("<a href='#'>FAQ'S</a>");
// 06-06-06 document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");	

	//Opción EMAIL
	document.write("<a href='home_Email_v.htm'>email</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");	

	//Opción HACER PAGINA INICIO
	document.write("<a href='#' onclick='javascript:paginaInicio(this);' style='cursor: hand'>fes pàg. d'inici</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");	

	//Opción AÑADIR A FAVORITOS
	document.write("<a href='#' onCLick='javascript:favoritos();'>afegir a favorit</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");	

	//Opción INTRANET
	document.write("<a href='home_intranet_v.htm'>intranet</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");	

	if (nPosicion == 2) {
		//Opción AYUDANOS A MEJORAR
		document.write("<a href='home_ayudanos_mejorar_v.htm'>ajuda'ns a millorar</a>");
		document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");	
		
		//Opción ESTADÍSTICAS
		document.write("<a href='http://caniche.gva.es/webalizer/ceconomia/' target='_blank'>estad&iacute;stiques</a>");
		document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height='" + ALTURA_COL + "' />");
	}

	//Opción VALENCIANO (CASTELLANO)
	document.write("<span class='texto1_10r_n_FFF'><a href='#' onClick='javascript:MM_CambiaIdioma();'>castellà</a><img src='http://portales.gva.es/c_economia/web/imagenes/spacer.gif' alt='' width='5' height='5' /><img src='http://portales.gva.es/c_economia/web/imagenes/spacer.gif' alt='' width='5' height='5' /></span>");
	
}

function MM_CambiaIdioma() 
{
	var cadena=new String();	 
	var cadena_final=new String();	 

	cadena=document.location.href;
	//print(cadena);
	cadena_final=cadena.replace(/_c.htm/g,"_v.htm");
	//print(cadena);
	if (cadena_final == cadena)
	{
		cadena_final=cadena.replace(/_v.htm/g,"_c.htm");
	}
	if (cadena_final == cadena)
	{
		alert("Falló el cambio de página.");
	}
	else
	{
		document.location.href=cadena_final;
	}	
}

function paginaInicio(obj)
{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://portales.gva.es/c_economia');
}

function favoritos()
{
	window.external.addFavorite('http://portales.gva.es/c_economia','Conselleria de Economia, Hacienda y Empleo');
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE VISUALIZA EL MENU PRINCIPAL DE LA WEB SITUADO EN EL PIE DE LAS PAGINAS
//
// Parámetros:
//
//	nPosicion: Indica la posición donde se ubica en menu secundario
//              1 --> Cabecera página
//              2 --> Pie página
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function MenuGeneralReducido()
{

	var IMAGEN_SEPARADOR = "http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_azul.gif";
	
	//Opción LA CONSELLERIA
	document.write("<a href='subhome_LaConselleria_v.htm'>La Conselleria</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height=11' />");

	//Opción ECONOMIA
	document.write("<a href='subhome_Economia_v.htm'>Economia</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height=11' />");

	//Opción HACIENDA
	document.write("<a href='subhome_Hacienda_v.htm'>Hisenda</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height=11' />");

	//Opción TRABAJO
	document.write("<a href='subhome_Trabajo_v.htm'>Treball</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height=11' />");

	//Opción TRIBUTOS
	document.write("<a href='subhome_Tributos_v.htm'>Portal Tributari</a>");
	document.write("<img src='" + IMAGEN_SEPARADOR + "' alt='' width='11' height=11' />");

	//Opción TRIBUTOS
	document.write("<a href='subhome_ServiciosGenerales_v.htm'>Servicis Generals  </a>");

}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ENLACES PIE DE PAGINA
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function EnlacesInteres()
{

	document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");
	
	document.write("<tr>");
	
	document.write("<td width='66'><a href='http://www.gva.es' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_gva.gif' alt='Generalitat - www.gva.es' width='66' height='35' border='0' /></a></td>");
	document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
        document.write("<td width='42'><a href='http://www.ive.es' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_ive.gif' alt='Institut Valenci&agrave; d&#8217;Estad&iacute;stica - www.ive.es' width='42' height='35' border='0' /></a></td>");
	document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
	document.write("<td width='50'><a href='http://www.gva.es/ivf/' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_ivf_v.gif' alt='Institut Valenci&agrave; de Finances - www.gva.es/ivf/' border='0' /></a></td>");
	document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
	document.write("<td width='34'><a href='http://www.ces.gva.es/cs_/index.htm' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_ces.gif' alt='Comit&eacute; Econ&ograve;mic i Social de la Comunitat Valenciana - www.ces.gva.es/cs_/index.htm' width='34' height='35' border='0' /></a></td>");
	document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
	document.write("<td width='59'><a href='http://www.servef.es' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_servef.gif' alt='Servei Valenci&agrave; d&#8217;Ocupaci&oacute; y Formaci&oacute; - www.servef.es' width='59' height='35' border='0' /></a></td>");
   	document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
	document.write("<td width='27'><a href='http://www.cac.es/home?languageId=5' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_cacpie.gif' alt='Ciutat de les Arts i les Ciencies' width='27' height='27' border='0' /></a></td>");
	document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
	document.write("<td width='124'><a href='http://www.invest-vci.com/es/' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_vci.gif' alt='Valencian Community Investments' width='124' height='30' border='0' /></a></td>");
	
	document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
	document.write("<td width='35'><a href='http://www.invassat.gva.es/' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_invassat.gif' alt='Invassat'  border='0' /></a></td>");
	 document.write("<td width='15'><img src='http://portales.gva.es/c_economia/web/imagenes/img_lineaseparadora_discont.gif' alt='' width='15' height='36' /></td>");
 document.write("<td width='35'><a href='http://portales.gva.es/c_economia/web/TDC/html/TDC_v.htm' target='_blank'><img src='http://portales.gva.es/c_economia/web/TDC/imagenes/tdc-logo-1.gif' alt='Tribunal de Defensa de la Compètencia'  border='0' /></a></td>");
   	document.write("<td>&nbsp;</td>");
   	document.write("<td>&nbsp;</td>");

	document.write("</tr>");

	document.write("</table>");
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// RÓTULO SUSCRIPCIÓN
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function RotuloSuscripcion()
{
	
		document.write("<div align='right' align='right' valign='middle' class='breadcrumbs'><span class='texto1_10_666666'><a href='Tributos_Servicios_Suscribase_v.htm' alt='Suscr&iacute;base al Portal Tributario'> subscriviu-vos-hi al portal tributario </a> <a href='Tributos_Servicios_RSS_v.htm'><img src='http://portales.gva.es/c_economia/web/imagenes/rss_icon.jpg' alt='Suscr&iacute;base al Portal Tributario' border='0' /></a></span></div>");
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// RÓTULO ACCESIBILIDAD
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function RotuloAccesibilidad()
{
	document.write("<div align='right'><span class='texto1_10_666666'><a href='http://www.tawdis.net' target='_blank'><img src='http://portales.gva.es/c_economia/web/imagenes/taw_2_A.png' alt='Validat amb TAW' width='78' height='19' border='0' /></a></span></div>");
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// RÓTULO PIE DE PAGINA
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function RotuloPiePagina()
{
	document.write("<div align='center' class='texto1_10_FFFFFF'>&copy; Conselleria d'Economia, Hisenda i Ocupació - Generalitat 2006 </div>");
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCIONES GENERALES
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function paginaInicio(obj)
{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://portales.gva.es/c_economia');
}

function favoritos()
{
	window.external.addFavorite('http://portales.gva.es/c_economia','Conselleria de Economia, Hacienda y Empleo');
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                    FUNCIONES DE CAMBIO DE TAMAÑO DURANTE LA NAVEGACIÓN                                        //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var EstiloActual = 0;
var today = new Date()
var expires = new Date();
 
// Prevenimos el bug de Navigator 2.0, Macintosh
fixDate(expires);
expires.setTime(expires.getTime() + 365 * 24 * 60 * 60 * 1000);

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                   FUNCIONES QUE ESTABLECEN LA HOJA DE ESTILO A UTILIZAR                                       //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function EstableceEstilo()
{
	var NombreHojaEstilo;
	
	EstiloActual = parseInt(ConsultaEstilo());

	NombreHojaEstilo = "estilo" + EstiloActual + ".css";
	
	document.write("<link href='../css/" + NombreHojaEstilo + "' rel='stylesheet' type='text/css' />");
}

function ConsultaEstilo(){
	
	// Comprobamos que se aceptan coockies
	 setCookie("Existencia", "1", expires,"/");
	
	if (getCookie("Existencia"))
	{
		var Hoja = getCookie("HojaEstilo");

		if (Hoja==null || Hoja == "" || Hoja=="undefined"){
			Hoja = 1;
			setCookie("HojaEstilo", Hoja, expires, "/");
		}
	}
	else{
		// Si no hay coockies testeamos los parámetros
		Hoja = EstiloPorParametro();
		// Valor predeterminado
		if (Hoja == 0) Hoja = 1;
	}

	return Hoja;

}

function EstiloPorParametro()
{
	var ParametrosHTTP = location.search.substring(1,location.search.length);
	var arrVariables = ParametrosHTTP.split("&");
	var Respuesta = 0;

	for (i=0; i<arrVariables.length; i++) {
	  	arrVariableActual = arrVariables[i].split("=");
		if (arrVariableActual[0] == "estilo") Respuesta = parseInt(arrVariableActual[1]);
	}

	return Respuesta;
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION QUE CAMBIA EL TAÑANO DE FUENTE DURANTE LA NAVEGACIÓN
//
// Parámetros:
//
//	nOpcion: Valor númerico que permite aumnetar o disminuir la fuente actual.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function cambiaFuente(nOpcion)
{

	EstiloActual = EstiloActual + nOpcion;

	// Determinación del nuevo estilo
	if (EstiloActual > MAX_FUENTE) EstiloActual = MAX_FUENTE;
	if (EstiloActual < 1) EstiloActual = 1;

	// Grabamos el nuevo estilo y cargamos la página
	setCookie("HojaEstilo", EstiloActual, expires,"/");

	if (getCookie("HojaEstilo"))
	{
		window.self.location.reload();
	} else {
	
		alert("Es necesario activar las cookies de tu navegador para que el cambio sea permanente.");
		cadena = new String(window.self.location);
		str = cadena.toString();
		if (str.indexOf("?")==-1) {
			str = str + "?estilo=" + EstiloActual;
		} else {
			str = str.substr(0,str.indexOf("?")) + "?estilo=" + EstiloActual;
		}

		window.location = str;
	}

}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                            FUNCIONES QUE GESTIONAN LAS COOKIES                                                //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function setCookie(nombre, valor, expires, path, domain, secure) {
 
	var curCookie = nombre + "=" + escape(valor) +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
	
	document.cookie = curCookie;	
}

function getCookie(nombre) {

	var dc = document.cookie;
	var prefijo = nombre + "=";
	var comienzo = dc.indexOf("; " + prefijo);

	if (comienzo == -1) {
		comienzo = dc.indexOf(prefijo);
	 	if (comienzo != 0) return null;
	} else
		 comienzo += 2;

	var final = document.cookie.indexOf(";", comienzo);
	if (final == -1) final = dc.length;

	return unescape(dc.substring(comienzo + prefijo.length, final));
}

function fixDate(date) {
var base = new Date(0);
var skew = base.getTime();
if (skew > 0)
date.setTime(date.getTime() - skew);
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//              FUNCIONES PARA CAMBIAR UNA IMAGEN DEL BANNER EN X SEGUNDOS                                               //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



tiempo_cambio=3500;

/*var el_fondo = ["http://portales.gva.es/c_economia/web/imagenes/FERIAVALENCIA_v.gif","http://portales.gva.es/c_economia/web/imagenes/INMASFORUM_v.gif", "http://portales.gva.es/c_economia/web/imagenes/AGORA_v.gif"];
var el_enlace = ["http://laboralia.feriavalencia.com","http://www.inmasforum.org", "http://www.agoraprevencion.com"];
var el_alt = ["Feria València - Laboralia","INMASFORUM", "AGORA"];


var el_fondo_2 = ["http://portales.gva.es/c_economia/web/imagenes/bnr_fondoseu2_v.gif", "http://portales.gva.es/c_economia/web/imagenes/banner_tdc_v.gif", "http://portales.gva.es/c_economia/web/imagenes/bnr_Siniestralidad_Laboral_v.gif","http://portales.gva.es/c_economia/web/imagenes/bnr_convenios.gif","http://portales.gva.es/c_economia/web/imagenes/logoORP2010_v.gif"]
var el_enlace_2 = ["Economia_InfoGeneral_FondosE_v.htm", "TDC_v.htm", "Trabajo_InfoGeneral_SeguridadSalud_c.htm","http://csi.ha.gva.es/kiosko/Convenios_Usuario.principal?el_idioma=VAL","http://www.orpconference.org/2010/"];
var el_alt_2 = ["Fons Europeus","Tribunal de Defensa de la Competència", "Sinistralitat Laboral Pla 2009-2010","Convenis Col.lectius", "VIII Congrés Internacional de Prevenció de Riscos Laborals"];

*/



tiempo_cambio=3500;

var el_fondo = ["http://portales.gva.es/c_economia/web/imagenes/PAVACE_ban_v.png","http://portales.gva.es/c_economia/web/imagenes/bnr_fondoseu2_v.gif","http://portales.gva.es/c_economia/web/imagenes/logoORP2010_v.gif"];
var el_enlace = ["http://portales.gva.es/c_economia/web/pdf/PAVACE_VALENCIANO.pdf","Economia_InfoGeneral_FondosE_v.htm","http://www.orpconference.org/2010/"];
var el_alt = ["PAVACE II","Fons Europeus","VIII Congrés Internacional de Prevenció de Riscos Laborals"];


var el_fondo_2 = ["http://portales.gva.es/c_economia/web/imagenes/bnr_Siniestralidad_Laboral_v.gif","http://portales.gva.es/c_economia/web/imagenes/bnr_convenios_v.gif","http://portales.gva.es/c_economia/web/imagenes/bnr_gripe_v.png"]
var el_enlace_2 = ["Trabajo_InfoGeneral_SeguridadSalud_v.htm","http://csi.ha.gva.es/kiosko/Convenios_Usuario.principal?el_idioma=VAL","Trabajo_InfoGeneral_SeguridadSalud_Gripe_A_v.htm"];
var el_alt_2 = ["Sinistralitat Laboral Pla 2009-2010","Convenis Col.lectius","Pla de actuaci&oacute; per a empreses. Pand&egrave;mia de Grip A"];


function fonds(vel_fondo, vel_enlace, vel_alt, elemento, imagen){

var variable_vel_fondo = vel_fondo.split(",");

for (id_for=0;id_for<variable_vel_fondo.length;id_for++){
	setTimeout("cambia_imagen("+id_for+",'"+vel_fondo+"','"+vel_enlace+"','"+vel_alt+"','"+elemento+"','"+imagen+"')", tiempo_cambio*id_for);
	setTimeout("intervalle("+id_for+",'"+vel_fondo+"','"+vel_enlace+"','"+vel_alt+"','"+elemento+"','"+imagen+"')", tiempo_cambio*id_for);
}


}

function intervalle(nombre, vel_fondo, vel_enlace, vel_alt, elemento, imagen){

var variable_vel_fondo = vel_fondo.split(",");
setInterval("cambia_imagen("+nombre+",'"+vel_fondo+"','"+vel_enlace+"','"+vel_alt+"', '"+ elemento +"','"+imagen+"' )", tiempo_cambio*variable_vel_fondo.length);



}
function cambia_imagen(nombre2,vel_fondo,vel_enlace, vel_alt, elemento, imagen){


	document.getElementById(imagen).src = vel_fondo.split(",")[nombre2];
	document.getElementById(elemento).href = vel_enlace.split(",")[nombre2];
	document.getElementById(imagen).alt = vel_alt.split(",")[nombre2];


}

function calcHeight()
{
  //find the height of the internal page
  var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight;
the_height = the_height + 50;
  //change the height of the iframe
  document.getElementById('the_iframe').height=the_height;
}

/***************
/ Función para que aparezcan las banderas del Fondo Social 
***************/

function mostrar_banderas_fondo_social()
{
	var URL = window.location.href
var regex = /Economia/;

if (regex.test(URL))
{document.write("<img src='http://portales.gva.es/c_economia/web/imagenes/Bnr_Fondos_Estructurales_v.png' alt='Uni&oacute;n Europea' border='1'  />");}
else
{
	document.write("<table width='100%'><tr><td align='center'><img src='http://portales.gva.es/c_economia/web/imagenes/logo_FEDER_val_texto_3.gif' alt='Uni&oacute;n Europea' border='0'  /></td></tr><tr><td height='100%' align='center' ><div class='bandera_fondos_europeos_banner'>UNI&Oacute; EUROPEA</div><div class='bandera_fondos_europeos_banner_peque'>FONS EUROPEU DE DESENVOLUPAMENT <br />REGIONAL<br/>''Una manera de fer Europa''</div></td></tr></table>");
}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function url_modelo(sim)
{
var fecha = new Date();
var contador = fecha.getTime();
var url = "";
document.SARA.ID_SIMUL.value=sim;
url = "https://atenea.ha.gva.es/sara/servlet/com.hacienda.pdf.pdf417.ServletRecogidaDatosSimulador/"+contador;
document.SARA.method = "POST";
document.SARA.action = url;
document.SARA.target ="_BLANK";
document.SARA.submit();

}

function Funcion_Mostrar_Capas_Ocultas() { 
  var i,p,v,obj,args=Funcion_Mostrar_Capas_Ocultas.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) 
  	if (getElementById && ((obj=getElementById(args[i]))!=null)) { 
		v=args[i+2];
	    if (obj.style) 
		{ obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	    obj.visibility=v; }
}

function mostrar_leyenda_modelos() {
document.write("<table border='0' cellpadding='0' cellspacing='0' >");
document.write("<tr>");
document.write("<td height='20' class='texto2_11_666666'><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /><img src='../imagenes/ico_flecha2.gif' alt='' width='9' height='9' /> Llegenda iconogràfica  </td></tr>");
document.write("<tr>");
document.write("<td class='bordecajas2'><table width='95%' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>");
document.write("<tr>");
document.write("<td class='texto1_10_666666'>Situe el punter sobre cada icona per a conéixer el seu significat.</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td class='texto1_10_0B7AAE'><span class='texto2_11_666666'><img src='../imagenes/ico_flecha2.gif' alt='' width='9' height='9' /></span>descarregar models oficials</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='10' height='5' class='fondo_FFFFFF' /><img src='../imagenes/ico_descargadoc_rojo.gif' alt='Descarregar document' width='16' height='11' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa1','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa1','','hide') + "' /><span class='menu_principal'><img src='../imagenes/img_lineasep_menu_gris.gif' alt='' width='11' height='12' /></span><img src='../imagenes/ico_descargadoc_gris.gif' alt='Descarregar document' width='16' height='11' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa2','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa2','','hide') + "' /></td>");
document.write("</tr><tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td></tr>");
document.write("<tr>");
document.write("<td class='texto1_10_0B7AAE'><span class='texto2_11_666666'><img src='../imagenes/ico_flecha2.gif' alt='' width='9' height='9' /></span> servicis  </td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td></tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='10' height='5' class='fondo_FFFFFF' /><img src='../imagenes/ico_documento.gif' alt='Descarregar document' width='10' height='11' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa3','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa3','','hide') + "' /><span class='menu_principal'><img src='../imagenes/img_lineasep_menu_gris.gif' alt='' width='11' height='12' /></span><img src='../imagenes/ico_calculadora.gif' alt='Confecci&oacute; En L&iacute;nia' width='10' height='14' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa4','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa4','','hide') + "' /><span class='menu_principal'><img src='../imagenes/img_lineasep_menu_gris.gif' alt='' width='11' height='12' /></span><img src='../imagenes/ico_lotes.gif' alt='Lotes' width='17' height='15' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa5','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa5','','hide') + "' /></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td>");
document.write("</tr><tr>");
document.write("<td class='texto1_10_0B7AAE'><span class='texto2_11_666666'><img src='../imagenes/ico_flecha2.gif' alt='' width='9' height='9' /></span> informaci&oacute; </td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><div align='center'><img src='../imagenes/ico_prop.gif' alt='Informaci&oacute; del Procediment' width='20' height='11' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa6','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa6','','hide') + "' /><span class='menu_principal'><img src='../imagenes/img_lineasep_menu_gris.gif' alt='' width='11' height='12' /></span><img src='../imagenes/ico_faqs.gif' alt='FAQ's' width='27' height='11' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa7','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa7','','hide') + "' /><span class='menu_principal'><img src='../imagenes/img_lineasep_menu_gris.gif' alt='' width='11' height='12' /></span><img src='../imagenes/ico_lapiz.gif' alt='Instruccions d'Uso' width='7' height='16' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa8','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa8','','hide') + "' /><span class='menu_principal'><img src='../imagenes/img_lineasep_menu_gris.gif' alt='' width='11' height='12' /></span><img src='../imagenes/ico_manual.gif' alt='Manual d'usuari' width='21' height='14' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa9','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa9','','hide') + "' /><span class='menu_principal'><img src='../imagenes/img_lineasep_menu_gris.gif' alt='' width='11' height='12' /></span><img src='../imagenes/ico_gva.gif' alt='www.gva.es' width='47' height='11' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa10','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa10','','hide') + "' /></div></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td class='texto1_10_0B7AAE'><span class='texto2_11_666666'><img src='../imagenes/ico_flecha2.gif' alt='' width='9' height='9' /></span> altres </td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='10' height='5' class='fondo_FFFFFF' /><span class='texto1_10_0B7AAE'><img src='../imagenes/ico_novedad.gif' alt='NOVEDAD' width='9' height='9' onmouseover='"+Funcion_Mostrar_Capas_Ocultas('capa11','','show') + "' onmouseout='" + Funcion_Mostrar_Capas_Ocultas('capa11','','hide') + "' /></span></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='../imagenes/spacer.gif' alt='' width='5' height='5' /></td>");
document.write("</tr>");
document.write("</table></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td class='fondo_EEF4F9'><table width='160' height='250' border='0' align='center' cellpadding='0' cellspacing='0'>");

document.write("<tr>");
document.write("<td valign='top'>");

document.write("<div id='capa1'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><img src='../imagenes/ico_descargadoc_rojo.gif' alt='Descarregar document' width='16' height='11' /> <span class='rotulos_subrayados2'>Descarregar el Model Oficial</span><br />");
document.write("<font size='1' face='Verdana, Arial, Helvetica, sans-serif' class='texto1_10_333333'>");
document.write("Obtenci&oacute; gratu&iuml;ta del model oficial, sense despla&ccedil;aments i sense cost.<br /><br />Podreu omplir-lo, a m&agrave; o a trav&eacute;s del vostre ordinador, sense usar cap programa d'ajuda o simulador.<br /><br /></font></td> </tr> </table></div>");

document.write("<div id='capa2'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><p><img src='../imagenes/ico_descargadoc_gris.gif' alt='Descarregar document' width='16' height='11' /><span class='rotulos_subrayados2'>Descarregar l'Esborrany</span><br />                                            <span class='texto1_10_333333'>L'esborrany no ha de presentar-se en els Registres de l'administraci&oacute;. Orienta sobre les dades que l'administraci&oacute; sol&middot;licita en cada un dels procediments.</span></p></td></tr></table></div>");
			   
			   
document.write("<div id='capa3'><table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td valign='top'><img src='../imagenes/ico_documento.gif' alt='Descarregar document' width='10' height='11' /><span class='rotulos_subrayados2'>  Document </span><br />");
document.write("<span class='texto1_10_333333'>Document </span></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='capa4'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><img src='../imagenes/ico_calculadora.gif' alt='Confecci&oacute;n Online' width='10' height='14' /> <span class='rotulos_subrayados2'> Confecci&oacute; En L&iacute;nia </span><br />");
document.write("<span class='texto1_10_333333'>En els formularis en els quals apareix esta icona la Conselleria posa a la vostra disposici&oacute; una ajuda per a omplir el formulari i calcular, si &eacute;s el cas, l'import del valor que ha d'ingressar. <br />");
document.write(" <br />Si el model &eacute;s tributari,amb les dades que introdu&iuml;u es generar&agrave; un impr&eacute;s que, si l'accepteu, podreu presentar en les entitats financeres col&middot;laboradores en la recaptaci&oacute; de la Generalitat per a efectuar el pagament del tribut.</span></td></tr></table></div>");

document.write("<div id='capa5'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td valign='top'>");
document.write("<img src='../imagenes/ico_lotes.gif' alt='Lotes' width='17' height='15' /> <span class='rotulos_subrayados2'>");
document.write(" Grans Presentadors </span><br /><span class='texto1_10_333333'>Utilitats i ferramentes per a la presentaci&oacute; telem&agrave;tica per lots.</span></td></tr></table></div>");

document.write("<div id='capa6'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><img src='../imagenes/ico_prop.gif' alt='PROP' width='20' height='11' />");
document.write(" <span class='rotulos_subrayados2'> Portal PROP </span><br />");
document.write("<span class='texto1_10_333333'>Enlla&ccedil;a  amb el portal Prop que us proporciona  informaci&oacute; del procediment:  qui ha de presentar-lo, en quins terminis,  quina documentaci&oacute; es requerix,  informaci&oacute; addicional sobre  el tr&agrave;mit...</span></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='capa7'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><img src='../imagenes/ico_faqs.gif' alt='FAQ's' width='27' height='11' />");
document.write(" <span class='rotulos_subrayados2'> FAQ'S </span><br />");
document.write("<span class='texto1_10_333333'>Preguntes m&eacute;s freq&uuml;ents</span></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='capa8'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><img src='../imagenes/ico_lapiz.gif' alt='' width='7' height='16' /> <span class='rotulos_subrayados2'> Instruccions d'&uacute;s</span><br />");
document.write("<span class='texto1_10_333333'>Instruccions per a omplir les caselles dels seus formularis.</span></td></tr>");
document.write("</table></div>");

document.write("<div id='capa9'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr><td valign='top'><img src='../imagenes/ico_manual.gif' alt='' width='21' height='14' />");
document.write(" <span class='rotulos_subrayados2'> Manual d'usuari </span><br />");
document.write("<span class='texto1_10_333333'>Informaci&oacute; sobre com utilitzar la confecci&oacute; online del formulari.</span></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='capa10'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><img src='../imagenes/ico_gva.gif' alt='www.gva.es' width='47' height='11' /> ");
document.write("<span class='rotulos_subrayados2'> GVA.es </span><br />");
document.write("<span class='texto1_10_333333'>Enlla&ccedil;a amb l'explicaci&oacute; del tr&agrave;mit que proporciona el portal GVA en Xarxa.</span></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");

document.write("<div id='capa11'>");
document.write("<table width='95%' height='245' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("<tr>");
document.write("<td valign='top'><span class='texto1_10_0B7AAE'><img src='../imagenes/ico_novedad.gif' ");
document.write("alt='Novetat' width='9' height='9' /></span> <span class='rotulos_subrayados2'> Novetat </span><br />");
document.write("<span class='texto1_10_333333'>Novetat en la fitxa.</span></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");

document.write("</td>");
document.write("</tr>");	
document.write("</table>");	
document.write("</td>");
document.write("</tr>");	
document.write("</table>");
}