<!--
var win = null;
function pop_hidden(page){
	win = window.open(page,"pop_hidden","width=20,height=20,left=0,top=0");
	win.blur();
}

function popup(page,nom){
	w= 800;
	h= 600;
	l = (screen.width) ? (screen.width-w)/2 : 0;
	t = (screen.height) ? (screen.height-h)/2 : 0;
	style = "width="+w+", height="+h+", top="+t+", left="+l+", status=yes, scrollbars=yes, menubar=yes, resizable=yes"
	win = window.open(page, nom, style)
	if(win.window.focus){
		win.window.focus();
	}
}

function open_url(page) {
	if (document.all)
		var xMax = screen.width, yMax = screen.height;
	else
		if (document.layers)
			var xMax = window.outerWidth, yMax = window.outerHeight;
		else
			var xMax = 640, yMax=480;
	var xOffset = (xMax - 640)/2, yOffset = (yMax - 480)/2;
	winProp = 'width=xMax, height=yMax'
	winProp = winProp + ',top='+yOffset+', left='+xOffset
	winProp = winProp + ', resizable=1, toolbar=1, scrollbars=1'
	Win = window.open(page, 'dev54', winProp)
	if (parseInt(navigator.appVersion) >= 4) { 
		Win.window.focus(); 
	}
}

function f(size){
	document.getElementById('content').style.fontSize= size + "px";;
}

/* DIV TRANSPARENT */
function hideDiv(){
	eval("document.getElementById('opacDiv').className='displayNone'");
	eval("document.getElementById('dispatch1').className='displayNone'");
}

function showDiv(dble, wdt, hgt, top){
	iHeight=document.body.offsetHeight;
	if (dble==1){
			iHeight= hgt;
	}
	if (iHeight<window.innerHeight){
		iHeight=window.innerHeight;
	}
	j=parent.document.getElementById('opacDiv');
	j.style.height=iHeight+'px';
	k=parent.document.getElementById('dispatch_1');
	k.style.width=wdt+'px';
	k.style.marginLeft= -wdt/2+'px';
	k.style.top= top+'px';
	l=parent.document.getElementById('dispatch1');
	l.style.width=wdt+'px';
	eval("document.getElementById('opacDiv').className='displayBlock'");
	eval("document.getElementById('dispatch1').className='displayBlock'");
}

function clock(){
  var date_now= new Date();
  var hr= date_now.getHours();
  var mn= date_now.getMinutes();
  var sc= date_now.getSeconds();
  mn= (mn < 10 ? "0" : "") + mn;
  sc= (sc < 10 ? "0" : "") + sc;
  hr= (hr == 0) ? 24 : hr;
  var clock_str= hr + ":" + mn + ":" + sc;
  document.getElementById("clock").firstChild.nodeValue = clock_str;
}

function roll(img, nom, nb){
	img.src='./pic/'+nom+nb+'.png';
}
// -->