// JavaScript Document
var Content = new (function(){
	this._items = new Array();
	
	Interface.addListener(this);
	
	this.init = function(){
		this.show('Boat');
	}
	
	this.addItem = function(name, active, inactive){
		this._items[this._items.length] = name;
		this._items[this._items.length] = active;
		this._items[this._items.length] = inactive;
	}
	
	this.show = function(name){
		for(var i=0; i < this._items.length; i+=3){
			var div = document.getElementById(this._items[i]);
			var img = document.getElementById('Nav_'+this._items[i]);
			
			if(this._items[i] == name){
				div.style.display = 'block';
				img.src = this._items[i+1];
			} else {
				div.style.display = 'none';
				img.src = this._items[i+2];
			}
		}
	}
});

Content.addItem('Boat', 'images/academy/title_boatDrivers_1.png', 'images/academy/title_boatDrivers_2.png');
Content.addItem('Instructor', 'images/academy/title_instructorTraining_1.png', 'images/academy/title_instructorTraining_2.png');
