var j=0;
var colorover="'#dc2f30'";
var colorout="'#000000'";


function ShowMenu(name, links, str, base_url)
{
if(name!="no")
{
document.write('<center><h3>');
document.write(name);
document.write('<hr width="80%" size=2pt></h3></center>');
}
document.write('<center><table border="0">');
j=0;
while(j<str.length)
{
document.write('<tr><td class=myli width="25" valign=top align=center><img src=image/56.gif></td><td style="padding-bottom:7;">');
if(links[j].substring(0,7)=="http://"){
 document.write('<a  style="text-decoration:none;" href="'+links[j]+'"');
 document.write(' target=_blank');
}
else{
 if(links[j].substring(links[j].length-3,links[j].length)=="zip"){document.write('<a   style="text-decoration:none;" href='+base_url+links[j]);}
 else
 if(links[j].substring(links[j].length-3,links[j].length)=="pdf"){document.write('<a   style="text-decoration:none;" href='+base_url+links[j]+' target=_blank');}
 else{
   if(links[j].substring(links[j].length-3,links[j].length)=="jpg"){
    document.write('<a style="text-decoration:none;" href='+base_url+links[j]+'     target=_blank');
   }
   else
   document.write('<a style="text-decoration:none;"       href=index.php?q='+base_url+links[j]);
}
}
document.write('><span class=subtopmenu onmouseover="this.style.color=');
document.write(colorover);
document.write(';" onmouseout="this.style.color=');
document.write(colorout);
document.write(';">');
document.write(str[j]+'</span></a></td></tr>');
j++;
}
document.write('</table></center>');
}

function SelectMenu(i)
{
document.all["m"+i].style.background="#32CD32";
document.all["n"+i].style.color="#ffffff";
}

function RestoreMenu(i)
{
document.all["m"+i].style.background="#006400";
document.all["n"+i].style.color="#ffffff";
}


