/**
 * global.js
 *
 * Global JavaScript functions and variables for Your Fight Site CMS front-end.
 *
 * @author Martin Bean <martin@yourfightsite.com>
 */
$(document).ready(function() {
    if (window.Cufon) {
        Cufon.replace('#navigation', {
            hover: true,
            separate: 'none',
            textShadow: 'rgba(0,0,0,0.25) 2px 2px 1px',
            trim: 'simple'
        });
        Cufon.replace('h1');
        Cufon.replace('#latest-media h2');
    }
    $('a[rel="external"]').addClass('external').attr('title', function() {
        return this.title + ' (opens in new window)';
    }).click(function() {
        window.open(this.href);
        return false;
    });
    $('.cycle').tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 5000);
});
