// various initialization functions + misc js scripts
 
$(document).ready(function(){ 
   $("ul.sf-menu").superfish();
   // get rid of superfish's automatic arrow-adding to top level menus
   $('ul.sf-menu > li > a span').remove();  
}); 
 
// $(document).ready(function() {
//	$(window).load(function () { 
//       $('#topwarnings').fadeTo(4000,1).fadeOut(1000); 
//    });
// });

$(document).ready(function() 
{
   $('.why a[href]').qtip(
   {
      content: 'Registering on the Parkland site lets you comment on selected items, and add events to the public calendar.',
      position: {
      corner: {
         target: 'bottomLeft',
         tooltip: 'topRight'
      	}
   	  }
   });
});

$(document).ready(function() {
	$('a#loginLink').click(function() {
		if (document.getElementById('loginFormMiniMain').style.display == 'block')
			{
				$('#loginFormMiniMain').fadeOut('fast');
			}
		else
			{
				$('#loginFormMiniMain').fadeIn('fast');
				document.getElementById('username').focus();
			}
		return false;
	});
});

AudioPlayer.setup("/playeraudio/player.swf", {  
	width: 290  
});

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

