/**
 * interwoven Sitelib 1.0
 * by wes modes, March 2000
 * Copyright (c) 2000,2001,2002 Wes Modes
 *
 */

// Browser detection
var isIE = (document.all) ? true : false;
var isNav = (document.layers) ? true : false;
var isOff = false;
if (navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf("Mac") != -1 ) { 
    var isOff = true;
}

// Defines a new image for preloading
function newImage(arg) {
    if (document.images) {
        rslt = new Image();
        rslt.src = arg;
        return rslt;
    }
}

// Opens a new browser window (without controls) for external links
function win(URL) {
    var win;
    var windowName = "";
    var features =
        "resizable=1," +
	"toolbar=1," +
	"location=0," +
	"directories=0," +
	"status=0," +
	"scrollbars=1," +
	"menubar=0," +
	"copyhistory=0," +
	"width=680," +
	"height=420"; 
    win = window.open(URL, windowName, features); 
    // win.location = URL;
    win.focus();
}

// Opens a new browser window (without controls) for external links
function vertwin(URL) {
    var win;
    var windowName = "artwin";
    var features =
        "resizable=1," +
	"toolbar=0," +
	"location=0," +
	"directories=0," +
	"status=0," +
	"scrollbars=1," +
	"menubar=0," +
	"copyhistory=0," +
	"width=580," +
	"height=580"; 
    win = window.open(URL, windowName, features); 
    // win.location = URL;
    win.focus();
}

// Opens a new browser window (without controls) for external links
function horzwin(URL) {
    var win;
    var windowName = "artwin";
    var features =
        "resizable=1," +
	"toolbar=0," +
	"location=0," +
	"directories=0," +
	"status=0," +
	"scrollbars=1," +
	"menubar=0," +
	"copyhistory=0," +
	"width=840," +
	"height=580"; 
    win = window.open(URL, windowName, features); 
    // win.location = URL;
    win.focus();
}

// Opens a new browser window (without controls) for external links
function bigwin(URL) {
    var win;
    var windowName = "";
    var features =
        "resizable=1," +
	"toolbar=1," +
	"location=0," +
	"directories=0," +
	"status=0," +
	"scrollbars=1," +
	"menubar=0," +
	"copyhistory=0," +
	"width=800," +
	"height=600"; 
    win = window.open(URL, windowName, features); 
    // win.location = URL;
    win.focus();
}

// Opens a new browser window (without controls) for external links
var win;
function tinywin(URL) {
    var win;
    var windowName = "tinywin";
    var features =
        "resizable=0," +
	"toolbar=0," +
	"location=0," +
	"directories=0," +
	"status=0," +
	"scrollbars=0," +
	"menubar=0," +
	"copyhistory=0," +
	"width=360," +
	"height=300"; 
    win = window.open(URL, windowName, features); 
    // win.location = URL;
    win.focus();
}

// Opens a new browser window (without controls) for external links
var win;
function camwin(URL) {
    var win;
    var windowName = "camwin";
    var features =
        "resizable=0," +
	"toolbar=0," +
	"location=0," +
	"directories=0," +
	"status=0," +
	"scrollbars=0," +
	"menubar=0," +
	"copyhistory=0," +
	"width=360," +
	"height=300"; 
    win = window.open(URL, windowName, features); 
    // win.location = URL;
    win.focus();
}

function visit2(newURL) {
  //--If the selected file name isn't blank, send it to reader.
  if (newURL != "") {
    location.href=newURL
  }
}
