<!--
function loadpopup(refpage)	// generic popup size.
{
	var newPop=window.open(refpage,'name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}

}

function loadfpopup(header,subheader,picref,desc,wideimg)	// on the fly product popups.
{
	var theDate=new Date();
	var newPop=window.open('','name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}

	newPop.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
	newPop.document.write('<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">\n\n');
	newPop.document.write('<head>\n');
	newPop.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />\n');
	newPop.document.write('<link rel="StyleSheet" href="./styles/ms_popups.css" type="text/css" />\n');
	newPop.document.write('<title>' + header + '</title>\n');
	newPop.document.write('</head>\n\n');

	newPop.document.write('<body class="pbody">\n');
  	newPop.document.write('<h2>' + header + '</h2>\n');
	newPop.document.write('<h3>' + subheader + '</h3>\n');

	if (wideimg) {
		newPop.document.write('<img class="wide" src="' + picref + '" alt="' + header + '" />\n'); }
	else {
		newPop.document.write('<img src="' + picref + '" alt="' + header + '" />\n'); }

	if (desc != "") {
		newPop.document.write('<p>' + desc + '</p>\n'); }
	  	
	newPop.document.write('<p><a href="javascript:self.close()">Close</a></p>\n\n');
	newPop.document.write('</div>\n\n');
  
	newPop.document.write('<div id="pfooter">\n');
	newPop.document.write('<p><b>THE MUSEUM SHOP, LTD.</b> 20 North Market Street, Frederick, MD&nbsp;&nbsp;21701</p>\n');
	newPop.document.write('<p>&copy;2008-' + theDate.getFullYear() + '. All Rights Reserved.</p>\n');
	newPop.document.write('</div>\n\n');

 	newPop.document.write('</body>\n\n');
  	newPop.document.write('</html>\n');
	newPop.document.close();
}

function loadppopup(header,subheader,price,picref,pcode,desc,wideimg)	// popup for products; has a few extra parameters than the loadfpopup style
{
	var theDate=new Date();
	var newPop=window.open('','name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}

	newPop.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
	newPop.document.write('<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">\n\n');
	newPop.document.write('<head>\n');
	newPop.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />\n');
	newPop.document.write('<link rel="StyleSheet" href="./styles/ms_popups.css" type="text/css" />\n');
	newPop.document.write('<title>' + header + '</title>\n');
	newPop.document.write('</head>\n\n');

	newPop.document.write('<body class="pbody">\n');
  	newPop.document.write('<h2>' + header + '</h2>\n');
	newPop.document.write('<h3>' + subheader + '</h3>\n');
	newPop.document.write('<p>' + price + '</p>\n');
	newPop.document.write('</div>\n\n');

	if (wideimg) {
		newPop.document.write('<img class="wide" src="' + picref + '" alt="' + header + '" />\n'); }
	else {
		newPop.document.write('<img src="' + picref + '" alt="' + header + '" />\n'); }

	newPop.document.write('<p class="pcode">' + pcode + '</p>\n');

	if (desc != "") {
		newPop.document.write('<p>' + desc + '</p>\n'); }
	  	
	newPop.document.write('<p><a href="javascript:self.close()">Close</a></p>\n\n');
	newPop.document.write('</div>\n\n');
  
	newPop.document.write('<div id="pfooter">\n');
	newPop.document.write('<p><b>THE MUSEUM SHOP, LTD.</b> 20 North Market Street, Frederick, MD&nbsp;&nbsp;21701</p>\n');
	newPop.document.write('<p>&copy;2008-' + theDate.getFullYear() + '. All Rights Reserved.</p>\n');
	newPop.document.write('</div>\n\n');

 	newPop.document.write('</body>\n\n');
  	newPop.document.write('</html>\n');
	newPop.document.close();
}

function loadfpopupold(artist,picname,price,intcode,picref,popstyle,desc)	// on the fly product popups.
{
	var theDate=new Date();
	var newPop=window.open('','name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}

	newPop.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n');
	newPop.document.write('<html>\n\n');
	newPop.document.write('<head>\n');
	newPop.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">\n');
	newPop.document.write('<link rel="stylesheet" href=./styles/ms_popups.css" type="text/css">\n');

	newPop.document.write('<title>' + picname + ' [' + artist + ']</title>\n');
	newPop.document.write('</head>\n\n');

	newPop.document.write('<body class="pbody">\n\n');
  
 	newPop.document.write('<h2>' + artist + '</h2>\n');
	newPop.document.write('<h3>' + picname + '</h3>\n');
	newPop.document.write('<p>' + price + '</p>\n');

	newPop.document.write('<img src="' + picref + '" alt="' + picname + '">\n');
	if (intcode != '') {
		newPop.document.write('<pP class="intcode">' + intcode + '</p>\n');
	}

	newPop.document.write('<hr />\n');
	if (desc != '') {
		newPop.document.write('<p class="tocenter">' + desc + '</p>\n');
	}
	  	
	newPop.document.write('<p><a href="javascript:self.close()">Close</a></p>\n');
  	newPop.document.write('</div>\n\n');

	newPop.document.write('<div id="pfooter">\n');
	newPop.document.write('<p><b>THE MUSEUM SHOP, LTD.</b> 20 North Market Street, Frederick, MD&nbsp;&nbsp;21701</p>\n');
	newPop.document.write('<p>&copy;2008-' + theDate.getFullYear() + '. All Rights Reserved.</p>\n');
  	newPop.document.write('</div>\n\n');

  	newPop.document.write('</body>\n\n');
  	newPop.document.write('</html>\n');
	newPop.document.close();
}

function loadspopup(refpage,popstyle)		// popstyle is optional, because we test for undefined in setsstyle
{
	document.cookie =  "style=" + escape(popstyle);   // set a cookie (session only) with the style.
	var newPop=window.open(refpage,'name','height=550px,width=640px,left=0,top=0,resizable=yes,scrollbars=yes');
	if (window.focus) {
	    newPop.focus();
	}
}

function setsstyle() {

	if (document.cookie.length>0) {		// get cookie
		var startpos=document.cookie.indexOf("style=");

		if (startpos != -1) {
			startpos = startpos + 6;	// startpos + len("style=") + 1 from 0
			endpos = document.cookie.indexOf(";",startpos);
			if (endpos == -1)
				endpos = document.cookie.length;
			var popstyle = document.cookie.substring(startpos,endpos);

			if (popstyle != "null" && popstyle !="" && popstyle != "undefined") {

	  			var i, a, main;		// there is a cookie; change background.
  				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {

					if(a.getAttribute("rel").indexOf("Style") != -1 && a.getAttribute("title")) {

						a.disabled = true;
      						if(a.getAttribute("title") == popstyle)
							a.disabled = false;
    					}
  				}
			}
		}
	}
}

-->