<!--  Copyright Applied Technology Solutions, Inc. 2004 -->
<!-- Author: Nikhil Kumar--> 
<!-- Name: Main Menu --> 
<!-- Notes: --> 


	// Home Dropdown: The header always links to following page. e.g. Admissions will link to Admissions Process
	LinkArray1=new Array();i=-1; 
		i++;LinkArray1[i]=new Array('Home', 'index.htm')
		i++;LinkArray1[i]=new Array('Contact Us', 'contactMainframe.htm')
			
	LinkArray2=new Array();i=-1; 
		i++;LinkArray2[i]=new Array('Services Overview', 'aboutLOBMainframe.htm')
		i++;LinkArray2[i]=new Array('Staffing Solutions', 'staffSolMainframe.htm')
		i++;LinkArray2[i]=new Array('Project Solutions', 'projectSolMainframe.htm')
		i++;LinkArray2[i]=new Array('Practice Areas', 'practiceMainframe.htm')
	//	i++;LinkArray2[i]=new Array('Offshore Presence', 'offshoreMainframe.htm')
	
	// Team
	LinkArray3=new Array();i=-1
	    i++;LinkArray3[i]=new Array('Our Team', 'teamMainframe.htm')
        i++;LinkArray3[i]=new Array('Leadership Team', 'teamMainframe1.htm')		

	LinkArray4=new Array();i=-1;
		i++;LinkArray4[i]=new Array('PPIT', 'PPITMainframe.htm')
		i++;LinkArray4[i]=new Array('Whitepapers', 'Whitepapers.html')
	/*	i++;LinkArray4[i]=new Array('Datawarehousing', 'datawarehousingMainframe.htm')
		i++;LinkArray4[i]=new Array('J2EE Patterns', 'patternsJ2EEMainframe.htm')
		i++;LinkArray4[i]=new Array('Architecture Governance', 'archGovMainframe.htm')
		i++;LinkArray4[i]=new Array('Aspect Oriented Programming', 'aopMainframe.htm')
*/
	LinkArray5=new Array();i=-1;
		i++;LinkArray5[i]=new Array('News','newsMainframe.htm')


// Misc Variables
	var timer;       			// holds the current timer value
	Menu_Over = null 			// Menu currently highlighted 
	MouseOver_bgColor ="#ffff66"// Color of the cell when mouse is over it
	OffsetMenuTop = 15 			// Offset Menu Top the height of the cell so it's top is at the cell bottom

function ShowMenu(elem,HTML){
	if(Menu_Over!=null){if(!document.layers){
	Menu_Over.className='DropDownHeader'}}
	Menu_Over = elem
	if(!document.layers){elem.className='DropDownHeaderOver'}

	var HTMLCode = ''
	HTMLelem = eval(HTML)
	if(HTMLelem.length>0){
		HTMLCode += '<table cellpadding="1" cellspacing="0" border="0" class="DropDownOutBox"><tr><td>'
		HTMLCode += '<table cellpadding="0" cellspacing="0" border="0" class="DropDownSubBox">'
				for(i=0;i<HTMLelem.length;i++){
						//if(i!=0){HTMLCode += '</td>'}
						clearTimeout(timer)
						HTMLCode += '<tr><td class="DropDownSubText" onmouseover="javascript:style.background=\'' +
						    MouseOver_bgColor + '\'\;  clearTimeout(timer); " onclick="self.location.href=\'' +
						    HTMLelem[i][1] + '\'" onmouseout=\"javascript:style.background=\'transparent\'; timer=setTimeout(\'HideDiv()\',500); ">'
						HTMLCode += '<nobr>'+ HTMLelem[i][0] + " " + '</nobr><br></td></tr>'
				}
		HTMLCode += '</table></td></tr></table>'

	}
		if(document.layers){
			document.OptionListDiv.left = findPosX(elem) 
			document.OptionListDiv.top = findPosY(elem)  + OffsetMenuTop 
			document.OptionListDiv.document.write(HTMLCode); document.layers['OptionListDiv'].document.close();
		}
		if(document.all){
			OptionListDiv.style.left = findPosX(elem)
			OptionListDiv.style.top = findPosY(elem) + OffsetMenuTop 
			OptionListDiv.innerHTML = HTMLCode
		}
		if(!document.all && document.getElementById){
			document.getElementById('OptionListDiv').style.left = findPosX(elem)
			document.getElementById('OptionListDiv').style.top = findPosY(elem) + OffsetMenuTop 
			document.getElementById('OptionListDiv').innerHTML = HTMLCode
		}

}
//////////////////////////////////////////////////////////////////////////////////////////////////
// find the Left position
function findPosX(obj){
	var curleft=0;
		if(document.getElementById||document.all){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
		else if(document.layers){curleft+=obj.x;}
	return curleft;
}

//////////////////////////////////////////////////////////////////////////////////////////////////
// find the top position
function findPosY(obj){
	var curtop=0;
		if(document.getElementById||document.all){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}
		else if(document.layers){curtop+=obj.y;}
	return curtop;
}

//////////////////////////////////////////////////////////////////////////////////////////////////
// set the mouse click mouseup event
if(document.layers)document.captureEvents(Event.MOUSEMOVE);document.onmouseup=HideDiv;

//////////////////////////////////////////////////////////////////////////////////////////////////
// hide the menu
function HideDiv(){
	if(Menu_Over!=null){
		if(!document.layers){Menu_Over.className='DropDownHeader'}
	}
	if(document.layers){document.OptionListDiv.top = -999}
	if(document.all){OptionListDiv.style.top = -999}
	if(!document.all && document.getElementById){document.getElementById('OptionListDiv').style.top = -999}
}
//////////////////////////////////////////////////////////////////////////////////////////////////
//-->
