﻿/* scripts copied from html */
$(document).ready(function() {

    $("#newcomer").toggle(
    function() {
        document.getElementById("flash_link").style.display = "";
    },
    function() {

        document.getElementById("flash_link").style.display = "none";
    }
    );

    // log in check
    var check = document.getElementById($("#SwitchHiddenFieldId").val());
    if (check.value == 1) {
        login_click();
        check.value = 0;
    }

    // suba home click
    $("#go_home").click(function() {
        document.location.href = 'http://www.subagames.com';
    });

    //    // change iframe size
    //    function iframe10() {
    //        var iframe = $("#ranking");
    //        iframe.attr({'class': iframe.attr("class").split(" ")[0] + " top10"});
    //        iframe.attr({'src': "brigade.aspx"});
    //    };
    //    
    //    function iframe20() {
    //        var iframe = $("#ranking");
    //        iframe.attr({'class': iframe.attr("class").split(" ")[0] + " top20"});
    //        iframe.attr({'src': "player.aspx"});
    //    };
});

/* login panel control */
function login_click() {
    $('#login_panel').toggle();
}
