var nsNav = (document.layers) ? 1 : 0;
var ieNav = (document.all) ? 1 : 0;

nbByCol=20
widthMenu=

effect = "Alpha(opacity=100)"

document.write('<style type="text/css">')
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:100; }')
document.write('</style>')
document.write('<DIV class=popper id=topdeck onMouseover="clear_delayhide();" onMouseout="resetit();" z-index:100></DIV>')

var delay_hide=5
var mac=(navigator.appVersion.indexOf("Mac") != -1)&&(document.all)&&(navigator.appVersion.indexOf("5.0") != -1)
var nava=(document.layers)
var dom=(document.getElementById)
var iex=(document.all)
var ie = document.all ? true : false
var ns = document.layers ? true : false
if(nava) skn=document.topdeck
else if(dom) skn=document.getElementById("topdeck").style
else if(iex) skn=topdeck.style

if(mac) { posXmenu=-210;posYmenu=-90 }
else if(ie){ posXmenu=5;posYmenu=27 }
else{ posXmenu=0;posYmenu=27 }

function pop(msg,pos,color)
{
	if(msg.length>0)
	{
	clear_delayhide()
	nbCol=Math.round(msg.length/nbByCol)
	largCol=(widthMenu)/nbCol
	skn.visibility="hidden"
	a=true
	skn.left=posXmenu+findPos(pos,'x')+'px'
	skn.top=posYmenu+findPos(pos,'y')+'px'
	var content='<TABLE style="filter:'+effect+'" BORDER="0" ALIGN="left" CELLPADDING="1" CELLSPACING="0" WIDTH="'+widthMenu+'" HEIGHT="23" class="FrontStyleTab" bgcolor="'+color+'"'
	pass = 0
		content+='<TR><TD VALIGN="middle" ALIGN="left"><TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="'+largCol+'" class="FrontStyleTab" align="left"  bgcolor="#FFFFFF">'
	while(pass<msg.length)
	{
		content+=msg[pass];
		pass++
		if ((pass/nbByCol)==Math.round(pass/nbByCol))
		{
				content+='</TABLE>'
				if(msg.length>pass) content+='</TD><TD VALIGN="middle" class="FrontStyleTab" ALIGN="left"><TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="'+largCol+'" class="FrontStyleTab" ALIGN="left">'
		}
	}
		content+='</TABLE></TD></TR></TABLE>'
	if(nava)
	{
		skn.document.write(content)
		skn.document.close()
		skn.visibility="visible"
		}else if(dom)
	{
		document.getElementById("topdeck").innerHTML=content
		skn.visibility="visible"
		}else if(iex)
	{
		document.all("topdeck").innerHTML=content
		skn.visibility="visible"
		}
	}
}

function resetit(){ if(iex) delayhide=setTimeout("kill()",delay_hide) }

function clear_delayhide(){ if (window.delayhide){ clearTimeout(delayhide) } }

function findPos(obj,pt)
{
	var curleft=0
	if(dom || iex)
	{
		if(pt=='x') Pos = obj.offsetLeft
		else Pos = obj.offsetTop
		tempEl = obj.offsetParent
		while (tempEl != null)
		{
			if(pt=='x') Pos += tempEl.offsetLeft
			else Pos += tempEl.offsetTop
			tempEl = tempEl.offsetParent
		}
		return Pos
	}else if(nava)
	{
		if(pt=='x') return obj.pageX
		else return obj.pageY
	}
}

function kill(){ skn.visibility="hidden" }

document.onclick=kill