var oMenu = new Array();

function showDropdown(n)
{
	for(i=0;i<oMenu.length;i++)
	{
		try
		{
			if(i==n)
			{
				oMenu[i].align("tl","bl");
				oMenu[i].show();
			}
			else
			{
				oMenu[i].hide();
			}
		}
		catch (e)
		{
			continue;
		}
	}
}

function getXCoord(id)
{
	var node = document.getElementById(id);
	if(node.x)
		return node.x
	else
	{
		var total = 0;
		var parent = node;
		while(parent.nodeName!='BODY')
		{
			total += parent.offsetLeft;
			parent = parent.offsetParent;
		}

		return total;
	}
}

function getYCoord(id)
{
	var node = document.getElementById(id);
	if(node.y)
		return node.y
	else
	{
		var total = 0;
		var parent = node;
		while(parent.nodeName!='BODY')
		{
			total += parent.offsetTop;
			parent = parent.offsetParent;
		}

		return total;
	}
}

function bookmark()
{
	if (document.all)
		window.external.AddFavorite('http://womenclothingtoday.wordpress.com/', 'WomenClothingToday - Official WomenClothingToday Blog');
	else if(window.chromium)
		alert('Press Ctrl+D to bookmark this item.');
	else
		window.sidebar.addPanel('WomenClothingToday - Official WomenClothingToday Blog','http://womenclothingtoday.wordpress.com/','');
}