jQuery(document).ready(function($){
// need the above line so I can use the $	
// **************************************

		// this guy adds what I need for all browsers to understand last-child for the main menu
  		$('div.menu-top-menu-container ul > li:last-child').addClass('last-child');
  		
  		// this little function find those pesky  empty p's (<p></p>) that wordpress sometimes sticks in - and removes them
  		// $('p')
	    // .filter(function() {
	    //    return $.trim($(this).text()) === ''
	    //  })
	    // .remove()
	    
	    
	    
	    /*
 * Written by Rob Schmitt, The Web Developer's Blog
 * http://webdeveloper.beforeseven.com/
 */
 
var active_color = '#000'; // Colour of user provided text
var inactive_color = '#999'; // Colour of default text
 
$(document).ready(function() {
  $("input.default-value").css("color", inactive_color);
  var default_values = new Array();
  $("input.default-value").focus(function() {
    if (!default_values[this.id]) {
      default_values[this.id] = this.value;
    }
    if (this.value == default_values[this.id]) {
      this.value = '';
      this.style.color = active_color;
    }
    $(this).blur(function() {
      if (this.value == '') {
        this.style.color = inactive_color;
        this.value = default_values[this.id];
      }
    });
  });
});


// SUPERFISH

// $('ul#menu-top-menu').addClass('sf-menu sf-navbar');

$('ul.sf-menu')
  .find('li.current_page_item,li.current_page_parent,li.current_page_ancestor')
    .addClass('current')
    .end()
  .superfish({
    pathClass : 'current',
    pathLevels:    3
  }); 

//table stuff for Toltips using qTip 

// masonry

$('.resource-list').masonry({
  itemSelector: '.resources',
  isFitWidth: true
});




/* $(function() {
    $("table.wp-table-reloaded-id-14 td").mouseover(function() {
        //The onmouseover code
        $(this).css("background","#0000ff");
    }).click(function() {
        //The onclick code
        $(this).css("background","#336699");
    });
});
*/




// ***************************************
// the following line closes everything up
});

