// URL-Verarbeitung
function procurl (url,steps)  	
{url=url.replace('//','/'); sep='/'; loc=''; base=''; 
		    	  if(url.indexOf('\\')>0) {sep='\\'}
			 for (m=1; m<=steps; m++)
				{l    = url.split(sep).length
				 if (l>1) {
				 loc  = url.split(sep)[l-1]; 
				 base = url.substring(0,url.length-loc.length-1)
				 url  = base;}
				}
			}

    
pageURL=window.location.href;
procurl(pageURL,1);
imgURL='../images/120x80/' + loc.split('.')[0] + '.jpg';

//alert(imgURL);
if ((imgURL!='../images/120x80/index.jpg') && (imgURL!='../images/120x80/.jpg'))
   {
    document.images['navimg'].src=imgURL;
   }
