function startmenu()
{	
	
	/*var doc_path = document.location.href;
	var path_len=doc_path.split("/").length;
    var pagnam= doc_path.split("/");
    var menid=pagnam[8].split("=");
    alert(menid[1])*/
	
	var doc_path = document.location.href;
	var menid= doc_path.split("=");
    

	document.getElementById('menu1').style.display = "none";
	document.getElementById('menu2').style.display = "none";
	document.getElementById('menu3').style.display = "none";
	document.getElementById('menu4').style.display = "none";
	//document.getElementById('menu5').style.display = "none";
	document.getElementById('submenu1').style.display = "none";
	document.getElementById('submenu2').style.display = "none";

	
var url = window.location.href;
var nohttp = url.split('//')[1];
var hostPort = nohttp.split('/');
//var len=hostPort.length


//alert(hostPort[hostPort.length-1])

//menu1
if (hostPort[hostPort.length-1]=="AboutUs.htm")
{
 document.getElementById('menu1').style.display = "block";
}

if (hostPort[hostPort.length-1]=="HRManagement.htm")
{
 document.getElementById('menu1').style.display = "block";
}

if (hostPort[hostPort.length-1]=="TQM_Way.htm")
{
 document.getElementById('menu1').style.display = "block";
}
if (hostPort[hostPort.length-1]=="about_business.htm")
{
 document.getElementById('menu1').style.display = "block";
}

if (hostPort[hostPort.length-1]=="about_corpostucture.htm")
{
 document.getElementById('menu1').style.display = "block";
}

if (hostPort[hostPort.length-1]=="about_community.htm")
{
 document.getElementById('menu1').style.display = "block";
}


//menu2

if (hostPort[hostPort.length-1]=="pro_ttb.htm")
{
 document.getElementById('menu2').style.display = "block";
}

if (hostPort[hostPort.length-1]=="chemicals.htm")
{
 document.getElementById('menu2').style.display = "block";
}

if (hostPort[hostPort.length-1]=="pro_PFB.htm")
{
 document.getElementById('menu2').style.display = "block";
}

//menu3


if (hostPort[hostPort.length-1]=="investor_fin_results.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="investor_fin_results.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="investor_faq.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="investor_theindex.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="investor_theindex.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="investor_shareholding.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="investor_notificationtose.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="investor_weeklyshareprice.htm")
{
 document.getElementById('menu3').style.display = "block";
}

if (hostPort[hostPort.length-1]=="InsiderTrading.htm")
{
 document.getElementById('menu3').style.display = "block";
 document.getElementById('submenu1').style.display = "block";
 
}

if (hostPort[hostPort.length-1]=="Seniormanagement.htm")
{
 document.getElementById('menu3').style.display = "block";
 document.getElementById('submenu1').style.display = "block";
 
}

if (hostPort[hostPort.length-1]=="UNFCCC.htm")
{
 document.getElementById('menu3').style.display = "block";
 document.getElementById('submenu1').style.display = "block";
 
}
if (hostPort[hostPort.length-1]=="CarbonCreditoverview.htm")
{
 document.getElementById('menu3').style.display = "block";
 document.getElementById('submenu1').style.display = "block";
 
}

//menu 4 Press Room
if (hostPort[hostPort.length-1]=="pressroom_background.htm")
{
 document.getElementById('menu4').style.display = "block";
}
if (hostPort[hostPort.length-1]=="pressroom_corporatefact.htm")
{
 document.getElementById('menu4').style.display = "block";
}
if (hostPort[hostPort.length-1]=="press_discriptors.htm")
{
 document.getElementById('menu4').style.display = "block";
}
if (hostPort[hostPort.length-1]=="press_what@srf.htm")
{
 document.getElementById('menu4').style.display = "block";
}
if (hostPort[hostPort.length-1]=="press_exprofiles.htm")
{
 document.getElementById('menu4').style.display = "block";
}
if (hostPort[hostPort.length-1]=="press_releases.htm")
{
 document.getElementById('menu4').style.display = "block";
}
if (hostPort[hostPort.length-1]=="Publications.htm")
{
 document.getElementById('menu4').style.display = "block";
}
if (hostPort[hostPort.length-1]=="DrBharatRamprofile.htm")
{
 document.getElementById('menu4').style.display = "block";
 document.getElementById('submenu2').style.display = "block";
 
}



	if (document.getElementById(menid[1]) != null)
	{
		menuvisible(menid[1])
		
	}
	
	if (document.getElementById(menid[2]) != null)
	{
		menuvisible(menid[2])
		
	}
	if (document.getElementById(menid[3]) != null)
	{
		menuvisible(menid[3])
		
	}
	if (document.getElementById(menid[4]) != null)
	{
		menuvisible(menid[4])	
	}

	if (document.getElementById(menid[5]) != null)
	{
		menuvisible(menid[5])	
	}
	
	if (document.getElementById(menid[6]) != null)
	{
		menuvisible(menid[6])	
	}
	if (document.getElementById(menid[6]) != null)
	{
		menuvisible(menid[6])	
	}
}

function menufunc(menuId)
{	
	

	if(document.getElementById(menuId).style.display == "none")
	{
		//startmenu();
		
		document.getElementById('menu1').style.display = "none";
		document.getElementById('menu2').style.display = "none";
		document.getElementById('menu3').style.display = "none";
		document.getElementById('menu4').style.display = "none";
		//document.getElementById('menu5').style.display = "none";
		
		document.getElementById('submenu1').style.display = "none";
		document.getElementById('submenu2').style.display = "none";

		document.getElementById(menuId).style.display = "block";
		if (menuId=="menu1")
		{
			//alert("hi")
			document.location.href = "../AboutUs.htm?mid=menu1"
		}
		if (menuId=="menu2")
		{			
			document.location.href = "../product.htm?mid=menu2"
		}		
		if (menuId=="menu3")
		{			
			document.location.href = "../investor_fin_results.htm?mid=menu3"
		}
		if (menuId=="menu4")
		{			
			document.location.href = "../pressroom.htm?mid=menu4"
		}
		
		

	}
	else
	{
		
		document.getElementById('menu1').style.display = "none";
		document.getElementById('menu2').style.display = "none";
		document.getElementById('menu3').style.display = "none";
		document.getElementById('menu4').style.display = "none";
		//document.getElementById('menu5').style.display = "none";

		//document.getElementById('submenu1').style.display = "none";
		//document.getElementById('submenu2').style.display = "none";

		//document.getElementById('menu5').style.display = "none";

		//startmenu();
	}
}

function submenufunc(menuId)
{
   
	if(document.getElementById(menuId).style.display == "none")
	{
		//startsubmenu();
		startmenu();
		document.getElementById('menu3').style.display = "block";
		document.getElementById('submenu1').style.display = "block";
		document.getElementById(menuId).style.display = "block";
	}
		
		//document.getElementById(menuId).fontstyle.display = "Bold";

	else
	{
	//startmenu();
	startsubmenu();
	}
}


function submenufunc1(menuId)
{
	if(document.getElementById(menuId).style.display == "none")
	{
		//startsubmenu();
		startmenu();
		document.getElementById('submenu2').style.display = "block";
		document.getElementById(menuId).style.display = "block";
		document.getElementById(menuId).style.display = "block";
		//document.getElementById(menuId).fontstyle.display = "Bold";
	}
	else
	{
	
		startsubmenu();
	}
}

function startsubmenu()
{
	/*document.getElementById('menu1').style.display = "none";
	document.getElementById('menu2').style.display = "none";
	document.getElementById('menu3').style.display = "none";
	document.getElementById('menu4').style.display = "none";*/
	document.getElementById('submenu1').style.display = "none";
	document.getElementById('submenu2').style.display = "none";
	/*if (document.getElementById(menid[5]) != null)
	{
		menuvisible(menid[5])
		
	}
	
	
	if (document.getElementById(menid[6]) != null)
	{
		menuvisible(menid[6])
	}*/
	

}


function menuvisible(menuId)
{


document.getElementById(menuId).style.display = "block";

if (menuId=="submenu1")
{
document.getElementById('menu3').style.display = "block";
document.getElementById('submenu1').style.display = "block";
}

if (menuId=="submenu2")
{
document.getElementById('menu4').style.display = "block";
document.getElementById('submenu2').style.display = "block";
}

}

	//var menuscript = "<TD vAlign='top' width='25%' class='menuspace'>"
	var menuscript = "<table width='100%' class='tablebottom'><tr><td valign='top' width='20%' colspan='2'>"
	menuscript = menuscript +"<a href=javaScript:menufunc('menu1') class='Menu_Head'>About SRF</a>"
	menuscript = menuscript +"<div id='menu1' class='Menu_Head'>&nbsp;&nbsp;<a href='AboutUs.htm?mid=menu1' class='Menulinktop' >Our profile</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp;<a href='TQM_Way.htm?mid=menu1' class='Menulinktop' >TQM</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp;<a href='HRManagement.htm?mid=menu1' class='Menulinktop' >Human Resource Management</a><br>"	
	menuscript = menuscript +"&nbsp;&nbsp;<a href='about_business.htm?mid=menu1' class='Menulinktop' >Business Philosophy</a><br>"	
	menuscript = menuscript +"&nbsp;&nbsp;<a href='about_corpostucture.htm?mid=menu1' class='Menulinkmiddle'>Corporate Structure</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp;<a href='about_milestones.htm?mid=menu1' class='Menulinkmiddle'>Milestones</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp;<a href='about_community.htm?mid=menu1' class='Menulinkbottom'>Community Relations</a><br></div>"

	menuscript = menuscript +"<a href=javaScript:menufunc('menu2') class='Menu_Head'>Business & Products</a>"
	menuscript = menuscript +"<div id='menu2' class='Menu_Head'>&nbsp;&nbsp; <a href='pro_ttb.htm?mid=menu2' class='Menulinktop'>Technical Textiles Business</a><br>"
	//menuscript = menuscript +"&nbsp;&nbsp; <a href='pro_beltingfabrics.htm?mid=menu2' class='Menulinkmiddle'>Belting Fabrics</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='chemicals.htm?mid=menu2' class='Menulinkmiddle'>Chemical Business</a><br>"
	//menuscript = menuscript +"&nbsp;&nbsp; <a href='pro_chemicals.htm?mid=menu2' class='Menulinkmiddle'>FluoroChemical Business</a><br>"
	//menuscript = menuscript +"&nbsp;&nbsp; <a href='pro_synthetics.htm?mid=menu2' class='Menulinkmiddle'>Industrial Synthesis</a><br>"
	//menuscript = menuscript +"&nbsp;&nbsp; <a href='pro_PFB.htm?mid=menu2' class='Menulinkmiddle'>Packaging Films Business</a><br></div>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='pro_PFB.htm?mid=menu2' class='Menulinkbottom'>Packaging Films Business</a><br></div>"
	
	menuscript = menuscript +"<a href=javaScript:menufunc('menu3') class='Menu_Head'>Investor Relations</a>"
	menuscript = menuscript +"<div id='menu3' class='Menu_Head'>&nbsp;&nbsp; <a href=javaScript:submenufunc('submenu1') class='Menulinktop'>Disclosures</a>"
	menuscript = menuscript +"<div id='submenu1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='InsiderTrading.htm?mid=submenu1' class='Menulinktop'>Code of Conduct - for Prevention of Insider Trading</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='Seniormanagement.htm?mid=submenu1' class='Menulinkmiddle'>Code of Conduct - for Directors and Senior Management Personnel</a><br></div>"
	//menuscript = menuscript +"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='UNFCCC.htm?mid=submenu1' class='Menulinkmiddle'>UNFCCC Report on Issue of Carbon Credits (CERs) to SRF</a><br>"
	//menuscript = menuscript +"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='CarbonCreditoverview.htm?mid=submenu1' class='Menulinkmiddle'>SRF Carbon Credit overview</a><br></div>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='investor_fin_results.htm?mid=menu3' class='Menulinkmiddle'>Financial Results</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='investor_faq.htm?mid=menu3' class='Menulinkmiddle'>FAQ'S</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='investor_theindex.htm?mid=menu3' class='Menulinkmiddle'>SRF Vs The Indices</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='investor_shareholding.htm?mid=menu3' class='Menulinkmiddle'>Shareholding Pattern</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='investor_notificationtose.htm?mid=menu3' class='Menulinkmiddle'>Notification</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='investor_weeklyshareprice.htm?mid=menu3' class='Menulinkbottom'>Weekly Share Price</a><br></div>"
	
	menuscript = menuscript +"<a href=javaScript:menufunc('menu4') class='Menu_Head'>Press Room</a>"
	menuscript = menuscript +"<div id='menu4' class='Menu_Head'>&nbsp;&nbsp; <a href='pressroom_background.htm?mid=menu4' class='Menulinktop'>SRF Background</a><br>"
	//menuscript = menuscript +"&nbsp;&nbsp; <a href='pressroom_background.htm?mid=menu4' class='Menulinkmiddle'>SRF Background</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='pressroom_corporatefact.htm?mid=menu4' class='Menulinkmiddle'>SRF Corporate Fact Sheet</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='press_discriptors.htm?mid=menu4' class='Menulinkmiddle'>Brief Descriptors On SRF</a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='press_what@srf.htm?mid=menu4' class='Menulinkmiddle'>Who's What @ SRF</a>"
	//menuscript = menuscript +"&nbsp;&nbsp; <a href='Ourheritage.htm?mid=menu4' class='Menulinkmiddle'>Our Heritage</a><br>"

	menuscript = menuscript +"&nbsp;&nbsp;&nbsp;<a href=javaScript:submenufunc1('submenu2') class='Menulinkmiddle'>Our Heritage</a>"
	menuscript = menuscript +"<div id='submenu2' >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='DrBharatRamprofile.htm?mid=submenu2' class='Menulinkmiddle'>Dr Bharat Ram</a></div>"		
	menuscript = menuscript +"&nbsp;&nbsp; <a href='press_exprofiles.htm?mid=menu4' class='Menulinkmiddle'>Executive Profiles </a><br>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='press_releases.htm?mid=menu4' class='Menulinkbottom'>Press Releases</a>"
	menuscript = menuscript +"&nbsp;&nbsp; <a href='Publications.htm?mid=menu4' class='Menulinkbottom'>Publications</a></div>"
	menuscript = menuscript + "</td></tr></table>"
	//menuscript=menuscript+"</TD><TD vAlign='top' align='center' width='75%' class='contentspace'>"			

	document.write(menuscript);
		
	startmenu();
	
	
	

