function $_(id) {
	return document.getElementById(id);
}

function $$(ob, tag) {
	return ob.getElementsByTagName(tag);
}

function ceaa (ob, tag) {
	var oTag = document.createElement(tag);
	return ob.appendChild (oTag);	
}

function switch_tab (id1, id2) {
	$_(id1).style.display = 'none';	
	$_(id2).style.display = 'block';	
}


function show_block (id1, id2) {
	
	var ob, args = show_block.arguments;
	
	for (i=1; i<args.length; i++) {
		ob = $_(args[i]);
		if (ob) ob.style.display = 'none';
	}
	
	ob = $_(args[0]);
	
	if (!ob) return;

	if (ob.style.display == 'none')
		ob.style.display = 'block';
	else
		ob.style.display = 'none';	
}

function over (ob) {

	if (ob.runtimeStyle && ob.runtimeStyle.filter) {
		ob.runtimeStyle.filter = ob.runtimeStyle.filter.replace(/\.png/, "_h.png");
	} else {
		ob.src = ob.src.replace(/\.png/, "_h.png");			
	}	
	
	ob.onmouseout = function () {
		
		ob = this;

		if (ob.runtimeStyle && ob.runtimeStyle.filter) {
			ob.runtimeStyle.filter = ob.runtimeStyle.filter.replace(/_h\.png/, ".png");
		} else {
			ob.src = ob.src.replace(/_h\.png/, ".png");
		}			
	}
	
	ob.onclick = function () {
		this.onmouseout = null;
	}
}