$(function(){
  	// Document is ready
	//External links.
	$('a[rel="external"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});

	FLIR.init( { path: './_scripts/' } );
	FLIR.replace( 'h3.sub_section', new FLIRStyle({ cFont:'avant', mode:'wrap' }) );
	FLIR.replace( 'h3.sub_section2', new FLIRStyle({ cFont:'avant', mode:'wrap' }) );
	FLIR.replace( 'p#also', new FLIRStyle({ cFont:'avant', mode:'wrap' }) );
	FLIR.replace( 'p.artists', new FLIRStyle({ cFont:'avant', mode:'wrap' }) );
	FLIR.replace( 'p#legal', new FLIRStyle({ cFont:'avant', mode:'wrap' }) );
});

function UnCryptMailto( s )
    {
        var n = 0;
        var r = "";
        for( var i = 0; i < s.length; i++)
        {
            n = s.charCodeAt( i );
            if( n >= 8364 )
            {
                n = 128;
            }
            r += String.fromCharCode( n - 1 );
        }
        return r;
    }

    function linkTo_UnCryptMailto( s )
    {
        location.href=UnCryptMailto( s );
    }