function findPos(obj)
{
    var curleft = curtop = 0;
    if (obj.offsetParent)
    {
        curleft = obj.offsetLeft;
        curtop = obj.offsetTop;
        while (obj = obj.offsetParent)
        {
            curleft += obj.offsetLeft;
            curtop += obj.offsetTop;
        }
    }
    return [curleft,curtop];
}


function Disp_DropDown(anchor_id,div_id)
{	//alert('i m in js');
	var browserName=navigator.appName;
	var width = screen.width;
	var height = screen.height;


if(document.getElementById(anchor_id)!=null)
		{
			if(document.getElementById(div_id)!=null)
			{
				var oDiv = document.getElementById(div_id);
				var oAnchor = document.getElementById(anchor_id);
				var pos = findPos(oAnchor);
				oDiv.className = 'category-active';
				oDiv.style.position = 'absolute';
				//oDiv.style.left = pos[0]+20+'px';
				oDiv.style.left = pos[0]-165+'px';
				if (anchor_id == 'process' || anchor_id == 'services' || anchor_id == 'projects' || anchor_id == 'tech') {
					oDiv.style.top = pos[1]-37+'px';
				}
				else {
					oDiv.style.top = pos[1]-39+'px';
				}
				oDiv.style.zIndex = 1002;
				return false;
			}
		}


	if(document.getElementById(div_id)!=null)
		document.getElementById(div_id).style.visibility="visible";
	return false;
}
function Hide_DropDown(id)
{
	if(document.getElementById(id)!=null)
		document.getElementById(id).className = 'category-hover';
	return false;
}
