var Movable = new Class({
  cont:null,
  fx:null,
  bound:null,
  src:null,
  dest:null,
  property:null,
  opacity:false,
  
  initialize:function(elt) {
    this.cont = elt;
  },
  
  open:function() {
	 if(this.opacity) {
		eval('this.fx.start({'+this.property+': '+this.dest+', '+this.property_2+': '+this.dest_2+'});');
	 }
	 else if(this.property == 'opacity' && ie == true) {
		this.fx.set(this.property, this.dest);
	 }
	 else {
		this.fx.start(this.property, this.dest);
	 }
	 this.is_open = true;
  },
  
  close:function() {
	if(this.opacity) {
		eval('this.fx.start({'+this.property+': '+this.src+', '+this.property_2+': '+this.src_2+'});');
	}
	else if(this.property == 'opacity' && ie == true) {
		this.fx.set(this.property, this.src);
	}
	else{
		this.fx.start(this.property, this.src);
	}
	this.is_open = false;
  },
  
  fading:function() {
	  this.opacity = true;
	  this.property_2 = 'opacity';
	  this.src_2 = 1;
	  this.dest_2 = 0;
  }
});
