/////////////////////////////////////////////////////////////////////////////////////
// Clair et Net. (c) 2006
/////////////////////////////////////////////////////////////////////////////////////

// fonction de changement de l'URL
// pour la sauvegarde dans l'historique
// en test
function changeURL(args){
	url = window.location.href;
	url = url.split("#");
	newUrl = url[0] + "#" + args;		
	window.location.href = newUrl;	
	
	switch(args.split("/")[0]){
		
		case "home" :		document.title = "Nicolas Feuillatte Champagne: Brut, Cuvée, Vintage, Grand Cru";
		break;
		case "origines" :	document.title = "Nicolas Feuillatte Champagne: terroirs, the vineyard, the brand, production";
		break;
		case "champagnes" :	document.title = "Nicolas Feuillatte Champagne: wines, aperitif, receptions, tastings";
		break;
		case "coffrets" :	document.title = "Nicolas Feuillatte Champagne: business gifts, a celebration, an event";
		break;
		case "actualites" :	document.title = "Nicolas Feuillatte Champagne: the latest, news, gift boxes, vintages";
		break;
		case "esprit" :		document.title = "Nicolas Feuillatte Champagne: lifestyle, recipes, games, gastronomy";
		break;
		case "palmes" :		document.title = "Palmes d’Or Champagne: cuvée, prestige, high end, vintage, luxury";
		break;
		default :		document.title = "Nicolas Feuillatte Champagne: Brut, Cuvée, Vintage, Grand Cru";
		break;
	}
	
	
	//document.title = "Champagne Nicolas Feuillatte :: " + args;
	
	//document.getElementById("history").innerHTML = '<iframe id="historyIframe" src="/history.php" frameborder="no" scrolling="yes"></iframe>';
	//frames["historyIframe"].location.href = "/history.php?href=" + args;
	
	//alert("test : " + frames["history"].location.href);
	
	//document.getElementById("history").src = "/history/" + args + ".html";
	
	//document.frames["history"].location.href = "/history.php?href=" + args;
	
}