﻿function openSection(index) {
//    if (index == 8) {
//        alert("Esta sección estará disponible próximamente.");
//        return;
//    }
    __doPostBack("ctl00_btnFake", "OpenSection;" + index);
    return false;
}

function openImageDetail(id) {
    window.showModalDialog("ImageDetail.htm?Id=" + id, null, "dialogWidth:660px; dialogHeight:440px; center:yes");
    return false;
}

function openCalendarDetail(id) {
    window.showModalDialog("CalendarDetail.htm?Id=" + id, null, "dialogWidth:550px; dialogHeight:600px; center:yes");
    return false;
}

function openPhotoDetail(id) {
    //window.showModalDialog("PhotoDetail.htm?Id=" + id, null, "center:yes; resizable:yes");
    window.open("PhotoDetail.htm?Id=" + id, "PhotoDetail", "width=500px, height=500px, resizable=no, scrollbars=no").focus();
    return false;
}

function changeGalleryPage(page) {
    __doPostBack("ctl00_btnFake", "ChangeGalleryPage;" + page);
    return false;
}

function selectGalleryImage(index) {
    __doPostBack("ctl00_btnFake", "SelectGalleryImage;" + index);
    return false;
}

function selectGalleryPreviousImage() {
    __doPostBack("ctl00_btnFake", "SelectGalleryPreviousImage;0");
    return false;
}

function selectGalleryNextImage() {
    __doPostBack("ctl00_btnFake", "SelectGalleryNextImage;0");
    return false;
}

function closeGalleryImage() {
    __doPostBack("ctl00_btnFake", "CloseGalleryImage;0");
    return false;
}

function changePhotosPage(page) {
    __doPostBack("ctl00_btnFake", "ChangePhotosPage;" + page);
    return false;
}

function selectPhotosImage(index) {
    __doPostBack("ctl00_btnFake", "SelectPhotosImage;" + index);
    return false;
}

function selectPhotosPreviousImage() {
    __doPostBack("ctl00_btnFake", "SelectPhotosPreviousImage;0");
    return false;
}

function selectPhotosNextImage() {
    __doPostBack("ctl00_btnFake", "SelectPhotosNextImage;0");
    return false;
}

function closePhotosImage() {
    __doPostBack("ctl00_btnFake", "ClosePhotosImage;0");
    return false;
}

function changeCalendarPage(page) {
    __doPostBack("ctl00_btnFake", "ChangeCalendarPage;" + page);
    return false;
}

function selectCalendarImage(index) {
    __doPostBack("ctl00_btnFake", "SelectCalendarImage;" + index);
    return false;
}

function selectCalendarPreviousImage() {
    __doPostBack("ctl00_btnFake", "SelectCalendarPreviousImage;0");
    return false;
}

function selectCalendarNextImage() {
    __doPostBack("ctl00_btnFake", "SelectCalendarNextImage;0");
    return false;
}

function closeCalendarImage() {
    __doPostBack("ctl00_btnFake", "CloseCalendarImage;0");
    return false;
}

function selectFavoriteImage(index) {
    __doPostBack("ctl00_btnFake", "SelectFavoriteImage;" + index);
    return false;
}

function selectFavoritePreviousImage() {
    __doPostBack("ctl00_btnFake", "SelectFavoritePreviousImage;0");
    return false;
}

function selectFavoriteNextImage() {
    __doPostBack("ctl00_btnFake", "SelectFavoriteNextImage;0");
    return false;
}

function closeFavoriteImage() {
    __doPostBack("ctl00_btnFake", "CloseFavoriteImage;0");
    return false;
}

function addFavorite() {
    __doPostBack("ctl00_btnFake", "AddFavorite;0");
    return false;
}

function removeFavorite() {
    __doPostBack("ctl00_btnFake", "RemoveFavorite;0");
    return false;
}

function selectMostVotedImage(index) {
    __doPostBack("ctl00_btnFake", "SelectMostVotedImage;" + index);
    return false;
}

function selectMostVotedPreviousImage() {
    __doPostBack("ctl00_btnFake", "SelectMostVotedPreviousImage;0");
    return false;
}

function selectMostVotedNextImage() {
    __doPostBack("ctl00_btnFake", "SelectMostVotedNextImage;0");
    return false;
}

function closeMostVotedImage() {
    __doPostBack("ctl00_btnFake", "CloseMostVotedImage;0");
    return false;
}
