var sThisPos=location.href.toString();
sThisPos=sThisPos.slice(sThisPos.lastIndexOf("/")+1,sThisPos.lastIndexOf("."));if (sThisPos=="") sThisPos="index";

for (i=0 ; i<m.length ; i++)
    m[i].url=m[i].url.slice(0,m[i].url.lastIndexOf("."))+".php";


function hilite(sID,txt,col) {
    window.status=txt;
    if (document.layers)
        document.layers[sID].bgColor = col;
    else if (document.all)        document.all[sID].style.backgroundColor = col;
    else if (document.getElementById)
         document.getElementById(sID).style.backgroundColor = col;    return true;}
function setHref(obj,sID) {	var Mover = "return hilite('"+sID+"','"+obj.status+"','"+oStyle.hi+"')";	var Mout  = "return hilite('"+sID+"','','"+oStyle.lo+"')";

	return '<a href="'+obj.url+'" onMouseOut="'+Mout+'" onMouseOver="'+Mover+';return true" class="hm">'+obj.title+'</a>';
}function isHere(sURL) {
    return (sURL.slice(0,sURL.lastIndexOf("."))==sThisPos);}
function drawMenu() {
    document.write('<style>');    document.write('td.hm {background-color:'+oStyle.lo+'}\n');    document.write('td.hmo {font-size:11px;color:'+oStyle.hitxt+';background-color:'+oStyle.hi+'}\n');
    document.write('a.hm {font-size:11px;color:#ffffff;text-decoration:none}\n');    document.write('a.hm:link {color:#ffffff}\n');    document.write('a.hm:visited {color:#ffffff}\n');
    document.write('a.hm:hover {color:'+oStyle.hitxt+';background-color:'+oStyle.hi+'}\n');
    document.write('</style>');
    document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>');
    for (i=0 ; i<m.length; i++) {
	    if (!isHere(m[i].url)) {
            if (document.layers) {
                ahref = setHref(m[i],"hml"+i);
                document.write('<td class="hm" align="center"><ilayer id="hml'+i+'" width="100%" style="{visibility:hide}">'+ahref+'<img align="absmiddle" src="s.gif" width="1" height="'+oStyle.height+'"></ilayer></td>');            }
            else {
                ahref = setHref(m[i],"hm"+i);
                document.write('<td class="hm" id="hm'+i+'" align="center">'+ahref+'</td>');
            }        }
        else
            document.write('<td align="center" class="hmo"><p class="hmo">'+m[i].title+'</p></td>');    	        document.write('<td width="1"><img src="s.gif" width="1" height="'+oStyle.height+'"></td>');    }
    document.write('</tr>');    if (document.layers)        document.write('<tr><td colspan="'+((m.length*2)-1)+'"><img src="s.gif" width="562" height="1" border="0" alt="" /></td></tr>');    else        document.write('<tr><td><img src="s.gif" width="1" height="1" border="0" alt="" /></td></tr>');
    document.write('</table>');
}