// This contains all base javascript (e.g. siFR, swfobject calls, etc)

//  base.js
//  WebDevTemplate
//  
//  Created by Brandon Calloway on 2008-08-01.
//  Copyright 2008 Scully Group. All rights reserved.
// 

$(document).ready(function() {

  $("#main-nav li a").hover(
      function () {
        var  next = $(this).next(); 
  
        //add the bold class
        next.find("li:first-child").addClass("bold");
        
        //replace it
        Cufon.replace('.nav-slider li', {
    		   hover: true
    		});
  
      }, 
      function () {
        var  next = $(this).next(); 
        
        //remove the bold class
        next.find("li:first-child").removeClass("bold");
        
        //replace it again
        Cufon.replace('.nav-slider li', {
    		   hover: true
    		});
      }
    );
    
    Cufon.replace('.where-when', {});
    
}); //end document.ready
