/***********************************************
* Overlapping Content link- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function getposOffset(overlay, offsettype)
{
	var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
	var parentEl=overlay.offsetParent;
	while (parentEl!=null)
	{
		if(parentEl.id!="mailWishlist")
		{
			totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		}
		parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}

function displayOverlay(curobj, subobj){
if (document.getElementById){
var subobj=document.getElementById(subobj)
subobj.style.left=getposOffset(curobj, "left")+"px"
subobj.style.top=getposOffset(curobj, "top")+"px"
subobj.style.display="block"
return false
}
else
return true
}

function displayOverlayclose(subobj){
document.getElementById(subobj).style.display="none"
}

function toggleBox(layer) {
	// this is for browsers that understand standards properly
	if(document.getElementById) {
		var style = document.getElementById(layer).style;
		style.display = style.display ? "" : "block";
	}
	// this is for older versions of IE
	else if(document.all) {
		var style = document.all[layer].style;
		style.display = style.display ? "" : "block";
	}
}

