Cufon.replace('a.cufon, #nav > ul > li > a', {hover:true});

jQuery(function($) {
	$('#nav > ul > li:last').addClass('last');
	
	$('#nav > ul > li').each(function() {
		if ($(this).find('ul').length) {
			$(this).find('ul').wrap('<div class="dd"></div>');
		}
	});
	
    // Nav drop-down
    $('#nav > ul > li').hover(function() {
        $(this).find('.dd').toggle();
        $(this).find('a').toggleClass('hover');
        Cufon.refresh();
    });
    
    // Blink fields
    $('.blink')
    .live('focus', function(){
        if(this.value == this.title) {
            this.value = ''
        }
    })
    .live('blur', function() {
        if(this.value == '') {
            this.value = this.title
        }
    });
    
    // Home fader
    $('#fader').cycle({
        fx : 'fade'
    });
    
    $('.post-content .post-entry p:first, .page-content .page-entry p:first').addClass('first');
    
    $('#sidebar .box:last').addClass('nobg');
    
});
