function dropdown(value)
{
	document.getElementById("dropdown"+value).style.display='block';
}

function hide(value)
{
	document.getElementById("dropdown"+value).style.display='none';
}

function redirect(page)
{
	window.location = page;
}

function append(){
	
var labels=new Array();
labels[0]="Compare All Annuities";
labels[1]="Fixed Rate Annuities";
labels[2]="Fixed/Equity-Indexed Annuities";
labels[3]="Income Benefits (GMIBs)";
labels[4]="Lifetime Withdrawal Benefits (LWBs)";
labels[5]="Withdrawal Benefits (GMWBs)";
labels[6]="Guaranteed Account Value (GAVs)";
labels[7]="Bonus Annuities";
labels[8]="No-Surrender Annuities";
labels[9]="No-Load Annuities";
labels[10]="Death Benefit Provisions";
labels[11]="Investment Strategies";
labels[12]="Immediate Annuities";
labels[13]="Secondary Market Annuities";
labels[14]="Equity Linked CDs";
labels[15]="What is an annuity";
labels[16]="Is an annuity suitable for me?";
labels[17]="The different types of Annuities";
labels[18]="The Annuity Qualifier";
labels[19]="Financial Self Assessment";
labels[20]="Annuity Checklist";

var links =new Array();
links[0]="compare-best-annuity-rates.html";
links[1]="fixed-annuities.html";
links[2]="compare_fixed_indexed_annuities.html";
links[3]="ca1e_living_benefit.html";
links[4]="lifetime_income_benefit.html";
links[5]="withdrawal_benefit.html";
links[6]="guaranteed_account_value.html";
links[7]="compare_bonus_annuities.html";
links[8]="compare_no-surrender_annuities.html";
links[9]="compare_no-load_annuities.html";
links[10]="ca1d_death_benefit.html";
links[11]="ca_investment_strategies.html";
links[12]="immediate-annuities.html";
links[13]="compare-secondary-market-immediate-annuities.html";
links[14]="compare_equity_linked_cds.html";
links[15]="ab1a_what_is_an_annuity.html";
links[16]="ab1b_is_an_annuity_right_for_m.html";
links[17]="types-of-annuities.html";
links[18]="ab2d_annuity_qualifier.html";
links[19]="retirement-calculator.html";
links[20]="ac_annuity_checklist.html";



var i=0;
for(i=0;i<=14;i++)
{
	
var dropDown = document.getElementById('dropdown2'); // identify <ul>
var listItem = document.createElement('li'); // create a <li> to have something to append
var listItemAnchor = document.createElement('a'); // create content for <li>
var listItemAnchorText = document.createTextNode(labels[i]); // create content for <a>
listItemAnchor.setAttribute('href', links[i]);
listItemAnchor.setAttribute('rel', 'nofollow');

if(i%2){
	listItemAnchor.setAttribute('class', 'bg'); // self-explanatory
}

// now, pull the act together
listItemAnchor.appendChild(listItemAnchorText);
listItem.appendChild(listItemAnchor);
dropDown.appendChild(listItem);
}

for(i=15;i<=20;i++){
		
var dropDown = document.getElementById('dropdown1'); // identify <ul>
var listItem = document.createElement('li'); // create a <li> to have something to append
var listItemAnchor = document.createElement('a'); // create content for <li>
var listItemAnchorText = document.createTextNode(labels[i]); // create content for <a>
listItemAnchor.setAttribute('href', links[i]);
listItemAnchor.setAttribute('rel', 'nofollow');

if(i % 2){
	listItemAnchor.setAttribute('class', 'bg'); // self-explanatory
}

// now, pull the act together
listItemAnchor.appendChild(listItemAnchorText);
listItem.appendChild(listItemAnchor);
dropDown.appendChild(listItem);
}

}
function wOpen(sel){
		window.open('annuity-intelligence.html?aiSelected='+sel+'', 'myname','width=600,height=600,resizable=no,scrollbars=yes');
}
