      $(document).ready(function() {
	  
	   $("#body-background").ezBgResize();
	   
	   
	   
	   $('#ResFemIcon').click(function() {
          $('#ResFemApp').AeroWindow({
            WindowTitle:          'Resultados Equipo Femenino',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });
		  $("#ResFemApp iframe").attr("src","http://www.adsaludycultura.com/competiciones.php?competicion=258"); 		  
        });
	   
	   $('#VeteIcon').click(function() {
          $('#VeteApp').AeroWindow({
            WindowTitle:          'Amisport Veteranos',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });
		  $("#VeteApp iframe").attr("src","http://www.pdsangabriel.com/"); 		  
        });	   
	   
        $('#ResIcon').click(function() {
          $('#ResApp').AeroWindow({
            WindowTitle:          'Resultados',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });
		  $("#ResApp iframe").attr("src","http://www.futmadrid.com/2reg4/2reg4.htm"); 		  
        });
		
		
		
        $('#HomeIcon').click(function() {
          $('#HomeApp').AeroWindow({
            WindowTitle:          'Inicio',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });	
		  $("#HomeApp iframe").attr("src","http://www.amisport.es/iframe_Entrada.asp"); 
        });
		
		$('#ForoIcon').click(function() {
          $('#ForoApp').AeroWindow({
            WindowTitle:          'Foro',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });
		  $("#ForoApp iframe").attr("src","http://www.amisport.es/phpbb3/"); 		  
        });
		
		$('#ClubIcon').click(function() {
          $('#ClubApp').AeroWindow({
            WindowTitle:          'Historia',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });
		  $("#ClubApp iframe").attr("src","http://www.amisport.es/iframe_historia.asp"); 		  
        });
		
		$('#ContactoIcon').click(function() {
          $('#ContactoApp').AeroWindow({
            WindowTitle:          'Contacto',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });	
		  $("#ContactoApp iframe").attr("src","http://www.amisport.es/iframe_contacto.asp"); 
        });	

		$('#HimnoIcon').click(function() {
          $('#HimnoApp').AeroWindow({
            WindowTitle:          'Nuestro Himno',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });	
		  $("#HimnoApp iframe").attr("src","http://www.amisport.es/iframe_Himno.asp"); 
        });	

		$('#NormativaIcon').click(function() {
          $('#NormativaApp').AeroWindow({
            WindowTitle:          'Normativa Interna',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'         
		 });	
		 $("#NormativaApp iframe").attr("src","http://www.amisport.es/iframe_normativa.asp"); 
        });	

		$('#ProxIcon').click(function() {
          $('#ProxApp').AeroWindow({
            WindowTitle:          'Próximo Partido',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });
		 $("#ProxApp iframe").attr("src","http://www.futmadrid.com/2reg4/2reg4.htm"); 		  
        });		
		
		$('#MapaIcon').click(function() {
          $('#MapaApp').AeroWindow({
            WindowTitle:          'Cómo llegar',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });
		//$("#MapaApp iframe").attr("src","http://www.amisport.es/iframe_ComoLLegar.asp"); 		  
        });
		
		$('#GaleriaIcon').click(function() {        
		$('#GaleriaApp').AeroWindow({
            WindowTitle:          'Galería de Fotos',
            WindowPositionTop:    'center',
            WindowPositionLeft:   'center',
            WindowWidth:          700,
            WindowHeight:         500,
			WindowAnimationSpeed: 2000,
            WindowAnimation:      'easeOutCubic'
          });	
		 $("#GaleriaApp iframe").attr("src","http://www.amisport.es/iframe_Fotos.asp"); 
        });
		
		
		$('.infiniteCarousel').infiniteCarousel();
		
      });
