/////topmenu


//Contents for menu index
var menu1=new Array()
menu1[0]='<a href="/index.asp">Index</a>'
menu1[1]='<a href="/location.asp">Location</a>'
menu1[2]='<a href="/contact_us.asp">Contact Us</a>'
menu1[3]='<a href="/news_events/news.asp">News & Events</a>'

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/aboutus/overview.asp">Overview</a>'
menu1[1]='<a href="/aboutus/vision_values.asp">Vision & Values</a>'
menu1[2]='<a href="/aboutus/clients.asp">Clients</a>'
menu1[3]='<a href="/aboutus/alliances.asp">Alliances</a>'
menu1[4]='<a href="/aboutus/lnt_heritage.asp">L&T Heritage</a>'
menu1[5]='<a href="/aboutus/board_directors.asp">Board of Directors</a>'
menu1[6]='<a href="/aboutus/delivery_centers.asp">Delivery Centers</a>'
menu1[7]='<a href="/aboutus/people.asp">People</a>'
menu1[8]='<a href="/aboutus/quality.asp">Quality</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="/services/application_development/overview.asp">Application Development</a>'
menu2[1]='<a href="/services/application_maintenance_support/overview.asp">Application Maintenance & Support</a>'
menu2[2]='<a href="/services/applications_outsourcing/overview.asp">Applications Outsourcing</a>'
menu2[3]='<a href="/services/testing/overview.asp">Testing</a>'
menu2[4]='<a href="/services/business_analytics/overview.asp">Business Analytics</a>'
menu2[5]='<a href="/services/architecture_consulting/overview.asp">Architecture Consulting</a>'
menu2[6]='<a href="/services/ims/overview.asp">Infrastructure Management Services</a>'
menu2[7]='<a href="/services/ies/overview.asp">Integrated Engineering Services</a>'
menu2[8]='<a href="/services/legacy_modernization/overview.asp">Legacy Modernization</a>'
menu2[9]='<a href="/services/sap_services/overview.asp">SAP Services</a>'
menu2[10]='<a href="/services/oracle_services/overview.asp">Oracle Services</a>'
menu2[11]='<a href="/services/plm/overview.asp">Product Lifecycle Management</a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[1]='<a href="/industries/banking_financial/overview.asp">Banking & Financial Services</a>'
//menu3[2]='<a href="#">Insurance</a>'
menu3[2]='<a href="/industries/insurance/overview.asp">Insurance</a>'
menu3[3]='<a href="/industries/energy_petrochemicals/overview.asp">Energy & Petrochemicals</a>'
menu3[4]='<a href="/industries/manufacturing/overview.asp">Manufacturing</a>'
menu3[5]='<a href="/industries/product_engineering/overview.asp">Telecom-Product Engineering Services</a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="/solutions/accelerators.asp">Accelerators</a>'
menu4[1]='<a href="/solutions/frameworks.asp">Frameworks</a>'


//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="/knowledge_center/coe/overview.asp">Center of Excellence</a>'
menu5[1]='<a href="/knowledge_center/coe/white_papers.asp">White Papers</a>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="#">Become an Infoknight</a>'
//menu6[0]='<a href="careers/why_us.asp">Why Us</a>'
//menu6[1]='<a href="careers/meet_infoknights.asp">Meet Infoknights</a>'
//menu6[2]='<a href="careers/apply_now.asp">Apply Now</a>'
//menu6[3]='<a href="careers/contact_hr.asp">Contact HR</a>'

var menuwidth='165px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="filter:alpha(opacity=90);-moz-opacity:100;opacity:100;visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu



/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

function MM_goToURL() { //v3.0
var x=document.getElementsByName("chk");
  

	  var i, args=MM_goToURL.arguments; 
	  //document.MM_returnValue = false;
	 
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	  
	  for(j=0;j<x.length;j++)
	  {
	  	if(j!=args[2])
	  	{
	  		x[j].checked=false;
	  	}
	  }
	}
	
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}

