<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function screen_height (){
	if (window.screen) return (screen.height);
	else if (navigator.javaEnabled ())
	{
		var toolkit = java.awt.Toolkit.getDefaultToolkit ();
		var screen_size = toolkit.getScreenSize ();
		return (screen_size.height);
	}
	return (0);
}

function screen_width (){
	if (window.screen) return (screen.width);
	else if (navigator.javaEnabled ())
	{
		var toolkit = java.awt.Toolkit.getDefaultToolkit ();
		var screen_size = toolkit.getScreenSize ();
		return (screen_size.width);
	}
	return (0);
}

function popup(URL,width,height){
	sheight = (((screen_height()-20)-height)/2);
	swidth = (screen_width() - width)/2;
	eval("page = window.open(URL, 'PopUp', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height= "+height+",left = "+swidth+",top ="+sheight+"');");
	page.main = self;
	page.focus();
}

function sendit(URL){
	popup('/send_page.php?url='+URL,400,150);
} 

function show( typ, minid, maxid ) {
	for( i = minid; i <= maxid ; i++ ) {
		cible = document.getElementById(typ+i);
		cible.style.display="";
	}
}

function hide( typ, minid, maxid ) {
	for( i = minid; i <= maxid ; i++ ) {
		cible = document.getElementById(typ+i);
		cible.style.display="none";
	}
}

function show_hide( typ, minid, maxid ) {
	for( i = minid; i <= maxid ; i++ ) {
		cible = document.getElementById(typ+i);
		if (cible.style.display == "none") {
			cible.style.display="";
		} else {
			cible.style.display="none";
		}
	}
}

function setMainPic(img) {
	document.getElementById('mainPic').src=img;
}

var NS = (navigator.appName=="Netscape")?true:false;

function FitPic()
{
	var img = (document.getElementById)?document.getElementById('image'):document.all['image'];
	var wWidth, wHeight, iWidth, iHeight, wX, wY;

	wWidth = (NS)?window.innerWidth:document.body.clientWidth;
	wHeight = (NS)?window.innerHeight:document.body.clientHeight;

	iWidth = img.width + 64;
	iHeight = img.height + 85;

	if( iWidth > screen.availWidth ) iWidth = screen.availWidth ;
	if( iHeight > screen.availHeight ) iHeight = screen.availHeight ;
	if( iWidth < 640 ) iWidth = 640 ;
	if( iHeight < 480 ) iHeight = 480 ;

	wX = Math.floor((screen.availWidth - iWidth ) / 2);
	wY = Math.floor((screen.availHeight - iHeight ) / 2);

	window.resizeBy(iWidth-wWidth,iHeight-wHeight);
	self.moveTo(wX,wY);
	self.focus();
} ;


// Replace <blink> tags with Javascript in order to force browsers to blink objects
setInterval('blinkIt()',500);
function blinkIt() {
    if (!document.all) return;
    else {
        for(i=0;i<document.all.tags('blink').length;i++){
            s=document.all.tags('blink')[i];
            s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
        }
    }
}

// Quick Navigation floating div positionning

var quickNavState = 'none' ;
var quickNavFocus = 0 ;

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;

	return curleft;
}

function placeNavDiv()
{
  // ne pas oublier de modifier les largeurs
  var refWidth = 83 ; // Div with Quicknav string
  var divWidth = 200 ; // Div with quicknav links

	var o=document.getElementById('quicknav_ref');

	document.getElementById('quicknav').style.left=(findPosX(o)+refWidth-divWidth);
	document.getElementById('quicknav').style.display=quickNavState ;
}

function showHideQuickNav()
{
	if( quickNavState == 'none' ) quickNavState = 'block' ;
	else quickNavState = 'none' ;

	document.getElementById('quicknav').style.display=quickNavState ;
}

function showHideQuickNavFocus()
{
	quickNavState = 'none' ;

	document.getElementById('quicknav').style.display=quickNavState ;
}

function catchQuickNavFocus()
{
	quickNavFocus=1;
}
// -->
