browserName = navigator.appName
browserVer = parseInt(navigator.appVersion)
NS4 = ((document.layers) || ((browserName == "Netscape") && (browserVer >= 3) && (browserVer <= 4))) ? true : false
NS5 = ((browserName == "Netscape") && (browserVer == 5)) ? true : false
if (NS5) NS4 = false
IE4 = (document.all) ? true : false
IE55 =  navigator.appVersion.indexOf('MSIE 5.5') > -1 || navigator.appVersion.indexOf('MSIE 6.0') > -1
V4 = (NS4 || IE4) ? true : false
timer1 = setTimeout("", 0)
list = new Array('menu1','menu2','menu3','menu4','menu5','menu6','menu7','menu8','menu9','menu10','menu11','menu12','menu13','menu14')
function DoNvigation(qn)
{
document.location.href = qn.options[qn.selectedIndex].value
}
function cacher(calque)
{
if(NS4) {
document.layers[calque].visibility = 'hidden'
}
if(NS5) {
document.getElementById(calque).style.visibility = 'hidden'
}
if(IE4) {
document.all[calque].style.visibility = 'hidden'
}
}
function dump(el) {
var s = ''
for (p in el) {s += (p+'\n')}
alert(s)
}
function voir(calque, e)
{
for(i in list) {
if (list[i] == calque) break;
}

var p = document.getElementById('t'+i)
var sum = 0, s
do { sum += p.offsetLeft
p = p.parentElement
} while (p)
w = 173 + sum + document.getElementById('t'+i).offsetLeft + document.getElementById('m'+i).offsetLeft
h = 76 + document.getElementById('t'+i).offsetTop + document.getElementById('m'+i).offsetTop
 h = 76 + document.getElementById('t'+i).offsetTop
 w = 173 + document.getElementById('t'+i).offsetLeft + document.getElementById('m'+i).offsetLeft
document.all[calque].style.left = w
document.all[calque].style.top = h
document.all[calque].style.visibility = 'visible'

}
function raz()
{
clearTimeout(timer1)
for(i in list) {

document.getElementById(list[i]).style.visibility = 'hidden'

}
}
function inactall()
{
timer1 = setTimeout('raz();',500)
}
function canceltime()
{
clearTimeout(timer1)
}

//////////////////////

if( parseInt( navigator.appVersion ) >= 3 ) compat = true
if(compat)
{
I1 = new Image
I1.src="/img/sqr_w.gif"
I1_1 = new Image
I1_1.src="/img/sqr_y.gif"
}
function SetImage(Name,Img)
{
if(compat)
{
document.images[Name].src=eval(Img+'.src')
}
}
function img_open(img_src, w, h, title) {
var win = window.open(img_src, "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+"")
win.moveTo((win.screen.availWidth/2) - (w/2), (win.screen.availHeight/2) - (h/2))
win.document.open()
win.document.write(
'<html><head><title>'+title+'</title></head>'+
'<body bgcolor="#ffffff" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">'+
'<a href="javascript:window.close()"><img border="0" alt="'+title+'" src="'+img_src+'" width="'+w+'" height="'+h+'" />'+
'</body></html>')
win.document.close()
return false
}
function details(x, y, w, h, url) {
var win = window.open(url, "_blank", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,titlebar=0,channelmode=0,left="+x+",top="+y+",width="+w+",height="+h)
}

////////////////////////////////

function win(url,n)
{
var win='left=50,top=20,toolbar=0,directories=0,menubar=1,scrollbars=1,resizable=1, status=0, width=340,height=420';
open(url, n, win);
}

///////////////////////////

function mail_address(user,domain,zone) {
document.write(user+'@'+domain+'.'+zone);
}

function mail_send(user,domain,zone) {
document.location.href = 'mailto:'+user+'@'+domain+'.'+zone;
}

