// JavaScript Document

var menuwidth='265px' //default menu width
//var menuwidth='165px' //default menu width
//var menubgcolor='lightyellow'  //menu bgcolor
var menubgcolor='#E5EEF9'  //menu bgcolor 
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
var i;
var menu_end_tag = '</a>'
var section = "weekly";
var a;


/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1 
var menu_indices=new Array()
a = 0;
menu_indices[a++]='market_outlook">Market Outlook'
menu_indices[a++]='djia">Dow Jones Industrial Average'
menu_indices[a++]='djta">Dow Jones Transportation Average'
menu_indices[a++]='djua">Dow Jones Utility Average'
menu_indices[a++]='djca">Dow Jones Composite'
menu_indices[a++]='wilshire">Dow Jones Wilshire 5000'
menu_indices[a++]='oex">Standard & Poor\'s 100'
menu_indices[a++]='spx">Standard & Poor\'s 500'
menu_indices[a++]='mid">Standard & Poor\'s MidCap'
menu_indices[a++]='sml">Standard & Poor\'s SmallCap'

menu_indices[a++]='nyse_comp">NYSE Composite'
menu_indices[a++]='nyse_finance">NYSE Finance'

menu_indices[a++]='nasdaq">Nasdaq Composite'
menu_indices[a++]='nasdaq_100">Nasdaq 100'
menu_indices[a++]='amex">AMEX Composite'

menu_indices[a++]='russell_1000">Russell 1000'
menu_indices[a++]='russell_2000">Russell 2000'
menu_indices[a++]='russell_3000">Russell 3000'
menu_indices[a++]='russell_midcap">Russell Midcap'

menu_indices[a++]='value_line_a">Value Line Arithmetic'
menu_indices[a++]='value_line_g">Value Line Geometric'

//menu_indices[10]='index.php?section=weekly&heading=indices&indicator=djia">Dow Jones Composite</a>'
//initialize the menu array with the right php url according to option selected so each value in array is an html href statement
for (i=0; i < menu_indices.length ; i++)
{
	menu_indices[i] = '<a href="index.php?section=' + section + '&heading=indices&indicator=' + menu_indices[i] + menu_end_tag;
}

var menu_sector=new Array()
a = 0;
menu_sector[a++]='xau">PHLX Gold and Silver Index'
menu_sector[a++]='hui">AMEX Gold Bugs Index'
menu_sector[a++]='gox">CBOE Gold Index'
menu_sector[a++]='xoi">AMEX Oil Index'
menu_sector[a++]='osx">PHLX Oil Service Sector Index'
menu_sector[a++]='pse">ArcaEx Technology 100 Index'
menu_sector[a++]='sox">PHLX Semiconductor Index'
menu_sector[a++]='iix">AMEX Interactive Week Internet'

for (i=0; i < menu_sector.length ; i++)
{
	menu_sector[i] = '<a href="index.php?section=' + section + '&heading=sector&indicator=' + menu_sector[i] + menu_end_tag;
}


var menu_breadth=new Array()
a = 0;
menu_breadth[a++]='net_advance">Net Advances Histogram'
menu_breadth[a++]='abi">Absolute Breadth Index'
menu_breadth[a++]='adl_xover">Advance Decline Line (crossover system)'
menu_breadth[a++]='adr">Advance Decline Ratio (ADR)'
menu_breadth[a++]='alphier_equilibrium">Alphier Equilibrium'
menu_breadth[a++]='arms_index">Arms Index'
menu_breadth[a++]='nyse_average_sales">Average Sales'
//menu_breadth[a++]='ittt">Coppock\'s ITTTT'
menu_breadth[a++]='high_low_index">High Low Indicator'
menu_breadth[a++]='hlli">High-Low Logic Index (HLLI)'
menu_breadth[a++]='new_high_low_histogram">New High &amp; New Low Histogram'
menu_breadth[a++]='net_new_highs">Net New Highs'
menu_breadth[a++]='open_arms_index">Open Arms Index'
menu_breadth[a++]='pti">PTI Index'
menu_breadth[a++]='mcclellan_oscillator">McClellan Oscillator'
menu_breadth[a++]='mcclellan_summation">McClellan Summation Index'
menu_breadth[a++]='volume_index">Volume Index'
menu_breadth[a++]='hindenburg">The Hindenburg Omen'

for (i=0; i < menu_breadth.length ; i++)
{
	menu_breadth[i] = '<a href="index.php?section=' + section + '&heading=breadth&indicator=' + menu_breadth[i] + menu_end_tag;
}

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='http://cnn.com">CNN</a>'
menu2[1]='http://msnbc.com">MSNBC</a>'
menu2[2]='http://news.bbc.co.uk">BBC News</a>'
		
var menu_momentum=new Array()
a = 0;
menu_momentum[a++]='chandelier">Chandelier (close only)'
menu_momentum[a++]='coppock_vlt">Coppock\'s VLT Momentum'
menu_momentum[a++]='departure">Departure'
menu_momentum[a++]='macd">MACD'
menu_momentum[a++]='roc">ROC'
menu_momentum[a++]='ma_xover">Index Crossover'
menu_momentum[a++]='vhf">Vertical Horizontal Filter'
menu_momentum[a++]='vlp">Value Line Plan'

for (i=0; i < menu_momentum.length ; i++)
{
	menu_momentum[i] = '<a href="index.php?section=' + section + '&heading=momentum&indicator=' + menu_momentum[i] + menu_end_tag;
}

var menu_sentiment=new Array()
a = 0;
menu_sentiment[a++]='total_short">NYSE Total Shorts'
menu_sentiment[a++]='total_public_short">NYSE Public Shorts'
menu_sentiment[a++]='total_member_short">NYSE Member Shorts'
menu_sentiment[a++]='total_specialist_short">NYSE Specialist Shorts'
menu_sentiment[a++]='public_to_specialist">NYSE Public/Specialist Shorts Ratio'
menu_sentiment[a++]='total_buy">NYSE Total Buy'
menu_sentiment[a++]='total_sell">NYSE Total Sell'
menu_sentiment[a++]='odd_lot_purchases">NYSE Odd Lot Purchases'
menu_sentiment[a++]='odd_lot_sales">NYSE Odd Lot Sales'
menu_sentiment[a++]='odd_lot_shorts">NYSE Odd Lot Shorts'

for (i=0; i < menu_sentiment.length ; i++)
{
	menu_sentiment[i] = '<a href="index.php?section=' + section + '&heading=sentiment&indicator=' + menu_sentiment[i] + menu_end_tag;
}

var menu_rates=new Array()
a = 0;
menu_rates[a++]='3mo_tbill_coupon">3 Month T-Bill Coupon Yield'
menu_rates[a++]='3mo_tbill_auction">3 Month T-Bill Auction Rate'
menu_rates[a++]='6mo_tbill_auction">6 Month T-Bill Auction Rate'
menu_rates[a++]='1yr_tbill">1-Year T-Bill'
menu_rates[a++]='2yr_tnote">2-Year Note'
menu_rates[a++]='3yr_tnote">3-Year Note'
menu_rates[a++]='3to5yr_tnote">3-5 Year Note'
menu_rates[a++]='5yr_tnote">5-Year Note'
menu_rates[a++]='10yr_tnote">10-Year Note'
//menu_rates[9]='lb">Long Bond'
menu_rates[a++]='discount_rate">Discount Rate'
menu_rates[a++]='prime_rate">Prime Rate'
menu_rates[a++]='fed_funds">Fed Funds'
menu_rates[a++]='3mo_commercial_paper">Commercial Paper'

for (i=0; i < menu_rates.length ; i++)
{
	menu_rates[i] = '<a href="index.php?section=' + section + '&heading=rates&indicator=' + menu_rates[i] + menu_end_tag;
}

var menu_monetary=new Array()
a = 0;
menu_monetary[a++]='total_reserves">Total Reserves'
menu_monetary[a++]='required_reserves">Required Reserves'
menu_monetary[a++]='excess_reserves">Excess Reserves'
menu_monetary[a++]='borrowed_reserves">Borrowed Reserves'
menu_monetary[a++]='free_reserves">Free Reserves'
menu_monetary[a++]='government_issues">US Government Securities'
menu_monetary[a++]='total_fed_credit">Total Fed Credit'	
menu_monetary[a++]='currency_circulation">Currency in Circulation'
menu_monetary[a++]='money_supply_m1">Money Supply M1'
menu_monetary[a++]='money_supply_m2">Money Supply M2'
//menu_monetary[a++]='money_supply_m3">Money Supply M3'
menu_monetary[a++]='money_market_funds">Money Market Funds'
menu_monetary[a++]='gold">Gold'

for (i=0; i < menu_monetary.length ; i++)
{
	menu_monetary[i] = '<a href="index.php?section=' + section + '&heading=monetary&indicator=' + menu_monetary[i] + menu_end_tag;
}

var menu_valuation=new Array()
a = 0;
menu_valuation[a++]='sp500_earnings">S&P 500 Earnings'
menu_valuation[a++]='sp500_p_to_e_ratio">S&P 500 Price/Earnings Ratio'
menu_valuation[a++]='sp500_p_to_e_cyclical">S&P 500 P/E Cyclical Model'
menu_valuation[a++]='sp500_divident_yield">S&P Dividend Yield'
menu_valuation[a++]='sp500_dividend_cyclical">S&P Dividend Yield Cyclical Model'
menu_valuation[a++]='gs_model_I">Goldman Sachs Model I'
menu_valuation[a++]='gs_model_II">Goldman Sachs Model II'

for (i=0; i < menu_valuation.length ; i++)
{
	menu_valuation[i] = '<a href="index.php?section=' + section + '&heading=valuation&indicator=' + menu_valuation[i] + menu_end_tag;
}

var menu_structure=new Array()
a = 0;
menu_structure[a++]='analog">Analog'
menu_structure[a++]='presidential">Presidential'
menu_structure[a++]='size">Size'
menu_structure[a++]='style">Style'

for (i=0; i < menu_structure.length ; i++)
{
	menu_structure[i] = '<a href="index.php?section=' + section + '&heading=structure&indicator=' + menu_structure[i] + menu_end_tag;
}

/////No further editting needed