function formatLink(linkRef, linkName, isHead)
{
	 var linkstr = '<a href="/' + linkRef + '/" class="headNavSubLink';
	 if (isHead) {linkstr += ' headNavSubLinkTop';}
	 linkstr += '">' + linkName + '</a>';
	 return linkstr;
}

function createDropDownMenus(section)
{
	if (section != 'mortgage')
{
	$('mortgage_menu_div').innerHTML += '<div class="headNavSubLinks">'+formatLink('home-refinance','home refinance',true)+formatLink('home-purchase','home purchase',false)+formatLink('debtconsolidation','debt consolidation',false)+formatLink('home-finance','home finance',false)+formatLink('refinance-my-home','refinance my home',false)+formatLink('reversemortgage','reverse mortgage',false)+formatLink('fha-loans','FHA home loan',false)+formatLink('mortgage-refinancing','mortgage refinancing',false)+formatLink('subprime-mortgages','subprime mortgages',false)+formatLink('foreclosure','foreclosure',false)+formatLink('second-mortgage','second mortgage',false)+formatLink('lender-profiles','mortgage lenders',false)+"</div>";

}
if (section != 'debthelp')
{
	$('debthelp_menu_div').innerHTML += '<div class="headNavSubLinks">'+formatLink('debt-consolidation','debt consolidation',true)+formatLink('debt-consolidation-services','debt consolidation services',false)+formatLink('debt-consolidation-loan','debt consolidation loan',false)+formatLink('collection-laws','debt collection laws',false)+formatLink('debt_relief','debt relief',false)+formatLink('credit-card-debt','credit card debt',false)+formatLink('credit-card-debt-consolidation','credit card debt consolidation',false)+formatLink('bankruptcy','bankruptcy',false)+formatLink('ayuda-de-la-deuda','ayuda de la deuda',false)+formatLink('debt-pointers','debt pointers',false)+formatLink('consolidate-my-debt','consolidate my debt',false)+formatLink('consolidate-debt','consolidate debt',false)+formatLink('debt-DIY','debt DIY',false)+"</div>";

}
if (section != 'insurance')
{
	$('insurance_menu_div').innerHTML += '<div class="headNavSubLinks">'+formatLink('auto-insurance','auto insurance',true)+formatLink('health-insurance','health insurance',false)+formatLink('home-insurance','home insurance',false)+"</div>";

}
if (section != 'billpay')
{
	$('billpay_menu_div').innerHTML += '<div class="headNavSubLinks">'+formatLink('consolidate-bills','consolidate bills',true)+formatLink('consolidate-my-bills','consolidate my bills',false)+"</div>";

}
if (section != 'loans')
{
	$('loans_menu_div').innerHTML += '<div class="headNavSubLinks">'+formatLink('home-loan','home loan',true)+formatLink('home-equity-loan','home equity loan',false)+formatLink('home-equity-line','home equity line',false)+formatLink('payday-loans','pay day loans',false)+formatLink('student-loans','student loans',false)+formatLink('auto-loans','auto loans',false)+"</div>";

}
if (section != 'credit')
{
	$('credit_menu_div').innerHTML += '<div class="headNavSubLinks">'+formatLink('credit','credit information',true)+formatLink('bad-credit','bad credit',false)+formatLink('credit-counseling','credit counseling',false)+formatLink('credit-score','credit score',false)+formatLink('credit-cards','credit cards',false)+formatLink('credit-report','credit report',false)+formatLink('credit-monitoring','credit monitoring',false)+formatLink('credit-solutions','credit solutions',false)+"</div>";

}
}