function __tabMenu(init){


	var d = document,
		get = 'getElementById',
		tags = 'getElementsByTagName',
		items = d[get]('tabmenu')[tags]('a'),
		anchor,
		show = function(id){

			for(var i=0; i<items.length; i++){

				anchor = items[i].href.split('#')[1];
				if(!d[get](anchor))
					continue;
				if(id == anchor){

					items[i].className = 'active';
					d[get](anchor).style.display = 'block';

				} else {

					items[i].className = '';
					d[get](anchor).style.display = 'none';

				}

			}

		};

	if(/^#.+/.test(location.hash))
		show(location.hash.slice(1,location.hash.length));
	else
		show(init);

 	for(var i=0; i<items.length; i++){

		items[i].onclick = function(){
			anchor = this.href.split('#')[1];
			show(anchor);
			return false;
		}
	}
}
