// FHL: MCD66 - product browsing
var productType = "";
var productActive = 1;

function initProducts(type, count) {
	for (i=2; i<=count; i++) {
		obj(type + i).style.display = "none";
	}
	productType = type;
}

function showProduct(url) {
	var hasParam = url.indexOf("#");
	if (hasParam > -1) var id = url.substring(hasParam+2);

	if (id == productActive) return;
	obj(productType + productActive).style.display = "none";
	obj(productType + id).style.display = "block";
	productActive = id;
}