function clearIt(form) 
	{
	if (form.email.value == "name@email.com")
		{
		form.email.value = ""
		}
	}
function sendInfo()
	{
	if ((document.newsletter.email.value == "name@email.com") || (document.newsletter.email.value == ""))
		{ //do nothing
		}
		else
		{
		info = document.newsletter.email.value
		myurl = "http://www.jwweb.com/clients/rugmail.php3?email=" + info
		openwindow(myurl,'','width=240,height=200');
		}
	} 
function openwindow(url,name,options)
	{
	newWin=window.open(url,name,options);
	newWin.focus();
	}

var timerID = null;
var listCount = 0;

function openWind(url,width,height)
	{
		newWind = window.open(url,"newWind","width="+width+", height="+height+", scrollbars=yes, left=0, top=0");
		newWind.focus();
	}

//this function shows the pop-up menus

function showMenu(boxName,x,y) {
	clearTimeout(timerID);
	if (document.layers) {
		styleObj = eval('document.' + boxName);
		styleObj.top = y;
		styleObj.left = x;
	} else if (navigator.userAgent.indexOf("Opera") != -1) {
		styleObj = eval('document.all.' + boxName);
		styleObj.style.pixelTop = y-25;
		styleObj.style.pixelLeft = x;
	} else if (document.all && !document.getElementById) {
		styleObj = eval('document.all.' + boxName);
		styleObj.style.pixelTop = y;
		styleObj.style.pixelLeft = x;
	} else if (document.getElementById) {
		obj = document.getElementById(boxName);
		obj.style.top = y + "px";
		obj.style.left = x + "px";
	}
}

function hideIt(menuName) {
	funcVar = "showMenu('" + menuName + "',-350,1450)";
	timerID = setTimeout(funcVar,800);
}

function hideAll() {
	showMenu('shop',-250,300);
	showMenu('styles',-250,300);
	showMenu('local',-250,300);
	showMenu('custom',-250,300);
	showMenu('history',-250,300);
	showMenu('work',-250,300);
	showMenu('tips',-250,300);
	showMenu('links',-250,300);
	showMenu('newsletter',-250,300);
}
