var objBrowser = new objBrowserCheck();
 
 objBrowser.getObject = function(strObjectID){
     if(strObjectID && strObjectID != ""){
      if(objBrowser.w3c) {return document.getElementById(strObjectID);}
      if(objBrowser.ie) {return document.all(strObjectID);}
      if(objBrowser.ns) {return document.layers(strObjectID);}
     }
     return null;
    }
 

var locationPath=document.location.href;
var arrLocation=locationPath.split("/");
var pageName=arrLocation.pop();
 



var managementBtn=objBrowser.getObject("management");
var advisoryBtn=objBrowser.getObject("advisory");
var investorsBtn=objBrowser.getObject("investors");

var processs_methodologyBtn=objBrowser.getObject("processs_methodology");
var team_infraBtn=objBrowser.getObject("team_infra");
var servicesBtn=objBrowser.getObject("services");
var knowledge_accBtn=objBrowser.getObject("knowledge_acc");

var processBtn=objBrowser.getObject("process");
var teamBtn=objBrowser.getObject("team");
var services_productsBtn=objBrowser.getObject("services_products");
var knowledge_crystallizerBtn=objBrowser.getObject("knowledge_crystallizer");

var business_researchBtn=objBrowser.getObject("business_research");
var financial_analyticsBtn=objBrowser.getObject("financial_analytics");

var knowledge_advantageBtn=objBrowser.getObject("knowledge_advantage");
var white_papersBtn=objBrowser.getObject("white_papers");
var newsletterBtn=objBrowser.getObject("newsletter");
var research_archivesBtn=objBrowser.getObject("research_archives");
var market_place_researchBtn=objBrowser.getObject("market_place");
//alert(managementBtn.src);
 
// set Current Image 
 
if(pageName=="management_team.html"){
 managementBtn.src="../images/menu_images/nav_section1_1_over.gif";
}
if(pageName=="advisory_board.html"){
 advisoryBtn.src="../images/menu_images/nav_section1_2_over.gif";
}
if(pageName=="investors.html"){
 investorsBtn.src="../images/menu_images/nav_section1_3_over.gif";
} 
if(pageName=="process_&_methodologies.html"){
 processs_methodologyBtn.src="../images/menu_images/nav_section2_1_over.gif";
} 
if(pageName=="team_&_infrastructure.html"){
 team_infraBtn.src="../images/menu_images/nav_section2_2_over.gif";
}
if(pageName=="services_&_products.html"){
 servicesBtn.src="../images/menu_images/nav_section2_3_over.gif";
}
if(pageName=="knowledge_accelerator.html"){
 knowledge_accBtn.src="../images/menu_images/nav_section2_4_over.gif";
}

if(pageName=="process_methodologies.html"){
 processBtn.src="../images/menu_images/nav_section3_1_over.gif";
}
if(pageName=="team_infrastructure.html"){
 teamBtn.src="../images/menu_images/nav_section3_2_over.gif";
}
if(pageName=="services_products.html"){
 services_productsBtn.src="../images/menu_images/nav_section3_3_over.gif";
}
if(pageName=="knowledge_crystallizer.html"){
 knowledge_crystallizerBtn.src="../images/menu_images/nav_section3_4_over.gif";
}

//alert(pageName);
if(pageName=="business_research_&_analytics.html" || pageName=="business_research_&_analytics.html#Automotive" || pageName=="business_research_&_analytics.html#Chemicals" || pageName=="business_research_&_analytics.html#Energy" || pageName=="business_research_&_analytics.html#Healthcare" || pageName=="business_research_&_analytics.html#HighTechnology" || pageName=="business_research_&_analytics.html#Telecommunications"){
 business_researchBtn.src="../images/menu_images/nav_section4_1_over.gif";
}
if(pageName=="financial_analytics_cases.html" || pageName=="financial_analytics_cases.html#Due_Diligence" || pageName=="financial_analytics_cases.html#Credit_Monitoring" || pageName=="financial_analytics_cases.html#Mergers" || pageName=="financial_analytics_cases.html#Statistical_Analysis" || pageName=="financial_analytics_cases.html#Industry"){
 financial_analyticsBtn.src="../images/menu_images/nav_section4_2_over.gif";
}

if(pageName=="knowledge_advantage.html"){
 knowledge_advantageBtn.src="../images/menu_images/nav_section5_1_over.gif";
}
if(pageName=="white_papers.html" || pageName=="white_papers.html#Chem_Engi" || pageName=="white_papers.html#Global_Energy" || pageName=="white_papers.html#Indian_Chemical"){
 white_papersBtn.src="../images/menu_images/nav_section5_2_over.gif";
}
if(pageName=="market_place_research.html"){
 market_place_researchBtn.src="../images/menu_images/nav_section5_3_over.gif";
}
if(pageName=="market_place_resarch.html" || pageName=="market_place_research.html#Indian_Pharma" || pageName=="market_place_research.html#Mobile_Value"){
 market_place_researchBtn.src="../images/menu_images/nav_section5_3_over.gif";
}
if(pageName=="newsletter.html"){
 newsletterBtn.src="../images/menu_images/nav_section5_4_over.gif";
}
if(pageName=="research_archives.html"){
 research_archivesBtn.src="../images/menu_images/nav_section5_5_over.gif";
}



//for browser specific testing 
 
if(objBrowser.safari)
{
document.write('<style type="text/css">\n')
document.write('#mainContainer{height:100% !important;}\n')
document.write('#mainContainer{border:1px solid #CECFCE; !important;}\n')
document.write('#mainContainer{border-top:0px; !important;}\n')
document.write('</style>\n')	
}

 


var fireFoxversion=navigator.userAgent;
arrffVersion=fireFoxversion.split("/");
arrffVersion=arrffVersion.pop();
//alert(arrffVersion);
if (objBrowser.firefox ){
	if (arrffVersion=="1.0.4"){
	document.write('<style type="text/css">\n')
	document.write('#mainContainer{height:100% !important;}\n')
	document.write('#mainContainer{border:1px solid #CECFCE; !important;}\n')
	document.write('#mainContainer{border-top:0px; !important;}\n')
	document.write('#mainContainer{border-left:0px; !important;}\n')
	document.write('</style>\n')
	}else{
	document.write('<style type="text/css">\n')
	document.write('html {overflow: -moz-scrollbars-vertical;}\n')
	document.write('html {overflow-x: auto;}\n')
	document.write('</style>\n')
	}
}



 
/********************************************************************
*
* Individual browser checking object. Initialised at top of page.
*
********************************************************************/
 

function objBrowserCheck(strUserAgent){
 var strAgt = (!!strUserAgent) ? strUserAgent.toLowerCase() : navigator.userAgent.toLowerCase();
 
 this.agt = strAgt;
 this.major = parseInt(navigator.appVersion);
 this.minor = parseFloat(navigator.appVersion);
 
 this.ns = ((strAgt.indexOf('mozilla')!=-1) && (strAgt.indexOf('spoofer')==-1) && (strAgt.indexOf('compatible') == -1) && (strAgt.indexOf('opera')==-1) && (strAgt.indexOf('webtv')==-1) && (strAgt.indexOf('hotjava')==-1) && (strAgt.indexOf('safari')==-1) && (strAgt.indexOf('firefox')==-1));
 
 this.firefox = (strAgt.indexOf('firefox') != -1);
 if((this.ns && (this.major == 5)) || this.firefox){ //fix versions for newer netscape versions 6+
  var strVersion = removePoints(strAgt.substr(strAgt.lastIndexOf("/")+1));
  this.major  = parseInt(strVersion);
  this.minor  = parseFloat(strVersion);
 }
 
 this.gecko  = ((strAgt.indexOf('gecko') != -1) && (strAgt.indexOf('safari')==-1) && (strAgt.indexOf('firefox')==-1));
 
 this.safari = (strAgt.indexOf('safari') != -1);
 
 if(this.safari && (this.major == 5)){
  var strVersion = strAgt.substr(strAgt.lastIndexOf("/")+1);
  this.major  = parseInt(strVersion);
  this.minor  = parseFloat(strVersion);
 }
 
 this.ie     = ((strAgt.indexOf("msie") != -1) && (strAgt.indexOf("opera") == -1));
 
 if(this.ie){
  var strTemp  = strAgt.substr(strAgt.indexOf("msie")+5);
  var strVersion = removePoints(strTemp.substr(0,strTemp.indexOf(";")));
  this.major  = parseInt(strVersion);
  this.minor  = parseFloat(strVersion);
 }
 
 this.aol = (strAgt.indexOf("aol") != -1);
 
 if(this.aol){
  var strTemp = strAgt.substr(strAgt.indexOf("aol")+4);
  var strVersion = removePoints(strTemp.substr(0,strTemp.indexOf(";")));
  this.major  = parseInt(strVersion);
  this.minor  = parseFloat(strVersion);
 }
 
 this.opera = (strAgt.indexOf("opera") != -1);
 
 if(this.opera){
  var strTemp = strAgt.substr(strAgt.indexOf("opera")+6);
  var strVersion = removePoints(strTemp.substr(0,strTemp.indexOf(" ")));
  this.major  = parseInt(strVersion);
  this.minor  = parseFloat(strVersion);
 }
 

 this.konq = (strAgt.indexOf("konqueror") != -1);
 
 if(this.konq){
  var strTemp  = strAgt.substr(strAgt.indexOf("konqueror")+10);
  var strVersion = removePoints(strTemp.substr(0,strTemp.indexOf(";")));
  this.major  = parseInt(strVersion);
  this.minor  = parseFloat(strVersion);
 }
 

 this.webtv   = (strAgt.indexOf("webtv") != -1);
 this.TVNavigator = ((strAgt.indexOf("navio") != -1) || (strAgt.indexOf("navio_aoltv") != -1));
 this.AOLTV   = this.TVNavigator;
 this.hotjava  = (strAgt.indexOf("hotjava") != -1);
 

 // *** DOM CHECK ***
 
 this.w3c = (!!document.getElementById);
 

 // *** PLATFORM ***
 this.win = ((strAgt.indexOf("win")!=-1) || (strAgt.indexOf("16bit")!=-1) );
 this.win16 = ((strAgt.indexOf("win16")!=-1) || (strAgt.indexOf("16bit")!=-1) || (strAgt.indexOf("windows 3.1")!=-1) || (strAgt.indexOf("windows 16-bit")!=-1) );
 this.win31 = ((strAgt.indexOf("windows 3.1")!=-1) || (strAgt.indexOf("win16")!=-1) || (strAgt.indexOf("windows 16-bit")!=-1));
 this.win95 = ((strAgt.indexOf("win95")!=-1) || (strAgt.indexOf("windows 95")!=-1));
 this.win98 = ((strAgt.indexOf("win98")!=-1) || (strAgt.indexOf("windows 98")!=-1));
 this.winnt = ((strAgt.indexOf("winnt")!=-1) || (strAgt.indexOf("windows nt")!=-1));
 this.win32 = (this.win95 || this.winnt || this.win98 || ((this.major >= 4) && (navigator.platform == "Win32")) || (strAgt.indexOf("win32")!=-1) || (strAgt.indexOf("32bit")!=-1));
 this.winme = ((strAgt.indexOf("win 9x 4.90")!=-1));
 this.win2k = ((strAgt.indexOf("windows nt 5.0")!=-1));
 this.winxp = ((strAgt.indexOf("windows nt 5.1")!=-1));
 
 this.os2 = ((strAgt.indexOf("os/2")!=-1) || (navigator.appVersion.indexOf("OS/2")!=-1) || (strAgt.indexOf("ibm-webexplorer")!=-1));
 
 this.mac = (strAgt.indexOf("mac")!=-1);
 this.mac68k = (this.mac && ((strAgt.indexOf("68k")!=-1) || (strAgt.indexOf("68000")!=-1)));
 this.macppc = (this.mac && ((strAgt.indexOf("ppc")!=-1) || (strAgt.indexOf("powerpc")!=-1)));
 this.osx = (this.mac && (strAgt.indexOf("os x")!=-1));
 
 this.sun  = (strAgt.indexOf("sunos")!=-1);
 this.sun4  = (strAgt.indexOf("sunos 4")!=-1);
 this.sun5  = (strAgt.indexOf("sunos 5")!=-1);
 this.suni86  = (this.sun && (strAgt.indexOf("i86")!=-1));
 this.irix  = (strAgt.indexOf("irix") !=-1);    // SGI
 this.irix5  = (strAgt.indexOf("irix 5") !=-1);
 this.irix6  = ((strAgt.indexOf("irix 6") !=-1) || (strAgt.indexOf("irix6") !=-1));
 this.hpux  = (strAgt.indexOf("hp-ux")!=-1);
 this.hpux9  = (this.hpux && (strAgt.indexOf("09.")!=-1));
 this.hpux10  = (this.hpux && (strAgt.indexOf("10.")!=-1));
 this.aix  = (strAgt.indexOf("aix") !=-1);      // IBM
 this.aix1  = (strAgt.indexOf("aix 1") !=-1);
 this.aix2  = (strAgt.indexOf("aix 2") !=-1);
 this.aix3  = (strAgt.indexOf("aix 3") !=-1);
 this.aix4  = (strAgt.indexOf("aix 4") !=-1);
 this.linux  = (strAgt.indexOf("inux")!=-1);
 this.sco  = (strAgt.indexOf("sco")!=-1) || (strAgt.indexOf("unix_sv")!=-1);
 this.unixware = (strAgt.indexOf("unix_system_v")!=-1);
 this.mpras  = (strAgt.indexOf("ncr")!=-1);
 this.reliant = (strAgt.indexOf("reliantunix")!=-1);
 this.dec  = ((strAgt.indexOf("dec")!=-1) || (strAgt.indexOf("osf1")!=-1) || (strAgt.indexOf("dec_alpha")!=-1) || (strAgt.indexOf("alphaserver")!=-1) || (strAgt.indexOf("ultrix")!=-1) || (strAgt.indexOf("alphastation")!=-1));
 this.sinix  = (strAgt.indexOf("sinix")!=-1);
 this.freebsd = (strAgt.indexOf("freebsd")!=-1);
 this.bsd  = (strAgt.indexOf("bsd")!=-1);
 this.unix  = ((strAgt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux || this.sco ||this.unixware || this.mpras || this.reliant || this.dec || this.sinix || this.aix || this.linux || this.bsd || this.freebsd);
 this.vms  = ((strAgt.indexOf("vax")!=-1) || (strAgt.indexOf("openvms")!=-1));
 
 
 
  function removePoints(strVersion){
      arrVersion = strVersion.replace(/[A-Za-z]/,"").split(".");
      strVersion = "";
      for(var i=0; i<arrVersion.length; i++){
       strVersion += arrVersion[i];
       if(i==0){strVersion += "."}
      }
      return strVersion;
    }
}


var pagePath=document.location.href;
var aarPath=pagePath.split("/");
var aarPath=aarPath.pop();
var topNavabout=objBrowser.getObject("tbAbout");
var topNavbusiness=objBrowser.getObject("tbBusiness");
var topNavfinancial=objBrowser.getObject("tbFinancial");
var topNavIndustries=objBrowser.getObject("tbIndustries");
var topNavleading=objBrowser.getObject("tbLeading");