/**
 * global.js
 *
 * Global JavaScript variables and functions for the One Pro Wrestling website.
 *
 * @author Martin Bean <martin@yourfightsite.com>
 * @version 2.0
 */

Cufon.replace('#content h1 span');
Cufon.replace('#content h2 span');
Cufon.replace('body.store #content h3 span');
Cufon.replace('#sidebar h3 span');

$(document).ready(function() {
    /*$('a').each(function() {
        $(this).click(function() {
            if (this.host != window.location.host) {
                window.open(this.href);
                return false;
            }
        });
    });*/
    $('a[rel="external"]').attr('title', function() { return this + ' (opens in a new window)'; }).click(function() {
        window.open(this.href);
        return false;
    });
    $('a[rel=popup]').fancybox({
        overlayOpacity: 0.7,
        overlayColor: '#000'
    });
    $('#splash').tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 5000);
    $('#event_info').tabs();
});
