function showOptions(parent_id){

		varMenu = new Array('home','services','quality','company');
		
		if(parent_id == 'home'){
			sub_options = null;
		}
		if(parent_id=='services'){
			sub_options = new Array(
										"155px","-430px",
										"Software Localisation-index.php?p=services_software_localisation",
										"Technical Translation-index.php?p=services_technical_document_translation",
										"Website Translation-index.php?p=services_website_translation",
										"Patent Translation-index.php?p=services_patent_translation",
										"Medical Translation-index.php?p=services_medical_translation",
										"Languages & Specialty Fields-index.php?p=services_languages_and_specialty");		
		}
		
		if(parent_id=='quality'){
			sub_options = new Array(	"240px","-345px",
										"Qualified Translators-index.php?p=quality_qualified_translators",
										"Procedures-index.php?p=quality_procedures",
										"Technology-index.php?p=quality_technology",
										"Industry Experience-index.php?p=quality_industry_experience");
		}
		if(parent_id=='company'){
				sub_options = 	new Array(	"319px","-266px",
										"Translators-index.php?p=company_translators",
										"Project Managers-index.php?p=company_project_managers",
										"Business Managers-index.php?p=company_business_managers",
										"The Academy Difference-index.php?p=company_the_academy_difference");
		}
		
		clearTimeout(t);
		
		obj = document.getElementById('sub-menu');
		if(sub_options!=null){
			obj.style.visibility="visible";
			obj.innerHTML = '';
			
			if(document.all) { obj.style.marginLeft = sub_options[1];  }
			else obj.style.marginLeft = sub_options[0];
			
			for(i=2;i<sub_options.length; i++){
				result = sub_options[i].split("-");
				
				if(i==2) vStyle ="style='padding:5px; '";
				else vStyle="style='border:0px;border-top:1px solid #c5c8be; padding:5px;'";
				obj.innerHTML = obj.innerHTML + "<div " + vStyle + " onmouseout='unLightOption(this)' onmouseover='lightOption(this)' id='div_" + i + "'><a href='"+ result[1] + "'>" + result[0] + "</a></div>";
			}
		}else{
			clearTimeout(t);
			hideOptions();
		} 
	}
	
	var t;
	function hideOptions(){
		obj = document.getElementById('sub-menu');
		t = setTimeout("obj.style.visibility='hidden'",500); 
	}
	
	function onSubMenu(){
		 clearTimeout(t);		
	}
	
	function lightOption(id){		
		 id.style.background = "#7eb921"; 
	}
	function unLightOption(id){	
		 id.style.background = "#72a424"; 
	}
	
