﻿function GetWidth() {
    var x = 0;

    if (self.innerHeight) {
        x = self.innerWidth;
    } else if (document.documentElement && document.documentElement.clientHeight) {
        x = document.documentElement.clientWidth;
    } else if (document.body) {
        x = document.body.clientWidth;
    } else if (window.innerWidth) {
        x = window.innerWidth
    }

    return x;
}

function GetHeight() {
    var y = 0;

    if (self.innerHeight) {
        y = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) {
        y = document.documentElement.clientHeight;
    } else if (document.body) {
        y = document.body.clientHeight;
    } else if (window.innerHeight) {
        y = window.innerHeight
    }

    return y;
}

function callPopupNews(c_contentID) {
    theUrl = "newsItem_popUp.aspx?c_contentID=" + c_contentID
    $.facebox.settings.opacity = 0.5
    $.facebox({ ajax: theUrl })
}

function callPopupVideo(v_videoID) {
    theUrl = "video_popUp.aspx?v_videoID=" + v_videoID
    $.facebox.settings.opacity = 0.5
    $.facebox({ ajax: theUrl })
}

function callPopupImage(i_imageID) {
    theUrl = "image_popUp.aspx?i_imageID=" + i_imageID
    $.facebox.settings.opacity = 0.5
    $.facebox({ ajax: theUrl })
}
