// JavaScript Document

// tooltip variables
var DURATION=14;

function $$(id) {
	if(typeof(id)=='Object') return id;
	if (document.getElementById(id)) return document.getElementById(id);
	return false;
}

/*	Hides all elements in 'hide' array, and will display the show element
*/function toggle(show,hide)  {
	for (var i=0; hide[i]; i++) {
		if ($$(hide[i])) {
			$$(hide[i]).style.display='none';
		}
	}
	$$(show).style.display='block';
}

function inputFocus(el,str) {
	if (el.value==str) {
		el.value='';
	}
}
function inputBlur(el,str) {
	if (el.value=='') {
		el.value=str;
	}
}
