// 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 = ""
}

$(document).ready(function()
{ 
  $('ul.sf-menu').superfish(); 
  $('#miniCalendar').load('/calendar #mc_wrap');
  $('#mc_prev_month, #mc_next_month').live('click', function(event)
	  {
			var theUrl = $(this).attr("href") + " #mc_wrap";
      $('#miniCalendar').load(theUrl); event.preventDefault();
	  });
});

