var RTI;
if(!RTI) RTI = {};

window.addEvent('domready', function() {
	new CountDownAndUp($('countdown'), {message: 'In Theaters Now!', onComplete: removeInfo});
	//RTI.sender = new SendToAFriend();
});
	
function removeInfo() {
	//if($('countdown-info')) 
	//$('countdown-info').remove();
	$('countdown-info').setHTML('The Chronicles of Narnia: Prince Caspian is In Theaters Now!');
}
/*
var SendToAFriend = new Class({
	initialize: function() {
		if($('friend-form')) $('friend-form').onsubmit = function(evt) {
			(new Event(evt)).stop();
			//console.log('form submitted...');
			this.send();
		}.bind(this);
	},
	send: function(e) {
		new Ajax(
		'/index.html?p=2', {
			method: 'get', 
			update: $('login'),
			onComplete: this.callback
		}).request();
	},
	callback: function(response) {
		$('send-to-a-friend').setHTML(response);
		console.log('sending to a friend...');
	}
});
*/