function resetTopLinks()
{
	document.getElementById("topHome").className='bluelinetop';
	document.getElementById("topHours").className='bluelinetop';
	document.getElementById("topPayment").className='bluelinetop';
	document.getElementById("topContact").className='bluelinetop';

	document.getElementById("bottomHome").className='bluelinetop';
	document.getElementById("bottomHours").className='bluelinetop';
	document.getElementById("bottomPayment").className='bluelinetop';
	document.getElementById("bottomContact").className='bluelinetop';
}
function setLinks(item)
{
	document.getElementById(item).className='whitelinetop';
}
function launchInRight(url, where)
{

	if (url=='Home')
	{
		document.getElementById("topHome").className='whitelinetop';
		document.getElementById("topHours").className='bluelinetop';
		document.getElementById("topPayment").className='bluelinetop';
		document.getElementById("topContact").className='bluelinetop';
		document.location="http://www.personalindulgence.net/php/BuildIndex.php";
	}
	if (url=='Login')
	{
		document.getElementById("topHome").className='bluelinetop';
		document.getElementById("topHours").className='bluelinetop';
		document.getElementById("topPayment").className='bluelinetop';
		document.getElementById("topContact").className='bluelinetop';
		document.location="http://www.personalindulgence.net/php/MenuLogin.php";
	}
	if (url=='Hours')
	{
		document.getElementById("topHome").className='bluelinetop';
		document.getElementById("topHours").className='whitelinetop';
		document.getElementById("topPayment").className='bluelinetop';
		document.getElementById("topContact").className='bluelinetop';
		document.location="http://www.personalindulgence.net/php/MenuHours.php";
	}
	if (url=='Payment')
	{
		document.getElementById("topHome").className='bluelinetop';
		document.getElementById("topHours").className='bluelinetop';
		document.getElementById("topPayment").className='whitelinetop';
		document.getElementById("topContact").className='bluelinetop';
		document.location="http://www.personalindulgence.net/php/MenuMethodOfPayment.php";
	}
	if (url=='Contact')
	{
		document.getElementById("topHome").className='bluelinetop';
		document.getElementById("topHours").className='bluelinetop';
		document.getElementById("topPayment").className='bluelinetop';
		document.getElementById("topContact").className='whitelinetop';
		window.open('mailto:Karen@personalindulgence.net','Contact','width=500,height=500');
	}
}
function hyperlink(id)
{
	window.open(id,'site','resizable=yes,scrollbars=yes,location=yes,menubar=yes,status=yes,titlebar=yes,toolbar=yes,top=10,left=50');

}
function launchPDF(url)
{
	window.open(url,'Brochure','resizable=yes,width=800,height=500,,top=50,left=50');
}
function launch(url)
{
	url = 'http://'+url;
	window.open(url,'ProductSite','width=1000,height=500,resizable=1,scrollbars=1');
}	
function PlaceFooter(divname)
{
	var posTop = 0;
	var ContentSize= document.getElementById(divname).offsetHeight;
	var NavigationSize= document.getElementById('Navigation').offsetHeight;

	if (ContentSize > NavigationSize)
	{
		posTop = ContentSize + 248;
	}
	else
	{
		posTop = NavigationSize + 248;
	}

//Added the px after the numeric value because it is required for FireFox.
	posTop = posTop+"px";
	document.getElementById("Footer").style.top=posTop;
	document.getElementById("FooterImage").style.top=posTop;
	document.getElementById("Footer").style.visibility='visible';
	document.getElementById("FooterImage").style.visibility='visible';
}
function PlaceFooterExact(amt)
{
	var posTop = amt;
//Added the px after the numeric value because it is required for FireFox.
	posTop = posTop+"px";
	document.getElementById("Footer").style.top=posTop;
	document.getElementById("FooterImage").style.top=posTop;
	document.getElementById("Footer").style.visibility='visible';
	document.getElementById("FooterImage").style.visibility='visible';
}
function newsLetter(url)
{
	window.open(url,'NewsLetter','resizable=yes,width=1000,height=700,,top=0,left=10');
}
function webmaster()
{
	document.location="http://www.graphicdesignsunlimited.net";
}
function getkey(e)
{
if (window.event)
   return window.event.keyCode;
else if (e)
   return e.which;
else
   return null;
}
function checkKey(e)
{
	var key = getkey(e);
	if (key == null) return true;

	var keychar = String.fromCharCode(key);
	keychar = keychar.toLowerCase();
	
	if (key==32)
	{
		return false;
	}
	else
	{
		return true;
	}
}
function news()
{
		url = '../News/News.pdf';
		window.open(url,'News','width=800,height=800,top=0,left=0,resizable=1');
	
}


