// JavaScript Document

var currentPage=location.pathname.substr(location.pathname.lastIndexOf('/')+1);


astop=document.getElementById('topmenu').getElementsByTagName('a');


for (i=0;i<astop.length;i++)
{  
  if (astop[i].href.search(currentPage) > 0)
  {
    mymenuitem=astop[i].parentNode;
    mymenuitem.style.backgroundImage="url('img/menu" + (i+1) + "b.gif')";;
  }
}

asleft=document.getElementById('left').getElementsByTagName('a');

for (i=0;i<asleft.length;i++)
{
  if (asleft[i].href.search(currentPage) >0)
  {
      asleft[i].style.color='#f00';
  }  
}


