﻿
// Old Image Viewer - Single Image

/*
function egViewImg_Old(theImg) {    
var opts = "";
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
var xc = 50; var yc = 50;
        
opts = ",left=" + xc + ",screenX=" + xc;
opts += ",top=" + yc + ",screenY=" + yc;
}
window.open('http://evergeek.com/viewImage.aspx?i=' + theImg,'EG_Img','resizable=yes,scrollbars=no,menubar=no,toolbar=no,location=no,width=100,innerwidth=100,height=100,innerheight=100' + opts);
}
*/

// update 1.27.2009 by Danny Douglass 
// Multi Image Viewer

function egViewImg(articleId, imageId, siteUrl) {
    var opts = "";
    if (window.screen) {
        var ah = screen.availHeight - 30;
        var aw = screen.availWidth - 10;
        var xc = 50; var yc = 50;

        opts = ",left=" + xc + ",screenX=" + xc;
        opts += ",top=" + yc + ",screenY=" + yc;
    }

    var now = new Date();
    var windowName = 'EG_ImgViewer' + imageId + now.getDay() + now.getMilliseconds();
    
    window.open(siteUrl + 'viewer/default.aspx?articleId=' + articleId + '&imageId=' + imageId , windowName, 'resizable=no,scrollbars=yes,menubar=no,toolbar=no,location=no,width=900,height=825' + opts);
}


