var link = new Array("home", "webdesign", "newsletterservice", "suchmaschinenservice", "impressum");

function init() {
x=getPageName();
restoreLinks();

if (document.getElementById)
    parent.self.document.getElementById(x).style.color = '#FFCC33';
else parent.self.document.all.x.style='#FFCC33';
}


function restoreLinks() {

  for(var i = 0; i <=4 ; i++) {
     y=link[i];
     if (parent.self.document.getElementById)
        parent.self.document.getElementById(y).style.color = '';
     else parent.self.document.all.link[i].style.removeAttribute('color','false');
  }
}

function getPageName() {
     URL=self.location.href;

     if (URL.lastIndexOf("\\")>-1) Start=URL.lastIndexOf("\\");
     else if (URL.lastIndexOf("/")>-1) Start=URL.lastIndexOf("/");

     Ende=URL.length-4; 

     Seite=URL.substring(Start+1,Ende);      
     
     return Seite; 
   }
