jQuery(document).ready(function () {
    
                
      jQuery('#bloque_uno #imagen_estilo').click(function() { 
		if ((jQuery('#bloque_uno #opciones_estilos')).is(':hidden'))
		{      	 
		jQuery("#bloque_uno #imagen_estilo").hide(); 
		jQuery("#bloque_uno #imagen_estilo").addClass('imagen_estilo_over');
		jQuery("#bloque_uno #opciones_estilos").fadeIn(1000); 
		jQuery("#bloque_uno #imagen_estilo").fadeIn(1000); 
		}
		else
		{
		jQuery("#bloque_uno #opciones_estilos").hide();		
		jQuery("#bloque_uno #imagen_estilo").removeClass('imagen_estilo_over'); 
		}
     });
	  
	  jQuery('#bloque_dos #imagen_estilo2').click(function() { 
		if ((jQuery('#bloque_dos #opciones_estilos2')).is(':hidden'))
		{      	 
		jQuery("#bloque_dos #imagen_estilo2").hide(); 
		jQuery("#bloque_dos #imagen_estilo2").addClass('imagen_estilo_over');
		jQuery("#bloque_dos #opciones_estilos2").fadeIn(1000); 
		jQuery("#bloque_dos #imagen_estilo2").fadeIn(1000); 
		}
		else
		{
		jQuery("#bloque_dos #opciones_estilos2").hide();		
		jQuery("#bloque_dos #imagen_estilo2").removeClass('imagen_estilo_over'); 
		}
     });
    
	
	
     jQuery('#opciones_estilos .boton').click(function() {
        
	  	jQuery('#bloque_head').removeClass();
	  	jQuery('#titulo_bloque').removeClass();
	  	jQuery('#bloque_body').removeClass();
	  	jQuery('#triangulo').removeClass();
	  	jQuery('#bloque_link1').removeClass();
		jQuery('#bloque_link2').removeClass();
		jQuery('#bloque_link3').removeClass();
	  	jQuery('#abloque1').removeClass(); 
		jQuery('#abloque2').removeClass(); 
		jQuery('#abloque3').removeClass(); 
		
        if (this.id == 'change1') {
      	jQuery('#bloque_head').addClass('bh_estilo1');
	  	jQuery('#titulo_bloque').addClass('tb_estilo1');
	  	jQuery('#bloque_body').addClass('bb_estilo1');
	  	jQuery('#triangulo').addClass('tri_estilo1');
	  	jQuery('#bloque_link1').addClass('blink_estilo1');
		jQuery('#bloque_link2').addClass('blink_estilo1');
		jQuery('#bloque_link3').addClass('blink_estilo1');
	  	jQuery('#abloque1').addClass('abloque_estilo1');
		jQuery('#abloque2').addClass('abloque_estilo1');
		jQuery('#abloque3').addClass('abloque_estilo1');
	    }
       if (this.id == 'change2') {
    	jQuery('#bloque_head').addClass('bh_estilo2');
	  	jQuery('#titulo_bloque').addClass('tb_estilo2');
	  	jQuery('#bloque_body').addClass('bb_estilo2');
	  	jQuery('#triangulo').addClass('tri_estilo2');
	  	jQuery('#bloque_link1').addClass('blink_estilo2');
		jQuery('#bloque_link2').addClass('blink_estilo2');
		jQuery('#bloque_link3').addClass('blink_estilo2');
	  	jQuery('#abloque1').addClass('abloque_estilo2');
		jQuery('#abloque2').addClass('abloque_estilo2');
		jQuery('#abloque3').addClass('abloque_estilo2');	
	  	}
      if (this.id == 'change3') {
      	jQuery('#bloque_head').addClass('bh_estilo3');
	  	jQuery('#titulo_bloque').addClass('tb_estilo3');
	  	jQuery('#bloque_body').addClass('bb_estilo3');
	  	jQuery('#triangulo').addClass('tri_estilo3');
	  	jQuery('#bloque_link1').addClass('blink_estilo3');
		jQuery('#bloque_link2').addClass('blink_estilo3');
		jQuery('#bloque_link3').addClass('blink_estilo3');;
	  	jQuery('#abloque1').addClass('abloque_estilo3');
		jQuery('#abloque2').addClass('abloque_estilo3');
		jQuery('#abloque3').addClass('abloque_estilo3');
	  } 
	  if (this.id == 'change4') {
    	jQuery('#bloque_head').addClass('bh_estilo4');
	  	jQuery('#titulo_bloque').addClass('tb_estilo4');
	  	jQuery('#bloque_body').addClass('bb_estilo4');
	  	jQuery('#triangulo').addClass('tri_estilo4');
	  	jQuery('#bloque_link1').addClass('blink_estilo4');
		jQuery('#bloque_link2').addClass('blink_estilo4');
		jQuery('#bloque_link3').addClass('blink_estilo4');
	  	jQuery('#abloque1').addClass('abloque_estilo4');
		jQuery('#abloque2').addClass('abloque_estilo4');
		jQuery('#abloque3').addClass('abloque_estilo4');
	  }        
	 
      jQuery('#opciones_estilos .boton').removeClass('selected_estilo');     
      jQuery(this).addClass("selected_estilo") 	 
     });


	jQuery('#opciones_estilos2 .boton').click(function() {
        
	  	jQuery('#bloque_head2').removeClass();
	  	jQuery('#titulo_bloque2').removeClass();
	  	jQuery('#bloque_body2').removeClass();
	  	jQuery('#triangulo2').removeClass();
	  	jQuery('#bloque_link4').removeClass();
		jQuery('#bloque_link5').removeClass();
		jQuery('#bloque_link6').removeClass();
		jQuery('#bloque_link7').removeClass();
	  	jQuery('#abloque4').removeClass(); 
		jQuery('#abloque5').removeClass(); 
		jQuery('#abloque6').removeClass();
		jQuery('#abloque7').removeClass();
		
        if (this.id == 'change1') {
			
		jQuery('#bloque_head2').addClass('bh_estilo1');
	  	jQuery('#titulo_bloque2').addClass('tb_estilo1');
	  	jQuery('#bloque_body2').addClass('bb_estilo1');
	  	jQuery('#triangulo2').addClass('tri_estilo1');
	  	jQuery('#bloque_link4').addClass('blink_estilo1');
		jQuery('#bloque_link5').addClass('blink_estilo1');
		jQuery('#bloque_link6').addClass('blink_estilo1');
		jQuery('#bloque_link7').addClass('blink_estilo1');
	  	jQuery('#abloque4').addClass('abloque_estilo1');
		jQuery('#abloque5').addClass('abloque_estilo1');
		jQuery('#abloque6').addClass('abloque_estilo1');
		jQuery('#abloque7').addClass('abloque_estilo1');
	    }
       if (this.id == 'change2') {
    	jQuery('#bloque_head2').addClass('bh_estilo2');
	  	jQuery('#titulo_bloque2').addClass('tb_estilo2');
	  	jQuery('#bloque_body2').addClass('bb_estilo2');
	  	jQuery('#triangulo2').addClass('tri_estilo2');
	  	jQuery('#bloque_link4').addClass('blink_estilo2');
		jQuery('#bloque_link5').addClass('blink_estilo2');
		jQuery('#bloque_link6').addClass('blink_estilo2');
		jQuery('#bloque_link7').addClass('blink_estilo2');
	  	jQuery('#abloque4').addClass('abloque_estilo2');
		jQuery('#abloque5').addClass('abloque_estilo2');
		jQuery('#abloque6').addClass('abloque_estilo2');
		jQuery('#abloque7').addClass('abloque_estilo2');
	  	}
      if (this.id == 'change3') {
      	jQuery('#bloque_head2').addClass('bh_estilo3');
	  	jQuery('#titulo_bloque2').addClass('tb_estilo3');
	  	jQuery('#bloque_body2').addClass('bb_estilo3');
	  	jQuery('#triangulo2').addClass('tri_estilo3');
	  	jQuery('#bloque_link4').addClass('blink_estilo3');
		jQuery('#bloque_link5').addClass('blink_estilo3');
		jQuery('#bloque_link6').addClass('blink_estilo3');
		jQuery('#bloque_link7').addClass('blink_estilo3');
	  	jQuery('#abloque4').addClass('abloque_estilo3');
		jQuery('#abloque5').addClass('abloque_estilo3');
		jQuery('#abloque6').addClass('abloque_estilo3');
		jQuery('#abloque7').addClass('abloque_estilo3');
	  } 
	  if (this.id == 'change4') {
    	jQuery('#bloque_head2').addClass('bh_estilo4');
	  	jQuery('#titulo_bloque2').addClass('tb_estilo4');
	  	jQuery('#bloque_body2').addClass('bb_estilo4');
	  	jQuery('#triangulo2').addClass('tri_estilo4');
	  	jQuery('#bloque_link4').addClass('blink_estilo4');
		jQuery('#bloque_link5').addClass('blink_estilo4');
		jQuery('#bloque_link6').addClass('blink_estilo4');
		jQuery('#bloque_link7').addClass('blink_estilo4');
	  	jQuery('#abloque4').addClass('abloque_estilo4');
		jQuery('#abloque5').addClass('abloque_estilo4');
		jQuery('#abloque6').addClass('abloque_estilo4');	
		jQuery('#abloque7').addClass('abloque_estilo4');
	  } 
            
	  jQuery('#opciones_estilos2 .boton').removeClass('selected_estilo');     
      jQuery(this).addClass("selected_estilo") 	 
     });
		
});  




