﻿var clientID = document.getElementById("hdnClientID").value;
function terms() {
    var URL = "terms.aspx?clientID=" + clientID;
    var oWnd = $find("rwDialog");
    oWnd.set_title("Terms &amp; Conditions");
    oWnd.set_width(450);
    oWnd.set_height(500);
    oWnd.setUrl(URL);
    oWnd.show();
}
function privacy() {
    var URL = "privacy.aspx?clientID=" + clientID;
    var oWnd = $find("rwDialog");
    oWnd.set_title("Privacy Statement");
    oWnd.set_width(450);
    oWnd.set_height(500);
    oWnd.setUrl(URL);
    oWnd.show();
}
function showNews(newsArticleID) {
    var URL = "news-popUp.aspx?newsArticleID=" + newsArticleID + "&clientID=" + clientID;
    var oWnd = $find("rwDialog");
    oWnd.set_title("News");
    oWnd.set_width(450);
    oWnd.set_height(500);
    oWnd.setUrl(URL);
    oWnd.show();
}
function showPlayerProfile(playerID, teamID) {
    var URL = "playerProfile.aspx?playerID=" + playerID + "&teamID=" + teamID + "&clientID=" + clientID;
    var oWnd = $find("rwDialog");
    oWnd.set_title("Player Profile");
    oWnd.set_width(450);
    oWnd.set_height(500);
    oWnd.setUrl(URL);
    oWnd.show();
}
$(document).ready(function () {
    $("div.panel_button").click(function() {
        $("div#newsTickerPanel").animate({
            height: "69px"
        })
        $("div.panel_button").animate({
            bottom: "69px"
        });
        $("div.panel_button").toggle();
    });
    $("div#hide_button").click(function() {
        $("div#newsTickerPanel").animate({
            height: "0px"
        }, "fast");
        $("div.panel_button").animate({
            bottom: "2px"
        }, "fast");
    });
});
