jQuery(function() {
    // This function makes any links marked with rel=external pop up in a new window
    jQuery('a[rel=external]').click(function() { window.open(this.href); return false; });
    //jQuery('label.compact' ).compactlabels();
	//for blockquote styles
	jQuery('.entry-content blockquote' ).wrap('<div class="blockq"></div>').find('p:last').css('padding-bottom','0');
    
});
(function($) {
    $.fn.compactlabels = function() {
        return this.each(function() {
            var me = this;
            var elfor = $(this).attr('for');
            if (elfor) {
                var field = $('#' + elfor);
                if (field.length > 0) {
                    //setup label
                    $(this).addClass('over-label').click(function() { field.focus(); });
                    // Hide any fields having an initial value.
                    if (field.val() !== '') {
                        $(me).css('text-indent', '-1000px');
                    }
                    //input focus event
                    field.focus(function() {
                        $(me).css('text-indent', '-1000px');
                    }).blur(function() {
                        if ($(this).val() === '') {
                            $(me).css('text-indent', '0px');
                        }
                    });
                }
            }
        });
    };
})(jQuery);