// JavaScript Document



$(document).ready(function() {

/* smooth scroller */
    $('a[href*=#]').click(function() {
    
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({scrollTop: targetOffset}, "slow");
                    
                return false;
                
            }
            
        }
        
    });

/*colorbox*/
 $('a.cb').colorbox();
 
 /*pull down menu*/


								   
$(".mmenu a.mmf").hover(function() {

$(this).addClass('good');
								 
$("#submenu").show(); //Drop down the subnav on click
$(this).parent().hover(function() {
}, function(){
$("#submenu").slideUp(300,function(){ //When the mouse hovers out of the subnav, move it back up
$(this).parent().find("a.mmf").removeClass('good'); 
	})
})
});

}); /* end document ready function */