function blockMenu(id) {

	this.id=id;

	this.construct=blockMenuConstruct;

	this.construct();

}
function blockMenuConstruct() {

	var menu=document.getElementById("blockMenu"+this.id);

	for (var counter=0;counter<menu.children.length;counter++) {

		if (menu.children[counter].className=="hide") {

			menu.children[counter-1].onclick=blockMenuClick;
			menu.children[counter-1].className="category arrow";
			var version=parseFloat(navigator.appVersion.split("MSIE")[1]);
			if (document.all&&version<8) menu.children[counter-1].children[1].style.margin="-14px 6px 0 0";

		}

	}

	if (document.getElementById("menuUrlPath")) {

		var parent=document.getElementById("menuUrlPath").parentNode.parentNode;
		parent.className="subcategory";
		parent=document.all?parent.previousSibling:parent.previousSibling.previousSibling;
		parent.className="category clicked";
		parent.children[1].src=parent.children[1].src=="http://"+document.domain+"/theme/img/arrowBottom.png"?"http://"+document.domain+"/theme/img/arrowTop.png":"http://"+document.domain+"/theme/img/arrowBottom.png";

	}	

}
function blockMenuClick() {

	this.className=this.className=="category clicked"?"category arrow":"category clicked";
	this.children[1].src=this.children[1].src=="http://"+document.domain+"/theme/img/arrowBottom.png"?"http://"+document.domain+"/theme/img/arrowTop.png":"http://"+document.domain+"/theme/img/arrowBottom.png";
	var element=document.all?this.nextSibling:this.nextSibling.nextSibling;
	element.className=element.className=="subcategory"?"hide":"subcategory";

}
