//=========================================================================
//=== BEGIN: GET ABSOLUTE "LEFT" POSITION OF A LAYER					===
//=== ----------------------------------------------------------------- ===
//=== REQUIRES: detectBrowser() & document.getElementById()							===
//=== ----------------------------------------------------------------- ===
//=== getAbsoluteLeftPos(layerid)										===
//===																	===
//=== returns the absolute 'left' position of the parsed layer			===
//=========================================================================
	function getAbsoluteLeftPos(layerid)
	{
		//get the actual object of the parsed layer and set it's current offsetLeft position
		layerObj		= document.getElementById(layerid)   ;
		absoluteLeftPos = layerObj.offsetLeft ;
		//as long as the layer object has a parent, add it's parent's offsetLeft position to the current offsetLeft position
		//thus building up the absolute 'left' position of the parsed layer
		while (layerObj.offsetParent != null)
		{
			layerObjParent   = layerObj.offsetParent ;
			absoluteLeftPos += layerObjParent.offsetLeft ;
			layerObj 		 = layerObjParent ;
		}
		
		//return the absolute 'left' position of the parsed layer
		return absoluteLeftPos ;
	}
//=========================================================================
//=== END: GET ABSOLUTE "LEFT" POSITION OF A LAYER						===
//=========================================================================


//=========================================================================
//=== BEGIN: GET ABSOLUTE "TOP" POSITION OF A LAYER						===
//=== ----------------------------------------------------------------- ===
//=== REQUIRES: detectBrowser() & document.getElementById()							===
//=== ----------------------------------------------------------------- ===
//=== getAbsoluteTopPos(layerid)										===
//===																	===
//=== returns the absolute 'top' position of the parsed layer			===
//=========================================================================
	function getAbsoluteTopPos(layerid)
	{
		//get the actual object of the parsed layer and set it's current offsetTop position
		layerObj 	   = document.getElementById(layerid)  ;
		absoluteTopPos = layerObj.offsetTop ;
		
		//as long as the layer object has a parent, add it's parent's offsetTop position to the current offsetTop position
		//thus building up the absolute 'top' position of the parsed layer
		while(layerObj.offsetParent!=null)
		{
			layerObjParent  = layerObj.offsetParent ;
			absoluteTopPos += layerObjParent.offsetTop ;
			layerObj 		= layerObjParent ;
		}
		
		//return the absolute 'top' position of the parsed layer
		return absoluteTopPos ;
	}
//=========================================================================
//=== END: GET ABSOLUTE "TOP" POSITION OF A LAYER						===
//=========================================================================