﻿function popup(url) {
    var width = 500;
    var height = 500;
    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    var params = 'width=' + width + ', height=' + height;
    params += ', top=' + top + ', left=' + left;
    params += ', directories=yes';
    params += ', location=yes';
    params += ', menubar=yes';
    params += ', resizable=yes';
    params += ', scrollbars=yes';
    params += ', status=yes';
    params += ', toolbar=yes';
    newwin = window.open(url, 'windowname5', params);
    if (window.focus) {
        newwin.focus();
    }
    return false;
}
function printpage() {
    window.print();
}
var width = 640;
var height = 480;
if (screen.width > 800) {
    width = 800;
    height = 600;
}
function VirtualTourWindow() {}
function ImageWindow(imgURL) {
    var w, screenWidth = screen.width,
        imgWinWidth = screenWidth > 800 ? 840 : 660,
        imgWinHeight = screenWidth > 800 ? 550 : 400,
        imgWidth = screenWidth > 800 ? 800 : 640,
        imgHeight = screenWidth > 800 ? 600 : 480,
        reWidth = new RegExp('width=undefined'),
        reHeight = new RegExp('height=undefined');
    if (reWidth.exec(imgURL)) {
        imgURL = imgURL.replace(reWidth, 'width=' + imgWidth);
    }
    if (reHeight.exec(imgURL)) {
        imgURL = imgURL.replace(reHeight, 'height=' + imgHeight);
    }
    if (typeof SymRealWinOpen != 'undefined') {
        if (navigator.appVersion.indexOf("MSIE") != -1) {
            window.open = SymRealWinOpen;
        } else {
            alert('Norton Internet Security may block this popup.\nPlease disable your popup blocker if you experience any problems.');
        }
    }
    w = window.open(imgURL, 'ImageWindow', 'menubar=no,toolbar=no,status=no,width=' + imgWinWidth + ',height=' + imgWinHeight + ',resizable=yes,scrollbars=yes');
    w.focus();
}
function PopupWindow(URL, width, height, title) {
    var w;
    if (!title) {
        title = 'Information';
    }
    if (typeof SymRealWinOpen != 'undefined') {
        if (navigator.appVersion.indexOf("MSIE") != -1) {
            window.open = SymRealWinOpen;
        } else {
            alert('Norton Internet Security may block this popup.\nPlease disable your popup blocker if you experience any problems.');
        }
    }
    w = window.open(URL, 'ImageWindow', 'menubar=no,toolbar=no,status=no,width=' + width + ',height=' + height + ',resizable=no,scrollbars=yes');
    w.focus();
}
