
function $() {
  var elements = new Array();

  for (var i = 0; i < arguments.length; i++) {
	var element = arguments[i];
	if (typeof element == 'string')
	  element = document.getElementById(element);

	if (arguments.length == 1)
	  return element;

	elements.push(element);
  }

  return elements;
}

function hide(element) {
  element = $(element);
  element.style.display = 'none';
}

function show(element) {
  element = $(element);
  element.style.display = 'block';
}




// hide noFlash loading thing for a little bit of time so it's not displayed unless you really don't have flash
window.setTimeout('showNoFlashDiv();',2000);

function showNoFlashDiv() {
	if ($("noFlashDIV") != null && $("noFlashDIV") != undefined) show("noFlashDIV");
}


function popWin(url,width,height) {
    window.open(url, '_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=' + width + ',height=' + height);
}