function txtDisplayer( txt, cible){
	document.getElementById(cible).innerHTML = txt;
}

function changePreview(id){
	var currentImg = document.getElementById('behind_preview');
	currentImg.src = 'images/btn_' + id + '_big.jpg';
}

var gShop = 1;

window.onload = function reset(){
	if( document.getElementById('bg_'+gShop)){
		document.getElementById('bg_'+gShop).style.background = "#1b1b1b";
	}
}

function activateShops(id){
	var cShop = document.getElementById('shop_'+id);
	var oldShop = document.getElementById('shop_'+gShop);
	var bg1 = document.getElementById('bg_'+id);
	var bg2 = document.getElementById('bg_'+gShop);
	if( id != gShop){
		cShop.style.display = 'block';
		oldShop.style.display = 'none';
		bg1.style.background = "#1b1b1b";
		bg2.style.background = '';
		gShop = id;
	}
}