
/*
			style anchor tags inside given container
			if it's href matches current page href
*/
function style_pages_link(container, styles)
{
	var grp, imgs;
	if(grp = document.getElementById(container)) {
		if(els = grp.getElementsByTagName('a')) {
			for(var i=0, n=els.length; i<n; i++) {
				if(els[i].href == document.location.href) {
					for(s in styles) {
						els[i].style[s] = styles[s];
					}
					//break;
				}
			}
		}
	}
}

//		init		//
//style_pages_link('nav_top', {color:'black'});
//style_pages_link('nav_books', {color:'black'});
//style_pages_link('nav_books_herethere', {color:'black'});

//decode_email_links();