var ElementHover = function(layer){
	this.layer = layer;
	this.layer.container.style.visibility = "hidden";
	this.layer.image.style.visibility = "hidden";
	this.speed = 200;
	this.show = function(){
		var opacityAnimator = new animateProperties();
		opacityAnimator.configure(this.layer.container,"opacity",this.speed,1,0);
		animateProperty(opacityAnimator);
		this.layer.container.style.visibility = "visible";
		this.layer.image.style.visibility = "visible";
	}
	this.hide = function(){
		var opacityAnimator = new animateProperties();
		opacityAnimator.configure(this.layer.container,"opacity",this.speed,0,1);
		animateProperty(opacityAnimator);
	}
	return this;
}
