/***********************************************
* 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
***********************************************/



var http_roots = 'http://www.directinvesting.com';
var http_root = 'http://www.directinvesting.com';

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="' + http_roots + '" class="dropLink">Login</a>'
menu1[1]='<a href="' + http_roots + '/help_feedback.cfm" class="dropLink">Forgot Password?</a>'
menu1[2]='<a href="' + http_roots + '/secureFiles/trial_form.cfm?clickID=9&sourceID=64" class="dropLink">Free Guest Pass</a>'



var menu3=new Array()
menu3[0] = '<a href="' + http_root + '/advanced_drip_search.cfm?from=search" class="dropLink">Search</a>'
menu3[1] = '<a href="' + http_roots + '/securefiles/static/drip_enrollment_order_s.cfm" class="dropLink">Order</a>'


var menu4=new Array()
menu4[0] = '<a href="' + http_root + '/drip_learning_center/10Reasons.cfm" class="dropLink">10 Reasons</a>'
menu4[1] = '<a href="' + http_root + '/drip_learning_center/direct_investment_plans.cfm" class="dropLink">Direct Investment Plans</a>'
menu4[2] = '<a href="' + http_root + '/drip_learning_center/drip_fees.cfm" class="dropLink">DRIPs and Fees</a>'
menu4[3] = '<a href="' + http_root + '/drip_learning_center/broker_comparison.cfm?from=tools" class="dropLink">No-Fee DRIPs VS. Brokers</a>'
menu4[4] = '<a href="' + http_root + '/search/no_fees.cfm?from=lc" class="dropLink">No-Fee DRIPs</a>'
menu4[5] = '<a href="' + http_root + '/drip_learning_center/foreign_investors.cfm?from=lc" class="dropLink">Foreign Investors</a>'
menu4[6] = '<a href="' + http_root + '/drip_learning_center/special_features.cfm" class="dropLink">Special Features</a>'
menu4[7] = '<a href="' + http_root + '/drip_learning_center/how_enroll.cfm" class="dropLink">How to Enroll</a>'
menu4[8] = '<a href="' + http_root + '/drip_learning_center/TES.cfm" class="dropLink">DRIP Enrollment Service</a>'
menu4[9] = '<a href="' + http_root + '/drip_learning_center/directinvesting_com.cfm" class="dropLink">Directinvestng.com</a>'
menu4[10] = '<a href="' + http_root + '/drip_learning_center/build_drip_portfolio.cfm" class="dropLink">Build a Portfolio</a>'


var menu5=new Array()
menu5[0] = '<a href="' + http_root + '/Testimonial.cfm" class="dropLink">What Customers Say</a>'
menu5[1] = '<a href="' + http_root + '/MediaMentions.cfm" class="dropLink">Media Mentions</a>'
menu5[2] = '<a href="' + http_root + '/about_us.cfm" class="dropLink">Moneypaper</a>'
menu5[3] = '<a href="' + http_root + '/about_temper.cfm" class="dropLink">Temper</a>'
menu5[4] = '<a href="' + http_root + '/bio.cfm" class="dropLink">Editors of <i>The Moneypaper</i></a>'
menu5[5] = '<a href="' + http_root + '/faq.cfm" class="dropLink">FAQ</a>'
menu5[6] = '<a href="' + http_root + '/contact_us.cfm" class="dropLink">Contact Moneypaper</a>'
menu5[7] = '<a href="' + http_root + '/contact_us.cfm" class="dropLink">Contact Temper</a>'
menu5[8] = '<a href="http://www.dripx.com" class="dropLink">Contact MP63 Fund</a>'

var menu6=new Array()

var menu7 = new Array()
menu7[0] = '<a href="' + http_root + '/model_portfolios/speculative.cfm" class="dropLink">Speculative DRIP</a>'
menu7[1] = '<a href="' + http_root + '/model_portfolios/growthincome.cfm" class="dropLink">Growth & Income</a>'
menu7[2] = '<a href="' + http_root + '/model_portfolios/overlooked.cfm" class="dropLink">Overlooked Safety</a>'
menu7[3] = '<a href="' + http_root + '/model_portfolios/bluechip.cfm" class="dropLink">Blue Chip & Growth</a>'
menu7[4] = '<a href="' + http_root + '/model_portfolios/allweather.cfm" class="dropLink">All-Weather</a>'
menu7[5] = '<a href="' + http_root + '/model_portfolios/highgrowth.cfm" class="dropLink">High Growth</a>'


var menu8 = new Array()
menu8[0] = '<a href="' + http_root + '/drip_learning_center/10_starterport.cfm" class="dropLink">A sample $500 Portfolio</a>'
menu8[1] = '<a href="' + http_root + '/drip_learning_center/extra_dividend_strategy.cfm" class="dropLink">Extra Dividend Strategy</a>'
menu8[2] = '<a href="' + http_root + '/tools/index.cfm" class="dropLink">Tools</a>'
menu8[3] = '<a href="' + http_root + '/drip_learning_center/what_are_drips.cfm" class="dropLink">DRIPs: The Small Investor&#39;s Weapon</a>'
menu8[4] = '<a href="' + http_root + '/drip_learning_center/index.cfm" class="dropLink">Rich Get Richer</a>'
menu8[5] = '<a href="' + http_root + '/group_membership/suggested_portfolio.cfm" class="dropLink">Suggested Portfolios</a>'
menu8[6] = '<a href="' + http_root + '/drip_learning_center/minimize_risk.cfm" class="dropLink">Minimize Risk</a>'
menu8[7] = '<a href="' + http_root + '/drip_learning_center/dollar_cost_average.cfm" class="dropLink">Dollar-Cost Averaging</a>'
menu8[8] = '<a href="' + http_root + '/next_invest_date.cfm?from=tools" class="dropLink">Next Investment Date</a>'
menu8[9] = '<a href="' + http_root + '/invest_index.cfm?from=tools" class="dropLink">Invest %</a>'
menu8[10] = '<a href="' + http_root + '/advanced_drip_search.cfm?from=tools" class="dropLink">Search for DRIPs</a>'
menu8[11] = '<a href="' + http_root + '/drip_learning_center/investing_comparison.cfm?from=tools" class="dropLink">Power of Compounding</a>'
menu8[12] = '<a href="' + http_root + '/drip_learning_center/invest_compound.cfm?from=tools" class="dropLink">Calculate Long Term Growth</a>'
menu8[13] = '<a href="' + http_root + '/drip_learning_center/rule_of_72.cfm?from=tools" class="dropLink"># Rule Of 72</a>'

var menu9=new Array()
menu9[0] = '<a href="' + http_root + '/give_a_head_start.cfm" class="dropLink">Head Start</a>'
menu9[1] = '<a href="' + http_root + '/drip_learning_center/kids_index.cfm?" class="dropLink">Investing for Kids</a>'
menu9[2] = '<a href="' + http_root + '/drip_learning_center/investing_comparison.cfm?from=kids" class="dropLink">The Power of Compounding</a>'
menu9[3] = '<a href="' + http_root + '/drip_learning_center/rule_of_72.cfm?from=kids" class="dropLink">The Rule of 72</a>'
menu9[4] = '<a href="' + http_root + '/drip_learning_center/starter_portfolio.cfm?from=kids" class="dropLink">Starter Portfolio</a>'
menu9[5] = '<a href="' + http_root + '/drip_learning_center/finding_investment_funds.cfm" class="dropLink">Finding Funds</a>'
menu9[6] = '<a href="' + http_root + '/drip_learning_center/kids.cfm?from=kids" class="dropLink">A Portfolio Kids Can Afford</a>'
menu9[7] = '<a href="' + http_root + '/search/no_fees.cfm?from=kids" class="dropLink">No-Fee DRIPs</a>'

var menu10=new Array()
menu10[0] = '<a href="' + http_root + '/briefcase/w9.pdf" class="dropLink">W-9</a>'
menu10[1] = '<a href="' + http_root + '/briefcase/w8.pdf" class="dropLink">W-8</a>'
menu10[2] = '<a href="' + http_root + '/briefcase/DRIPSubForm.pdf" class="dropLink">DRIP Enrollment Form</a>'
menu10[3] = '<a href="' + http_root + '/briefcase/DRIPGiftForm.pdf" class="dropLink">Gift DRIP Enrollment Form</a>'

/*var menu11 = new Array()
menu11[0] = '<a href="' + http_root + '/product_descriptions/mp_fact_page.cfm" class="dropLink">The Moneypaper</a>'
menu11[1] = '<a href="' + http_root + '/product_descriptions/di_fact_page.cfm" class="dropLink">DirectInvesting</a>'
menu11[2] = '<a href="' + http_root + '/product_descriptions/guide_fact_page.cfm" class="dropLink">The Guide to Direct Investment Plans</a>'
menu11[3] = '<a href="' + http_root + '/product_descriptions/bb_fact_page.cfm" class="dropLink">Bargain Basement</a>'
menu11[4] = '<a href="' + http_root + '/product_descriptions/dc_fact_page.cfm" class="dropLink">DRIP Club (Individual)</a>'
menu11[5] = '<a href="' + http_root + '/product_descriptions/gdc_fact_page.cfm" class="dropLink">DRIP Club (Group)</a>'
menu11[6] = '<a href="' + http_root + '/product_descriptions/pk_fact_page.cfm" class="dropLink">PortfolioKeeper</a>'
menu11[7] = '<a href="' + http_root + '/product_descriptions/ip_fact_page.cfm" class="dropLink">Invest %</a>'
menu11[8] = '<a href="' + http_root + '/product_descriptions/ads_fact_page.cfm" class="dropLink">Advanced Drip Search</a>'
*/


var menuwidth='165px' //default menu width
var menubgcolor='#f3f3f3'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)

return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

/****************************************************************************************/
