﻿// OpenIpixWindow()
var wini = null;
function OpenIpixWindow(ipix_string) {
    h = 400;
    w = 500;
    LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
    TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
    settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,resizable';
    wini = window.open('http://www.arkansasstateparks.com/video-tours/ipix-win.aspx?ipix_str=' + ipix_string, 'IPIX', settings);

    return false;
}

function OpenFlash360Window(flash_string) {
    h = 400;
    w = 500;
    LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
    TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
    settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,resizable';
    wini = window.open('http://www.arkansasstateparks.com/video-tours/flash_360.aspx?str=' + flash_string, '360', settings);
}

// OpenFlashWindow()
var newwindow;
function flashmovie(url) {
    newwindow = window.open(url, 'name', 'height=400,width=500,scrollbars=yes,resizable');
    if (window.focus) { newwindow.focus() }
}

// OpenIpixHelp()
var winh = null;
function OpenIpixHelp() {
    h = 400;
    w = 500;
    LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
    TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
    settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,resizable';
    winh = window.open('http://www.arkansasstateparks.com/video-tours/help.html', 'HELP', settings);
}

// OpenVideoWindow()
var wini = null;
function OpenVideoWindow(video_string, iheight, iwidth) {
    h = iheight;
    w = iwidth;
    LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
    TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
    settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,resizable';
    winj = window.open('http://www.arkansasstateparks.com/video-tours/video-win.aspx?video_str=' + video_string, 'VIDEO', settings);
}

