// JavaScript Document

var bookmarkurl="http://www.girlsofelegance.co.uk";
var bookmarktitle="Girls Of Elegance Shop";
function addbookmark(){ if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);

function YahooSections(ar)
{
	var strIDs = '';
	for (var i=1;i<=ar.length;i++)
	{
		if (ar[i].sURL != null)
		{
			strIDs += '<a href="' + ar[i].sURL + '"><span class="carttext"><b><font color="#913391">' + ar[i].sName + '</font></b></span></a><br>';
			
			if (ar[i].pChild)
			{
				for (var j=1;j<=ar[i].pChild.length;j++)
				{
					if (ar[i].pChild[j].sURL != null)
					{
					strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="carttext"><font color="#8C62AA">' + ar[i].pChild[j].sName + '</font></span></a><br>';
					}
				}
			}
		}
		
		strIDs += '<br>';
	}

return strIDs
}

var version4 = (navigator.appVersion.charAt(0) == "4");
var popupHandle;

function closePopup() {
if(popupHandle != null && !popupHandle.closed) popupHandle.close()
}

function displayPopup(url,name,height,width,evnt)
{
// Nannette Thacker http://www.shiningstar.net
// position=1 POPUP: makes screen display up and/or left,
//    down and/or right
// depending on where cursor falls and size of window to open
// position=2 CENTER: makes screen fall in center
height=700
width=700

var properties = "toolbar=0,location=0,height="+height
properties = properties+",width="+width

var leftprop, topprop, screenX, screenY, cursorX, cursorY, padAmt

if(navigator.appName == "Microsoft Internet Explorer")
{
	screenY = document.body.offsetHeight
	screenX = window.screen.availWidth
}
else
{ // Navigator coordinates
//		screenY = window.outerHeight
//		screenX = window.outerWidth
	// change made 3/16/01 to work with Netscape:
		screenY = screen.height;
		screenX = screen.width;
}

	leftvar = (screenX - width) / 2
	rightvar = (screenY - height) / 2
		
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		leftprop = leftvar
		topprop = rightvar
	}
	else
	{ // adjust Netscape coordinates for scrolling
		leftprop = (leftvar - pageXOffset)
		topprop = (rightvar - pageYOffset)
	}

if(evnt != null)
{
properties = properties+",left="+leftprop
properties = properties+",top="+topprop
}
closePopup()
popupHandle = open(url,name,properties)
}


