function changeFontSize(new_size) {
	var mydoc = document.getElementsByTagName('body')[0];
			mydoc.style.fontSize = + new_size + "%";
			document.cookie = "fonte=" + new_size ;
}

function starter() {
var leCookie = document.cookie;
var pos      = leCookie.indexOf("fonte=") ;
var maCible  = document.getElementsByTagName('body')[0];
if (pos != -1) {
	var debut = pos + 6 ;
	var fin   = leCookie.indexOf(";", debut) ;
	if (fin == -1) fin = leCookie.length ;
	var recordSize = leCookie.substring(debut,fin) ;
//	recordSize = unescape(recordSize) ;
//	alert(recordSize);
	maCible.style.fontSize = + recordSize + "%";
	}
}

// window.onload = starter();

function introFlash(fichier,largeur,hauteur)
{ // Vérification du nombre d'arguments passées dans cette fonction
if (arguments.length > 3) {
	var transparence  = arguments[3];
	if (arguments[4] == null) { version = 6 }
	else { version = arguments[4]; }
if (arguments[5] == null) { link = '' }
else
{link = arguments[5] }
}
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="hdr"');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="' + version + '.0.0.0" ');
	document.write(' width="100%" height="100%">');
	document.write('<param name=movie value="' + fichier + '" />');
	document.write('<param name=menu value=false />');
	document.write('<param name=quality value=high />');
	if (transparence) { document.write('<param name="wmode" value="transparent" />');	}
	if (link != null) { document.write('<param name="FlashVars" value="zelangue=' + link + '" />');	}
	document.write('<embed src="' + fichier + '" quality=high');
	document.write(' width="100%" height="100%" ');
	if (transparence) { document.write('wmode="transparent"');	}
	if (link != null) { document.write(' FlashVars="zelangue=' + link + '"');	}
	document.write(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</embed>');
	document.write('</object>');
}

// ƒ qui récupère la hauteur de la fenêtre active
function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
} else {
if (document.documentElement && document.documentElement.clientHeight) {
	windowHeight = document.documentElement.clientHeight;
} else {
	if (document.body && document.body.clientHeight) {
	windowHeight = document.body.clientHeight;
	}
}
}
return windowHeight;
}


function collapseAll()
{
for (i=0;i<crounch.length;i++){
	var mes_crounch = document.getElementById(crounch[i]);
	mes_crounch.style.display = "none"; }
}

function rollmeout()
{
for (i=0;i<rollout.length;i++){
	var mes_rolls = document.getElementById(rollout[i]);
	mes_rolls.style.display = "none"; }
}

function afficheSubs(the_sub)
{
var motif = document.getElementById(the_sub);
if (motif.style.display==""){
	motif.style.display = "none"; return }
rollmeout(); // ferme toutes les boites ouvertes au passage...
motif.style.display = "";
}
