nbByCol=10
widthMenu=

effect = "Alpha(opacity=95);-moz-opacity:0.8;opacity:0.8;"

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()"></DIV>')

var delay_hide=500

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 (ie) 
{
	posXmenu=0
	posYmenu=15
}
else 
{
	posXmenu=0
	posYmenu=16
}


function pop(msg,pos)
{
	clear_delayhide()
	nbCol=Math.round(msg.length/nbByCol)
	largCol=(widthMenu)/nbCol
	//largCol=28
	skn.visibility="hidden"
	a=true
	skn.left=posXmenu+findPos(pos,'x')
	skn.top=posYmenu+findPos(pos,'y')
	var content='<TABLE style="filter:'+effect+'" BORDER="0" ALIGN="left" CELLPADDING="0" CELLSPACING="0" WIDTH="'+widthMenu+'" class="FrontStyleTab"'
	pass = 0
	content+='<TR><TD VALIGN="middle" ALIGN="left" bgcolor="#99CCFF"><TABLE CELLPADDING="2" CELLSPACING="1" BORDER="0" WIDTH="'+largCol+'" class="FrontStyleTab" align="left"  bgcolor="#FFFFFF">'
	while(pass<msg.length)
	{
		content+='<TR><TD class="FrontStyleTab" nowrap align="left" onMouseOut="javascript:this.style.background=\'#669999\'" onMouseOver="javascript:this.style.background=\'#99CCFF\'"  BGCOLOR="#669999">'+msg[pass]+'&nbsp;</TD></TR>'
		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
