
function Folder_Path(path)
{
	var pos=path.lastIndexOf("/"); 
	var path=path.substring(0,pos);
	return path;
}//end of Folder_Path

function Folder_Location()
{	
	if (navigator.appName != "Netscape") 
	{	
		var link=document.location.href;	
		var coll = document.all.tags("a");								  
		if (coll!=null)
		{	
			for (i=0; i<coll.length; i++)
			{
				if(Folder_Path(link).toUpperCase()==Folder_Path(coll[i].href).toUpperCase() ) 
				{
					coll[i].style.color="#FFFFFF";		
					coll[i].style.backgroundColor="#003399";						
					coll[i].style.paddingTop='3px';
					//coll[i].style.borderTop='1px solid #CC0000';
					coll[i].style.borderRight='thick none';
					//coll[i].style.borderBottom='3px solid #666666';
					coll[i].style.borderLeft='thick none';			
	    		}//end of if 
			} //end of for
		}//end of if
		
		for (var i=0; i<document.links.length; i++) 
		{
			if (Folder_Path(document.links[i].href) == Folder_Path(link) ) 
			{
				document.links[i].href = 'javascript:;';
				document.links[i].onclick = '';
			}
		}//end of for
	}	
}//end of Folder_Location function