/////////////////////////////////////////////////////////////////////////////////////
// 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 = "Champagne Nicolas Feuillatte : brut, cuvée, millésime, grand cru";
		break;
		case "eco" :	document.title = "Champagne Nicolas Feuillatte : Eco-logique";
		break;
		case "origines" :	document.title = "Champagne Nicolas Feuillatte : terroirs, vignoble, marque, élaboration";
		break;
		case "champagnes" :	document.title = "Champagne Nicolas Feuillatte : vins, apéritif, réceptions, dégustations";
		break;
		case "coffrets" :	document.title = "Champagne Nicolas Feuillatte : cadeau d'affaires, une fête, un événement";
		break;
		case "actualites" :	document.title = "Champagne Nicolas Feuillatte : actualités, news, coffrets, cuvées";
		break;
		case "esprit" :		document.title = "Champagne Nicolas Feuillatte : art de vivre, recettes, jeux, gastronomie";
		break;
		case "palmes" :		document.title = "Champagne Palmes d'or : cuvée, prestige, haut de gamme, vintage, luxe";
		break;
		default :		document.title = "Champagne Nicolas Feuillatte : brut, cuvée, millésime, 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;
	
}
