/////////////////////////////////////////////////////////////////////////////////////
// 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 = "Champagner Nicolas Feuillatte: Brut, Cuvée, Millésime, Grand Cru";
		break;
		case "origines" :	document.title = "Champagner Nicolas Feuillatte: Terroirs, Weinberg, Marke, Herstellung";
		break;
		case "champagnes" :	document.title = "Champagner Nicolas Feuillatte: Weine, Aperitif, Empfänge, Degustationen";
		break;
		case "coffrets" :	document.title = "Champagner Nicolas Feuillatte: Firmengeschenke, Feiern, Events";
		break;
		case "actualites" :	document.title = "Champagner Nicolas Feuillatte: Aktuelles, News, Präsentkartons, Cuvées";
		break;
		case "esprit" :		document.title = "Champagner Nicolas Feuillatte: Lifestyle, Rezepte, Spiele, Gastronomie";
		break;
		case "palmes" :		document.title = "Champagner Palmes d’Or: Cuvée, Prestige, Hocherlesenes, Vintage, Luxus";
		break;
		default :		document.title = "Champagner 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;
	
}
