function showit(which){
clear_delayhide()
if (which != -1){
document.getElementById(0).style.background='url(../../images/layout/btn_main1.gif)';
document.getElementById(1).style.background='url(../../images/layout/btn_main1.gif)';
document.getElementById(2).style.background='url(../../images/layout/btn_main1.gif)';
document.getElementById(3).style.background='url(../../images/layout/btn_main1.gif)';
document.getElementById(4).style.background='url(../../images/layout/btn_main1.gif)';
document.getElementById(5).style.background='url(../../images/layout/btn_main1.gif)';
document.getElementById(0).style.color='#ffffff';
document.getElementById(1).style.color='#ffffff';
document.getElementById(2).style.color='#ffffff';
document.getElementById(3).style.color='#ffffff';
document.getElementById(4).style.color='#ffffff';
document.getElementById(5).style.color='#ffffff';
document.getElementById(which).style.background='url(../../images/layout/btn_main_over.gif)';
document.getElementById(which).style.color='#000000';
document.getElementById('describe').style.backgroundColor = '#4f9dd7';
}
else {
document.getElementById('describe').style.backgroundColor = '#293284';
document.getElementById(0).style.background='url(../../images/layout/btn_main.gif)';
document.getElementById(1).style.background='url(../../images/layout/btn_main.gif)';
document.getElementById(2).style.background='url(../../images/layout/btn_main.gif)';
document.getElementById(3).style.background='url(../../images/layout/btn_main.gif)';
document.getElementById(4).style.background='url(../../images/layout/btn_main.gif)';
document.getElementById(5).style.background='url(../../images/layout/btn_main.gif)';
document.getElementById(0).style.color='#ffffff';
document.getElementById(1).style.color='#ffffff';
document.getElementById(2).style.color='#ffffff';
document.getElementById(3).style.color='#ffffff';
document.getElementById(4).style.color='#ffffff';
document.getElementById(5).style.color='#ffffff';
}
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
	delayhide=showit(-1)
//delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
	delayhide=showit(-1)
//delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
