/* Code for Menus STARTS Here */
var DisplayFlag=0;
var MainFlag=0;
var NewSMId;
var SMNid;

function ShowSubMenus(SSMID)
{
		for(i=0;i<2;i++)
		{
			if(i==0)
				SMNid="SubKnowUs";
			else if(i==1)
				SMNid="SubExpertise";
			
			if(SMNid!=SSMID)
			{
				document.getElementById(SMNid).style.display="none";
			}
			else
			{
				document.getElementById(SMNid).style.display="block";
			}
	}
}

function HideSubMenus(SMId)
{
	NewSMId=SMId;
	setTimeout("ActualHide()",500);
}

function ActualHide()
{
	if(DisplayFlag==0)
	{
	document.getElementById(NewSMId).style.display="none";
	}
}

function SubMenuHover()
{
	DisplayFlag=1;
}

function HideSMenu(SMId)
{
	NewSMId=SMId;
	DisplayFlag=0;
	setTimeout("ActualHide()",500);
}

function HideLater()
{
	if(MainFlag==0)
	{
	document.getElementById(NewSMId).style.display="none";
	}
	
}

/* Code for Menus ends Here */
/* Expanding Div Code starts here */
var DefHt=0;
var NewDivId="";
var NewDivHt="";
function ExpandDiv(DivId,DivHt)
{
    DefHt=0;
    NewDivId=DivId;
    NewDivHt=DivHt;
	NewExpDiv();
}

function NewExpDiv()
{
    if(DefHt<NewDivHt)
	{
	    document.getElementById(NewDivId).style.height=DefHt+"px";
	    DefHt=DefHt+10;
	    setTimeout("NewExpDiv()",10);
	}	
}

function CloseDiv(DivId)
{
    document.getElementById(DivId).style.height="0px";
    DefHt=0;
}
/* Expanding Div Code ENDS here */

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}