// JavaScript Document

var newwindow;
function pop(url)
{
	newwindow=window.open(url,'name','toolbar=yes,scrollbars=yes,location=yes,status=yes,menubar=yes,resizable=yes, width=800,height=600');
	if (window.focus) {newwindow.focus()}
}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function initMenu() {
  $('#nav > li > ul').hide();
  $('#nav li.here ul, #nav li.parent-here ul').show();
  $('#nav > li > a').click(
  function(e) {
  var checkElement = $(this).next();
  if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
  return false;
  }
  if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
  $('#nav > li > ul:visible').slideUp('normal');
  checkElement.slideDown('normal');
  return false;
	e.preventDefault();
  }
  }
  );
  }



