function toggle(obj) {
	var container = obj.parentNode;
	var toggle_button = container.getElementsByTagName("div")[0];
	var description = container.getElementsByTagName("div")[2];
	var image = container.getElementsByTagName("img")[0];
	
	if (description.style.display != "block") {
		changeText(toggle_button, productCloseLabel);
		toggle_button.style.background = "url(/img/toggle_close.png) no-repeat 0px 3px";
		description.style.display = "block";
		image.style.width = "64px";
		image.style.height = "64px";
	}
	else {
		changeText(toggle_button, productOpenLabel);
		toggle_button.style.background = "url(/img/toggle_open.png) no-repeat 0px 3px";
		description.style.display = "none";		
		image.style.width = "32px";
		image.style.height = "32px";
	}
}

function changeText(obj, new_text) {
	if (obj.innerText)
		obj.innerText = new_text;
	else if (obj.firstChild && obj.firstChild.nodeValue)
		obj.firstChild.nodeValue = new_text;
}
