t_browser=false
t_browserver=0
IE4=!!document.all
W3C=DOM=!!document.getElementById
NS4=!!document.layers
Mac=(navigator.appVersion.indexOf("Mac")!=-1)
if((i=navigator.userAgent.indexOf('Opera'))!=-1){
	t_browser='opera'
	t_browserver=parseFloat(navigator.userAgent.substr(i + 6, 3))
}else if((i=navigator.userAgent.indexOf('MSIE'))!=-1){
	t_browser='msie'
	t_browserver=parseFloat(navigator.userAgent.substr(i + 5, 3))
}else if((i=navigator.userAgent.indexOf('Gecko'))!=-1){
	t_browser='gecko'
	t_browserver=navigator.userAgent.substr(i + 6, 8)
}else if(NS4){
	t_browser='ns4'
}else if(navigator.userAgent.indexOf('Konqueror')!=-1){
	t_browser='konqueror'
}

m_xPos = new Array(214,214,500);
m_yPos = (NS4)?81:73;
m_ok=true
t_frys=false
t_luktimer=null
t_aaben=1
topZ=0
t_antal=3
t_contentW=750

function t_getelement(id){
	return W3C?document.getElementById(id):
		IE4?document.all[id]:
		NS4?document[id]:false;
}

function iknoget(){}

function t_offset(){
	var t_winW
	if(t_browser=='gecko')
		t_winW=document.body.offsetWidth
	else if(window.innerWidth)
		t_winW=window.innerWidth-(NS4&&!Mac?16:0)
	else if(document.body&&document.body.clientWidth)
		t_winW=document.body.clientWidth
	else
		t_winW=100
	
	return(t_winW<t_contentW)?0:Math.floor((t_winW-t_contentW)/2)
}


function t_over(){clearTimeout(t_luktimer)}

function t_ud(){
	if(!t_frys) {
		t_luktimer=setTimeout("t_luk("+t_aaben+")",500)
	}
}

function t_luk(id){
	clearTimeout(t_luktimer)
	t_flickmenu(id,false)
}

function t_flickmenu(id,vis){
	var t_offsetW=t_offset()
	var m=t_getelement("m"+id)
	if(NS4){
		m.moveTo(m_xPos[id-1]+t_offsetW,m_yPos)
		m.visibility=vis?"show":"hide"
	}else{
		m.style.left=m_xPos[id-1]+t_offsetW
		m.style.top=m_yPos
		m.style.visibility=vis?"visible":"hidden"
		m.style.zIndex=10000
	}
}


function t_popop(id){
	clearTimeout(t_luktimer)
	for(i=1;i<=t_antal;i++)
		t_flickmenu(i,i==id)
	t_aaben=id
	t_frys=false
}

