var trip;
var Trip = Class.create({
	initialize: function() {
		//
	},
	showSummary : function() {
		new Ajax.Updater('map_ajax','/index/trip-summary',{
			onComplete : function(){
				Cufon.replace('h2');
			}.bind(this)
		});
	},
	showPoi : function() {
		new Ajax.Updater('map_ajax','/index/trip-poi',{
			onComplete : function(){
				try{
				Cufon.replace('h2');
				}
				catch(e)
				{
					alert(e);
				}
			}.bind(this)
		});
	},
	showBonuses : function() {
		new Ajax.Updater('map_ajax','/index/trip-bonuses',{
			onComplete : function(){
				Cufon.replace('h2');
			}.bind(this)
		});
	},
	showTasks : function() {
		new Ajax.Updater('map_ajax','/index/trip-tasks',{
			onComplete : function(){
				Cufon.replace('h2');
			}.bind(this)
		});
	},
	showExchange : function() {
		new Ajax.Updater('map_ajax','/index/trip-exchange',{
			onComplete : function(){
				Cufon.replace('h2');
			}.bind(this)
		});
	},
	showData : function() {
		new Ajax.Updater('map_ajax','/index/trip-data',{
			onComplete : function(){
				Cufon.replace('h2');
			}.bind(this)
		});
	}	,
	showMessages : function() {
		new Ajax.Updater('map_ajax','/index/trip-messages',{
			onComplete : function(){
				Cufon.replace('h2');
			}.bind(this)
		});
	}
});

var trip = new Trip();