

Rico.loadModule('Effect');
var EffectDemo, div1;

Rico.onLoad( function() {
  EffectDemo = Class.create();
  EffectDemo.prototype = {
    initialize: function(element) {
      this.animator = new Rico.Effect.Animator();
      this.element = $(element);
    },
    fadeEffectStarted: true,
    play: function(effect) {
      this.animator.play(effect, {steps:20, duration:500});
    },
    toggleFade: function(){
      this.play(new Rico.Effect.FadeTo(this.element, this.nextFadeState()));
    },
    nextFadeState: function(){
      this.fadeEffectStarted = !this.fadeEffectStarted;
      return !this.fadeEffectStarted ? 1 : 0;
   }
    
  };
  div1=new EffectDemo('interes');  
});

function mostrar(campo){
  if ($('otro').checked){
    $(campo).style.display = 'block';        
    div1.toggleFade();
  }
	else{      
	div1.toggleFade();
	setTimeout(function(){$(campo).style.display = 'none';},900);
        
  }  
}

function submenu(id,estilo){
	$(id).style.display = estilo;  
}

