<!-- hide from JavaScript-challenged browsers

function listitems(s3)
	{
	var s1="";
	var s2="";
	s1=s3.toLowerCase();
	for (i=0; i<s1.length; ++i)
		{
		if ((s1.charCodeAt(i)>=48 && s1.charCodeAt(i)<=57) || (s1.charCodeAt(i)>=97 && s1.charCodeAt(i)<=122))
			s2=s2 + s1.charAt(i);
		else
			s2=s2 + "0x" + s1.charCodeAt(i) + ";";
		}
	window.location="ItemList.asp?ILT=9&ILQ=" + s2
	}

var tmr;
var tmrmenu;

function openaltviews(avurl, widthval, toppos, heightdivisor)
	{
	leftpos = (screen.width) ? (screen.width - widthval) / 2 : 100;
	heightval = (screen.height) ? (screen.height) / heightdivisor : 100;
	winfeatures = 'height=' + heightval + ',width=' + widthval + ',top=' + toppos + ',left=' + leftpos + ',scrollbars=1,location=0,directories=0,status=0,menubar=0,toolbar=0,resizable=1,dependent=1'
	popupWin = window.open(avurl, 'altviews', winfeatures);
	popupWin.focus();
	}

function showmenu(elmntid)
	{
	var i;
	var e;
	var s;
	var x;
	if (tmr != null)
		clearTimeout(tmr);
	if (tmrmenu != null && tmrmenu != elmntid)
		hidemenu(tmrmenu);
	x = document.getElementById(elmntid);
	if (document.forms[0] != null)
		{
		for (i=0; i<document.forms[0].length; ++i)
			{
			e=document.forms[0].elements[i];
			s=e.type;
			s=s.toLowerCase();
			if (s.indexOf("select") > -1)
				{
				s = e.name;
				if ((elmntid == "help" && s == "ILSRTSel") || (elmntid == "padultack" && s == "ColorSel") || (elmntid.charAt(0) == 'p' && (s == "DesignerSel" || s == "ThemeSel")) || (elmntid.charAt(0) == 'b' && (s == "bCountryID" || s =="bShippingMethod")))
					e.style.visibility="hidden";
				}
			}
		}
	x.style.visibility="visible";
	x.refresh();
	}

function setmenutimer(elmntid)
	{
	tmrmenu = elmntid;
/* needs to be at least 1 sec */
	tmr = setTimeout('hidemenu(tmrmenu)',1000);
	}

function hidemenu(elmntid)
	{
	var i;
	var x;
	var e;
	var s;
	var d;
	x = document.getElementById(elmntid);
	if (document.forms[0] != null)
		{
		for (i=0; i<document.forms[0].length; ++i)
			{
			e=document.forms[0].elements[i];
			s=e.type;
			s=s.toLowerCase();
			if (s.indexOf("select") > -1)
				{
				if (e.id == "ThemeSel")
					{
					d=document.getElementById("descThemeSel");
					if (d != null)
						{
						e.style.visibility=d.style.visibility;
						}
					else
						{
						e.style.visibility="visible";
						}
					}
				else
					{
					e.style.visibility="visible";
					}
				}
			}
		}
	x.style.visibility="hidden";
	}

function updatethemedd()
	{
	var x=document.getElementById("StyleSel");
	var d;
	var s;
	if (x != null)
		{
		d=document.getElementById("descThemesel");
		s=document.getElementById("ThemeSel")
		if (x.value == "25")
			{
			d.style.visibility="visible";
			s.style.visibility="visible";
			}
		else
			{
			d.style.visibility="hidden";
			s.value="0";
			s.style.visibility="hidden";
			}
		}
	}

vVer  = parseInt(navigator.appVersion)
vNS = navigator.appName=="Netscape"
vIE = navigator.appName=="Microsoft Internet Explorer"

function norcl(evnt)
	{
/*	var msg;
	msg = "This image is the property of ThePotteryConnection.com or one of our suppliers, please do not distribute these images.";
	if (vNS && evnt.which > 1)
		{
		alert(msg);
		return false;
		}
	else if (vIE && (event.button >1))
		{
		alert(msg);
		return false;
		}
*/	}

/*
document.onmousedown = norcl;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (vNS && vVer<5) window.onmousedown = norcl;
window.onmousedown=norcl;
*/

function stopRKey(evt)
	{
	var evt  = (evt) ? evt : ((event) ? event : null);
	var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
	if ((evt.keyCode == 13) && (node.type=="text"))
		{
		return false;
		}
	}
document.onkeypress = stopRKey;

// finished hiding -->
