var Card = {

	currentTab: 'standardCards',
	
	initConsole: function(startTab) {
		
		this.currentTab = startTab;
		
	},

	changeTab: function(newTab) {

		$(this.currentTab + 'Tab').className = 'tab-' + this.currentTab;
		$(this.currentTab + 'Table').style.display = 'none';

		$(newTab + 'Tab').className = 'tab-' + newTab + '-selected';		
		$(newTab + 'Table').style.display = 'block';

		s[newTab].recalculateLayout();

		this.currentTab = newTab;
	},

	currentBlock: new Array(),

	doNext: function(nbBlock, qName) {
	
		$(qName + this.currentBlock[qName]).style.display = 'none';
		this.currentBlock[qName] = (this.currentBlock[qName] >= nbBlock - 1) ? 0 : (this.currentBlock[qName] + 1);
		$(qName + this.currentBlock[qName]).style.display = 'block';
	},

	doPrevious: function(nbBlock, qName) {
	
		$(qName + this.currentBlock[qName]).style.display = 'none';
		this.currentBlock[qName] = (this.currentBlock[qName] <= 0) ? nbBlock - 1 : (this.currentBlock[qName] - 1);
		$(qName + this.currentBlock[qName]).style.display = 'block';
	}
}
