jQuery(function($) {
var timer;

var ServiciosInformacionAbierto = false;
var InformacionInteresAbierto = false;
var AtencionCiudadanoAbierto = false;
var infoInstitucionalAbierto = false;
var infoParticipacionAbierto = false;

var puntajeFuente = 1;

var iconCloseBar = "../images/icon-closearrow.png";

var iconOpenBar = "../images/icon-closearrow.png";

var imageHome = "url(../images/Fondos/cielo-a.jpg)";

var activarIframe = false;

var mostrarCreditos = false;


var d = new Date();		
var curr_hour = d.getHours();


/* Funciones para el Tool Tip */
function mouseoverActiontooltip(event)
{
     $("body").append("<p id='tooltip' class='fondoBlancoTransparente'>"+ this.title + "</p>");
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 0) + "px");
}

function mouseoutActiontooltip(event)
{
     $("#tooltip").remove();
}

function mousemoveActiontooltip(event)
{
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 0) + "px");
}

function mouseoverActiontooltipImage(event)
{
     $("body").append("<p id='tooltip'><img src="+ this.rel + "alt='tooltip image'></img></p>");
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 0) + "px");
}

function mouseoutActiontooltipImage(event)
{
     $("#tooltip").remove();
}

function mousemoveActiontooltipImage(event)
{
     $("#tooltip").css("left",(event.pageX + 20) + "px");
     $("#tooltip").css("top",(event.pageY - 0) + "px");
}

/* Funciones para el Slider de Imagenes */

function cambiarImagenNoche(){
	
	if(curr_hour <= 6 || curr_hour >= 18){	
		$('#image1').css({'background':'url("/PublishingImages/Fondos/home/fondo1b.jpg")'});
		$('#image1').css({'background-position':'top'});
		$('#image1').css({'background-repeat':'repeat-x'});
		
		$('#image1 div#fotoHead1').css({'background':'url("/PublishingImages/Encabezados/home/imagen1b.png")'});
		$('#image1 div#fotoHead1').css({'background-position':'left bottom'});
		$('#image1 div#fotoHead1').css({'background-repeat':'no-repeat'});
		
	}
	
}



function mostrarImagen1(event)
{
     $(".slide").css("visibility","hidden");
     $("#image1").css("visibility","visible");
     $("#image1").css({'opacity':'0'});
    $("#image1").animate({"opacity":1},300, "linear", null);
     $("ul.buttons li").removeClass("active");
    $("#image1").animate({"opacity":1},300, "linear", null);
     $("#button1").addClass("active");
     clearTimeout(timer);
     timer = setTimeout(eval("mostrarImagen2"),"10000");
    $("#image1").animate({"opacity":1},300, "linear", null);
}

function mostrarImagen2(event)
{
     $(".slide").css("visibility","hidden");
     $("#image2").css("visibility","visible");
     $("#image2").css({'opacity':'0'});
    $("#image2").animate({"opacity":1},300, "linear", null);
     $("ul.buttons li").removeClass("active");
    $("#image2").animate({"opacity":1},300, "linear", null);
     $("#button2").addClass("active");
     clearTimeout(timer);
     timer = setTimeout(eval("mostrarImagen3"),"10000");
    $("#image2").animate({"opacity":1},300, "linear", null);
}

function mostrarImagen3(event)
{
     $(".slide").css("visibility","hidden");
     $("#image3").css("visibility","visible");
     $("#image3").css({'opacity':'0'});
    $("#image3").animate({"opacity":1},300, "linear", null);
     $("ul.buttons li").removeClass("active");
    $("#image3").animate({"opacity":1},300, "linear", null);
     $("#button3").addClass("active");
     clearTimeout(timer);
     timer = setTimeout(eval("mostrarImagen4"),"10000");
    $("#image3").animate({"opacity":1},300, "linear", null);
}

function mostrarImagen4(event)
{
     $(".slide").css("visibility","hidden");
     $("#image4").css("visibility","visible");
     $("#image4").css({'opacity':'0'});
    $("#image4").animate({"opacity":1},300, "linear", null);
     $("ul.buttons li").removeClass("active");
    $("#image4").animate({"opacity":1},300, "linear", null);
     $("#button4").addClass("active");
     clearTimeout(timer);
     timer = setTimeout(eval("mostrarImagen5"),"10000");
    $("#image4").animate({"opacity":1},300, "linear", null);
}

function mostrarImagen5(event)
{
     $(".slide").css("visibility","hidden");
     $("#image5").css("visibility","visible");
     $("#image5").css({'opacity':'0'});
    $("#image5").animate({"opacity":1},300, "linear", null);
     $("ul.buttons li").removeClass("active");
    $("#image5").animate({"opacity":1},300, "linear", null);
     $("#button5").addClass("active");
     clearTimeout(timer);
     timer = setTimeout(eval("mostrarImagen1"),"10000");
    $("#image5").animate({"opacity":1},300, "linear", null);
}






/* Abrir Barra Servicios de Informacion */
function abrirServiciosInformacion(event){
	$("#cont-InfoCiudadado .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
	
	if(ServiciosInformacionAbierto){
		
		
		$("#cont-InfoCiudadado .cont-topBar .btnArrowOpen").removeClass('btnArrowClose');
		$("#cont-InfoCiudadado #infoAlCiudadano").animate({"height":0}, 500, "linear", null);
		
		$("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css({'display':'block'});
		$("#cont-InfoCiudadado .marcoContenidosHome #ventanaServicios").css({'display':'none'});
		
		ServiciosInformacionAbierto = false;
		
	} else{
		
		$("#cont-InfoCiudadado .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
		/*$("#cont-InfoCiudadado #infoAlCiudadano").animate({"height":420}, 500, "linear", null);*/
		$("#cont-InfoCiudadado #infoAlCiudadano").css({'height':'auto'});
		
		if($("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css('display') == 'block' && ServiciosInformacionAbierto == false){
			
			ServiciosInformacionAbierto = true;
			
		} else {
			
			if($("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css('display') == 'none' && activarIframe == false){
		
				$("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css({'display':'block'});
				$("#cont-InfoCiudadado .marcoContenidosHome #ventanaServicios").css({'display':'none'});
				
				$("#cont-InfoCiudadado #infoAlPasajero").css({'display':'none'});
				$("#cont-InfoCiudadado #infoAlPiloto").css({'display':'none'});
				$("#cont-InfoCiudadado #infoEmpresas").css({'display':'none'});
				
				activarIframe = false;
			
			} else{
				
				$("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoCiudadado .marcoContenidosHome #ventanaServicios").css({'display':'block'});
				
				activarIframe = false;
				
			}
			
			ServiciosInformacionAbierto = false;
			
		}
		
	}
	
}

		function abrirServiciosPasajero(event){
			
			if($("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css('display') == 'block'){
				
				ServiciosInformacionAbierto = false;
				
				
				
				$("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoCiudadado .marcoContenidosHome #ventanaServicios").css({'display':'block'});
			
			}
			
			activarIframe = true;
			
				$("#cont-InfoCiudadado #infoAlPasajero").css({'display':'block'});
				$("#cont-InfoCiudadado #infoAlPiloto").css({'display':'none'});
				$("#cont-InfoCiudadado #infoEmpresas").css({'display':'none'});
				
				$("#perfilPasajero").addClass("active");
				$("#perfilPiloto").removeClass("active");
				$("#perfilEmpresa").removeClass("active");
				
		}


		function abrirServiciosPiloto(event){
			
			if($("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css('display') == 'block'){
				
				ServiciosInformacionAbierto = false;
				
				
				
				$("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoCiudadado .marcoContenidosHome #ventanaServicios").css({'display':'block'});
			
			}
			
			activarIframe = true;
			
				$("#cont-InfoCiudadado #infoAlPasajero").css({'display':'none'});
				$("#cont-InfoCiudadado #infoAlPiloto").css({'display':'block'});
				$("#cont-InfoCiudadado #infoEmpresas").css({'display':'none'});
				
				$("#perfilPasajero").removeClass("active");
				$("#perfilPiloto").addClass("active");
				$("#perfilEmpresa").removeClass("active");
				
		}



		function abrirServiciosEmpresa(event){
			
			if($("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css('display') == 'block'){
				
				ServiciosInformacionAbierto = false;
				
				
		
				$("#cont-InfoCiudadado .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoCiudadado .marcoContenidosHome #ventanaServicios").css({'display':'block'});
			
			}
			
			activarIframe = true;
			
				$("#cont-InfoCiudadado #infoAlPasajero").css({'display':'none'});
				$("#cont-InfoCiudadado #infoAlPiloto").css({'display':'none'});
				$("#cont-InfoCiudadado #infoEmpresas").css({'display':'block'});
				
				
				$("#perfilPasajero").removeClass("active");
				$("#perfilPiloto").removeClass("active");
				$("#perfilEmpresa").addClass("active");
				
		}
		
function mostrarSubmenu(event){
	$(".submenuTipoInformacion").css("display","none");
	jQuery(".submenuTipoInformacion", this).css("display","block");
}




/* Abrir Barra Información de Interés */
function abrirInfoInteres(event){
	
	$("#cont-InfoInteres .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
	
	if(InformacionInteresAbierto){
		$("#cont-InfoInteres .cont-topBar .btnArrowOpen").removeClass('btnArrowClose');
		$("#cont-InfoInteres #informacionDeInteres").animate({"height":0}, 500, "linear", null);
		InformacionInteresAbierto = false;
	} else {
		$("#cont-InfoInteres .cont-topBar .btnArrowOpen").addClass('btnArrowClose');		
		/*$("#cont-InfoInteres #informacionDeInteres").animate({"height":420}, 500, "linear", null);*/
		$("#cont-InfoInteres #informacionDeInteres").css({'height':'auto'});
		InformacionInteresAbierto = true;
	}
}


			function abrirNoticias(event){
				
				$("#cont-InfoInteres .marcoContenidosHome .contenidoA").css({'display':'block'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoC").css({'display':'none'});
			}
			
			function abrirProyectos(event){
				
				$("#cont-InfoInteres .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoB").css({'display':'block'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoC").css({'display':'none'});
			}
			
			function abrirSanciones(event){
				
				$("#cont-InfoInteres .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoC").css({'display':'block'});
			}
			
			function abrirCalendario(event){
				
				$("#cont-InfoInteres .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-InfoInteres .marcoContenidosHome .contenidoC").css({'display':'block'});
			}



/* Abrir Barra Atención Ciudadano*/
function abrirAtencionCiudadano(event){
	
	$("#cont-AtenCiudadano .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
	
	if(AtencionCiudadanoAbierto){
		$("#cont-AtenCiudadano .cont-topBar .btnArrowOpen").removeClass('btnArrowClose');
		$("#cont-AtenCiudadano #atencionAlCiudadano").animate({"height":0}, 500, "linear", null);
		AtencionCiudadanoAbierto = false;
	} else {
		$("#cont-AtenCiudadano .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
		/*$("#cont-AtenCiudadano #atencionAlCiudadano").animate({"height":420}, 500, "linear", null);*/
		$("#cont-AtenCiudadano #atencionAlCiudadano").css({'height':'auto'});
		AtencionCiudadanoAbierto = true;
	}
}

			function abrirEspaciosAtencion(event){
				
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoA").css({'display':'block'});
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoC").css({'display':'none'});
			}
			
			function abrirConsultas(event){
				
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoB").css({'display':'block'});
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoC").css({'display':'none'});
			}
			
			/*function abrirOpcion3(event){
				
				//Esta función debe ser renombrada
				
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-AtenCiudadano .marcoContenidosHome .contenidoC").css({'display':'block'});
			}*/





/* Abrir Barra Informacion Institucional */
function abrirInfoInstitucional(event){
	
	$("#cont-InfoInstitucional .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
	
	if(infoInstitucionalAbierto){
		$("#cont-InfoInstitucional .cont-topBar .btnArrowOpen").removeClass('btnArrowClose');
		$("#cont-InfoInstitucional #informacionInstitucional").animate({"height":0}, 500, "linear", null);
		infoInstitucionalAbierto = false;
	} else {
		$("#cont-InfoInstitucional .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
		/*$("#cont-InfoInstitucional #informacionInstitucional").animate({"height":420}, 500, "linear", null);*/
		$("#cont-InfoInstitucional #informacionInstitucional").css({'height':'auto'});
		infoInstitucionalAbierto = true;
	}
}

			function abrirInstitucionalA(event){
				
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoA").css({'display':'block'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoC").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoD").css({'display':'none'});
			}
			
			function abrirInstitucionalB(event){
				
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoB").css({'display':'block'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoC").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoD").css({'display':'none'});
			}
			
			function abrirInstitucionalC(event){
				
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoC").css({'display':'block'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoD").css({'display':'none'});
			}
			
			function abrirInstitucionalD(event){
				
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoA").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoB").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoC").css({'display':'none'});
				$("#cont-InfoInstitucional .marcoContenidosHome .contenidoD").css({'display':'block'});
			}
			

function ajusteDeMarca(){
	$(".downFooter").append("<details><div class='ocultar'><span>Interfaz Gr&aacute;fica | Dise&ntilde;o de contenidos | Interactividad | User Experience:</span><a href='http://www.leapsimple.com' target='_blank'>LeaP Simple E.U.</a></div></details>");
}
			

/* Abrir Barra Participacion Ciudadana */
function abrirParticipacionCiudadana(event){
	
	$("#cont-ParticipacionCiudadana .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
	
	if(infoParticipacionAbierto){
		$("#cont-ParticipacionCiudadana .cont-topBar .btnArrowOpen").removeClass('btnArrowClose');
		$("#cont-ParticipacionCiudadana #participacionCiudadana").animate({"height":0}, 500, "linear", null);
		infoParticipacionAbierto = false;
	} else {
		$("#cont-ParticipacionCiudadana .cont-topBar .btnArrowOpen").addClass('btnArrowClose');
		/*$("#cont-ParticipacionCiudadana #participacionCiudadana").animate({"height":420}, 500, "linear", null);*/
		$("#cont-ParticipacionCiudadana #participacionCiudadana").css({'height':'auto'});
		infoParticipacionAbierto = true;
	}
}




function upFont(event){
	
	if(puntajeFuente < 1.2){
		puntajeFuente = puntajeFuente + 0.1;
		$("body").css('font-size', puntajeFuente + "em" );
	}
}

function downFont(event){
		
	if(puntajeFuente > 0.8){
		puntajeFuente = puntajeFuente - 0.1;
		$("body").css('font-size', puntajeFuente + "em" );
	}
}



/* Abrir Tabs de contenidos destacados */
function abrirVideo(event){
	$(".cont-fotoSemana").css('display','none');
	$(".cont-videoRecomendado").css('display','block');
	$(".cont-audioSemana").css('display','none');
	
	$("#tabVideo").addClass('tabActive');
	$("#tabFoto").removeClass('tabActive');
	$("#tabAudio").removeClass('tabActive');
}

function abrirFoto(event){
	$(".cont-fotoSemana").css('display','block');
	$(".cont-videoRecomendado").css('display','none');
	$(".cont-audioSemana").css('display','none');
	
	$("#tabFoto").addClass('tabActive');
	$("#tabVideo").removeClass('tabActive');
	$("#tabAudio").removeClass('tabActive');
}

function abrirAudio(event){
	$(".cont-fotoSemana").css('display','none');
	$(".cont-videoRecomendado").css('display','none');
	$(".cont-audioSemana").css('display','block');
	
	$("#tabVideo").removeClass('tabActive');
	$("#tabFoto").removeClass('tabActive');
	$("#tabAudio").addClass('tabActive');
}

function abrirCompatibilidad(event){
	
	var ValorScroll;
	ValorScroll = $("html").scrollTop();
	
	/*alert(ValorScroll);*/
	
	if(mostrarCreditos){
		
		$(".mentions h4.tituloBoton").css("background-color","transparent");
		$(".mentions h4.tituloBoton").css("color","#690");
		$(".mentions h4.tituloBoton").css("border-bottom", "none");
		
		$("#footer .mentions #compatibilidad").animate({height:0}, 300, 'linear', null);
		$("#footer .mentions #compatibilidad").css("padding",0);
		$("#footer .mentions #compatibilidad").css("border-bottom","none");
		
		mostrarCreditos = false;
		
	}else {
		
		$(".mentions h4.tituloBoton").css("background-color","#9C0");
		$(".mentions h4.tituloBoton").css("color","#666");
		$(".mentions h4.tituloBoton").css("border-bottom", "1px solid #9c0");
		
		$("#footer .mentions #compatibilidad").css("height",100);
		$("#footer .mentions #compatibilidad").css("padding",5);
		$("#footer .mentions #compatibilidad").css("border-bottom","1px dotted #666");
		
		$("html").scrollTop((ValorScroll + 110));
		
		mostrarCreditos = true;
	}
}



function OnLoad(event)
{
	/* Activar la Hora para saber cual foto cargar */
	cambiarImagenNoche();
	
	$(".submenuTipoInformacion").css("display","none");
	
	/* Cierre de los paneles desplegables */
	
	$("#cont-InfoCiudadado #infoAlCiudadano").animate({"height":0}, 500, "linear", null);
	$("#cont-InfoInteres #informacionDeInteres").animate({"height":0}, 500, "linear", null);
	$("#cont-AtenCiudadano #atencionAlCiudadano").animate({"height":0}, 500, "linear", null);
	$("#cont-InfoInstitucional #informacionInstitucional").animate({"height":0}, 500, "linear", null);
	$("#cont-ParticipacionCiudadana #participacionCiudadana").animate({"height":0}, 500, "linear", null);
	
	
	/* Presentación inicial de los tabs de medios */
	$(".cont-videoRecomendado").css('display','block');
	$(".cont-fotoSemana").css('display','none');
	$(".cont-audioSemana").css('display','none');
	$("#tabVideo").addClass('tabActive');
	
	clearTimeout(timer);
    timer = setTimeout(eval("mostrarImagen2"),"10000");
}


/* Eventos para Abrir los Servicios de Información */
$("#cont-InfoCiudadado .cont-topBar").bind('click', abrirServiciosInformacion);
$("#perfilPasajero").bind('click', abrirServiciosPasajero);
$("#perfilPiloto").bind('click', abrirServiciosPiloto);
$("#perfilEmpresa").bind('click', abrirServiciosEmpresa);

$(".antesVuelo").bind('click', mostrarSubmenu);
$(".despuesVuelo").bind('click', mostrarSubmenu);
$(".derechosConsultasQuejasPasajero").bind('click', mostrarSubmenu);
$(".infoAterrizaje").bind('click', mostrarSubmenu);
$(".infoCertificados").bind('click', mostrarSubmenu);
$(".planVuelo").bind('click', mostrarSubmenu);
$(".tramitesServicios").bind('click', mostrarSubmenu);
$(".estadisticasEmpresas").bind('click', mostrarSubmenu);
/*$(".reglamentacionResoluciones").bind('click', mostrarSubmenu);*/
$(".derechosConsultasQuejasEmpresas").bind('click', mostrarSubmenu);



/* Eventos para Abrir los Información Interes */
$("#cont-InfoInteres .cont-topBar").bind('click', abrirInfoInteres);

$("#cont-InfoInteres .infoNoticias").bind('click', abrirNoticias);
$("#cont-InfoInteres .infoProyectos").bind('click', abrirProyectos);
$("#cont-InfoInteres .infoSanciones").bind('click', abrirSanciones);
$("#cont-InfoInteres .infoCalendario").bind('click', abrirCalendario);

/* Eventos para Abrir Atencion Al Cuidadano */
$("#cont-AtenCiudadano .cont-topBar").bind('click', abrirAtencionCiudadano);

$("#cont-AtenCiudadano .EspaciosAtencion").bind('click', abrirEspaciosAtencion);
$("#cont-AtenCiudadano .ConsultasEnLinea").bind('click', abrirConsultas);
/*$("#cont-AtenCiudadano .opcionC").bind('click', abrirOpcion3);*/


/* Eventos para Abrir Informacion Institucional */
$("#cont-InfoInstitucional .cont-topBar").bind('click', abrirInfoInstitucional);

$("#cont-InfoInstitucional .opcionA").bind('click', abrirInstitucionalA);
$("#cont-InfoInstitucional .opcionB").bind('click', abrirInstitucionalB);
$("#cont-InfoInstitucional .opcionC").bind('click', abrirInstitucionalC);
$("#cont-InfoInstitucional .opcionD").bind('click', abrirInstitucionalD);

/* Eventos para Abrir Participacion Ciudadana */
$("#cont-ParticipacionCiudadana .cont-topBar").bind('click', abrirParticipacionCiudadana);


/* Eventos de botones de fuente */

$(".upFont").bind('click', upFont);
$(".downFont").bind('click', downFont);

/* Eventos para generar el ToolTip */
$('.tooltip').bind('mouseover', mouseoverActiontooltip);
$('.tooltip').bind('mouseout', mouseoutActiontooltip);
$('.tooltip').bind('mousemove', mousemoveActiontooltip);
$('.tooltipImage').bind('mouseover', mouseoverActiontooltipImage);
$('.tooltipImage').bind('mouseout', mouseoutActiontooltipImage);
$('.tooltipImage').bind('mousemove', mousemoveActiontooltipImage);


/* Eventos de botones de Seccion Multimedia del Home */
$("#tabFoto").bind('click', abrirFoto);
$("#tabVideo").bind('click', abrirVideo);
$("#tabAudio").bind('click', abrirAudio);


/* Eventos del footer */

$(".mentions h4.tituloBoton").bind('click', abrirCompatibilidad);

OnLoad();

ajusteDeMarca();


});
