/*
    WP-Clanwars
    (c) 2011 Andrej Mihajlov

    This file is part of WP-Clanwars.

    WP-Clanwars is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    WP-Clanwars is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with WP-Clanwars.  If not, see <http://www.gnu.org/licenses/>.
*/

jQuery(document).ready(function ($) {

    var settings = window.wpClanwarsLoginSettings || {};

    $('#steam-login').on('click', function () {
        window.open(settings.steam_login_url, 'wp-clanwars-auth', 'width=800,height=600');
    });

    $('#facebook-login').on('click', function () {
        window.open(settings.facebook_login_url, 'wp-clanwars-auth', 'width=520,height=320');
    });

    $('#wp-clanwars-why-login').tipsy();

});