/* AUTHOR: varies!!! */
/* CREATION DATE: 10/12/99 */

<!--

/* open a new window */
function errorSafe() {return true;}
window.onerror = errorSafe;

function regular_wdw(url) {
window.open(url,"regular","resizable=yes,toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes")}

function form_wdw(url) {
window.open(url,"form","resizable=yes,toolbar=no,status=yes,scrollbars=yes,location=no,menubar=no,directories=no,width=615,height=480")}

function pic_wdw(url) {
window.open(url,"pic","resizable=yes,toolbar=no,status=yes,scrollbars=yes,location=no,menubar=no,directories=no,width=350,height=300")}

function pic10_wdw(url) {
window.open(url,"pic10","resizable=yes,toolbar=no,status=yes,scrollbars=yes,location=no,menubar=no,directories=no,width=720,height=550")}

function link_wdw(url) {
window.open(url,"links","resizable=yes,toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=720,height=550")}

function map_wdw(url) {
window.open(url,"map","resizable=no,toolbar=no,status=yes,scrollbars=yes,location=no,menubar=no,directories=no,width=310,height=600")}

function whip_wdw(url) {
window.open(url,"whip","resizable=yes,toolbar=no,status=yes,scrollbars=yes,location=no,menubar=no,directories=no,width=700,height=525")}

	

/* popup window writer */

var pic, desc, topdesc, pictitle, picdir
pictitle = "Bear Creek Timberwrights" //title of popup window
picdir = "graphics/" //picture directory
function newwin1() {
	pic = new Array("crew/1100-6-2.jpg", "450", "450","0","80")   //file name, image width, image ht., vert. buffer, toolbar toggle
	desc = "The Bear Creek Crew"
	topdesc = "<b>The Crew</b>"}
function newwin2() {
	pic = new Array("crew/crew-3.jpg", "450", "450","0","80")
	desc = "The Bear Creek Family"
	topdesc = "<b>The Crew</b>"}
	

//add more "function newwin#" as req'd

function popupwin() { // name of function
	w = Number(pic[1]) // forces width parameter to be recognized as a number wont add without it
	x = Number(pic[2]) // height parameter
	y = Number(pic[3]) // additional space required by caption
	z = Number(pic[4]) // buffer attrib. for height
	// tb = Number(pic[5]) // toolbar on = 1, toolbar off = 0
	width = w + 20  // width + buffer space
	height = x + y + z // height + caption + buffer
	var winsize = "'menuBar=1,status=0,toolbar=0,scrollbars=1,resizeable=0,screenX=40,screenY=40,left=40,top=40"
	winsize += ",width=" + width + ",height=" + height +"'";
	var winpop = "<html>\n<head>\n";
	winpop += "<title>" + pictitle + "</title>";
	winpop += "</head>\n<body bgcolor='#CCCC99'>\n";
	winpop += "<div align='center'>\n"
	winpop += "<p>\n<FONT color='#483D8B' face='Arial,MS Sans Serif'><b>" + topdesc + "</b></font>\n<br>\n"
	winpop += "<img src=" + picdir + pic[0] + " border=1><br>"
	winpop += "<p>\n<FONT size=-1 face='Arial,MS Sans Serif'><b>" + desc + "</b>\n<br><br>\n"
	winpop += "<form>\n<INPUT TYPE='button' VALUE='Close Window' onClick='javascript: window.close();'>\n</FORM>\n" 
	winpop += "</font>\n</div></body>\n</html>\n"
	// creates a close link on popup
	winpopup = window.open ('','popup',winsize) // opens popup window
	winpopup.document.open() // start of popup window
	winpopup.document.write (winpop) // writes html in the page
	winpopup.document.close() // ends of popup window
	winpopup.focus() //brings popup window to the top.
}
/* print page button */
/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function printit(){  
if (NS) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
}

/*test routine*/
function netie(net, ie) {
  if ((navigator.appVersion.substring(0,3) >= net && navigator.appName == 'Netscape' && net != -1) || (navigator.appVersion.substring(0,3) >= ie && navigator.appName.substring(0,9) == 'Microsoft' && ie != -1))
    return true;
else return false;
}

// End -->

