function topic_genhead(){
	if(pathn.indexOf(div + 'ct_child_health' + div) != -1){	
		var fol  = "Child Health";
		var img = "../../../images/health_info/baby_icon.gif";		
		var dot = "o";		
		topic_genchild(fol,img,dot);	
	}
	if(pathn.indexOf(div + 'ct_woman_health' + div) != -1){
		var fol  = "Woman Health";
		var img = "../../../images/health_info/woman_icon.gif";
		var dot = "p";
		topic_genwoman(fol,img,dot);	
	}	
}

function topic_genchild(fol,img,dot){
	if(pathn.indexOf('ch_parenting') != -1){
		alt = "Parenting";
		menu += '<option value="ch_parenting.html" selected>Parenting</option>';		
	}else{
		menu += '<option value="ch_parenting.html">Parenting</option>';				
	}

	if(pathn.indexOf('ch_newborn') != -1){
		alt = "Newborn Care";
		menu += '<option value="ch_newborn.html" selected>Newborn Care</option>';		
	}else{
		menu += '<option value="ch_newborn.html">Newborn Care</option>';				
	}

	if(pathn.indexOf('ch_breastfeeding') != -1){
		alt = "Breastfeeding";
		menu += '<option value="ch_breastfeeding.html" selected>Breastfeeding</option>';		
	}else{
		menu += '<option value="ch_breastfeeding.html">Breastfeeding</option>';				
	}

	if(pathn.indexOf('ch_nutrition') != -1){
		alt = "Nutrition";
		menu += '<option value="ch_nutrition.html" selected>Nutrition</option>';		
	}else{
		menu += '<option value="ch_nutrition.html">Nutrition</option>';				
	}

	if(pathn.indexOf('ch_home_safe') != -1){
		alt = "Home Safety";
		menu += '<option value="ch_home_safe.html" selected>Home Safety</option>';		
	}else{
		menu += '<option value="ch_home_safe.html">Home Safety</option>';				
	}

	if(pathn.indexOf('ch_oral_health') != -1){
		alt = "Oral Health";
		menu += '<option value="ch_oral_health.html" selected>Oral Health</option>';		
	}else{
		menu += '<option value="ch_oral_health.html">Oral Health</option>';				
	}

	if(pathn.indexOf('ch_immunization') != -1){
		alt = "Immunisation";
		menu += '<option value="ch_immunization.html" selected>Immunisation</option>';		
	}else{
		menu += '<option value="ch_immunization.html">Immunisation</option>';				
	}

	if(pathn.indexOf('ch_child_develop') != -1){
		alt = "Child Development";
		menu += '<option value="ch_child_develop.html" selected>Child Development</option>';		
	}else{
		menu += '<option value="ch_child_develop.html">Child Development</option>';				
	}

	if(pathn.indexOf('ch_hearing') != -1){
		alt = "Hearing";
		menu += '<option value="ch_hearing.html" selected>Hearing</option>';		
	}else{
		menu += '<option value="ch_hearing.html">Hearing</option>';				
	}

	if(pathn.indexOf('ch_vision') != -1){
		alt = "Vision";
		menu += '<option value="ch_vision.html" selected>Vision</option>';		
	}else{
		menu += '<option value="ch_vision.html">Vision</option>';				
	}
/*
	if(pathn.indexOf('ch_cos') != -1){
		alt = "Comprehensive Observation Service (COS)";
		menu += '<option value="ch_cos.html" selected>Comprehensive Observation Service</option>';		
	}else{
		menu += '<option value="ch_cos.html">Comprehensive Observation Service</option>';				
	}
*/
	if(pathn.indexOf('ch_dss') != -1){
		alt = "Developmental Surveillance Scheme (DSS)";
		menu += '<option value="ch_dss.html" selected>Developmental Surveillance Scheme</option>';		
	}else{
		menu += '<option value="ch_dss.html">Developmental Surveillance Scheme</option>';				
	}

	
	topic_gentable(fol,img,dot,alt,menu);
}



function topic_genwoman(fol,img,dot){
	if(pathn.indexOf('wh_srh') != -1){
		alt = "Sexual Health";
		menu += '<option value="wh_srh.html" selected>Sexual Health</option>';		
	}else{
		menu += '<option value="wh_srh.html">Sexual Health</option>';				
	}

	if(pathn.indexOf('wh_ba') != -1){
		alt = "Breast Awareness";
		menu += '<option value="wh_ba.html" selected>Breast Awareness</option>';		
	}else{
		menu += '<option value="wh_ba.html">Breast Awareness</option>';				
	}

	if(pathn.indexOf('wh_cs') != -1){
		alt = "Cervical Screening";
		menu += '<option value="wh_cs.html" selected>Cervical Screening</option>';		
	}else{
		menu += '<option value="wh_cs.html">Cervical Screening</option>';				
	}

	if(pathn.indexOf('wh_fpi') != -1){
		alt = "Family Planning and Infertility";
		menu += '<option value="wh_fpi.html" selected>Family Planning and Infertility</option>';		
	}else{
		menu += '<option value="wh_fpi.html">Family Planning and Infertility</option>';				
	}

	if(pathn.indexOf('wh_antenatal') != -1){
		alt = "Antenatal Care";
		menu += '<option value="wh_antenatal.html" selected>Antenatal Care</option>';		
	}else{
		menu += '<option value="wh_antenatal.html">Antenatal Care</option>';				
	}

	if(pathn.indexOf('wh_postnatal') != -1){
		alt = "Postnatal Care";
		menu += '<option value="wh_postnatal.html" selected>Postnatal Care</option>';		
	}else{
		menu += '<option value="wh_postnatal.html">Postnatal Care</option>';				
	}

	if(pathn.indexOf('wh_mp') != -1){
		alt = "Menstrual Problems";
		menu += '<option value="wh_mp.html" selected>Menstrual Problems</option>';		
	}else{
		menu += '<option value="wh_mp.html">Menstrual Problems</option>';				
	}

	if(pathn.indexOf('wh_psycho') != -1){
		alt = "Psycho-social Health";
		menu += '<option value="wh_psycho.html" selected>Psycho-social Health</option>';		
	}else{
		menu += '<option value="wh_psycho.html">Psycho-social Health</option>';				
	}

	if(pathn.indexOf('wh_physical') != -1){
		alt = "Physical Health and Lifestyle";
		menu += '<option value="wh_physical.html" selected>Physical Health and Lifestyle</option>';		
	}else{
		menu += '<option value="wh_physical.html">Physical Health and Lifestyle</option>';				
	}

	topic_gentable(fol,img,dot,alt,menu);
}



function topic_gentable(fol,img,dot,alt,menu){
	if(fol == "Child Health"){
		fol2 = "Child Health";
	}else if(fol == "Woman Health"){
		fol2 = "Woman Health";	
	}
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
        '<tr> '+
          '<td width="40"><img src="'+img+'"></td>'+
          '<td class="hd_'+fol+'">'+fol2+'</td>'+
			'<form name="form1" method="post" action="">'+
          '<td align="right">'+
             ' <select name="menu1" onChange="MM_jumpMenu(\'parent\',this,0)" class="body">'
                +menu+
			'</select>'+         
          '</td></tr>'+				
			'<tr>'+
		'<td>&nbsp;</td><td colspan="2" class="subhd_'+fol+'">'+alt );
				
	if(vcdlink != ""){
		if(fol == "Child Health"){
			document.write(' <a href="'+vcdlink+'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'vcd1\',\'\',\'../../../images/health_info/vcd_over.gif\',1)"><img src="../../../images/health_info/vcd.gif" border="0" alt="VCD" hspace="10" align="absmiddle" name="vcd1"></a>');
		}else if(fol == "Woman Health"){
			document.write(' <a href="'+vcdlink+'" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'vcd1\',\'\',\'../../../images/health_info/vcd2_over.gif\',1)"><img src="../../../images/health_info/vcd2.gif" border="0" alt="VCD" hspace="10" align="absmiddle" name="vcd1"></a>');		
		}
	}			
				
	document.write('</td>'+
			'</tr>'+
		  '</form>'+
        '</tr>'+        
      '</table>');				
}