﻿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();
}
function showWorldCupVenues() {
    var URL = wcVenueURL;
    var oWnd = $find("rwDialog");
    oWnd.set_title("World Cup Venues");
    oWnd.set_width(625);
    oWnd.set_height(535);
    oWnd.setUrl(URL);
    var innerFrame = oWnd.get_contentFrame().contentWindow;
    innerFrame.document.documentElement.style.overflow = "hidden";
    oWnd.show();
}
function showWorldCupFeatures() {
    var URL = wcFeaturesURL;
    var oWnd = $find("rwDialog");
    oWnd.set_title("World Cup Features");
    oWnd.set_width(625);
    oWnd.set_height(535);
    oWnd.setUrl(URL);
    oWnd.show();
}
function showWorldCupHistory() {
    var URL = wcHistoryURL;
    var oWnd = $find("rwDialog");
    oWnd.set_title("World Cup Features");
    oWnd.set_width(625);
    oWnd.set_height(535);
    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");
    });
});