var path = location.pathname;
var lastSlash = path.lastIndexOf("/");
if (lastSlash < 1) {
	lastSlash = path.lastIndexOf("\\");
}

lastSlash = lastSlash + 1;
page = path.substring(lastSlash,path.length);

var bookStyle,supplyStyle,emergencyStyle;

normalStyle = "class='pageheadsmall'" ;
highlight = "class='headsmallhighlight'" ;

bookStyle = normalStyle;
supplyStyle = normalStyle;
emergencyStyle = normalStyle;

switch (page) {
	case "bun_shop.html" :
		bookStyle = highlight ;
		break;
	case "cages.html" :
		supplyStyle = highlight ;
		break;
	case "emergency.html" :
		emergencyStyle = highlight ;
		break;
}  // switch


document.write ( "<tr>" +
"<td colspan='3' bgcolor='#666633'>" +
"&nbsp; <span class='pageheadorange'>Bunny shop: &nbsp;</span>" +
"<a href='bun_shop.html' " + bookStyle + ">Books</a>" +
"<a href='cages.html' " + supplyStyle + ">&nbsp;&nbsp;-&nbsp;&nbsp;Cages</a>" +
"<a href='emergency.html' " + emergencyStyle + ">&nbsp;&nbsp;-&nbsp;&nbsp;Emergency kit</a>" +
"</td></tr> " ) ;