﻿function AbrirImagemGreyBox(image_set, ordem, posicao) {
    var retorno = GB_showImageSet(image_set, ordem);
    AlterarPosicaoImageSet(posicao);
    return retorno;
} 
function AlterarPosicaoImageSet(posicao) {
    document.body.childNodes[0].style.left = posicao + "px";
    document.body.childNodes[1].style.left = posicao + "px";
    document.body.childNodes[2].style.margin = "15px 0 0 " + posicao + "px";
}

function AbrirLinkGreyBox(caption, url, height, width, posicao) {
    var retorno = GB_showCenter(caption, url, height, width);
    AlterarPosicaoLink(posicao);
    return retorno;
} 
function AlterarPosicaoLink(posicao) {
    document.getElementById("GB_overlay").style.left = posicao + "px";
    document.getElementById("GB_window").style.margin = "15px 0 0 " + posicao + "px";
}