/*

Johnston Health base js.

==================================================================================================================*/

/* Cufon
==================================================================================================================*/
Cufon.replace('.content h1', { fontFamily: 'Berling Bold' });
Cufon.replace('.first-instance .content h1', { fontFamily: 'Berling Bold', textShadow: '#000 0 1px' });
Cufon.replace('#index h1, .content h2, legend span', { fontFamily: 'Berling Bold' });
Cufon.replace('.module h2, #index-links a', { fontFamily: 'Trade Gothic Bold', hover: true });


/* jQuery Awesomeness
==================================================================================================================*/
$(document).ready(function() {
	$('#n-search input[type=text]').placeholder();
	
	if ($('body.inner').length > 0 ) {
	  var divElem = $('.quick-links');
	  var headerElem = $('h3', divElem);
	  var ulElem = $('ul', divElem).addClass('quickie').hide();
	  var actionBool = false;
	  $('.secondary-content').css('padding-top', '45px');
	  
	  divElem.bind( "mouseenter", function() {
		  if (! actionBool) {
			  ulElem.slideDown('fast');
			  actionBool = true;
		  }
	  });
	  divElem.bind( "mouseleave", function() {
		  ulElem.slideUp('fast', function() { actionBool = false; });
	  });
	}
	
	/*$('#additional-info').tabs();*/
	
},function(){
	GUnload();
});
