/* dummy function in order to avoid JS-Error with extranet shop connected. remove after development */
function setShopNaviHeight()
{
	return false;
}

// helper function: gets the absolute position of an element (coordinates of the upper left corner of the element). It returns the coordinates as an object containing the "x" and "y" coordinate as properties
function getAbsolutePosition (element) {
	var SL = 0, ST = 0;
	var is_div = /^div$/i.test(element.tagName);
	if (is_div && element.scrollLeft) SL = element.scrollLeft;
	if (is_div && element.scrollTop) ST = element.scrollTop;
	var r = { x: element.offsetLeft - SL, y: element.offsetTop - ST };
	if (element.offsetParent) {
		var tmp = getAbsolutePosition(element.offsetParent);
		r.x += tmp.x;
		r.y += tmp.y;
	}
	return r;
}
