 
// imapePopup.js
//
// pops up an image in it's own window

function imagePopup (thepic, thewidth, theheight, title) {

	if (document.all) {
		window.open ('/include/scripts/imagePopup.htm?pic=' + thepic + '&w=' + thewidth + '&h='  + theheight + '&title=' + title, 'bigPic', 'leftmargin=0,topmargin=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + thewidth + ',height=' + theheight + ',left=20,top=20');
	} else {
		window.open ('/include/scripts/imagePopup.htm?pic=' + thepic + '&w=' + thewidth + '&h=' + theheight + '&title=' + title, 'bigPic', 'leftmargin=0,topmargin=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + thewidth + ',height=' + theheight + ',screenx=20,screeny=20');
	}
}
 
function imagePopupWithBlur (thepic, thewidth, theheight, title) {

	if (document.all) {
		window.open ('/include/scripts/imagePopup.htm?closeOnBlur=1&pic=' + thepic + '&w=' + thewidth + '&h=' + theheight + '&title=' + title, 'bigPic', 'leftmargin=0,topmargin=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + thewidth + ',height=' + theheight + ',left=20,top=20');
	} else {
		window.open ('/include/scripts/imagePopup.htm?closeOnBlur=1&pic=' + thepic + '&w=' + thewidth + '&h=' + theheight + '&title=' + title, 'bigPic', 'leftmargin=0,topmargin=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + thewidth + ',height=' + theheight + ',screenx=20,screeny=20');
	}
}

function imagePopupWithPrint (thepic, thewidth, theheight, title) {

	if (document.all) {
		window.open ('/include/scripts/imagePopup.htm?closeOnBlur=1&offerPrint=1&pic=' + thepic + '&w=' + thewidth + '&h=' + theheight + '&title=' + title, 'bigPic', 'leftmargin=0,topmargin=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + thewidth + ',height=' + theheight + ',left=20,top=20');
	} else {
		window.open ('/include/scripts/imagePopup.htm?closeOnBlur=1&offerPrint=1&pic=' + thepic + '&w=' + thewidth + '&h=' + theheight + '&title=' + title, 'bigPic', 'leftmargin=0,topmargin=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=' + thewidth + ',height=' + theheight + ',screenx=20,screeny=20');
	}
}