var bTestSite=false;
var sHttpPrefix="http://";

// establish test vs live site
if (window.location.toString().toLowerCase().indexOf("minisage.com") > -1)
{
	bTestSite=true;
}
// establish http vs https
if (window.location.toString().toLowerCase().indexOf("https") > -1)
{
	sHttpPrefix = "https://";
}

var nSubMenuAdditionalWidthMedium = 0;   	//mfindlay
var nSubMenuAdditionalWidthWide = 0;    	//mfindlay

var nMenuWidth=0;				// width of menus to appear. Set to zero to ignore
var sBaseSite="";
var sNonSSLBaseSite="";

// If test site, just use 1 base site
/*if (bTestSite) 
{
	sBaseSite = sHttpPrefix + "";
	sNonSSLBaseSite ="http://" + "";
}
else
{
	sNonSSLBaseSite = ""/"http://" + "";
	
	// live site. If https mode, use safesecureweb address
	if (sHttpPrefix=="https://")
	{
		sBaseSite = sHttpPrefix + "";
	}
	else
	{
		// non ssl mode, use normal address
		sBaseSite = sHttpPrefix + "";
	}
} */

//****************************************************
// reloadCAPTCHA
//****************************************************
function reloadCAPTCHA() 
{
	document.getElementById('CAPTCHA').src=sBaseSite + 'include/CAPTCHA/CAPTCHA_image.asp?'+Date();
}

//********************
// TD Top nav onclick
//********************
function NavigateTo(sTarget)
{
	//window.location.href = sBaseSite + sTarget;
	window.location.href = sNonSSLBaseSite + sTarget;
	return true;
}


//var submenuTopOffset = "offset=5";  see iym for reference use in submenu flyouts
//var submenuLeftOffset = "offset=1";

// milonic
_menuCloseDelay=10;           	// The time delay for menus to remain visible on mouse out
_menuOpenDelay=50;             	// The time delay before menus open on mouse over
_subOffsetTop=4;             	// Sub menu top offset from bottom of image associated with it
_subOffsetLeft=-4;            	// Sub menu left offset

// ABOUT US STYLE
with(aboutusMenuStyle=new mm_style()){
 

onbgcolor="#f58220";			// hover background color  
offbgcolor="#FFFFFF";			// normal (non-hover) background color  
offcolor="#3F3C36";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=1;
fontfamily="Tahoma";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="bold";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=3;						// menu item cell padding
pagebgcolor="#ffffff"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#000000";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#FFFFFF";		// separator color 
separatorsize="1";
subimage=sBaseSite + "../images/sub_arrow.gif";
subimagepadding="2";
}
// POVERTY STYLE
with(povertyMenuStyle=new mm_style()){

onbgcolor="#f58220";			// hover background color  
offbgcolor="#FFFFFF";			// normal (non-hover) background color  
offcolor="#3F3C36";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color 
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=1;
fontfamily="Tahoma";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="bold";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=3;						// menu item cell padding
pagebgcolor="#ffffff"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#000000";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#FFFFFF";		// separator color 
separatorsize="1";
subimage=sBaseSite + "../images/sub_arrow.gif";
subimagepadding="2";
}
// PARTNERS STYLE
with(partnersMenuStyle=new mm_style()){
//decoration="none"
//disabled="true"
onbgcolor="#f58220";			// hover background color  
offbgcolor="#FFFFFF";			// normal (non-hover) background color  
offcolor="#3F3C36";				// normal (non-hover) text color  
oncolor="#FFFFFF";				// hover text color  
offclass="mmpadding";			// custom style attached to menu
onclass="mmpadding";			// custom style attached to menu
bordercolor="#A89C91";			// border color 
borderstyle="solid";
borderwidth=1;
fontfamily="Tahoma";				// font / font family
fontsize="11px";				// font size
fontstyle="normal";				// font style   
fontweight="bold";				// font weight (bold)   
//outfilter="Fade(duration=0.1)";
overfilter="Fade(duration=0.1);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
padding=3;						// menu item cell padding
pagebgcolor="#ffffff"; 			// this is the (non-hover) background color of the menu item last clicked 
pagecolor="#000000";  			// this is the (non-hover) text color of the menu item last clicked 
separatorcolor="#FFFFFF";		// separator color 
separatorsize="1";
subimage=sBaseSite + "../images/sub_arrow.gif";
subimagepadding="2";
}


// IMPACT STYLE
with(impactMenuStyle=new mm_style()){

}
// MEDIA STYLE
with(mediaMenuStyle=new mm_style()){

}
// INVOLVED STYLE
with(involvedMenuStyle=new mm_style()){

}

//******************** Academic***********************************
with(milonic=new menuname("mmourAcademic"))
{

overflow="scroll";
style=aboutusMenuStyle;
itemwidth=0;  
aI("text=Corporate Milestones;url=" + sNonSSLBaseSite + "corporatehighlights.htm");
aI("text=Subsidiaries of APCL;url=" + sNonSSLBaseSite + "subsidiaries.htm");
}

	

with(milonic2=new menuname("mmourAcademic2"))
{

overflow="scroll";
style=aboutusMenuStyle;
itemwidth=0;  

aI("text=Board of Directors;url=" + sNonSSLBaseSite + "directors.htm;");
aI("text=Key Management Team;url=" + sNonSSLBaseSite + "key_management.htm;");	
aI("text=Code of Conduct;url=" + sNonSSLBaseSite + "codeofconduct.htm;");

}




with(milonic5=new menuname("mmourAcademic5"))
{
overflow="scroll";
style=aboutusMenuStyle;
itemwidth=0;  
aI("text=Sales Offices;url=" + sNonSSLBaseSite + "sales_office.htm;");
aI("text=Direct Sales Offices;url=" + sNonSSLBaseSite + "direct_sales_office.htm;");	
}

with(milonic6=new menuname("mmourAcademic6"))
{

overflow="scroll";
style=aboutusMenuStyle;
itemwidth=0;  
aI("text=Financials;url=" + sNonSSLBaseSite + "financials.htm");
		aI("text=Equity Share &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=" + sNonSSLBaseSite + "http://www.indiaearnings.com/sub_india/compnews.php?autono=281798");
			
}



with(milonic7=new menuname("mmourAcademic7"))
{

overflow="scroll";
style=aboutusMenuStyle;
itemwidth=0;  
aI("text=CSR Activities &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;url=" + sNonSSLBaseSite + "csractivities.htm");
		
			
}