var Say = {
	hello: function(text)
	{
		alert(text);
	}
};

var ContactForm = {
	done: function(content)
	{
		new Element.update('contact-form-holder', content);
	}
};

var Ticker = Class.create({
	initialize: function(total)
	{
		this.frequency = 10;
		this.div = 'ticker-item-';
		
		this.actual = 1;
		this.total = total;
		
		this.fire();
	},
	
	change: function()
	{
		$(this.div+this.actual).hide();
		
		if(this.actual < this.total) {
			this.actual++;
		} else {
			this.actual = 1;
		}
		
		$('ticker-item-'+this.actual).show();
	},
	
	fire: function()
	{
		this.timer = setInterval(this.change.bind(this), this.frequency * 1000);
	}
});

