﻿function enlarge(titleID, cousinSettingID, slideIndexToShow, title, path, captionFlag, playerHeight) {
    win = new Object();
    win.name = new String("modal" + titleID);
    win.name.modal = window.radopen(path + "_aspx/PhotoEssay.aspx?p=" + titleID + "&s=" + slideIndexToShow + "&c=" + cousinSettingID + "&cf=" + captionFlag + "&ph=" + playerHeight, null);
    win.name.modal.SetSize(590, parseInt(playerHeight)+175);
    win.name.modal.SetTitle(title);
    var width = GetScreenWidth();
    width = parseInt(width / 2 - 292)
    win.name.modal.MoveTo(width, 20);
}

function GetScreenWidth() {
    var width;

    if (typeof window.innerWidth != 'undefined') {
        width = window.innerWidth;
    }

    // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

    else if (typeof document.documentElement != 'undefined'
			&& typeof document.documentElement.clientWidth !=
			'undefined' && document.documentElement.clientWidth != 0) {
        width = document.documentElement.clientWidth;
    }

    return width;
}

function OnClientShow(radWindow) {
}

function OnClientClose(radWindow) {

}


