var cnt=new Array();
var speed=20;
var divid='serv_m1';var div_end=true;
function showProjectInt(otherid,inx)
{

	var obj = getObjElement(divid);
	var obj1 = getObjElement(otherid);
	
	ht = getElementHeight(obj);
	ht1 = getElementHeight(obj1);
	
	if(ht>0 && ht<speed)
	speed = ht;
	else
	if(ht<speed)
	{
		obj.style.height = '0px';
		clearInterval(cnt[inx]);
		divid=otherid;
		cnt[inx]=null;
		return;
	}

		obj.style.height= (ht - speed) + 'px';
		
		obj1.style.height= (ht1 + speed) + 'px';


}

function showproject(otherid)
{	
	inx=0;	
	if(divid==otherid)return;	
	if(cnt[inx]!=null)return;
	
	var obj = getObjElement(divid);
	ht= getElementHeight(obj);
	speed=20;
		
	clearInterval(cnt[inx]);
	cnt[inx]=null;
	
	if(ht<speed)
	{
	//cnt[inx]=setInterval("showProjectInt('" + otherid + "','" + divid + "'," + inx + ");" , 5);
	}
	else
	{
	cnt[inx]=setInterval("showProjectInt('" + otherid + "'," + inx + ");" , 5);
	
	}

}