/* Copyright (c) by Andrew DiFiore Jr. All rights reserved. */
defaultStatus ="PrairieView Kennel : Constance Schaub";
self.onerror = function() { return true; }

function changeImg(imageName,imageNum,on) { // function for swapping rollover images
	if (document.images) {
		if (on) { document[imageName].src = imageOn[imageNum].src; }
		else { document[imageName].src = imageOff[imageNum].src; }
	}
}

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');
}
