defaultStatus = "The Legend of Sleepy Hollow";

function openWindow(url, name, rs, sc, mn, tb, w, h, cent) { 
	popupWin = null;
	if (rs) resize = "resizable,"; else resize = "";
	if (sc) scrolls = "scrollbars,"; else scrolls = "";
	if (mn) menu = "menubar,"; else menu = "";
	if (tb) tool = "toolbar,"; else tool = "";
	if (cent) { // center popup
		chasm = screen.availWidth;
		mount = screen.availHeight;	  
		popupWin = window.open(url, name, resize + scrolls + menu + tool + 'width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
	} 
	else popupWin = window.open(url, name, resize + scrolls + menu + tool + 'width=' + w + ',height=' + h + ',left=20, top=20');
}

function addBookmark(url) { // function for bookmarking page
	if (window.external) window.external.AddFavorite(url,document.title);
	else alert(	"Your browser does not support this command.\n" + 
				"If using Netscape, press Ctrl-D (Cmd-D) on your\n" + 
				"keyboard or select Bookmarks from the menu bar.");
}
