/* import css menu */
document.write('<'+'link rel="stylesheet" type="text/css" media="all" href="stylesheets/noscript.css"/>');

/* liens utiles */
function swap_liens(o){
	selval = o.options[o.selectedIndex].value;
	location.href = selval;
}

/* validation formulaires */
function f_submit(o){
	otmp = o;
	while(otmp.tagName!="FORM")
		otmp = otmp.parentNode;
	if(otmp.submit)
		otmp.submit();
	return false;
}

function f_reset(o){
	otmp = o;
	while(otmp.tagName!="FORM")
		otmp = otmp.parentNode;
	if(otmp.reset)
		otmp.reset();
	return false;
}

var fvmin = 100.01;
var fvmax = 200;
var fontval = fvmin;

/* grossissement de texte */
function _grossir(o, ind){
	o.blur();
	if(document.styleSheets[0].rules!=null)
		fontobj = document.styleSheets[0].rules[0];
	else if(document.styleSheets[0].cssRules!=null)
		fontobj = document.styleSheets[0].cssRules[0];
	if(ind==1){
		fontval = Math.min(fvmax, parseInt(fontval+20));
		document.getElementById("tplus").style.visibility = ((fontval==fvmax)?'hidden':'visible');
		document.getElementById("tmoins").style.visibility = 'visible';
	}
	else{
		fontval = Math.max(fvmin, parseInt(fontval-20));
		document.getElementById("tmoins").style.visibility = ((fontval==fvmin)?'hidden':'visible');
		document.getElementById("tplus").style.visibility = 'visible';
	}
	fontobj.style.fontSize = fontval + '%';
	return false;
}

/* impression */
function _print(){
	if(window.print)
		window.print();
	return false;
}

/* retour haut de page */
function init_top(){
	if(document.all){
		place_top_ie();
		window.onscroll = window.onresize = place_top_ie;
	}
	else{
		place_top();
		window.onscroll = window.onresize = place_top;
	}
}

function place_top(){
	wy = parseInt(window.innerHeight);
	pgy = parseInt(window.pageYOffset);
	if(pgy==0){
		document.getElementById("haut").style.display = 'none';
	}
	else{
		document.getElementById("haut").style.top = pgy + wy - 40 + 'px';
		document.getElementById("haut").style.display = 'block';
	}
}

function place_top_ie(){
	wy = parseInt(document.documentElement.offsetHeight);
	pgy = parseInt(document.documentElement.scrollTop);
	if(pgy==0){
		document.getElementById("haut").style.display = 'none';
	}
	else{
		document.getElementById("haut").style.top = pgy + wy - 40 + 'px';
		document.getElementById("haut").style.display = 'block';
	}
}