
var accVha = new Class({
	
	Implements: [Options, Events],
	options: {
		slideContentID: 'accVhaSlide',
		waitDelay: 5000
	},
	
	interval: 0,
	
	initialize: function(options) {
		this.setOptions(options);
		
		this.slideContentEl = $(this.options.slideContentID);
		this.activateVha.delay(this.options.waitDelay,this);
		this.vhaHeight = this.slideContentEl.getFirst().getStyle('height').toInt();
		
		this.slideContentEl.set('tween',{
			duration: 'long',
			transition: Fx.Transitions.Quart.easeInOut,
			onComplete: function() {
				var oldEl = this.slideContentEl.getFirst();
				oldEl.clone().inject(this.slideContentEl);
				oldEl.dispose();
				this.slideContentEl.setStyle('margin-top',0);
				this.activateVha.delay(this.options.waitDelay,this);
			}.bind(this)
		},this);
		
	},
	
	activateVha: function() {
		
		this.slideContentEl.tween('margin-top',0,-this.vhaHeight);
		
	}
	
});

window.addEvent('domready',function() {
	if(!iPhone) {
		new accVha();
	}
});