Cufon.replace('.custom-font', {
    fontFamily: 'Folks'
});
Cufon.replace('.custom-font-bold', {
    fontFamily: 'Folks-Heavy'
});

jQuery(document).ready( function() {
    jQuery( '.external_link' ).each( function() {
	jQuery(this).attr( 'target', '_blank' );
    } );

    jQuery(".block-click").click(function( e ){
	e.preventDefault();
	var href	= jQuery(this).find("a").attr("href");
	var popup	= window.open( href, 'popup' );
	if ( popup ) {
	    popup.focus();
	} else {
	    window.location = href;
	}
    });

    jQuery( 'a[rel^=prettyPopin]' ).prettyPopin( {
	width: 750,
	height: 608,
	loader_path: '/images/loader.gif'
    } );

    jQuery('input.defaultValue' ).each( function() {
	var input	= jQuery(this);
	var dfltValue	= input.val();
	input.focus( function() {
	    if ( jQuery(this).val() == dfltValue ) {
		jQuery(this).val( '' );
	    }
	} ).blur( function() {
	    if ( '' == jQuery(this).val() ) {
		jQuery(this).val( dfltValue );
	    }
	} );
    } );
} );

