/// <reference path="GMC_common.js" />
var oWnd;
var windowWidth;
var windowHeight;
function openPopup(navigateUrl, width, height, centered) {

    windowWidth = width;
    windowHeight = height;
    
    //Getting rad window manager
    var oManager = GetRadWindowManager();
    oWnd = oManager.getWindowByName("DialogWindow");

    //set the url
    oWnd.setUrl(navigateUrl);
    oWnd.set_width(width);
    oWnd.set_height(height);
    
    //center or not
    if (centered == true) oWnd.center();

    //show it
    oWnd.show();
   
}

function videoWindow_OnClientClose(sender, eventArgs) {
    sender.reload();
}

function videoWindow_OnClientShow(sender, eventArgs) {    
    PageMethods.LogVideoView(sender.get_title());
}